Mercurial > hg > dml-home
changeset 80:ad0bfbaddf6a dml-dockerised
Change for default options in docker
author | wolffd <wolffd.mail@googlemail.com> |
---|---|
date | Mon, 04 Jun 2018 18:16:33 +0100 |
parents | 5d56ccfa6210 |
children | 85ab26e84d4e |
files | etc/setup_as_root.sh |
diffstat | 1 files changed, 19 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- 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