Posts

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 ===========...

About -- Git :distributed version control

Git In software development , Git / ɡ ɪ t / is a distributed version control and source code management (SCM) system with an emphasis on speed. [ 3 ] Initially designed and developed by Linus Torvalds for Linux kernel development, Git has since been adopted by many other projects. Every Git working directory is a full-fledged repository with complete history and full version tracking capabilities, not dependent on network access or a central server. Git is free software distributed under the terms of the GNU General Public License version 2. Ref. : https://en.wikipedia.org/wiki/Git_%28software%29 I have few tried to create few test to rewind the skills-set for basic "git" knowledge:- Git: Install : Ubuntu : sudo apt-get install git RHEL/CentOS/Fedora: yum install git Git :User Configuration : #  your name git config --global user.name "Example Name" #  your email-address git config --global user.email "email@gmail.com" # enab...

Updated: RPM package managment - Part 2

[root@RHEL6 ~]# rpm -qa |sort |less            //List all installed packages abrt-2.0.8-15.el6.centos.x86_64 abrt-addon-ccpp-2.0.8-15.el6.centos.x86_64 abrt-addon-kerneloops-2.0.8-15.el6.centos.x86_64 abrt-addon-python-2.0.8-15.el6.centos.x86_64 abrt-cli-2.0.8-15.el6.centos.x86_64 abrt-desktop-2.0.8-15.el6.centos.x86_64 abrt-gui-2.0.8-15.el6.centos.x86_64 abrt-libs-2.0.8-15.el6.centos.x86_64 abrt-tui-2.0.8-15.el6.centos.x86_64 abyssinica-fonts-1.0-5.1.el6.noarch acl-2.2.49-6.el6.x86_64 acpid-1.0.10-2.1.el6.x86_64 aic94xx-firmware-30-2.el6.noarch alsa-lib-1.0.22-3.el6.x86_64 alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64 alsa-utils-1.0.22-5.el6.x86_64 anaconda-13.21.195-1.el6.centos.1.x86_64 anaconda-yum-plugins-1.0-5.1.el6.noarch anthy-9100h-10.1.el6.x86_64 ============================================================= [root@RHEL6 ~]# rpm -qf /etc/host.conf      //Identify the package associated with file setup-2.8.14-20....

Adding new HDD(hard disk) in Linux, detect it without rebooting - Experimented using Vmware

Image
This is explained below :- Im having Vmware 9 with CentOS 6.4 Up-Running. Im adding the hard disk :-   Next> Create a new virtual disk SCSI maximum disk size (GB): 1GB // you can select as per your requirement Additional HDD added:-   select >>OK  Open clone session on SSH : select tail -f /var/log/messages   Keep scanning the host . And, get detected in fdisk as well in /dev/* directory:  echo "- - -" > /sys/class/scsi_host/host0/scan echo "- - -" > /sys/class/scsi_host/host1/scan echo "- - -" > /sys/class/scsi_host/host2/scan As in my case i had host0,host1,host2   When the HDD is detected, in host2:- Remove the Added partition, using the following command:- i.e., # echo 1 > /sys/block/devName/device/delete Example,in our case is "/dev/sdb # echo 1 > /sys/block/sdb/device/delete