LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-20-2007, 12:15 PM   #1
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Rep: Reputation: 15
Connecting to a Windows network using Samba


How would I go about networking my computer running Mandriva Free 2006.0 Official? There are two other computers on my network running Windows XP Home Edition. The workgroup name is HOME.

I have absolutely no clue how to do this!

Thank you.
 
Old 01-20-2007, 01:08 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Start with http://wiki.linuxquestions.org/wiki/Samba.

You should check out a package called LinNeighborhood; I'm not a Mandrake/Mandriva user, but I think you install it with 'urpmi LinNeighborhood' (note capitals and American spelling). LinNeighborhood is a clone of the Windows Network Neighborhood utility.

Ozzzy's Mandrake Site has a tutorial on Samba.

Last edited by spurious; 01-20-2007 at 01:32 PM.
 
Old 01-24-2007, 10:43 AM   #3
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
thanks ill try that
 
Old 01-27-2007, 03:20 PM   #4
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
I tried installing that package and it worked but not in the way that I wanted it to. I would like to know how to smbclient a computer named "joe". When I type "smbclient //joe/" it says "Connection to joe failed". Please help me!
 
Old 01-27-2007, 03:51 PM   #5
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
First make sure you have a share point on the Windows host system. Example would be the c:\share folder shared out with share name of share.

If you want to use smbclient to access the share, then you need to include the share name in the command, not just the host name. Example: smbclient //joe/share

Mandriva 2006 comes with smb4k, which is simple point/click way of mounting shares and browsing. Can start smb4k from menu location "internet > file transfer".

Hope this helps.
 
Old 01-27-2007, 04:16 PM   #6
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Also XFce4 comes with Windows shares browsing using Xffm. Also Konqueror can access Windows shares by typing smb://[name]. Nautilus can also access Windows shares using the same way as Konqueror.

The console way:
First use findsmb to find all systems that are sharing files or printers. Next use smbclient -L [name] to list available directories and/or printers on the desire system. Next type smbclient //[name]/[desire_directory]. It will ask you for a password. If it did not set a password on the computers, just hit enter and it will log you in. Use FTP commands to browse, download, and upload files. Type help to get a list of commands.
 
Old 02-23-2007, 12:19 PM   #7
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
I have the shares working but how do you install windows printers
 
Old 02-23-2007, 01:16 PM   #8
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use CUPS. Run CUPS and in your favorite web browser, type http://localhost:631. Then add a printer.
 
Old 02-23-2007, 03:36 PM   #9
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Mandriva 2008 One
Posts: 124

Rep: Reputation: 17
jcbparry - CUPS is where you start. I'm not sure about 2006, but in 2007, CUPS is not installed by default (you may have to install it yourself). In 2007 the CUPS service is not started by default either. You may have to search for it, but to turn it on, go to the >system>configure your computer>system services, or something close to that. You'll probably want to start it on boot, too.
Next, on your windows boxes you want to make sure that the printers are "shared devices". If you haven't done that already, it's under the control panel and/or printers. Click on properties and look for 'share'.
You also want to make sure that any firewall you have going on the windows boxes lets the network printing go through.
Back on the linux box, since you need to provide CUPS with an account name and password, you probably want to set up a very low privlege account on the windows boxes (to only use the printers) with no password. The password, it turns out, is probably sent in the clear and can be scanned. It's bad policy to use the administrator account/password to do that.

Lastly, you probably need to install a driver(s) for the printer(s). For example, hplip is the best driver for most HP printers. You'll have to research that a bit for yours, if you haven't already!
Good luck.
 
Old 03-08-2007, 03:27 PM   #10
Archdragonmage
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
I have the same trouble but my system does not see the network at all

I have used mant versions of mandrake and mandriva and found that the old mandrake connected to windows networks without a problem with little knowhow, but all the Mandriva versions especially 2006 and more so with 2007 that they fail to connect. I have tried all ways and my system running 2007 mandriva does not see the network at all. It uses it for the Internet no problems but they now have nowhere to add in a windows workgroup or a way to find the windows network. For that mater I have 1 other computer running linux on the network and it cannot even find it. They really are messing up the new versions not makeing them better. I hate windows but have to use it as linux is not good enough yet for all things and now worse than ever at networking. It is the most nonuser friendly os. It used to be good what happened?
 
Old 03-08-2007, 06:26 PM   #11
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Mandriva 2008 One
Posts: 124

Rep: Reputation: 17
Archdragonmage

Perhaps you have an unusual network set up? Maybe it would be better to use smbclient instead of nmblookup (the default) to connect.

You probably know this, but I think you want to look at smb4k (if it's installed, it will be under <start>->internet->file transfer.
You'll need to know the windows machine name and workgroup (the machine name in windows is by default a random string generated at installation, or a string assigned by the admin, so you'll need admin privledges to get it. The default workgroup name is usually WORKGROUP).
Working from memory, you'll need the windows box IP on your network too, and account name and password on the windows box.
Then start smb4k and click on the configure smb4k menu item under settings. Click on "Samba" on the left hand side, and under nmblookup, enter in the IP of the windows box. Under "authentication" (again, on the LHS), enter in the account and password of the windows account you want to access. Once you're set up, let is scan for the network and see if it doesn't find it for you. Samba should querry you for the password of your wallet so that it can get the account information. It's pretty straight forward, but to be honest, the only quirky stuff I found was dealing with the ^%#&@^ "wallet" to protect the password, which really has nothing to do with Samba/smb4k.

Oh. Watch out for any firewall you may have running on the windows box. Be sure it's set up to let you in.
 
Old 03-09-2007, 11:46 AM   #12
Archdragonmage
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Jbuckley2004

Thanks for your reply. I have got connected now but still have no access to the printer on the windows computer.
 
  


Reply

Tags
edition, home, mandriva, samba, windows, workgroup, xp


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
Connecting Windows XP to SUSE SAMBA cthomas Linux - Networking 1 02-21-2006 09:59 AM
connecting to Samba with Windows XP Cheechi Linux - Networking 2 01-23-2006 01:38 PM
Samba connecting to windows share gfem Linux - Software 4 12-09-2005 12:16 PM
XP connecting to Samba (Network Path not found) FastFeet Linux - Networking 3 03-31-2005 07:18 PM
connecting to windows workgroup using samba? linoob Linux - Newbie 7 10-23-2002 08:17 PM


All times are GMT -5. The time now is 10:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration