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

Linux Installation—Tips and Tricks

Table Of Contents

Linux Installation—Tips and Tricks

Setting Up the Correct Date on a New Linux VM

Turning Off the Firewall Permanently

Changing the Operating System User Password

Changing the Hostname Permanently on a Red Hat-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 a New Linux VM

If you are trying to install on to a new Linux VM, 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 Red Hat

rhn_register

Step 3 Install NTP using the yum method.

yum install ntp


Turning Off the Firewall Permanently


Step 1 Log in as a root user.

Step 2 Run the following commands:

chkconfig iptables off

chkconfig ntpd on

service iptables save


Caution For security reasons, we recommend that you not turn the firewall permanently. Note that any time you rerun the install script, the firewall will automatically be re-enabled and the necessary ports reopened..


Changing the Operating System User Password

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

Changing the Hostname Permanently on a Red Hat-Based System

When the system boots up, Red Hat-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 file /etc/sysconfig/network and enter the appropriate name using the HOSTNAME variable.


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


Setting Up a Static IP Address Using the Command Line


Step 1 Log into the staging media VM 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 this procedure:


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