How to mount a Windows SMB share on CentOS Linux

In this tutorial, we will learn how to mount a Windows partition on CentOS by using mount.cifs [info_box] Please ensure that you have configured a Windows share before continuing. [/info_box] The mount.cifs file is provided by the samba3-client package. This can be installed from the standard CentOS yum repository by running the following command: yum ...

Read More...

How to change hostname on CentOS Linux

This quick tutorial will describe how to change the hostname on your CentOS Linux server. Where HOST_NAME occurs, replace it with your desired hostname. 1. Run the hostname command: 2. Open /etc/sysconfig/network, update the HOSTNAME line and save: 3. Open your hosts file, and update the hostname entry and save: Alternatively, you can use this ...

Read More...

Port forwarding using xinetd on CentOS

An easy method to do port forwarding on CentOS is to use xinetd. This service is usually installed on CentOS by default. In order to port forward with xinetd, you will need to create a configuration file: vim /etc/xinetd.d/smtp_forward Some xinetd port forwarding examples: 1. Forward port 2000 on localhost to remote server on ...

Read More...

Install SNMP Service/Daemon on CentOS

In this guide I'll be explaining how to install the SNMP service on CentOS. The SNMP service is available in the standard CentOS repository. 1. Install net-snmp with yum: yum install net-snmp  2. Create a simple SNMP configuration: mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org vim /etc/snmp/snmpd.conf Add the following to /etc/snmp/snmpd.conf ; Replace 1.2.3.4 with the IP address of the ...

Read More...