share over the network between IcAROS and Ubuntu

Introduction :

Sharing files over the network is something like an obligation nowadays.

I personnally don’t like Windows, so I won’t speak about this side. I prefer the dark side : linux, especially ubuntu (here 12.04LTS). Anyway, samba is samba, so it should work with every linux distrib.

As we speak about computering @home, we will stay in a VERY SIMPLE config.

So, we have for this example :

– One machine running IcAros 1.5.2-2

– One machine running Ubuntu 12.04LTS

– let’s assume the ubuntu samba server is called “HADES”,

– in a WORKGROUP  called “PHLEGETON”,

– with the IP adress, let’s assume it is “192.168.173“. Ofcourse, you must change this to fit your ones.

– let’s assume the path to share is “/media/data”

– let’s assume the share name will be “styx”

We also have a local user. Let’s assume it is “jess”.

Installation :

sudo apt-get install samba

Configure SAMBA :

Samba file config is /etc/samba/smb.conf

sudo nano /etc/samba/smb.conf

Here are the parameters that have to be configured, and how.

workgroup = PHELGETON
interfaces = eth0:0
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = no
create mask = 0775
directory mask = 0775
usershare allow guests = no

Personnally, I also commented all the printers stuffs that aren’t needed.

At the end of the file, you should declare your share :

comment = What you wish to see there
public = no
read only = no
write list = jess
locking = no
path = /media/data
valid users = jess
guest ok = no
hide files = /lost+found/

Here is my /etc/smb.conf file

Declare the SAMBA user :

créer un mdp pour votre utilisateur :

sudo smbpasswd -a jess

jess@hades:~$ sudo smbpasswd -a jess
[sudo] password for jess:
New SMB password:
Retype new SMB password:
Added user jess.

Restart SAMBA

restart samba : sudo service smbd restart

jess@hades:~$ sudo service smbd restart
smbd stop/waiting
smbd start/running, process 4224

On Ubuntu 12.04LTS, SAMBA is automatically added to system startup by the install script.

Configure mounted share on IcAros :

Open Prefs/Networking interface

in local host entries, add HADES and the IP of the host

in mounted shares, create a new “SMB/CIFS” mount :

host = HADES
domain = PHLEGETON
Share = styx
username / password : your user credentials...

save and see your share appearing on your Wanderer, also usable via DOpus.

Some questions :

Why don’t you use a guest allowed share ?

I personnally had issues using simple guest ok SAMBA shares configurations, with “error 200 object is in use” each time I wanted to write to the share. The way described here is the most stable I know.

Can I do that with Windows :

Yes, until Windows XP, shares are OK under windows, since Vista/7, the new SMB protocols used by windows make buggy communication between AROS and Windows. Prefer FTP protocol.

Usefull ressources : the official doc for samba on ubuntu a thread on aros-exec regarding to file sharing between Windows and AROS

for a long time amiga & demos lover and musician.
Beta tester for icaros for some years now (since icaros 1.5), i do it as much as i can.
i'm a computer scientist, managing the computer infrastructure in a big company (won't tell the name there).


Leave a Reply

Your email address will not be published. Required fields are marked *

71 + = 72