Compare commits

..

3 Commits

Author SHA1 Message Date
Johan
d3dd02206d Update VPN IP range in Wireguard installation 2025-02-17 10:12:45 +01:00
Johan
604523ba1f Add Llama bash installation script 2025-02-17 10:12:17 +01:00
Johan
91b271910f Add Disable UAC to Window tweaks 2025-02-17 10:11:27 +01:00
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# Make sure script is ran as root
if [[ $EUID -ne 0 ]]; then
exec sudo /bin/bash "$0" "$@"
fi
curl -fsSL https://ollama.com/install.sh | sh
ollama serve
# docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

View File

@ -5,7 +5,7 @@ if [[ $EUID -ne 0 ]]; then
exec sudo /bin/bash "$0" "$@" exec sudo /bin/bash "$0" "$@"
fi fi
read -e -p "Enter lan NIC: " -i $(ip route | grep default | sed -e 's/^.*dev.//' -e 's/.proto.*//') NIC_NAME read -e -p "Enter lan NIC: " -i $(ip route | grep default | sed -e 's/^.*dev.//' -e 's/.proto.*//') NIC_NAME
read -e -p "Enter VPN subnet: " -i "192.168.200" VPN_SUBNET read -e -p "Enter VPN subnet: " -i "172.19.100" VPN_SUBNET
read -e -p "Enter LAN subnet: " -i "192.168.0" LAN_SUBNET read -e -p "Enter LAN subnet: " -i "192.168.0" LAN_SUBNET
read -e -p "Enter VPN public hostname: " -i "home.myspace.nu" VPN_PUBLIC_HOST read -e -p "Enter VPN public hostname: " -i "home.myspace.nu" VPN_PUBLIC_HOST
read -e -p "Enter VPN public portnumber: " -i "51820" VPN_PUBLIC_PORT read -e -p "Enter VPN public portnumber: " -i "51820" VPN_PUBLIC_PORT

View File

@ -75,6 +75,13 @@ if %ERRORLEVEL% EQU 1 (
taskkill /F /IM explorer.exe & start explorer taskkill /F /IM explorer.exe & start explorer
) )
choice /C yn /M "Disable UAC?"
if %ERRORLEVEL% EQU 1 (
echo Disabling UAC.
REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system /v EnableLUA /t REG_DWORD /d 0 /F >nul 2>&1
echo You must restart the computer before changes are in effect.
)
echo. echo.
echo All done! echo All done!
popd popd