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:
Note If date is not set, you will encounter a certificate error while trying to register.
Step 2 Register with Redhat
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.
Step 3 List all available devices. Run the following command:
Step 4 Find the configuration file corresponding to the NIC for which you want to set a static IP and edit it.
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=18.104.22.168 IPADDR=22.214.171.124 GATEWAY=126.96.36.199
Step 6 Save the configuration file and exit the text editor.
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..
Step 3 Edit the resolv.conf file.
The file format should be like this:
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.