LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2009, 04:52 PM   #1
HLA91
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Display hostname?


Hi all

I just installed ubuntu 6.06 server on an old laptop of mine. I installed the server because I wanted to learn the shell and I know if I installed normal Ubuntu then I would be tempted by the GUI this way I won’t be.

I called my computer linuxbox but when I login to my router and look at the DHCP Client list where the server is 192.168.2.2 there is no name. I remember when I had Ubuntu with GUI I had to check a box to allow it to display the name but I do not know how to do it on terminal. Can someone please point me in the right direction?

The main reason is that if my bro looks at the Client list and see one with no name he will think someone is using our network and block it so that would inconvenience me.

Many thanks

HLA91
 
Old 03-10-2009, 05:33 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
The 'hostname' command may be useful to you.
It's the command to change hostnames and stuff.
 
Old 03-11-2009, 02:12 PM   #3
HLA91
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply. I looked up the command hostname but I couldn't find any arguments or anything that would make the hostname visible to the network. Have I overlooked something?


Many thanks

HLA91
 
Old 03-11-2009, 02:29 PM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Take a look at the man page for "dhclient.conf".

Code:
send host-name "linuxbox";
 
Old 03-11-2009, 02:50 PM   #5
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
Try editing /etc/hosts
 
Old 03-11-2009, 03:31 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I think norobro has what you are looking for, you want the client to send your hostname to the dhcp server.

If his suggestion does not work for you.. Check the bottom of my blog post on the Linux hostname.. the Dynamic DNS section may help you. Since you are running Ubuntu, try the Debian suggestion (Ubuntu is based on Debian)
http://www.linuxquestions.org/blog/f...hostname-1648/
 
  


Reply



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
Hostname issue - showing "localhost" instead of actual hostname. ryes31 Linux - Server 9 12-12-2012 08:19 PM
hostname -f error hostname :unknownhost prnkho Linux - Newbie 1 11-26-2008 09:12 AM
Change the Unix prompt to display hostname and home directory kennynoah AIX 3 07-17-2008 06:20 AM
Change background color of hostname display componat of XDM tmillard Linux - Software 0 06-26-2004 04:32 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 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
Open Source Consulting | Domain Registration