Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # test script
- prepchroot(){
- chrootdir='/home/user/@userdata/chroot' ;
- #x="proc dev/pts sys" ;
- #for i in $x; do
- sudo mount --verbose --bind /proc $chrootdir/$1/proc ;
- sudo mount --verbose -t devpts /dev/pts $chrootdir/$1/dev/pts
- sudo mount --verbose -t sysfs /sys $chrootdir/$1/sys
- #echo "Mounted: /$i";
- #done;
- #if [ -z $DISPLAY ]; then export DISPLAY=':0.0' && echo "setting= $DISPLAY" ; else echo "exist= $DISPLAY" ; fi; #set disk size, if not already set
- #xhost +
- }
- chrootumnt(){
- chrootdir='/home/user/@userdata/chroot' ;
- x="proc dev/pts sys" ;
- for i in $x; do
- sudo umount --verbose $chrootdir/$1-chroot/$i ;
- echo "Unmounted: /$i";
- done;
- }
- prepchroot $1
- #chrootumnt $1
- #pkexec chroot ~/@userdata/chroot/debian-chroot /usr/bin/firefox --display=:0.0 > /dev/null 2>&1 &
- # gnome-system-monitor stacer glances
- # sudo chroot --userspec=1000:1000 debian-chroot sudo /usr/bin/login -f user
- # sudo chroot debian-chroot /usr/bin/sudo /usr/bin/login -f user
- # Xnest -ac -geometry 1350x680+0+0 :10 > /dev/null 2>&1 &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement