updated script
This commit is contained in:
parent
8613b1c2f4
commit
bab4e0e848
2 changed files with 2 additions and 19 deletions
|
@ -5,24 +5,6 @@ then
|
|||
tar -xvzf $HOME/.guix/qemu/guix.qcow2.tar.gz -C $HOME/.guix/qemu/
|
||||
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
|
||||
|
||||
echo "GUIX is now running"
|
||||
|
|
3
qemu/.gitignore
vendored
3
qemu/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
guix.qcow2
|
||||
guix*
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue