Tuesday, October 13, 2020

Yum install from a local folder

cd <to your desired rpms location>

yum --disablerepo=* localinstall *.rpm

Linux File accessing via browser

Do following steps

1. cd /var/www/html

2. ln -s desired_directory linkName

3. chmod 755 Desired_Directory 

4. in /etc/httpd/conf/httpd.conf set as "UserDir disable"

How to change the hostname of machine

Follow either of following three steps

1. on shell prompt use command  hostname newname

2. in /etc/hosts mark entry against 127.0.0.0 newname

3. in /etc/sysconfig/network against HOSTNAME=newname 

the last one is permanent solution.