Category Archives: My Linux

assign static ip “ubuntu”

iface em0 inet static address 192.168.1.128 netmask 255.255.255.0 network 192.168.1.0 dns-search example.com dns-nameservers 8.8.8.8 8.8.4.4

Posted in ubuntu | Comments Off on assign static ip “ubuntu”

usermod

usermod -aG sudo username “add someone in root”

Posted in ubuntu | Comments Off on usermod

DNS server and search in ubuntu

I found out that you can change the nameservers that dnsmasq uses by adding the following lines to /etc/dnsmasq.conf: server=8.8.8.8 server=8.8.4.4 I didn’t have a /etc/dnsmasq.conf file though, since it’s installed by the dnsmasq package, but Ubuntu only comes with … Continue reading

Posted in ubuntu | Comments Off on DNS server and search in ubuntu

ubuntu command line for apache

Update your system: sudo apt-get update && sudo apt-get upgrade =-=-=-=-=-=-=-=-=-=-=- remove LAMP sudo apt-get purge mysql-server apache2 php5 ==-=-=-=-=-=-=-=-=-=-=- fully manage your lamp Server database, install phpmyadmin sudo  apt-get  install  phpmyadmin =-=-=-=-=-=-=-=-=-=-=-= Install Apache sudo apt-get install apache2 apache2-doc … Continue reading

Posted in ubuntu | Comments Off on ubuntu command line for apache

setup SSL for ubuntu

open you default-ssl.conf file and paste this code (inside VirtualHost *:443) <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory> your default-ssl.conf should like this: Save the fie and exit editor disable … Continue reading

Posted in ubuntu | Comments Off on setup SSL for ubuntu