diff --git a/modules/autohibernate.sh b/modules/autohibernate.sh index 0a3a4ab..3629813 100644 --- a/modules/autohibernate.sh +++ b/modules/autohibernate.sh @@ -27,7 +27,8 @@ if [ \$(xprintidle) -gt \$AUTOHIBERNATE_TIME ] ; then xdotool mousemove 0 0 # reset idle time # We need to enable the swap file to dump RAM to. - sudo swapon /swap-hibinit + [ -f /swap-hibinit] && \\ + sudo swapon /swap-hibinit # Just in case there is a client connected to the VNC server (there # shouldn't be), we should disconnect them to avoid confusing it diff --git a/modules/base.sh b/modules/base.sh index cc93f01..3603f1d 100644 --- a/modules/base.sh +++ b/modules/base.sh @@ -11,7 +11,7 @@ sudo apt-get -y -q update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -q \ jq \ tigervnc-standalone-server \ - ubuntu-mate-desktop + ubuntu-mate-desktop firefox # Don't boot into desktop (graphical.target) sudo systemctl set-default multi-user.target diff --git a/modules/libreoffice.ps1 b/modules/libreoffice.ps1 index d0f4882..3fd39e5 100644 --- a/modules/libreoffice.ps1 +++ b/modules/libreoffice.ps1 @@ -3,8 +3,8 @@ $ProgressPreference = 'SilentlyContinue' # Disable (slow) progress bar Set-Location C:\Tools -$LIBRE_VERSION = "7.5.4" -$LIBRE_HASH = "efca7b819427f709960437dc4f0c603d1a4f928493836781929f5472b376b864" +$LIBRE_VERSION = "7.6.2" +$LIBRE_HASH = "f6a3f0794b957e7e95219064639b2a67a315158e614c8cee58a352286b8f38ed" $LIBRE_URL = "https://mirrors.ukfast.co.uk/sites/documentfoundation.org/tdf/libreoffice/stable/${LIBRE_VERSION}/win/x86_64/LibreOffice_${LIBRE_VERSION}_Win_x86-64.msi" diff --git a/modules/msc_custom.sh b/modules/msc_custom.sh index 5b571a8..55c1199 100644 --- a/modules/msc_custom.sh +++ b/modules/msc_custom.sh @@ -46,6 +46,10 @@ echo "export LD_LIBRARY_PATH=$CUDNN_PATH:$HOME/conda/envs/msc/lib/:\$LD_LIBRARY_ from tensorflow.keras.applications import EfficientNetB0; \ model = EfficientNetB0(weights='imagenet')" +###################################################################### +# CUDA Toolkit +#sudo apt install -y nvidia-cuda-toolkit + ###################################################################### # Jupyter Notebook shortcut sudo tee /usr/local/bin/nb <