LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2003, 12:16 AM   #1
natesch
Member
 
Registered: May 2002
Posts: 36

Rep: Reputation: 15
Getting XP to see linux box?


What is the 1st step to making this happen. I am using SAMBA with SWAT. Ethernet is configured correctly on both I assume as they are both sharing my cable modem. On my XP box when I choose networking and then view workgroup it only shows itsef and not the linux box~also it does that REALLY slowly. Please lemme know what I need to do if ya have some ideas. Thanx

Nate
 
Old 06-03-2003, 12:26 AM   #2
kimi
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
i think the problem of being too slow is trivial as i too have experienced the modem problems in XP
however although both windos and linux may share the same cable modem u should check the ethernet configuration..it may be faulty or it may be still default.
bi
kimi
 
Old 06-03-2003, 12:50 AM   #3
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
should XP be able to see the linux box in networking without samba running. How do I configure windows to at least see it?
 
Old 06-03-2003, 03:45 AM   #4
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
If you are talking about Network Neighborhood, then no Network Neighborhood uses Netbios protocol to communicate. Linux without Samba doesn't speak Netbios.

Samba has a second daemon (nmbd) that makes a linux box speak netbios. This has to be setup correctly in order to communicate this way.

If you want to ensure that the 2 boxes can see each other on the network, then use a command line utility like ping. This uses ICMP which both boxes speak fluently.
 
Old 06-03-2003, 05:22 AM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
First open up console and type su. Then type smbd and nmbd. smbd is a SAMBA daemon and nmbd is a naming service daemon for SAMBA and its programs. You should be able to see both computers. If the Windows system isn't sharing anything or sharing protocol isn't installed. The Windows system will not show up in the list. If you haven't changed the smb.conf file, SAMBA will not show up in the list. I suggest you remove SWAT. SWAT can screw up the smb.conf file. Use a text editor program like vi, emacs, pico, etc and edit the file by hand. Its not that hard to add or make changes to that file. The smb.conf documenation on SAMBA site explains very throughly. In the smb.conf file you may need to change security=user to security=share for testing. Then you can change it back. You also need to add users to SAMBA for Windows users to access your linux system that are shared. If you have a router and wan blocked is enabled, you can have security=share all the time and you don't need to add any users to SAMBA.

kimi, use a router. If that doesn't work, replace the cables. Sometimes wires may been stretch so much they lose their propertise. This can slow down the network to a crawl. Also if you have apple computers on your network. Disconnect them and see if your network is better. Apple computers uses a different way of sensing traffic on the network than x86 systems. Use tcpdump and traceroute on your linux system and see what the results come up.
 
Old 06-03-2003, 05:24 PM   #6
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
Thank you soo soooo much for your help. I think I am begining to understand it now. I uninstalled SWAT and I did a ping to see if it could see the other IP and all worked. You said something about windows not showing up in the "list"? What list is that? Is there a command in bash to see other computers on a wrokgroup? Also how do I run traceroute? Thanx again all!

Nate
 
Old 06-03-2003, 05:49 PM   #7
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
One other small question. I do not really know many of the konsole commands very well. For instance how do I shut down smbd and nmbd? And how do I log in as root if it is set to automaticaly log me in as a user (It won't let me save my samba.conf file). Is there a website or a good book I can get to learn this stuff? Thanx again!

Nate
 
Old 06-03-2003, 05:53 PM   #8
Gray-Fox
LQ Newbie
 
Registered: Jun 2003
Location: Canada
Distribution: Red Hat 9, FreeBSD 4.4 and Windows2k
Posts: 4

Rep: Reputation: 0
You could use the "su" command to swich to root and then save the file.
 
Old 06-03-2003, 05:56 PM   #9
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
just use su root in terminal? It says I do no thave permission to write when I try to save using kwrite.
 
Old 06-03-2003, 06:01 PM   #10
Gray-Fox
LQ Newbie
 
Registered: Jun 2003
Location: Canada
Distribution: Red Hat 9, FreeBSD 4.4 and Windows2k
Posts: 4

Rep: Reputation: 0
type su in the terminal, after that, fire up kwrite by typing kwrite in the terminal, open the file and save it.

typing kwrite in the terminal that you just su'ed in makes kwrite run by root and therefore you should be able to save anywhere.

example:

$su
password:
#kwrite
then just open the file!
 
Old 06-03-2003, 06:05 PM   #11
natesch
Member
 
Registered: May 2002
Posts: 36

Original Poster
Rep: Reputation: 15
Genius man! Thanx
 
Old 06-03-2003, 11:52 PM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Also try learning vi. Its included in many LINUX than other editors. VI is used in older UNIX systems too.

I don't know how to close those daemons. You can run the kill command. For example, kill -9 PID#. For PID# is the PID# of the service being run. There is a way to search for smbd and nmbd, but I forgot it. Then run the command above and don't forget the pid# and -9. Read man pages on kill for more information.

After hitting my head on the desk, I think typing
ps ax | grep smbd
and
ps ax | grep nmbd
may give you the PID#.
 
Old 06-04-2003, 01:00 AM   #13
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
To find about PID#, try, as root:

samba status

To stop smbd and nmbd:

samba stop

To start them again:

samba start

This works on my system.
 
Old 06-04-2003, 01:17 AM   #14
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Quote:
Originally posted by Electro
After hitting my head on the desk, I think typing
ps ax | grep smbd
and
ps ax | grep nmbd
may give you the PID#.
You may want to hit it again, you forgot the '-' in there (i.e. ps -ax | gr...).

Or do I need to hit my head on something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Troubleshooting Slow Transfer Speed Between Linux Box and Windows Box timswim78 Linux - General 1 10-23-2005 11:45 AM
Linux box with eth0 to cable modem and eth1 to Windows box videojeff Linux - Networking 23 03-03-2005 07:58 PM
Password Message Box when accessing linux box from Window Machine mikeccs Linux - Networking 1 08-04-2004 05:47 AM
Transfairing files from windows xp box to mandrake linux 10.0 box. tyledogg Linux - Newbie 4 07-25-2004 11:24 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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