Posts

Showing posts from 2014

Racktable on ubuntu installation

Racktable dependency packages :- rajeshp@ubuntu01:~$sudo apt-get install apache2 apache2.2-common libapache2-mod-php5 \ php5-snmp php5-ldap php5 php5-common php5-gd curl php5-mysql \ mysql-client mysql-common mysql-server \ Add user for Racktable:- rajeshp@ubuntu01:~$sudo useradd -u 4000 -g users -s /sbin/nologin -c "RackTables User" -md /home/racktables racktables MYSQL for Racktables :- mysql> create database racktables; mysql> grant all on racktables.* to root; mysql> grant all on racktables.* to root@localhost; mysql> grant all on racktables.* to rackuser; mysql> grant all on racktables.* to rackuser@localhost; mysql> grant all on racktables.* to 'rackuser'@'localhost' identified by 'rackpw'; mysql> exit chown www-data:www-data secret.php; chmod 400 secret.php

Query Package pre-installed or not - Ubuntu

rajeshp@ubuntu01:~$ dpkg-query -l |grep apache ii  apache2                             2.4.6-2ubuntu2.2                 amd64        Apache HTTP Server ii  apache2-bin                         2.4.6-2ubuntu2.2                 amd64        Apache HTTP Server (binary files and modules) ii  apache2-data                        2.4.6-2ubuntu2.2                 all          Apache HTTP Server (common files) or, simply use  rajeshp@ubuntu01:~$  dpkg-query -l              //For all the installed packages in current server If you know the package name :- ...

Disabling IPv6 on -Ubuntu

Check IPv6(disabled or enabled), with rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0                           //Enabled Disabled IPv6 with the following lines in /etc/sysctl.conf : - net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Above, using command line(CLI):- rajeshp@ubuntu:~$ echo "#Disable ipv6" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$ echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$ echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf rajeshp@ubuntu:~$   echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf Reactivate the above configuration by, executing :- rajeshp@ubuntu:~$ sysctl -p rajeshp@ubuntu:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6 1                   ...

About :IP static on Ubuntu server 12.4

About :IP static on Ubuntu server 12.4 -------------------------------------------------- rajesh@dns:~$ more /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface #auto lo #iface lo inet loopback # The primary network interface #auto eth0 #iface eth0 inet dhcp auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.88.128 netmask 255.255.255.0 gateway 192.168.88.2 dns-search rajesh.com dns-nameservers 8.8.8.8 8.8.4.4 ====================================================================== rajesh@dns:~$ more /etc/hosts 127.0.0.1       localhost 127.0.1.1       dns.kl.rajesh.local     dns 192.168.88.128  dns.kl.rajesh.local     dns rajesh@dns:~$sudo ifup eth0 rajesh@dns:~$sudo ifdown eth0 ===========...