Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 05-16-2006, 08:31 PM   #1 (permalink)
Erich K's Avatar
 
True Techie

Join Date: Aug 2005

Location: America

Posts: 240

Erich K is on a distinguished road

Send a message via MSN to Erich K
Default Samba Help

I need help getting my linux box and my windows xp box to network.

My WIndows username is: Migrating Coconut

My Linux username is: Erich

The linux host is: whitelinux

The workgroup is: mshome

The Windows computer name is: Pavillion

What would i put in the linux adress bar to get into the windows files? (Let me know if you need any more info)
__________________
Erich K is offline  
Old 05-16-2006, 08:50 PM   #2 (permalink)
Greg's Avatar
 
Indeed.

Join Date: Dec 2004

Posts: 1,554

Greg is on a distinguished road

Default

try just "smb://Pavillion"
__________________
Greg is offline  
Old 05-16-2006, 09:22 PM   #3 (permalink)
Erich K's Avatar
 
True Techie

Join Date: Aug 2005

Location: America

Posts: 240

Erich K is on a distinguished road

Send a message via MSN to Erich K
Default

Quote:
Originally posted by Greg
try just "smb://Pavillion"
It says:

The folder contents could not be displayed.
Sorry, couldn't display all the contents of "Windows Network: pavillion".

I'm hooked up to a router with the other computer if that means anything.
And the ip for this linux box is: 192.168.2.8

The windows box is: 192.168.2.6

If those are any help.

Really need to get this working :o
__________________
Erich K is offline  
Old 05-16-2006, 09:58 PM   #4 (permalink)
 
Ultra Techie

Join Date: May 2005

Location: Townsville, QLD

Posts: 641

jakec is on a distinguished road

Default

Leon,

What Distro are you using?, SUSE has a good guide on How to Setup Samba but you will need to use "Yast". Yes I know yuk

Just gimmie what distro you are using please

Jake


EDIT:

What about smbfs? all you have to do is follow thsese steps:

Getting smbfs

Grab the latest Samba sources and unpack them
Configure with "./configure --with-smbmount"
Compile using "make"
Run "make install"

then setup the Windows Share Directory:

To access shared folders in Linux:
Open a shell.


Become root. su and enter your root password when asked for it.


Create a mount point for the shared folder. mkdir /mnt/share


Mount the shared folder. mount -t smbfs -o username=username,password=password //compname/sharename /mnt/share

Replace username with your username on the other box and password with the associated password. Replace compname with the name of the computer, and sharename with the name of the share.
If you didn't get any errors, you're all set. The folder is "mapped" to /mnt/share.

If you DID get an error, this part might help:

If the error said "can't open /etc/smb.conf: no such file" or something like that, ignore it. You don't need a config file just to mount shares.

If the error said "wrong fs type or bad superblock n //compname/sharename", it means samba isn't installed. Install it and try again.

If it said "unknown filesystem smbfs" or "kernel doesn't support smbfs" or something like that, it means you don't have smbfs support in your kernel. Run modprobe smbfs and try again. If it still doesn't work, you will have to build a new kernel with SMB support enabled.

If it says "couldn't connect to compname", open your /etc/hosts file and add an entry for the computer you're trying to connect to.

I think I've covered everything that could possibly go wrong with mounting, so let's move on to sharing.

To share directories on Linux:

Open a shell and become root, as described before.


Open your /etc/smb.conf file. kedit /etc/smb.conf (replace kedit with your favorite editor if you want)


Alter it like so:


Change the WORKGROUP setting to the name of the workgroup you want to be in.


The HOSTS ALLOW line should contain the list of IP ranges that are on your home network. For example, if your computers were all 192.168.0.* your line would look like this:
hosts allow = 192.168.0. 127.


Set ENCRYPT PASSWORDS to "yes"


Set SMB PASSWORD FILE to "/etc/smbpasswd"


On the INTERFACES line, list all of your computer's IP addresses, except the internet address if it has one. For example, if you computer had a loopback IP 127.0.0.1, an internal IP 192.168.0.1, and an internet IP 25.246.105.108, your line would be:
interfaces = 192.168.0.1 127.0.0.1


Save it and exit the editor.


Add an account for your Windows box. smbpasswd -a user password


Replace user with the username you want. and password with a password. The username should be a valid user on the Linux box.


Open up /etc/smb.conf again.


Scroll down to the Share Definitions part.


The first chunk would be the homes section. Edit it as necessary to make it match this:
[homes]
comment = Home Directories
browseable = no
writable = yes


Now add any other shares you want like this:
[sharename]
comment = Comment
path = /path/to/share
read only = no
public = yes


Save and exit.


Now start the Samba server. nmbd -D and then smbd -D


Souces: http://www.anandtech.com/guides/viewfaq.html?i=125

http://www.linuxforums.org/forum/lin...ux-fedora.html

Hope this Helps,

Jake
jakec is offline  
Old 05-16-2006, 10:03 PM   #5 (permalink)
Greg's Avatar
 
Indeed.

Join Date: Dec 2004

Posts: 1,554

Greg is on a distinguished road

Default

Maybe "smb://mshome"?
__________________
Greg is offline  
Old 05-16-2006, 10:16 PM   #6 (permalink)
Erich K's Avatar
 
True Techie

Join Date: Aug 2005

Location: America

Posts: 240

Erich K is on a distinguished road

Send a message via MSN to Erich K
Default

I'm using fedora core 4. Also smb://mshome gave same problem.
__________________
Erich K is offline  
Old 05-18-2006, 09:55 AM   #7 (permalink)
 
Super Techie

Join Date: Jul 2004

Posts: 398

kostas

Default

did you try smb://192.168.2.6 ?
__________________

kostas is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On