You are not logged in.

#1 2006-08-22 22:48:15

gs
Member
From: UK
Registered: 2004-03-06
Posts: 147

Application Start Up Scripts, When Chrooting

I described earlier, using the command
xhost +localhost; sudo chroot /mnt/sda5_arch32 inside of a kdesktop launcher, whilst checking the options for doing it within a shell and keeping it open.

Now, say one wants to open ekiga in that chrooted shell, then this script, entitled ekiga1 placed inside of /mnt/sda5_arch32/usr/bin is kind of handy.

#!/bin/bash
sudo /etc/rc.d/network restart
wait
sudo -u gs ekiga

So, in that chrooted shell, enter ekiga1 and press return; and hey presto.

Is there anything that can be improved on, here.

You see, chrooting is generally fine except for two things. Firstly, you have to take stock of where you have moved to, as root. Secondly, when you want to use it, you invariably want to make it as quick and easy as possible -- because if you do it all line-by-line, it takes your concentration, away from your earlier line of thinking.

Geoff


What the beep was that?

Offline

Board footer

Powered by FluxBB