Apr 16, 2008

Mapping a windows shared

When we had a computer which run as a file server in a network, sometime or maybe, we would like to map it to make easy to be called ( in windows, we can map as "X:\" or Y:\ or else ). Here we have a linux server which has a public shared folder which shared as windows shared.

What about in Linux(Edubuntu) ?
In Edubuntu w can go to Places - Connect to server
I used to use windows shared, server = citserver and folder = shared then click Connect
It ended up with an icon named "shared on citserver" on the desktop

This map, caused me problems some times ago, students can not save the firefox files directly to it. And some applications also can not save to it directly. The exceptional is OpenOffice, it can !

In order to make all applications can save to the server, first, open terminal

sudo apt-get install smbfs
sudo mkdir /media/x
sudo gedit /etc/fstab

in fstab, insert
//citserver/shared /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0

then
sudo mount -a


Now, you will have a mapped drive named "x"

Addition : ( requested by doniepos )
I used this x for making an intranet repo ( combined with my previous post about own customized repo ) In my /etc/apt/sources.list, i put
deb file:///media/x/Linux repo/

With a good combination with cron, this intranet repo is automatically update weekly

regards;
~E~

No comments: