View previous topic :: View next topic |
Author |
Message |
omcdr n00b
Joined: 12 Feb 2006 Posts: 9
|
Posted: Sun Feb 12, 2006 1:30 pm Post subject: Screen under chroot - "Must be connected to a terminal. |
|
|
I used jail to create chroot enviroment, it works, but when I trying to run screen, I have got a message "Must be connected to a terminal."
I've copy directory /dev to /chroot/dev, but it don't works.
What is missing ? |
|
Back to top |
|
|
pyxel n00b
Joined: 04 Nov 2005 Posts: 44 Location: Bratislava/brussels
|
Posted: Sun Feb 12, 2006 1:42 pm Post subject: |
|
|
hello,
screen needs /dev/ptmx, /dev/pts/* and /dev/null
you can mount all /dev/ in your chroot:
Code: | mount -o bind /dev /chroot/dev |
or you can just make /dev/null and ptmµx, but for pts kernel uses a pseudo-filesystem called "devpts" for
the all /dev/pts. you can mount it:
Code: | mount -t devpts none /chroot/dev/pts |
cheers^^ |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Feb 12, 2006 5:14 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo.
not an installation support question. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
omcdr n00b
Joined: 12 Feb 2006 Posts: 9
|
Posted: Sun Feb 12, 2006 8:28 pm Post subject: |
|
|
Thanks, /chroot/dev is now OK, but when I trying to run screen, I have got a message:
Quote: | Cannot find terminfo entry for 'xterm'. |
I trying this:
Quote: | tset -s
tset: unknown terminal type xterm
Terminal type? |
|
|
Back to top |
|
|
woodworker n00b
Joined: 07 Jan 2004 Posts: 37 Location: Europe / Germany / Berlin
|
Posted: Tue Mar 14, 2006 2:59 pm Post subject: |
|
|
copy /etc/terminfo to /chroot/etc/terminfo
and maybe /usr/share/terminfo to /chroot/usr/share/terminfo |
|
Back to top |
|
|
Belial` n00b
Joined: 04 Jan 2004 Posts: 23 Location: Beveren, Belgium
|
Posted: Tue Aug 29, 2006 5:28 pm Post subject: Chroot ftp |
|
|
How can I chroot "chrooted users" in ftp?
The ftp daemon (vsftpd) chroots the "chrooted users" in /var/chroot instead of /var/chroot/home/username :s |
|
Back to top |
|
|
jtillwick n00b
Joined: 08 Aug 2005 Posts: 18
|
Posted: Wed Dec 27, 2006 5:19 am Post subject: preserve on reboot |
|
|
What is the best way of preserving these mounts after a reboot? |
|
Back to top |
|
|
|