I am running Open Suse 11 on a computer at my work. We have about 80 other computers all running versions of windows but, I only want to connect to 2 of them. They are just computers with big hard drivers, not ftps or anything like that. It should be just like home networking.
However, the problem I am having is, they are running windows, I am on linux. I don’t need to share my files or anything, I just need to be able to access the files on the two computers. How do I do this?
File sharing with windows OSs is done using Samba.
Well, I have figured out that much. There seems to be so many how-to’s floating around, I can’t figure out which one works correctly. All I need to do is access another computer. How do I do this?
If you just want th Linux machine to be a network “client” then backup the defalt Samba config file as e.g.:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original
Then edit the file to make it a Samba client. You open it for editing in a GUI text editor with this command for KDE user:
kdesu kwrite /etc/samba/smb.conf
or if Gnome user use this:
gnomesu gedit /etc/samba/smb.conf
Then make the smb.conf to be this:
workgroup = SET_THIS_TO_MATCH_THE_OTHERS
netbios name = YOU_SET_THIS_TOO
name resolve order = bcast host lmhosts wins
server string = “”
map to guest = Bad User
local master = yes
preferred master = yes
os level = 33
[keep the default smb.conf backup copy in case you fail. If you’ve lost/overwritten the default, here’s a copy to fall back on]
Set the computer to start the Samba daemons at boot time (nmbd, smbd). Check in Yast → system → runleves → “smb” and “nmb” should “enabled = yes” with no asterisk attached.
Either open the firewall for samba or turn it off pro tem.
I don’t know how effective this line will be: preferred master = yes
because there’s no information about the setup of the 80 other computers, to try it in and if OK, keep but if not, remove.
Reboot Suse and either reboot the single target server/computer or wait 30 minutes.
Well if you just want to access windows shares you used to be able to use smbmount, but thats a different story.
Now you can use:
mount -t cifs -o username=server_username,password=server_password //ipaddress/share_name /mount/point
So a create a mount point for your share usually under /mnt
then mount the share. (Mount runs as root by default.)
mount -t cifs -o username=,password= //192.168.1.XX/music /mnt/music
It would be nice to know which desktop you use, but I’ll assume you’re using KDE.
If you don’t need to mount the shares, but just access them randomly, do this…
Make sure ‘samba-client’ is installed.
Fire up Konqueror or Dolphin -> Enter ‘smb://[ip-address-of-windows-box]’ in location bar -> enjoy
… If you don’t know the ip-adresses you can also browse samba-shares by clicking on Network in the left pane of Dolphin/Konqueror (press F9 to show/hide the pane). But this may require you to disable the firewall first, not 100% sure if this is still necessary (as root ‘rcSuSEfirewall2 stop’).
> It would be nice to know which desktop you use, but I’ll assume you’re
> using KDE.
> If you don’t need to mount the shares, but just access them randomly,
> do this…
> 1) Make sure ‘samba-client’ is installed.
> 2) Fire up Konqueror or Dolphin → Enter
> ‘smb://[ip-address-of-windows-box]’ in location bar → enjoy
> . If you don’t know the ip-adresses you can also browse samba-shares
> by clicking on Network in the left pane of Dolphin/Konqueror (press F9
> to show/hide the pane). But this may require you to disable the firewall
> first, not 100% sure if this is still necessary (as root
> ‘rcSuSEfirewall2 stop’).
There is never has been the need to stop the firewall to run Samba. You do need
to open the samba ports.
Cogito cogito ergo cogito sum.