HanG321 Blog

Debian chroot on DSM 5.2

similar to previous blog: http://35.233.158.97/2014/08/16/debian-chroot-on-dsm/

Prerequisite:

add custom source:  Package Centre > Settings > Package Sources > add

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

Installation:

– select Debian Chroot and click install

– select yes to install python (SynoCommunity version) as well.

– 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

 

– 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