Thread: Ubuntu Linux
View Single Post
Old 2007-06-05, 16:22   Link #18
SeijiSensei
AS Oji-kun
 
 
Join Date: Nov 2006
Age: 74
grey_moon is talking about using "Samba" to export file shares on a Linux box so you can mount the shares in Windows. This works over a network with Windows client machines and a Linux server.

The reverse can happen as well, which might be more effective for you. If you're using KDE, you can enter an "SMB" URL* into Konqueror and connect to a Windows shared directory. Type
Code:
smb://your.windows.machine.name/sharename
or use the Windows machine's IP address if you don't have full name resolution configured. For instance, if you had a Windows machine with IP address 192.168.1.1 and a shared directory called "myfiles" you can access it from Konqueror by typing
Code:
smb://192.168.1.1/myfiles
into the address box. You'll be prompted for your Windows username and password.

If you want to mount a Windows share permanently on a Linux box, you'll need to use the "smbmount" command from the command prompt as root. Suppose you set up a "mount point" (see above) called /mnt/myfiles. You can issue the command
Code:
smbmount //192.168.1.1/myfiles /mnt/myfiles -o username=xxx,password=yyy
and all the files in the shared "myfiles" directory will be available at /mnt/myfiles. Usually I put commands like this into /etc/rc.local, which is the last script run during bootup. To avoid having to leave the password information lying around you can use the "credentials" option instead to store the info in a file. Type "man smbmount" at a command prompt for more details.

Remember all this applies to a situation where there are separate Windows and Linux boxes both residing on a network.

_____

*SMB stands for "Server Message Block" and was the formal name for the filesharing protocols used by Windows networking. Lately these protocols have become known as CIFS, the "Common Internet File Service."
SeijiSensei is offline   Reply With Quote