On CentOS, when we want to install software we generally use yum. Before installing, the first step is to look up the package.
For example, to install samba (Windows network neighborhood):
Query: rpm -qa | grep -i samba
Look up the related packages with yum search samba. Once found, install with yum install samba. After installation,
to modify the config file you need to find the file path. Run rpm -qc samba samba-common
Next you need to start the software. First look up how it starts with rpm -ql samba | grep ‘/etc’
The part in the red line is the startup path. Next comes the actual startup operation.
To add it to the boot startup, run vi /etc/profile and press the arrow key to go to the bottom.
Then press i to insert /etc/init.d/smb start and /etc/init.d/nmb start, then save and exit.
Run source /etc/profile to make the change take effect. Reboot and the software will start on boot.

