LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-15-2004, 03:48 AM   #1
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
How to connect a Linux and a Windows system?


My apologies if a thread answering this already exists, but when I tried the search function a couple of minutes ago it wouldn't respond.

I guess I need a walkthrough for the terminally stupid on how to connect a Linux system to a Windows system in order to share directories and printers. Books, man pages, internet sites and whatnot explain in detail how to connect one or the other to an existing network, but I need something taking things from three more steps back or so. I have no existing network in the first place.

What I've got: There's a Linux computer running SuSE 9.1, and it is connected to the internet. There's a second computer with Win98 SE, connected to the Linux one by Ethernet cable (with adapter so no router is required). I have no idea how to set up the Windows network environment or the Linux network environment so the two sides can exchange files, use each other's printers etc. My questions are of the kind like 'do I need to activate WINS, what do I enter in the fields if I do, what is a gateway and what address do I use for it, etc.'.

I have installed Samba on the Linux machine and given it the DNS address 192.168.1.1; the address of the Win machine is 192.168.1.2. Both machines can ping each other perfectly. But that is where it ends. The Windows machine currently doesn't even turn up in its own network neighbourhood, probably because there's some value wrong or missing.

Apart from the working ping I'm pretty sure that the hardware side of things is ok because I booted the Windows machine with Knoppix once and managed to telnet between the computers.

There is no firewall on the Windows machine, and the in-built SuSE firewall is active on the Linux machine; from boot messages I've gathered that I need to open port 139 for Samba to work, which I've done.

I'm grateful for any help.

Robin
 
Old 10-15-2004, 03:57 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
I need to open port 139 for Samba to work, which I've done.
Good but you also need to install and run samba on the linux machine.
Just install it from your SuSe CD and make it start at boot time.
 
Old 10-15-2004, 04:32 AM   #3
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416

Original Poster
Blog Entries: 14

Rep: Reputation: 35
I have installed and configured Samba using Yast2 already. I suppose it is running, too. However, trying http://localhost:901 to connect to swat doesn't work (connection refused), so something might still be amiss.

Robin
 
Old 10-15-2004, 09:47 AM   #4
Tero
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian
Posts: 13

Rep: Reputation: 0
If you have sshd installed in your linux box (and it is running), then you can access from Windows to linux file system with WinSCP.

Personally, I don't use smb shares anymore in my linux boxes, instead I have sshd daemon running. I can access to my linux boxes from Windows with ssh and WinSCP, and from linux to linux I can use just scp from the console, or just writing scp://hostname/ to konqueror (KDE)
 
Old 10-17-2004, 04:43 AM   #5
asusradeon
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
i have a similar problem,
I am using SuSE Live Eval
but i cant find out how to get my wireless network working, (the other computer on the wireless network is running windows xp.
i am using an ASUS wireless lan pci adapter, and also i cant access any of my cd drives/ floppy drive can anyone help ?
 
Old 10-17-2004, 06:27 AM   #6
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416

Original Poster
Blog Entries: 14

Rep: Reputation: 35
My problem is much more basic than using ssh or telnet or whatever. I need to know what I have to enter in the various setup fields for the network neighbourhood in Windows, and matching settings with Yast 2. I suppose there's an error or several in what I did so far, so nothing works. I'm relatively sure that the problem is on the Windows side as, as I said, I could use the settings in Linux when I booted the other computer with Knoppix. Of course that doesn't mean that Samba is configured properly, so that could be part of the problem, too.

Robin
 
Old 10-17-2004, 10:00 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Since you can ping from each PC the network is configured correctly.

Windows sharing.
http://www.microsoft.com/windows98/u...areprinter.asp
http://www.wellesley.edu/Computing/F...s/win98me.html

Swat is a webserver tool for the configuring the samba smb.conf file and runs independently. It is a nice tool but you can edit the smb.conf with any text editor. The default location is /etc/samba/smb.conf. You need to change the default workgroup name to match the workgroup name in windows. The default windows workgroup name is workgroup. Then add a smb user using the same name as your Windows 98 user via the smbpasswd command.


To see if samba is running look at you processes via top or ps ax commands. smbd and nmbd are the samba deamons.

There is lots of samba documentation on the web.
www.samba.org
 
Old 10-17-2004, 10:23 AM   #8
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
Samba itself comes with a lot of fairly useful documentation (on my Debian system it's in the samba-doc package).
DIAGNOSIS(.txt.gz) is particularly good, and there's lots of other good stuff, including some help for the windows side of things
If connection is refused at port 901 you probably aren't running SWAT, but as michaelk says, you don't need to. Even a relative newbie like myself finds it simpler to just configure smb.conf by hand (back it up first!); it's fairly well commented.
I have the Linux box be a wins server, and on windows I tell it the Linux box's IP address.
 
  


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
Connecting remotely to a linux system from a windows system Die Woud Linux - Networking 3 04-23-2005 02:38 PM
How to connect my Linux and Windows? HELP prodriguez Linux - Hardware 1 02-23-2005 02:38 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Connect my RH 9.0 Linux system to a work MS Network MSwal2846 Linux - Networking 1 03-14-2004 03:19 PM
Windows can't connect to Linux jcm900 Linux - Networking 12 10-21-2003 12:58 PM

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

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