Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-05-2005, 11:27 PM   #1
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.

billy@debdesk:~$ ssh
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
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, 11:29 PM   #2
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, 11:34 PM   #3
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

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


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-06-2005, 12:02 AM   #4
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
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


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 09:35 PM
Change computer name? amer_58 Linux - Newbie 2 04-02-2005 09:10 AM
how to change the computer name? leduytien Linux - Software 7 02-01-2005 09:03 AM
change computer imagineaxion Mandriva 6 11-17-2004 08:33 AM
How to change computer name? tied2 *BSD 3 09-14-2003 05:43 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:15 PM.

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