Results 1 to 4 of 4
Ok, Why isnt this working.
I have a FedoraCore 6 PC with Fluxbox running.
I use fbdesk for Icons and that is were the Mayhem begins. They dont go to ...
- 10-26-2007 #1
Chroot + Bash Scripting
Ok, Why isnt this working.
I have a FedoraCore 6 PC with Fluxbox running.
I use fbdesk for Icons and that is were the Mayhem begins. They dont go to the place that I've put them when I closed the system the last time.
Ok but I have linked the Icons to a Script.
Eg Firefox.
When somebody clicks the Firefox button the following script is executed.:
I get some troubles with that. Since he Chroots and then stops with the script.Code:#!/bin/bash #if [ sh `~/etc/chkmount` ] (This doesnt work either but I dont really care about that now) #{ sh ~/.buildchroot #} sudo /usr/sbin/chroot ~ /bin/bash perl upd_firefox.pl firefox perl upd_firefox.pl
Is there a way to Chroot and then continue with the script?
As you see this script also starts .buildchroot
That code is:
Ok and when I run the entire script from Bash Myself without going to the Button firstCode:sudo /bin/mount -r -o bind /lib /home/gentoo/lib sudo /bin/mount -r -o bind /dev /home/gentoo/dev sudo /bin/mount -r -o bind /bin /home/gentoo/bin sudo /bin/mount -r -o bind /usr /home/gentoo/usr sudo /bin/mount -o bind /var /home/gentoo/var sudo /bin/mount -r -o bind /sys /home/gentoo/sys sudo /bin/mount -r -o bind /sbin /home/gentoo/sbin sudo /bin/mount -r -o bind /etc /home/gentoo/etc
And I am in the Chroot.
When I enter firefox he doesnt start it..
Does anyone have any idea were I am making a Mistake..
Thanks alot.
Cheers,
Robin
Edit:
I thought I had to say this:
THIS IS ON THE USER ACCOUNT THAT IS NAMED GENTOO
- 10-29-2007 #2
I changed one code now.
But it still doesnt work..
isCode:#!/bin/bash #if [ sh `~/etc/chkmount` ] (This doesnt work either but I dont really care about that now) #{ sh ~/.buildchroot #} sudo /usr/sbin/chroot ~ /bin/bash perl upd_firefox.pl firefox perl upd_firefox.pl
I even tryed to put && behind the ChrootPart..Code:#!/bin/bash #if [ sh `~/etc/chkmount` ] (This doesnt work either but I dont really care about that now) #{ sh ~/.buildchroot #} sudo /usr/sbin/chroot ~ /bin/bash perl /.src/upd_firefox.pl firefox perl /.src/upd_firefox.pl
Why doesnt Firefox start in Chrootmode?
Well, anywho wants to help me
Cheers,
Robin
- 11-01-2007 #3
Bouce.
I hope my Topic is on the Top again and that there is anyone who might be able to help me
Cheers,
Robin
Edit: I think I fixed it.
But I cant test since my sudo isnt corrent...
but I am really a idiot.
I forgot that the syntax was:
chroot {DEST} {COMMAND TO RUN}
Thanks alot.. anywh.
- 11-02-2007 #4


Reply With Quote