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 01-20-2006, 10:00 AM   #16
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15

okay here is what my files look like:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mudd.mydomain.com

/etc/hosts
# generated by drakhosts
127.0.0.1 localhost.localdomain localhost

I went into control panel and changed Alais to House and guess what happened,
my machine named changed to mud
but my internet wouldn't work at all lolz. wtf did i do!
jschiwal, i tried your method,
i typed in hostname House
then i typed in hostname
it displayed:
House
i restarted X
didn't save any changes and still displayed my machine name as:
coffee@x1-6-00-50-8d-d1-c1-97

at least i'm learning command line stuff!
 
Old 01-20-2006, 10:27 AM   #17
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
What's your /etc/hosts file look like now?

You have to restart networking and dm and X , might be easier for you to just restart.
 
Old 01-20-2006, 10:38 AM   #18
Chig
LQ Newbie
 
Registered: Jan 2006
Location: London
Distribution: Debian 3.1
Posts: 2

Rep: Reputation: 0
I had the same problem, wanted to change my hostname, I entered base-config on the command line as su, that brought up the base config and I was able to change the hostname from the list of options and exit, all done, not sure if this is the correct way of doing it but it worked for me.

Edit - I should have mentioned I'm using Debian

Last edited by Chig; 01-22-2006 at 02:38 PM.
 
Old 01-20-2006, 02:52 PM   #19
mr_coffee
Member
 
Registered: Jan 2006
Location: PA
Distribution: Mandriva Power Pack 2006
Posts: 146

Original Poster
Rep: Reputation: 15
homey this is what my /etc/hosts looks like:
# generated by drakhosts
127.0.0.1 localhost.localdomain localhost

Chig, when u say u entered base-config, I tried base-config and i'm getting:
[coffee@x1-6-00-50-8d-d1-c1-97 ~]$ file base-config
base-config: cannot open `base-config' (No such file or directory)
 
Old 01-20-2006, 04:12 PM   #20
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Ok, I have one more thing to add to the list. I did this on a PCLinux box and it's working for me.

I edited the /etc/sysconfig/network to look like this...
Code:
NETWORKING=yes
HOSTNAME=sony.mydomain.com
I edited the /etc/sysconfig/network-scripts/ifcfg-eth0 to add
NEEDHOSTNAME=no
DHCP_HOSTNAME=sony.mydomain.com
This is what mine looks like, yours may be slightly different.
Code:
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
NETMASK=255.255.255.0
IPADDR=192.168.1.2
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
DHCP_HOSTNAME=sony.mydomain.com
PEERDNS=yes
PEERYP=no
PEERNTPD=no
I ran the command: hostname sony

I added sony to the /etc/hosts file.
Code:
127.0.0.1		localhost
192.168.0.5	sony.mydomain.com	sony
Note: You may want to use 127.0.0.1 instead of the address I use which is 192.168.0.5 .

This is what I get after restarting.
[root@sony ~]#
 
  


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
old machines joe6pack Linux - General 2 03-18-2005 07:56 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.2 After Upgrade metoome General 0 03-27-2004 12:19 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.3 After Upgrade SForsgren Linux - General 4 03-26-2004 11:43 PM
can't see other machines but they can see each other Silly22 Linux - Networking 1 11-20-2002 03:28 AM
Can't see other machines AtomicToad Linux - Networking 7 11-19-2002 08:00 PM

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

All times are GMT -5. The time now is 10:00 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