LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-12-2003, 05:05 PM   #1
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Rep: Reputation: 15
Question networking question


I have a couple of questions. First I am using Mandrake 9.2 PowerPack, how do I change the name of the computer, it says it is currently 'localhost' as the konsole says 'root@localhost'. Second question, I am using Samba 2.2.8a and I can use LinNeighborhood and see other computers on the network but I cannot see anything they are sharing. Also, they cannot see my computer. Also, I go to K>Configuration>Networking>Samba Configuration and I get an error: "An error occurred while loading localhost:901 Could not connect to host localhost (port 901)".

If anyone can help with either or both of these, it would be greatly appreciated.
 
Old 12-12-2003, 06:05 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
I use Redhat, but Mandrake is similar.
You can change the hostname by editing
/etc/sysconfig/network
there is a line HOSTNAME=localhost.localdomain that is the spot.
YOU MUST ALSO update /etc/hosts and put that name in.
as root run hostname name.domain

For example
/etc/sysconfig/network
HOSTNAME=MINE.HOME
/etc/hosts
127.0.0.1 localhost localhost.localdomain mine mine.home

When your computer boots it reads the /etc/sysconfig/network file and setst the host name. Rather the reboot we can just manually set it by running hostname.

hostname mine.home
Close the current terminal and open a new one. Notice the prompt change.

For swat to work edit /etc/xinet.d/swat and change the line disable=yes to diable=no. Then run
/etc/init.d/xinetd restart
Not it there is no swat file you probably nees to install it. Check your Mandrake CD for
swat*.rpm or samba-swat*.rpm and insall
 
Old 12-12-2003, 09:20 PM   #3
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Thank you so much. In my /etc/sysconfig/network file, the only thing in there was NETWORKING=yes, there was no line HOSTNAME= but I added it, and edited the /etc/hosts file as you said and it worked perfectly. As for the Samba, that worked great too, I successfully shared a folder to a Windows machine.
 
Old 12-13-2003, 09:07 PM   #4
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Actually, the Samba server works great, my Windows XP PC can see and access my Linux shares, however, my Samba client, or something else, does not seem to be configured properly as I can see my Windows XP PC, using LinNeighborhood, but none of the shared folders. Can anyone tell me why, and what I need to do to fix the problem?
 
Old 12-14-2003, 09:37 AM   #5
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Have you created only shares on the XP machine?

Try connecting to the XP machine using the administrator account. Windows creates a couple of shares by default for the admin user.

Right click on the machine in Linneighborhood and choose scan as user.
 
Old 12-14-2003, 11:30 AM   #6
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Oh, thanks, I did not realize I needed to perform a scan, I guess I am just used to Windows which automatically does it for me :-).
 
  


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
networking,question... JT13 Linux - Networking 4 06-27-2005 07:15 AM
Networking question Rekna Linux - Networking 1 06-16-2004 10:59 PM
Networking Question MrJBot Linux - Newbie 1 10-19-2003 07:57 PM
Networking Question glitch Linux - Newbie 2 08-03-2002 11:19 AM
Networking Question... mikez Linux - Networking 6 01-11-2002 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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