Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
super noob
#3

Quote:how do i change the name of my computer so that it doesn't read localhost in the command line?thanks,

rich
 

login as root

 



Code:
su -




 

edit the hosts file

 



Code:
vi /etc/hosts




 

do not change the line listed as 127.0.0.1 localhost.localdomain localhost

 

but add a line which is as follows:-

 



Code:
192.168.0.123 myhostname




 

where 192.168.0.123is your ip address

 

save the file

 



Code:
:wq




 

that should do it

i hope !

Reply


Messages In This Thread
super noob - by richie - 2005-11-16, 11:27 PM
super noob - by gus - 2005-11-17, 03:22 AM
super noob - by anyweb - 2005-11-17, 10:07 PM
super noob - by znx - 2005-11-17, 11:29 PM
super noob - by richie - 2005-11-19, 04:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)