Xorg within chroot environment: How?

Post your Debian questions here.

Xorg within chroot environment: How?

Postby mr-bisquit » March 14th, 2011, 8:39 pm

I've setup a chroot "jailed" environment for restarting the vinux ppc build.
1) Do I use VNC to export to a display? If so, then how?
2) If not, then do I use Xephyr?
More oddier than the most oddiest of the oddy odds.
mr-bisquit
 
Posts: 383
Joined: February 11th, 2011, 5:19 am

Re: Xorg within chroot environment: How?

Postby nadir » March 15th, 2011, 3:51 am

The following is from an old How-To of Dean
(it contains an xnest/display error, and without testing it i can't say which
But i know for sure that in general it _does work):
start a xnest (separate graphical screen inside a window) session to be used later
Xnest -ac :2 &
if :2 does not work then use a different number, just be sure to use the same number later also

copy a couple of files from our system to the extracted filesystem, if needed
cp /etc/hosts fs/etc/
cp /etc/resolv.conf fs/etc/

need to mount a few things in the extracted filesystem so the system is usable
chroot fs mount -t proc none /proc
chroot fs mount -t sysfs none /sys
chroot fs mount -t devpts none /dev/pts

change root to the extracted filesystem so we can work in it
chroot fs

export our locale thingy so we dont get irritating messages when we install software
export LC_ALL=C

You are now using the CLI in the system you want to customize.
You are root. You can su to other users if needed.
You can add/remove software, add users, set passwords, edit files, etc...

switch to the user whose environment you want to customize
*if you want to customize the root account then skip this step
su username

Now you can start the graphical environment in the xnest window.
if you have e17 installed then start it with the following command
env DISPLAY=":2" enlightenment_start &
or if you have icewm installed then start it with the following command
env DISPLAY=":2" icewm-session &
or if you have fluxbox installed then start it with the following command
env DISPLAY=":2" startfluxbox &
or if you have a environment that is very 'component-ized' then you probably need to startup the seperate components
env DISPLAY=":2" sawfish &
env DISPLAY=":2" pypanel &

You should see the environment startup in the xnest window.
Make whatever changes you wish then logout of environment.
Close the xnest window.

from here:
http://www.debe17.com/web_pages/deans_c ... 8.php.html

#-----------------------------------------------------------------#
I found this, but it does not work for me:
# Install tools
aptitude install qemu-system xtightvncviewer

# Emulate booting (send emulator to the background)
qemu -hda $HDD -vnc :0 &
# Watch boot
vncviewer localhost

http://adrianlang.de/ada/existing-debian-luks

this have been hints, not a solution.
nadir
 
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Re: Xorg within chroot environment: How?

Postby notthatguy » March 15th, 2011, 6:49 am

mr-bisquit wrote:I've setup a chroot "jailed" environment for restarting the vinux ppc build.
1) Do I use VNC to export to a display? If so, then how?
2) If not, then do I use Xephyr?


You lost me in general but you can certainly start a xnest/xephy window and then connect to it using the display number.

I think gnome/gdm does something similar to provide a new 'login in a window' althoug I am not sure if that would be useful to you.

Heck I am not sure if any of this advice is useful as I am simply not familiar with what you are doing.
User avatar
notthatguy
 
Posts: 697
Joined: February 27th, 2011, 4:42 pm

Re: Xorg within chroot environment: How?

Postby AMLJ » March 15th, 2011, 5:59 pm

You can use Xephyr... This is how Easy Debian works on N900... There's a chroot, and you can get a graphical environment using Xephyr.
AMLJ**0-1-47
User avatar
AMLJ
 
Posts: 135
Joined: February 9th, 2011, 7:11 pm
Location: Mierlo, Netherlands


Return to General Questions

Who is online

Users browsing this forum: Google [Bot], linkdexbot [Bot] and 1 guest

cron

x