Some time we are unable to find network information on ifcfg command or network connection does not work after cloning.
To see all interfaces ifcfg -a
To force CentOS 6 to re-detect network interfaces
Delete the MAC Address from ifcfg-eth0 file
Articles for Linux
Some time we are unable to find network information on ifcfg command or network connection does not work after cloning.
To see all interfaces ifcfg -a
To force CentOS 6 to re-detect network interfaces
Delete the MAC Address from ifcfg-eth0 file
How to check disk uses on Linux
df command : Report file system disk space usage
du command : Estimate file space usage
Example :-
How to install FTP server on CentOS
#yum install vsftpd
#chkconfig vsftpd on
#service vsftpd start
#nano /etc/vsftpd/vsftpd.conf (uncomment the following)
anonymous_enable=NO (disallow anonymous login)
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to DATACENTER FTP service.
Where is root? or how to enable root login in Ubuntu
Ubuntu developers made a conscientious decision to disable the administrative root account by default
Sudo allows an authorized user to temporarily elevate their privileges
using their own password instead of having to know the password belonging to the root account.
This simple yet effective methodology provides accountability for all user actions, and gives the
administrator granular control over which actions a user can perform with said privileges.
Reboot the linux 1-Press esc to intruppet boot loader 2-Press e to edit boot loader to load linux Kernal in single mode 3-add s at the end of of the line and press ENTER kernel /vmlinuz-2.6.18-194.el5PAE ro root=/dev/VolGroup00/LogVol00 s 3-Press b to boot 4-Linux will boot in single mode 5-now change the password of the root … Read more
How Do I Find Out My Kernel Version? $ uname -mrs $ uname -a output Linux 2.6.18-194.el5 i686
$ cat /etc/*-release output CentOS release 5.9 (Final) $ lsb_release -a output LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.9 (Final) Release: 5.9 Codename: Final
How to reset the Zeroshell password The Zeroshell password is written in /Database/var/register/system/ldap/rootpw # mount /dev/sda1 /mnt # cd /mnt/_DB.001/var/register/system/ldap #cat rootpw Zeroshell How to Download here
How to change SSH port number If you want to change your ssh port number other then 22 you can do it by editing sshd_config. Step 1 : Login to your server as Root Step 2 : edit it nano /etc/ssh/sshd_config Step 3 : Search for following line that has : Port 22 Step 4 … Read more
Red Hat / CentOS: Check / List Running Services Q. How do I list all currently running services in Fedora / RHEL / CentOS Linux server? A. There are various ways and tools to find and list all running services under Fedora / RHEL / CentOS Linux systems. service command – list running services service … Read more