by K8CTR
Posted Sunday, February 7, 2016 7:30 PM
Gnawing at the back of my mind has been this tiny question about the portability of my SpiderOak NAS solution. In my last post, I suggested that the simplest approach to installing SpiderOakONE on an Intel based Synology was to use the SynoCommunity Debian Chroot package, and install the official headless .deb from SpiderOak within it. So, what would happen if say... I wanted to move my NAS to new hardware, could my existing SpiderOak install migrate over with just a copy & paste?
So to try and silence that annoying tiny question:So far, everything has seemed to work. Again, this is an unofficial project and doing anything like this with sensitive data is probably asking for trouble, I'm just sharing what I did because I like doing this kind of stuff, and it's always nice having a reference.
vi /var/packages/debian-chroot/scripts/start-stop-statusTo something like this...
start_daemon () { [...] grep -q "${CHROOTTARGET}/home " `realpath /var/services/homes` || mount -o bind `realpath /var/services/homes` ${CHROOTTARGET}/home grep -q "${CHROOTTARGET}/photo " `realpath /var/services/photo` || mount -o bind `realpath /var/services/photo` ${CHROOTTARGET}/media/photo grep -q "${CHROOTTARGET}/music " `realpath /var/services/music` || mount -o bind `realpath /var/services/music` ${CHROOTTARGET}/media/music grep -q "${CHROOTTARGET}/video " `realpath /var/services/video` || mount -o bind `realpath /var/services/video` ${CHROOTTARGET}/media/video [...] } stop_daemon () { [...] umount ${CHROOTTARGET}/home umount ${CHROOTTARGET}/media/photo umount ${CHROOTTARGET}/media/music umount ${CHROOTTARGET}/media/video }Within the chroot:
nano /etc/apt/sources.list # changed fr. to us. apt-get update apt-get install locales dpkg-reconfigure locales dpkg-reconfigure tzdata apt-get install curl openssh-server adduser josh -uid XXXX --gid XXXX --home /home/josh #Synology: id -u username; id -g username mkdir -p /media/photo mkdir -p /media/music mkdir -p /media/video apt-get install libfreetype6 libxrender1 libfontconfig1 nano /etc/ssh/sshd_config Port 2222 PermitRootLogin yes X11UseLocalhost yesThen probably something like cron to run the batch backups during non-peak times... And from my Mac with X11 installed... Don't forget to change your root PW, or try admin instead?
ssh -p 2222 -X root@diskstation /usr/bin/SpiderOakONE