comparison etc/setup_as_root.sh @ 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 2c279c979bcd
children 85ab26e84d4e
comparison
equal deleted inserted replaced
78:5d56ccfa6210 80:ad0bfbaddf6a
1 #!/bin/sh 1 #!/bin/sh
2 # ---------------------- CONFIGURATION PART ---------------------- 2 # ---------------------- CONFIGURATION PART ----------------------
3 3
4 HAVE_MATLAB=yes 4 HAVE_MATLAB=no
5 SWI_GUI=no 5 SWI_GUI=no
6 SETUP_X=yes 6 SETUP_X=yes
7 HEADLESS=yes 7 HEADLESS=yes
8 DRY_RUN=yes 8 DRY_RUN=yes
9 9
10 if [ $# -gt 0 ]; then 10 #if [ $# -gt 0 ]; then
11 echo "Setting DRY_RUN to $1" 1>&2 11 # echo "Setting DRY_RUN to $1" 1>&2
12 DRY_RUN=$1 12 # DRY_RUN=$1
13 fi 13 #fi
14 14
15 # If DRY_RUN=yes, then this script will do nothing, but will output the commands 15 # If DRY_RUN=yes, then this script will do nothing, but will output the commands
16 # it would have done to stdout. 16 # it would have done to stdout.
17 17
18 # ------------------- END OF CONFIGURATION PART ------------------ 18 # ------------------- END OF CONFIGURATION PART ------------------
28 echo 1>&2 28 echo 1>&2
29 echo " \$ sh setup_as_root.sh no" 1>&2 29 echo " \$ sh setup_as_root.sh no" 1>&2
30 echo 1>&2 30 echo 1>&2
31 DO=echo 31 DO=echo
32 else 32 else
33 echo "I am going to do everything FOR REAL. Type 'yes' and hit return to continue" 33 echo "I am going to do everything FOR REAL."
34 read CONTINUE 34 #read CONTINUE
35 if [ $CONTINUE == yes ]; then 35 #if [ $CONTINUE == yes ]; then
36 echo "Ok, going ahead with setup" 36 # echo "Ok, going ahead with setup"
37 else 37 #else
38 exit 1 38 # exit 1
39 fi 39 #fi
40 DO= 40 DO=
41 fi 41 fi
42 # APT GET installs 42 # APT GET installs
43 $DO apt-get install build-essential autoconf mercurial git pkg-config screen 43 $DO apt-get install build-essential autoconf mercurial git pkg-config screen
44 $DO apt-get install libossp-uuid-dev libssl-dev zlib1g-dev unixodbc-dev libsmf-dev libsqlite3-dev 44 $DO apt-get install libossp-uuid-dev libssl-dev zlib1g-dev unixodbc-dev libsmf-dev libsqlite3-dev
73 73
74 if [ $DRY_RUN == yes ]; then 74 if [ $DRY_RUN == yes ]; then
75 $DO dpkg-reconfigure x11-common 75 $DO dpkg-reconfigure x11-common
76 else 76 else
77 echo 77 echo
78 echo "I am about to call dpkg-reconfigure x11-common." 78 echo "I am about to configure x11-common."
79 echo "Please select 'Anybody' to allow dml to start the X server automatically." 79 #echo "Please select 'Anybody' to allow dml to start the X server automatically."
80 echo "Press RETURN to continue." 80 #echo "Press RETURN to continue."
81 read 81 #read
82 $DO dpkg-reconfigure x11-common 82 #$DO dpkg-reconfigure x11-common
83 sudo sed -i \
84 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
83 fi 85 fi
84 fi 86 fi
85 87