LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-12-2004, 01:09 PM   #1
suresheva31
LQ Newbie
 
Registered: Oct 2004
Posts: 25

Rep: Reputation: 15
hostname problem


hey guys,
I got quick question regaring my linux termianl window

i get the following host name: srahn-lt instead of localhost. Does anyone knows why this doing this or how to change that back localhost.
please some one

[suresh@srahn-lt suresh]$

Suresh
 
Old 10-12-2004, 01:27 PM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 32
err...

Type:

PS1='[\u@localhost \w]$'

Or read the manpage for hostname if you actually need to correct your hostname.
 
Old 10-12-2004, 11:40 PM   #3
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
try this,

#vi /etc/sysconfig/network

HOSTNAME=<type here your hostname>


and reboot ur system !


-jack
 
  


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
Hostname problem c_dave1 Linux - Networking 8 07-11-2005 11:38 PM
Hostname - Problem ??? aurelio26 Linux - Newbie 3 10-04-2004 12:06 AM
hostname problem jnewing Red Hat 1 06-01-2004 06:23 PM
hostname problem bm1 Linux - Networking 11 05-12-2003 02:14 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM


All times are GMT -5. The time now is 05:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration