Add Samba to your Pogoplug
Samba2 Optware package is a good choice for Pogoplugs. Samba 3 is a good package as well but needs a swapfile. If you’re using Optware I suggest samba 2, for Debian use samba 3
Install samba2 with ipkg after making the root file system write accessible:
mount -o rw,remount /
ipkg install samba2
Configure samba by going to /opt/etc/samba with:
Edit the smb.conf with your favorite editor after making a back up copy.
cp smb.conf smb.conf.org
You can now edit smb.conf or use swat to set up samba.
If you are doing this manually (not using swat), here is a sample smb.conf. Adapt it to your system and security needs (this has none) . Would also suggest modifying your smb.conf and not overwriting with this:
#smb.conf begin # Global Parameters [global] workgroup = your-workgroup-name domain master = no local master = no preferred master = no wins support = no syslog = 0 guest account = root netbios name = pogo encrypt passwords = no security=share load printers = no lm announce = yes printing = bsd printcap name = /dev/null log file = /var/log/samba/%m.log max log size = 50 dns proxy = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE [all] # for Optware you can use the following path path = /tmp/.cemnt # for Debian you need to make a directory like /home/shared and set the path to that available = yes create mask = 0777 directory mask = 0777 read only = no browsable = yes public = yes writable = yes #smb.conf end
You need to add at least one user to your system (do this for each user you want to add to your system):
adduser -H sambausername
with sambausername set you need to add to the system password file.
smbpasswd -a sambausername
to add it to the samba user password file.
Before you start samba you should check for errors in your config file using:
If there are any errors, fix them and rerun testparm. When you find no errors you can start samba.
If you change the configuration file at any time in the future you can use the restart command again.
If you are using Optware and want to start samba at power-on you can add a command to start samba at the end of your /etc/init.d/rcS file or the mount_optextX file. to do this:
move to the end of the file and add the following line
This is not necessary if you are using Debian.
Make your root file system read-only after finishing with:
mount -o ro,remount /
When you connect to your plug the share name will be all.