Compare commits
3 Commits
a422e3d48d
...
d3dd02206d
Author | SHA1 | Date | |
---|---|---|---|
|
d3dd02206d | ||
|
604523ba1f | ||
|
91b271910f |
9
BashScripts/install-ollama.sh
Normal file
9
BashScripts/install-ollama.sh
Normal 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
|
@ -5,7 +5,7 @@ if [[ $EUID -ne 0 ]]; then
|
||||
exec sudo /bin/bash "$0" "$@"
|
||||
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 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 VPN public hostname: " -i "home.myspace.nu" VPN_PUBLIC_HOST
|
||||
read -e -p "Enter VPN public portnumber: " -i "51820" VPN_PUBLIC_PORT
|
||||
|
@ -75,6 +75,13 @@ if %ERRORLEVEL% EQU 1 (
|
||||
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 All done!
|
||||
popd
|
||||
|
Loading…
x
Reference in New Issue
Block a user