»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-11-2004, 10:48 PM   #1 (permalink)
Registered User
 
Tazzin's Avatar
 
Join Date: May 2003
Location: CA
Posts: 172
Tazzin is on a distinguished road
How to change Hostname in MDK 9.2?

Linux Newbie here.. I have installed MDK 9.2 on my server machine.. and I would like to change the name of the server.. (ie. localhost) to a different name. Can anyone tell me how to change it? Should I change it? I have Samba installed and am getting it closer and closer to working right.. I can access my WinXP machine from my Linux box.. but I can't seem to access my Linux box from WinXP. How do I allow my WinXP machine to access all the files on my Linux one?

Any help would be great!

Taz

Tazzin is offline   Reply With Quote
Old 04-12-2004, 07:50 AM   #2 (permalink)
Registered User
 
Praetorian's Avatar
 
Join Date: Oct 2001
Location: Yuma, AZ
Posts: 2,484
Praetorian is on a distinguished road
Send a message via ICQ to Praetorian Send a message via AIM to Praetorian Send a message via Yahoo to Praetorian
To change your hostname just type hostname {newHostname} (without the braces of course) . If Mandrake isn't different from everything else now, you'll have to edit /etc/hostname and also make the change so it'll keep on restart.

Are you running nmbd (NetBIOS daemon) on your Linux box? Do a ps aux | grep nmbd in a terminal. If not, you'll need to start it like this. /path/to/nmbd -D. That'll enable NetBIOS broadcasting on your Linux box so other machines can see what resources are shared from it. Of course you already know you edit smb.conf to modify your shared resources.

Hope This Helps.

-Prae
Praetorian is offline   Reply With Quote
Old 04-12-2004, 09:01 AM   #3 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
You mean you want to change the NetBIOS name?
Look for this line in /etc/samba/smb.conf:
Code:
  netbios name = nexus
and change it to suit your system, you may want to change the workgroup as well.
This line should be near the top of the file.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 04-12-2004, 12:04 PM   #4 (permalink)
Registered User
 
Join Date: Aug 2002
Posts: 63
soulware is on a distinguished road
localhost != hostname... localhost is the name of your loopback interface
add the name to /etc/hostname (/etc/HOSTNAME on some distros)
soulware is offline   Reply With Quote
Old 04-12-2004, 12:10 PM   #5 (permalink)
Registered User
 
krohnjw's Avatar
 
Join Date: Oct 2001
Location: ~/
Posts: 2,567
krohnjw is on a distinguished road
Send a message via AIM to krohnjw
localhost only hits the loopback because it is defined as so in /etc/hosts by default.
localhost is also the default hostname unless the distro changes that.

For mandrake define your hostname in /etc/sysconfig/network, you will see HOSTNAME=, change that Variable.
krohnjw is offline   Reply With Quote
Old 04-14-2004, 03:38 PM   #6 (permalink)
Registered User
 
Tazzin's Avatar
 
Join Date: May 2003
Location: CA
Posts: 172
Tazzin is on a distinguished road
Thanks everyone! I finally got the hostnamed changed. It was in the Network settings control panel in MDK 9.2. Now that I got that setup... I got SAMBA setup from reading some of the other posts. Everything is working good now.

TechImo Rocks!!

Thanks again everyone!
Tazzin is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:03 PM.