updated script

This commit is contained in:
Chad Nelson 2023-09-29 10:25:54 -06:00
parent 8613b1c2f4
commit bab4e0e848
2 changed files with 2 additions and 19 deletions

View file

@ -5,24 +5,6 @@ then
tar -xvzf $HOME/.guix/qemu/guix.qcow2.tar.gz -C $HOME/.guix/qemu/ tar -xvzf $HOME/.guix/qemu/guix.qcow2.tar.gz -C $HOME/.guix/qemu/
fi fi
if [ ! -f $HOME/.guix/home/.bashrc ]
then
touch $HOME/.guix/home/.bashrc
echo 'DISPLAY=' > $HOME/.guix/home/.bashrc
echo 'CC=gcc' >> $HOME/.guix/home/.bashrc
#echo 'if [ ! -w "~/.bashrc" ]' >> $HOME/.guix/home/.bashrc
#echo 'then' >> $HOME/.guix/home/.bashrc
#echo ' sudo chown -R admin /mnt/macos' >> $HOME/.guix/home/.bashrc
#echo 'fi' >> $HOME/.guix/home/.bashrc
fi
if [ -f /opt/X11/bin/xquartz ]
then
IP=$(/usr/sbin/ipconfig getifaddr en0)
/opt/X11/bin/xhost + "$IP"
sed -i'' -e "s/.*DISPLAY.*/export DISPLAY=$IP:0/g" $HOME/.guix/home/.bashrc
fi
chmod 700 $HOME/.guix/ssh-cert/msg_rsa chmod 700 $HOME/.guix/ssh-cert/msg_rsa
echo "GUIX is now running" echo "GUIX is now running"

3
qemu/.gitignore vendored
View file

@ -1 +1,2 @@
guix.qcow2 guix*