mount guest dirs to /root/ so they are shared
parent
6e18e2cb4c
commit
8840c0f5e3
|
|
@ -20,22 +20,10 @@ cd /
|
||||||
unsquashfs /$NAME-stock.sb
|
unsquashfs /$NAME-stock.sb
|
||||||
|
|
||||||
# create user directories
|
# create user directories
|
||||||
mkdir -p /squashfs-root/home/guest/Desktop
|
for dir in Desktop Documents Downloads Music Pictures Public Templates Videos; do
|
||||||
mkdir -p /squashfs-root/home/guest/Documents
|
mkdir -p /squashfs-root/home/guest/$dir
|
||||||
mkdir -p /squashfs-root/home/guest/Downloads
|
mkdir -p /squashfs-root/root/$dir
|
||||||
mkdir -p /squashfs-root/home/guest/Music
|
done
|
||||||
mkdir -p /squashfs-root/home/guest/Pictures
|
|
||||||
mkdir -p /squashfs-root/home/guest/Public
|
|
||||||
mkdir -p /squashfs-root/home/guest/Templates
|
|
||||||
mkdir -p /squashfs-root/home/guest/Videos
|
|
||||||
ln -s /home/guest/Desktop /squashfs-root/root/Desktop
|
|
||||||
ln -s /home/guest/Documents /squashfs-root/root/Documents
|
|
||||||
ln -s /home/guest/Downloads /squashfs-root/root/Downloads
|
|
||||||
ln -s /home/guest/Music /squashfs-root/root/Music
|
|
||||||
ln -s /home/guest/Pictures /squashfs-root/root/Pictures
|
|
||||||
ln -s /home/guest/Public /squashfs-root/root/Public
|
|
||||||
ln -s /home/guest/Templates /squashfs-root/root/Templates
|
|
||||||
ln -s /home/guest/Videos /squashfs-root/root/Videos
|
|
||||||
chown -R guest.users /squashfs-root/home/guest
|
chown -R guest.users /squashfs-root/home/guest
|
||||||
|
|
||||||
# then, we want to patch it to implement window resizing!
|
# then, we want to patch it to implement window resizing!
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,13 @@ xmodmap "/root/.Xmodmap"
|
||||||
# merge xresource settings
|
# merge xresource settings
|
||||||
xrdb -merge ~/.Xresources
|
xrdb -merge ~/.Xresources
|
||||||
|
|
||||||
# Put some useful directories in users home dir
|
# Share common directories with guest user. This is necessary
|
||||||
xdg-user-dirs-update
|
# because some apps like chromium must be running under guest
|
||||||
|
for dir in Desktop Documents Downloads Music Pictures Public Templates Videos; do
|
||||||
|
if ! mountpoint /root/$dir; then
|
||||||
|
mount --bind /home/guest/$dir /root/$dir
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# set background color and big wait mouse cursor
|
# set background color and big wait mouse cursor
|
||||||
xsetroot -solid '#111111'
|
xsetroot -solid '#111111'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue