Skip to main content

Changing host name

Changing your host name - Redhat Ent 4 & 5

Logged in as root

%cd /etc/sysconfig
%vi network

HOSTNAME=loki

When you are done, save your changes and exit vi. Next we will edit the /etc/hosts file and set the new hostname.

%vi /etc/hosts

Edit/Add the line for your host's IP with new hostname

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

192.168.1.70 loki

Save and exit.

You nee to change two files /etc/hosts and /etc/sysconfig/network to make hostname permanent.

now restart network service.

%service network restart

logout and log back in.

Comments

Popular posts from this blog

Testing Network Faults Connection

Testing Network Faults Connection Keywords: network | ping | trace | telnet | connection | setup | hardware Summary: Help with testing connection or network problems. 1. Introduction 2. Testing Your Network 3. Using the command line 4. Ping - "Can my data reach the destination?" 5. Traceroute - "How does my data reach its destination?" 6. DNS Lookup - "Is my data going to the right address? " 7. Netstat - "What's my computer connecting to? " 8. Telnet - "Can I connect to it?" 9. Netshell - "One-stop network check" 1. Introduction There are many possible causes of connection problems. This guide will show how you can investigate problems using some simple tools that come with most versions of Windows. To use all of the tools though, you will need Windows XP. 2. Testing your network The tools in ...

Resizing a .dmg image - os x

1. Mount the image 2. Delete the files you don't need. 3. Dismount image. 4. From the terminal : hdiutil resize -size xx{m or g} /PATH/TO/DISKIMAGE.dmg xx= the size you want the image to be. Use either M for MG or G for GB i.e. hdiutil resize -size 25g ~/Desktop/mystuff.dmg

NetSurveyor :: 802.11 (WiFi) Network Discovery / Scanner Tool

NetSurveyor :: 802.11 (WiFi) Network Discovery / Scanner Tool http://www.performancewifi.net/performance-wifi/main/NetSurveyor.htm NetSurveyor is an 802.11 (WiFi) network discovery tool and, as such, its goal in life is to gather information about nearby wireless access points in real time and display it in a useful way. Similar in purpose to NetStumbler , it includes many more features. The data is displayed using a variety of different diagnostic views and charts. Data can be recorded for extended periods and played-back at a later date/time. Also, reports can be generated in Adobe PDF format. Applications for NetSurveyor include the following: During the installation of a wireless network, as an aid in verifying the network is properly configured and antennas are positioned at locations to achieve efficient transmission / reception -- that is, for use in verifying WiFi coverage and maximizing beacon signal strength Trouble-shooting an existing network or wireless environm...