Posts

Showing posts with the label schroot

Access chroot via SSH

(ref  http://wiki.mandriva.com/en/Development/Howto/Chroot ) 1. Enter to chroot 2. Setup openssh-server 3. Edit /etc/ssh/sshd_config     Port 2222 4. Launch sshd daemon inside chroot 5. Add user/pass inside chroot 6. From outside, try ssh user@localhost -p 2222

Clean chroot manually

I mess around schroot, chroot and mkschroot(  https://github.com/KayEss/mkschroot  ). Done something with blind but do not want to remove them with blind So!!! thank for link at the page's bottom. The instruction below are what I have done for remove unwanted chroot. 1. Check mounted sys by     >> df -ah     * you will see chroot mount path. 2. Goto /var/lib/schroot     - remove your's chroot inside session's dir     - do unmount  proc sys dev/pts dev tmp  in your's chroot from mount's dir     * I'd use     >> for f in proc sys dev/pts dev tmp;do sudo umount $f;done;     - do unmount your's chroot     thank for  http://manpages.ubuntu.com/manpages/natty/man7/schroot-faq.7.html