HanG321 Blog

Debian Chroot on DSM

Use Debian chroot instead of ipkg (optware) on DSM 5.0. Here is a installation notes of XPEnology on HP N36L

Prerequisite:

add custom source:  Package Centre > Settings > Package Sources

Name: SynoCommunity
Location:  https://synocommunity.com/packages 

Readme:

https://github.com/SynoCommunity/spksrc/blob/develop/spk/debian-chroot/src/app/help/enu/index.html

Installation:

– required python on SynoCommunity, DSM default python not OK.

– select Debian Chroot and click install

– after installation completed, ssh to DSM as root

– now under chroot

– enable home for users: Control Panel > User > Advance, “Enable user home services”, Apply.
ls -al /var/services/homes  symbolic link updated and pointed correctly

– some additional directories want to be mount by startup script

– setup users on debian domain

– change Port form 22 to 2222, so Synology still using default port 22, Debian domain will use 2222 port

–  (optional) create share folder via UI, e.g. “bridge”. Later use for packages manually install and share across Debian and Synology (e.g. maven)

– config profile

~/.profile  , different PS1 for both Synology and Debian ssh login

– (optional) on Synology domain, edit /etc/profile as well:  PS1='\u@\h \W \$ '

Final

ssh username@diskstation   for original synology ash shell. Or
ssh -p 2222 username@diskstation  for debian bash shell

reference