LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-05-2005, 10:27 PM   #1
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
Computer name change


This is a really really dumb question and I dont really know how to ask this because i dont know technical names.

I installed Debian on a computer a few weeks back - its Debian Sarge, if that matters - and I was setting it up for my kids because they like the huge selection of games (they are 7 & 8 years old). Well, after installation they decided they would rather have a windows box or some crap - i dont remember.

Well, when I set this computer up I gave it a name 'debkids'. I name all my computers. I got 'debdesk', 'debserv', 'debserv2' etc.

I ended up using this computer as one of my servers. Its been part of network for about 2 or 3 weeks now, but its always had this name 'debkids' and its starting to irritate me every time I see it.

This isn't a crucial thing or anything - i use ip addresses instead of comp names on my network. Its just its getting on my nerves to see it now.

Code:
billy@debdesk:~$ ssh 192.168.1.110
Password:
Linux debkids 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.

Last login: Mon Dec  5 22:28:14 2005 from 192.168.1.101
billy@debkids:~$
See what I mean.. That part.

How in the hell do I change it ? I've never changed a comp name once i've set it during installation.
 
Old 12-05-2005, 10:29 PM   #2
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Original Poster
Rep: Reputation: 31
And why we're at it, what's up with that date & time ? The time on all my machines is correct. I just double checked them all... weird.

Linux debkids 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
 
Old 12-05-2005, 10:34 PM   #3
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 416

Rep: Reputation: 53
Go to the following files and change them to reflect what you would like your machine to be called:

/etc/hostname
/etc/hosts
/etc/mailname
/etc/motd

Those are probably the only files on the system that reflect the hostname of the machine anywhere, as I assume that this machine is probably not running bind or anything like that.
 
Old 12-05-2005, 11:02 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
also, you can temporarily change it using
Code:
hostname <new hostname>
If you just want to change the ones that you see when SSHing into it, you can just edit /etc/hostname, but this might give you mixed hostnames
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change the name of the computer greghua Linux - Software 2 05-24-2005 08:35 PM
Change computer name? amer_58 Linux - Newbie 2 04-02-2005 08:10 AM
how to change the computer name? leduytien Linux - Software 7 02-01-2005 08:03 AM
change computer imagineaxion Mandriva 6 11-17-2004 07:33 AM
How to change computer name? tied2 *BSD 3 09-14-2003 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration