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 12-14-2003, 06:42 PM   #1
larley
LQ Newbie
 
Registered: Dec 2003
Location: Montreal, Quebec, Canada
Distribution: Gentoo Linux W/Kernel 2.6.8-r3
Posts: 14

Rep: Reputation: 0
Question Don't know how to connect to my windows network


I have a Windows network set up at home, and I just installed Slack 9.1 on my system. I set up the internet and everything, but i don't know how to connect to my home network (especially the printers).
I know that I am supposed to use Samba, but that doesn't help me - all I see are some cryptic manuals that tell me what i need to do for things i don't know if i HAVE to do, or even understand.
I am a 100% Linux n00b and have been so confused by everything that I'm having doubts about my Linux loyalty... So I need this explained as clearly and simply as possible...
 
Old 12-15-2003, 03:56 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well if you are going to get anywhere with linux you are going to have to do some reading I'm afraid

basically if you have SMB shares (windows networking shares) somewhere that you want to connect to you need the samba client, specifically 'smbclient' and 'smbmount' (strictly speaking you don't need smbmount but it makes life easier) AND you need smbfs support in your kernel or a module. I'm not sure if slack provide this by default, but I'm sure you'll find out soon enough...

owen@loki owen $ smbclient -L odin
Password:

Sharename Type Comment
--------- ---- -------
homes Disk home-directory
cd Disk
Share Disk Everything
Share2 Disk Music and Futurama
Downloading Disk P2P Downloads not filed
Public Disk Public Files
IPC$ IPC IPC Service (Samba 2.2.0a)
ADMIN$ Disk IPC Service (Samba 2.2.0a)
faxprint Printer fax
owen Disk home-directory

Server Comment
--------- -------
ODIN Samba 2.2.0a

Workgroup Master
--------- -------
VALHALLA ODIN


you then use smbmount to connect to these shares...


owen@loki owen $ smbmount //odin/public temp/
Password:
owen@loki owen $ ls -l temp
total 27K
drwxr-xr-x 1 owen users 4.0K Dec 11 08:51 Adam
drwxr-xr-x 1 owen users 4.0K Dec 11 09:30 Owen
drwxr-xr-x 1 owen users 4.0K Dec 13 22:53 Photos
drwxr-xr-x 1 owen users 4.0K Mar 6 2003 Sarah
-rwxr-xr-x 1 owen users 6.1K May 13 2003 addressbook.global
drwxr-xr-x 1 owen users 4.0K May 8 2003 old.homes
owen@loki owen $ smbumount temp

I suppose the easiest way to manage these is to stick a few lines, like this one, in /etc/fstab
//odin/public /data/public smbfs credentials=/root/passkeys/pubpass,fmask=664,dmask=775,uid=root,gid=users,users,_netdev 0 0

(after creating /data/public and the credentials file the format is in a manpage somewhere ) or you could add your smbmounts to ~/.bash_login and smbumount to ~/.bash_logout

man smbmount:
credentials=<filename>
specifies a file that contains a username and/or password. The
format of the file is:

username = <value>
password = <value>


This is preferred over having passwords in plaintext in a shared
file, such as /etc/fstab. Be sure to protect any credentials
file properly.






this post is a guide only dude, I happen to be running a SAMBA server on a linux box, and I connect to from a linux box. I can't help you with windows server stuff, like you user account on the windows server... It will probably just work though

You are probably going to have to do some reading in order to get things working exactly as you want, when you get stuck post here asking specific questions. Linux / UNIX manuals become less cryptic the more you read them, but it does take a little while to get used to them.

Good luck and have fun
 
  


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
How to connect to my Windows Network Brosky SUSE / openSUSE 11 03-03-2005 07:08 PM
how to connect to windows network disk tacca Linux - Networking 6 11-27-2004 03:52 PM
How to connect to a Windows network using Samba ? wlaw Linux - Networking 3 09-05-2004 10:57 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
trying to connect to windows network drives willyK Linux - Networking 2 01-23-2004 06:30 PM

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

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