Talk:Jail
From Gentoo Linux Wiki
(Redirected from Talk:HOWTO Jail)
Wtf! There is no info on copying /etc/resolv.conf instead of playing with hostx Also, copying /etc/terminfo to the jail and ,,mknod /chroot/dev/ptmx c 5 2 fixes the screen issues.
In my system
Linux main 2.6.16.29-xen #3 SMP Sun Oct 15 13:15:34 BST 2006 x86_64 AMD Opteron(tm) Processor 246 AuthenticAMD GNU/Linux
I needed to copy another file:
cp /lib64/ld-linux-x86-64.so.2 /var/chroot/lib64
--83.41.248.9 11:48, 18 February 2007 (UTC)
[edit] Irssi and screen in Jail
I did everything mentioned here and the forum thread in the end of this article. And now:
Screen:
prisoner@myhostname ~ $ screen Must be connected to a terminal.
Irssi:
14:13 -!- Irssi: Looking up irc.inet.fi 14:13 -!- Irssi: Connecting to irc.inet.fi [0.0.0.0] port 6667 14:13 -!- Irssi: Unable to connect server irc.inet.fi port 6667 [Address family not supported by protocol]
- hi! i am sure you found/worte this here: http://forums.gentoo.org/viewtopic-p-3179496.html on the screen problem. now, the irssi thing is either wrong irssi.conf, 0.0.0.0 does not look like a valid ipo to connect to. or you need some basic networking stuff in your chroot, like a resolv.conf and maybe something else. i stopped using jail and i use jailkit, which has a howto here but it is not officially in portage. although it has a good user base and the ebuilds should be somewhere in an overlay. you might want to try it, or look there how networking is done in chroots. good luck, --the_mgt 14:45, 23 April 2007 (UTC)
- You can 'emerge host' then 'hostx irc.inet.fi' to get the ip address outside the jail and enter it manually in the jail. will edit the mail article Thewtex 05:50, 23 January 2008 (UTC)
