LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-07-2005, 06:16 AM   #1
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Rep: Reputation: 18
Changing Computer Name in Samba / Linux


Okay, so I got Samba sort of working *Woot woot* but coz its called localhost by default, when you try to connect it goes to the local computers shares. I tried 'hostname linuxbox' but after a restart it reverts back to localhost again! Rahhh!!!!!

So I have searched the Internet for solutions, but none have worked, like chaging etc/host or /etc/sysconfig/network, or maybe I'm just doing it wrong...

I would like it set as linuxbox, workgroup is workgroup dunno bout domain, but I've heard that doesn't matter.

Thanks for replying.
 
Old 08-07-2005, 06:20 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Edit these files:

/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifg-ethX <-where X is the number of your ethernet adapter

Run these commands after the file edits:

hostname <new-hostname>
/sbin/service network restart

And with Samba, you can edit the samba share names and server string as well, etc.
 
Old 08-07-2005, 06:43 AM   #3
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Original Poster
Rep: Reputation: 18
Okay so I did that, and now it shows up as that the hostname, but it's still localhost in Samba!?!
Is there somewhere else that configures the host name in samba?
 
Old 08-07-2005, 06:43 AM   #4
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Original Poster
Rep: Reputation: 18
BTW: thanks trickykid for the advice
 
  


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
Connectiong a Linux to a Windows XP computer using Samba Dolphin2005 Linux - Newbie 9 10-11-2005 03:42 PM
Changing my computer name Maverick1182 Linux - Newbie 1 08-22-2004 11:38 AM
Changing Computer Name Tank400 Mandriva 6 04-22-2004 09:47 AM
Samba: Change Linux box Computer Name Gman22 Linux - Software 5 08-13-2003 03:19 PM
Changing Computer Name Lorddraco98 Slackware 6 04-24-2002 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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