Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > How do I change hostname/motd

How do I change hostname/motd
Thread Tools
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Reply With Quote
May 15, 2002, 12:36 AM
 
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
Reply With Quote
May 15, 2002, 08:43 PM
 
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
Reply With Quote
May 15, 2002, 10:49 PM
 
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
Reply With Quote
May 16, 2002, 07:36 AM
 
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
Reply With Quote
May 16, 2002, 10:39 AM
 
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
Reply With Quote
May 16, 2002, 01:23 PM
 
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> &lt;EDIT&gt;: 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
Reply With Quote
May 16, 2002, 04:19 PM
 
Originally posted by IUJHJSDHE:
<STRONG>

yep, found linuxconf.

That fixed my problem, Thank you

<font color = red> &lt;EDIT&gt;: 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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2