Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Screen under chroot - "Must be connected to a terminal."
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
omcdr
n00b
n00b


Joined: 12 Feb 2006
Posts: 9

PostPosted: Sun Feb 12, 2006 1:30 pm    Post subject: Screen under chroot - "Must be connected to a terminal. Reply with quote

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
View user's profile Send private message
pyxel
n00b
n00b


Joined: 04 Nov 2005
Posts: 44
Location: Bratislava/brussels

PostPosted: Sun Feb 12, 2006 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sun Feb 12, 2006 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
omcdr
n00b
n00b


Joined: 12 Feb 2006
Posts: 9

PostPosted: Sun Feb 12, 2006 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
woodworker
n00b
n00b


Joined: 07 Jan 2004
Posts: 37
Location: Europe / Germany / Magdeburg

PostPosted: Tue Mar 14, 2006 2:59 pm    Post subject: Reply with quote

copy /etc/terminfo to /chroot/etc/terminfo

and maybe /usr/share/terminfo to /chroot/usr/share/terminfo
_________________
Websites Running Gentoo - go add more Links
Back to top
View user's profile Send private message
Belial`
n00b
n00b


Joined: 04 Jan 2004
Posts: 23
Location: Beveren, Belgium

PostPosted: Tue Aug 29, 2006 5:28 pm    Post subject: Chroot ftp Reply with quote

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
View user's profile Send private message
jtillwick
n00b
n00b


Joined: 08 Aug 2005
Posts: 18

PostPosted: Wed Dec 27, 2006 5:19 am    Post subject: preserve on reboot Reply with quote

What is the best way of preserving these mounts after a reboot?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum