[wellylug] hostname
Jonathan Harker
jharker at massey.ac.nz
Tue Feb 25 00:58:47 NZDT 2003
Hi Rose,
1. When you reboot, I assume you are getting your pretty login screen. Press
CTRL+ALT+F1. This will (hopefully) get you out of X (the fancy graphical
windowsey bit of Linux) and into a text based terminal. Don't worry, your X
is still there - ALT+F1 through ALT+F6 give you six independent text
terminals, and ALT+F7 will get you back to X. You need the CTRL as well to
get out of X and into the text terminals though.
2. Log in as root.
3. Type at the command line:
hostname rose
This will change the hostname of your Linux box to rose (or whatever you
like). You MUST do this first before editing /etc/hosts.
4. Edit /etc/hosts to reflect the new hostname. I'm going to step you through
emacs, which you'll find much easier to use than vi (okay everyone - let's
leave the emacs vs. vi jihad for another day!-) Type this:
emacs /etc/hosts
Change the file, as if you are using notepad in windows, to have a single line
reading as follows:
127.0.0.1 localhost rose
to save in emacs, type CTRL+X, then CTRL+S.
to quit emacs once you're done, type CTRL+X, CTRL+C (c for quit, obviously!)
5. Reboot. Type:
init 6
Let me/us know how you get on.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/0XFolB/TM
---------------------------------------------------------------------~->
.-. Wellington
/V\ Linux
// \\ Users
/( )\ Group
^^-^^
http://wlug.paradise.net.nz/
To unsubscribe from this group, send an email to:
wellylug-unsubscribe at egroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the wellylug
mailing list