 |
 |
How do I change hostname/motd
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Location: Australia
Status:
Offline
|
|
Well call me a newbie or total idiot if you want but how do you change the hostname and motd with mandrake.
I tryed modding the /etc/motd file dident work.
not sure what to try for hostname, should I just type hostname and the name in konsole or will it just come back on retstart?
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2000
Location: The dark side of the moon
Status:
Offline
|
|
use "man motd" and "man hostname" to get the details.
On my debian system, editing "/etc/motd" and "/etc/hostname" works just perfectly.
Remember that the motd-file is only read at *login*. Not every single time you open up a terminal window (xterm or whatever you prefer) as they do in Mac OS X....
//
Btw, what's up with the nick?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Location: Australia
Status:
Offline
|
|
Originally posted by warpmoon:
<STRONG>use "man motd" and "man hostname" to get the details.
On my debian system, editing "/etc/motd" and "/etc/hostname" works just perfectly.
Remember that the motd-file is only read at *login*. Not every single time you open up a terminal window (xterm or whatever you prefer) as they do in Mac OS X....
//
Btw, what's up with the nick?</STRONG>
I edited /etc/motd no effect, there was no file /etc/hostname that was the first thing I tryed.
And when I was registering I was doing sometign wrong and in the end I just ended up banging on the key board as a name.
But now I kind of like my name, took me a while to memorize it but 
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Apr 2002
Location: England
Status:
Offline
|
|
Mandrake is significantly unlike debian, at least from my experience. But, I think it comes with a tool called linuxconf, or something similar, that will let you make changes to the system...
|
|
Secret
4 Macs, 6 Amigas, 3 SparcStations, an Atari ST, an Acorn, and N+1 PCs.
I'm such a geek.
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status:
Offline
|
|
Originally posted by IUJHJSDHE:
<STRONG>
I edited /etc/motd no effect, there was no file /etc/hostname that was the first thing I tryed.
And when I was registering I was doing sometign wrong and in the end I just ended up banging on the key board as a name.
But now I kind of like my name, took me a while to memorize it but  </STRONG>
To change it edit the /etc/sysconfig/network file. There is a line in that file
HOSTNAME="whatever"
change it to whatever you like. For it to take effect you need to restart networking and/or reboot. You should also edit your /etc/hosts file and add the same hostname to the line that looks like:
127.0.0.1 localhost.localdomain localhost whatever
For a motd: put some clever thing in your /etc/motd file then edit your
$HOME/.bashrc file and add the line:
cat /etc/motd
at the end of the file. If you want to make it universal... most default $HOME/.bashrc files call /etc/bashrc (if it exists)... so you can add the line:
cat /etc/motd
to the global /etc/bashrc file.
|
|
-DU-...etc...
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Location: Australia
Status:
Offline
|
|
Originally posted by Secret Vampire:
<STRONG>Mandrake is significantly unlike debian, at least from my experience. But, I think it comes with a tool called linuxconf, or something similar, that will let you make changes to the system...</STRONG>
yep, found linuxconf.
That fixed my problem, Thank you
<font color = red> <EDIT>: Ahh but it now has errors on start up because that hostname is not the systems real hostname.
Is there any way to fix this? </font>
[ 05-16-2002: Message edited by: IUJHJSDHE ]
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Apr 2002
Location: England
Status:
Offline
|
|
Originally posted by IUJHJSDHE:
<STRONG>
yep, found linuxconf.
That fixed my problem, Thank you
<font color = red> <EDIT>: Ahh but it now has errors on start up because that hostname is not the systems real hostname.
Is there any way to fix this? </font>
[ 05-16-2002: Message edited by: IUJHJSDHE ]</STRONG>
To answer that I'd need to see the errors... 
|
|
Secret
4 Macs, 6 Amigas, 3 SparcStations, an Atari ST, an Acorn, and N+1 PCs.
I'm such a geek.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|