# HG changeset patch # User wolffd # Date 1528132593 -3600 # Node ID ad0bfbaddf6ab511258860324da3f4996aa26ff2 # Parent 5d56ccfa6210088c3fdee67151eff59fca83c72d Change for default options in docker diff -r 5d56ccfa6210 -r ad0bfbaddf6a etc/setup_as_root.sh --- a/etc/setup_as_root.sh Mon Sep 18 14:48:18 2017 +0100 +++ b/etc/setup_as_root.sh Mon Jun 04 18:16:33 2018 +0100 @@ -1,16 +1,16 @@ #!/bin/sh # ---------------------- CONFIGURATION PART ---------------------- -HAVE_MATLAB=yes +HAVE_MATLAB=no SWI_GUI=no SETUP_X=yes HEADLESS=yes DRY_RUN=yes -if [ $# -gt 0 ]; then - echo "Setting DRY_RUN to $1" 1>&2 - DRY_RUN=$1 -fi +#if [ $# -gt 0 ]; then +# echo "Setting DRY_RUN to $1" 1>&2 +# DRY_RUN=$1 +#fi # If DRY_RUN=yes, then this script will do nothing, but will output the commands # it would have done to stdout. @@ -30,13 +30,13 @@ echo 1>&2 DO=echo else - echo "I am going to do everything FOR REAL. Type 'yes' and hit return to continue" - read CONTINUE - if [ $CONTINUE == yes ]; then - echo "Ok, going ahead with setup" - else - exit 1 - fi + echo "I am going to do everything FOR REAL." + #read CONTINUE + #if [ $CONTINUE == yes ]; then + # echo "Ok, going ahead with setup" + #else + # exit 1 + #fi DO= fi # APT GET installs @@ -75,11 +75,13 @@ $DO dpkg-reconfigure x11-common else echo - echo "I am about to call dpkg-reconfigure x11-common." - echo "Please select 'Anybody' to allow dml to start the X server automatically." - echo "Press RETURN to continue." - read - $DO dpkg-reconfigure x11-common + echo "I am about to configure x11-common." + #echo "Please select 'Anybody' to allow dml to start the X server automatically." + #echo "Press RETURN to continue." + #read + #$DO dpkg-reconfigure x11-common + sudo sed -i \ + 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config fi fi