This is what I did after I chrooted:
$this->bbcode_second_pass_code('', '
source /etc/profile
export TERM=xterm
export HOME=/root
mount /dev/pts # in order to be able to use ssh (otherwise, "PTY allocation request failed on channel 0")
')
I think those are all things the arch automatically do through scripts like rc.sysinit, but since we never actually boot here, none of that ever happen.
After that, most of the things work correctly. I could run sshd, vsftpd, etc.
A more experienced user should recommend which scripts to run to simulate a boot and set everything correctly in a chroot installation (since
https://wiki.archlinux.org/index.php/Chroot has no further details).
@kmihelich: I understand that, but I don't see why not to run services or even a tightvnc server to be used from a local client. This should have a little bit more support, IMHO.
Thanks.