super noob - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: Network Problems (https://www.linux-noob.com/forums/forum-58.html) +--- Thread: super noob (/thread-2331.html) |
super noob - richie - 2005-11-16 how do i change the name of my computer so that it doesn't read localhost in the command line? thanks, rich super noob - gus - 2005-11-17 what distro? super noob - anyweb - 2005-11-17 Quote:how do i change the name of my computer so that it doesn't read localhost in the command line?thanks, 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 ! super noob - znx - 2005-11-17 Ok first up.. where I use "vi", replace that with the editor that you are comfortable with for instance "gedit" is quite easy to use. Also all of this should be done as "root"... Become root: Code: su - For a temporary change (until next reboot) Code: # hostname my.site.com For perm changes: ALL the SYSTEMS! (use your IP.. it might not be what I put here) Code: # vi /etc/hosts Gentoo Code: # vi /etc/conf.d/hostname Redhat (I assume Fedora therefore) Code: # vi /etc/sysconfig/network Slackware Code: vi /etc/HOSTNAME I wish they were all just one line :) super noob - richie - 2005-11-19 WOWWW! thanks. i got that done. i'm using ubuntu and i can connect to some websites but other, yahoo, google, etc always get hung up. i think it's a firewall thing but i don't know the name of my firewall, ubuntu asked if i wanted it enabled and i said yes, or how to gain access to it. any ideas. thanks, rich |