This page describes (in some detail, so it's easy to recreate) the shared services and drives between our two computers. The two computers are Sanji and Hungmao.
Networking
Both computers have 2 active interfaces; one point-to-point ethernet interface and one wifi interface. Wifi provides internet connectivity via the modem on 192.168.1.x. The other interfaces are:
sanji eth0: 10.0.0.1
hungmao eth1: 10.0.0.2
This is pretty easy to do via /etc/network/interfaces for startup:
auto ethX
iface ethX inet static
address 10.0.0.x
netmask 255.255.255.0Both machines are using avahi and can use 'sanji.local' and 'hungmao.local' as hostnames. I'm not sure what the resolving rule is for these hostnames, but I know it will resolve via the wired (10.x) network.
Shared Services
Storage
Sanji has a big raid array (one that I'm planning to grow), and with fast access to the array it seems like a good idea to share this as a service for the time being. For simplicity's sake (and cross-platform ease), we use samba for access. In order to get this working, you need to first install the smbfs package on the client machine (hungmao).
Right now, sanji's /mnt/omocha/ is shared and mounted on hungmao's /mnt/omocha/:
Config on sanji:
/etc/samba/smb.conf:
[omocha]
comment = Data Drive Share
path = /mnt/omocha/
browseable = yes
guest ok = yes
read only = no
create mask = 0755
directory mask = 0755
COnfig on hungmao:
/etc/fstab:
# .... //10.0.0.1/omocha /mnt/omocha smbfs rw,user,exec,iocharset=utf8,credentials=/home/ckan/.smbcredentials 0 0
/home/ckan/.smbcredentials:
username=Guest password=
See also: Ubuntu's "Mount Windows Shares Permanently" help page
.