LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2010, 04:01 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Hostname changed by some one.


I have some problem some one changed hostname on my system.
If I do following I see
Code:
knoppix:~# cat /etc/hostname 
debian
knoppix which is coming in left side in above output is not my hostname.
The hostname is debian.

How do I get that name back so that when I do
cat /etc/hostname output is like following.
Code:
debian:~# cat /etc/hostname 
debian
 
Old 04-12-2010, 06:09 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
what does cat /etc/hosts give?
 
Old 04-12-2010, 06:45 AM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Code:
# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian
 
Old 04-12-2010, 07:11 AM   #4
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Maybe his prompt has changed;

Check
Code:
/etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bashrc
for anything showing "PS1=...something here"


This might explain why its randomly changed;
 
Old 04-13-2010, 12:45 PM   #5
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Well to my surprise I do not have any logical reason I rebooted the system out of frustration and the problem is no more.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed hostname during install, now CUPS has wrong hostname on web interface slinx Linux - Software 1 08-07-2009 08:01 PM
hostname changed esgaroth Fedora 12 08-23-2007 12:18 AM
hostname not being changed irfanhab Linux - Networking 3 07-31-2006 03:53 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM
hostname changed. was i hacked???????? Sridhar Guntur Linux - Networking 7 07-23-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:13 PM.

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