Configuring Joatha to use SAMBA (Windows) Shares from Remote Machines
Do all commands as root (in a Terminal or Konsole) Put the URL in Konqueror (run Konqueror as normal user).
server = servername or IP of the Windows Machine
share = name of the share
In KDE - Konqueror put in the URL smb://server or the complete URL smb://server/share
In a konsole you can see the shares located on a server by:
smbclient -L server
To mount a share in a directory -(with full access for ALL Users) remember this: Mountpoint must exist. If it does not, you must first create directory like this (Name is arbitrary):
mkdir -p /mnt/server_share
Then mount the share - remote filesystem VFAT:
mount -t smbfs -o username=Administrator,fmask=777,dmask=777 //server/share /mnt/server_share
or remote filesystem NTFS:
mount -t smbfs -o username=Administrator,fmask=777,dmask=777,lfs //server/share /mnt/server_share
To terminate the connection, use:
umount /mnt/server_share
If you want to put an entry in /etc/fstab to make the mount easier then insert the following line on that file:
//server/share /mnt/server_share smbfs defaults,username=your_username,password=**********,fmask=777,dmask=777 0 0
How to set up Joatha as Samba-Server
From the Joatha Live-CD all you need to setup/start a simple Samba-Server is the call of the script sambastart, which is also found in KDE-menu under Joatha-Server.
On a HD-Install it is neccessary to adjust the Samba Configuration. Here is a simple example. If you want to know more about the usage of Samba and the setup of a Linux Samba Server advisable to read the Samba Documentation..
To adjust the samba-configuration you do as follows:
you open the file /etc/samba/smb.conf in an editor (e.a. kedit) and enter this:
# Globale Changes - Proposal everything simple as #possible - no passwords, perform like Windows 9x [global] security = share workgroup = WORKGROUP # Share without write-permission -important if NTFS Filesystems are to be shared! [WINDOWS] comment = Windows Partition browseable = yes writable = no path = /media/hda1 # <-- adjust to your partition public = yes # Sharing a partition with permission to write- the partition has to be mounted # writable - makes sense with e.g. FAT32. [DATA] comment = Data Partition (first extended Partition) browseable = yes writable = yes path = /media/hda5 public = yes
Dont forget to save. You can now start/stop samba with
/etc/init.d/samba start
and
/etc/init.d/samba stop
You can also start/stop samba automaticaly at boot-time. Issue this call:
update.rc.d samba defaults
Now samba starts when you boot and stops when you shutdown.


