This is a quick publish tutorial on how to install Optware and SAMBA on the internal flash of the Pogoplug Mobile or Series 4.
The default Pogoplug OS on the Mobile and Series 4 is installed on a 112MB partition and have just enough space for installing Optware and SAMBA. Please only use this method if you're a advance user.
In general, I would recommend keeping things simple and installing Optware on the first partition of your USB Hard Drive: How to Install Optware and SAMBA on the Pogoplug
However, in certain cases it may be more advantages to install Optware directly on the internal flash of the Pogoplug.
A couple of good reason would be:
- Your hard drive already contain data and you cannot re-partition your USB Hard Drive
- You have multiple USB Hard Drive attached and having issue mounting /opt correctly.
Install Optware
killall hbwd
#remount root to be writable
mount -o remount,rw /
#create /opt folder
mkdir /opt
#download ipkg
cd /opt
wget http://download.qnology.com/pogoplug/optware/plug.tar.gz
tar -xzvf plug.tar.gz
rm plug.tar.gz
# Setup profile
cd /etc
wget http://download.qnology.com/pogoplug/optware/profile
chmod 755 profile
source /etc/profile
#update available packages
ipkg update
Install Samba
#create /opt folder
mkdir /opt
#download ipkg
cd /opt
wget http://download.qnology.com/pogoplug/optware/plug.tar.gz
tar -xzvf plug.tar.gz
rm plug.tar.gz
# Setup profile
cd /etc
wget http://download.qnology.com/pogoplug/optware/profile
chmod 755 profile
source /etc/profile
#update available packages
ipkg update
Install Samba
#Use /tmp as download location
#otherwise there will not be enough space
ipkg install samba36 libnsl nano -t /tmp
#download example smb.conf
cd /opt/etc/samba
wget http://download.qnology.com/pogoplug/optware/smb.conf
#The my.pogoplug.com Cloud Engine Service
#download example smb.conf
cd /opt/etc/samba
wget http://download.qnology.com/pogoplug/optware/smb.conf
#The my.pogoplug.com Cloud Engine Service
#will automount attached USB drives to /tmp/.cemnt
#/tmp/.cemnt/mnt_sda1/ == first drive, first partition
#/tmp/.cemnt/mnt_sda1/ == first drive, first partition
#/tmp/.cemnt/mnt_sda2/ == first drive, second partition
#/tmp/.cemnt/mnt_sdb1/ == second drive, first partition
#/tmp/.cemnt/mnt_mmcblk0p1/ == SD Card, first partition
#Edit smb.conf appropriately
nano /opt/etc/samba/smb.conf
#Start SAMBA
/opt/etc/init.d/S08samba start
You should now be able to access your Pogoplug's USB Hard Drive by \\IPAddress\root$ or \\IPAddress\usb.
nano /opt/etc/samba/smb.conf
#Start SAMBA
/opt/etc/init.d/S08samba start
You should now be able to access your Pogoplug's USB Hard Drive by \\IPAddress\root$ or \\IPAddress\usb.
Make sure everything works after a reboot
#backup original rcS startup file
#restore the rcS.original file to revert
cp /etc/init.d/rcS /etc/init.d/rcS.original
#start samba on reboot
echo "/opt/etc/init.d/S08samba start" >> /etc/init.d/rcS
reboot
Hi, Thanks for your guide. I installed it on my pogo plug. The installation went well. The only problem is that my samba wont accept network connections. Samba seems to be running well with Testparm command. Following is the result of my restart of samba, testparm and definition file. The pogoplug online is working good but I cant access my files on local network. Please advise. Thanks
ReplyDeleteMT
[root@PogoplugMobile /root]# /opt/etc/init.d/S08samba start
Stopping nmbd:
Starting nmbd:
Starting smbd:
[root@PogoplugMobile /root]# testparm
Load smb config files from /opt/etc/samba/smb.conf
Processing section "[root$]"
Processing section "[usb]"
Processing section "[usb2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
netbios name = POGOPLUG
server string = POGOPLUG
map to guest = Bad User
guest account = root
log file = /tmp/var/%m.log
max log size = 50
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
load printers = No
printcap name = /dev/null
disable spoolss = Yes
idmap config * : backend = tdb
use sendfile = Yes
write cache size = 2097152
[root$]
path = /
read only = No
guest ok = Yes
[usb]
path = /tmp/.cemnt/mnt_sda1/
read only = No
guest ok = Yes
[usb2]
path = /tmp/.cemnt/mnt_sdb1/
read only = No
guest ok = Yes
[root@PogoplugMobile /root]#
OK thanks for this post it's quite informative and I have learned new things.
ReplyDeletekissanime alternatives
appvn
Thank you so much for writing keep up like this.
ReplyDeletetipshint