Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pkgbump1123 #20

Merged
merged 8 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/autohibernate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/libreoffice.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions modules/msc_custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
Expand Down
15 changes: 15 additions & 0 deletions modules/openjdk.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$ProgressPreference = 'SilentlyContinue' # Disable (slow) progress bar

Set-Location C:\Tools

$OPENJDK_URL="https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9.1/OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.msi"
$OPENJDK_HASH="cd7b319f6fbd7efc68a0e464c55c7f2a28d6b8be3d0bcda315a16f885c57cadb"

Invoke-WebRequest -Uri ${OPENJDK_URL} -OutFile OpenJDK17.msi
$hash = Get-FileHash -Path OpenJDK17.msi -Algorithm SHA256

if ( ${OPENJDK_HASH} -ne $hash.Hash ) {
throw("Invalid OpenJDK installer hash")
}

msiexec /i OpenJDK17.msi ADDLOCAL=FeatureJavaHome /quiet
8 changes: 8 additions & 0 deletions modules/openjdk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -eu

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
wget apt-transport-https gnupg
sudo apt-get -y -q update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y temurin-17-jdk
2 changes: 1 addition & 1 deletion modules/powerpi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Set-Location C:\Tools
$ProgressPreference = "SilentlyContinue" # PS progress bar is slow

$PBI_HASH = "511e86ab13e204a00b73301e70deb40e323f6c809277b8200df7160ea2a1bc4b"
$PBI_HASH = "250e751657a0de99da2bf6e5c1332e0e6f563aa71c0a3a52478ba6253318b267"
$PBI_URL = "https://download.microsoft.com/download/8/8/0/880BCA75-79DD-466A-927D-1ABF1F5454B0/PBIDesktopSetup_x64.exe"

Invoke-WebRequest -Uri ${PBI_URL} -OutFile PBIDesktopSetup_x64.exe
Expand Down
8 changes: 4 additions & 4 deletions modules/rstudio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ Set-Location C:\Tools
$ProgressPreference = "SilentlyContinue" # PS progress bar is slow

# R environment
Invoke-WebRequest -Uri "https://cloud.r-project.org/bin/windows/base/old/4.1.3/R-4.1.3-win.exe" -OutFile C:\Tools\R-installer.exe
Invoke-WebRequest -Uri "https://cloud.r-project.org/bin/windows/base/R-4.3.2-win.exe" -OutFile C:\Tools\R-installer.exe
Start-Process C:\Tools\R-installer.exe -ArgumentList "/VERYSILENT","/NORESTART" -NoNewWindow -Wait -PassThru

Invoke-WebRequest -Uri "https://download1.rstudio.org/desktop/windows/RStudio-2022.02.1-461.exe" -OutFile C:\Tools\RStudio-installer.exe
Invoke-WebRequest -Uri "https://s3.amazonaws.com/rstudio-ide-build/electron/windows/RStudio-2023.09.1-494.exe" -OutFile C:\Tools\RStudio-installer.exe
Start-Process C:\Tools\RStudio-installer.exe -ArgumentList "/S" -NoNewWindow -Wait -PassThru

Invoke-WebRequest -Uri "https://github.com/r-windows/rtools-installer/releases/download/2022-02-06/rtools40-x86_64.exe" -OutFile C:\Tools\RTools.exe
Invoke-WebRequest -Uri "https://cran.r-project.org/bin/windows/Rtools/rtools43/files/rtools43-5863-5818.exe" -OutFile C:\Tools\RTools.exe
Start-Process C:\Tools\RTools.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait -PassThru

$RConfig = @"
Expand All @@ -25,5 +25,5 @@ local({r <- getOption("repos")
# Set timezone
Sys.setenv(TZ='Europe/London')
"@
Set-Content "C:\Program Files\R\R-4.1.3\etc\Rprofile.site" $RConfig
Set-Content "C:\Program Files\R\R-4.3.2\etc\Rprofile.site" $RConfig
Set-Content "C:\Users\Administrator\Documents\.Renviron" "RSTUDIO_DISABLE_SECURE_DOWNLOAD_WARNING=1"