Cisco Prime Central for Hosted Collaboration Solution 9.1.1 Installation Guide
Appendix A: Linux Installation—Tips and Tricks
Downloads: This chapterpdf (PDF - 181.0KB) The complete bookPDF (PDF - 2.43MB) | Feedback

Linux Installation—Tips and Tricks

Table Of Contents

Linux Installation—Tips and Tricks

Setting up the Correct Date on New Linux Machine

Turning Firewall off Permanently

Changing Operating System User Password

Changing Hostname Permanently on Redhat-Based System

Setting Up A Static IP Address Using The Command Line

Configuring DNS


Linux Installation—Tips and Tricks


This appendix explains some tips and tricks that you can use while installing Linux. This is specifically meant for Prime Central for HCS.

Setting up the Correct Date on New Linux Machine

If you are trying to install on to a new Linux box, follow the tips mentioned below:


Step 1 If the Network Time Protocol is not available on the kernel, set the time manually. Run the following command:

date


Note If date is not set, you will encounter a certificate error while trying to register.


Step 2 Register with Redhat

rhn_register

Step 3 Install NTP using the yum method.

yum install ntp


Turning Firewall off Permanently


Step 1 Log in a root user.

Step 2 Run the following commands:

chkconfig iptables off

chkconfig ntpd on

service iptables save


Changing Operating System User Password

You can change the password of your operating system login by entering the command passwd. You will be prompted for the old and the new passwords when you run this command. Ensure that you provide a strong password. Upon successful completion, the command will complete with an exit code of 0. An exit code of 1 indicates an error.

Changing Hostname Permanently on Redhat-Based System

When the system boots up, RedHat-based systems use the file /etc/sysconfig/network to read the saved hostname. This is set using the init script `/etc/rc.d/rc.sysinit'.

To change the hostname, edit the this file: "/etc/sysconfig/network" and enter the appropriate name using the HOSTNAME variable.


Note The hostname must not be changed you complete the installation of Prime Central for HCS. If you attempt to change the hostname, you run the risk of having to perform a reinstallation.


Setting Up A Static IP Address Using The Command Line


Step 1 Log in as root user.

Step 2 Change directory to /etc/sysconfig/networking/devices.

cd /etc/sysconfig/networking/devices

Step 3 List all available devices. Run the following command:

ls

Step 4 Find the configuration file corresponding to the NIC for which you want to set a static IP and edit it.

vi ifcfg-eth0

Step 5 Now set the parameters according to your settings (parameters to edit are: BOOTPROTO, PEERDNS, NETMASK, IPADDR, GATEWAY).

exDEVICE=eth0 BOOTPROTO=none HWADDR=00:0C:29:DE:94:8B ONBOOT=yes TYPE=Ethernet?USERCTL=no IPV6INIT=no PEERDNS=yes NETMASK=1.1.1.1 IPADDR=2.2.2.2 GATEWAY=3.3.3.3

Step 6 Save the configuration file and exit the text editor.


Configuring DNS

To set the nameservers, follow the procedure below:


Step 1 Log in as root user; use the command su.

Step 2 Change directory to /etc..

cd /etc

Step 3 Edit the resolv.conf file.

vi resolv.conf

The file format should be like this:

search your-dns-search-path

nameserver dns1-ip-address

nameserver dns2-ip-address

nameserver dns3-ip-address

You can define a maximum of three nameservers at a time.

Step 4 Save the configuration file and exit the text editor.

Step 5 For the changes to take effect, you need to bring the network interface down and then back up.

ifdown eth0

ifup eth0