You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script will install OpenVPN-UI and all the dependencies on your local environment. No containers will be used.
Do you want to continue? (y/n)y
Golang version 1.21 is not installed.
Would you like to install it? (y/n)
Would you like to continue without Golang 1.21 installation? (y/n) n
Installation terminated by user.
root@rusty-familly:/opt# nano standalone-install.sh
root@rusty-familly:/opt# ./standalone-install.sh
This script will install OpenVPN-UI and all the dependencies on your local environment. No containers will be used.
Do you want to continue? (y/n)y
Golang version 1.21 is not installed.
Would you like to install it? (y/n) y
--2024-10-05 11:21:12-- https://golang.org/dl/go1.21.5.linux-amd64.tar.gz
Resolving golang.org (golang.org)... 2a00:1450:4007:819::2011, 142.250.178.145
Connecting to golang.org (golang.org)|2a00:1450:4007:819::2011|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2024-10-05 11:21:12 ERROR 403: Forbidden.
tar (child): go1.21.5.linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
----------------------------
Would you like to run apt-get update? (y/n) y
Updating current environment with apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:4 https://download.docker.com/linux/debian bullseye InRelease
Get:5 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Hit:6 https://deb.nodesource.com/node_18.x bullseye InRelease
Hit:7 https://packages.sury.org/php bullseye InRelease
Hit:8 https://download.virtualbox.org/virtualbox/debian bullseye InRelease
Hit:9 http://nginx.org/packages/mainline/debian bullseye InRelease
Hit:10 http://ftp2.fr.debian.org/debian bullseye InRelease
Hit:12 http://www.deb-multimedia.org bullseye InRelease
Hit:13 https://packages.amplify.nginx.com/py3//debian bullseye InRelease
Hit:11 https://packagecloud.io/crowdsec/crowdsec/debian bullseye InRelease
Hit:14 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Fetched 93.0 kB in 2s (44.0 kB/s)
Reading package lists... Done
Would you like to install the dependencies (sed, gcc, git, musl-tools, easy-rsa, curl, jq, oathtool)? (y/n) y
Installing dependencies (sed, gcc, git, musl-tools, easy-rsa, curl, jq, oathtool)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u13).
easy-rsa is already the newest version (3.0.8-1).
gcc is already the newest version (4:10.2.1-1).
jq is already the newest version (1.6-2.1).
musl-tools is already the newest version (1.2.2-1).
oathtool is already the newest version (2.6.6-3).
sed is already the newest version (4.7-1).
git is already the newest version (1:2.30.2-1+deb11u3).
0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
Would you like to download all necessary Go modules? (y/n) y
Downloading all Go modules (go mod download)
go: no modules specified (see 'go help mod download')
Would you like to install Beego v2? (y/n)
in .sh script, where you've wget https://golangblablabla, after wget, add --inet4-only for solved the issue for 403 forbidden access...
trying to debug other issue, will edit post after if can fix :)
Fix pour Go installation:
# Check if Go is installed and the version is 1.21
go_version=$(go version 2>/dev/null | awk '{print $3}' | tr -d "go")
if [[ -z "$go_version" || "$go_version" < $GOVERSION ]]
then
echo "Golang version 1.21 is not installed."
read -p "Would you like to install it? (y/n) " -n 1 -r
echo # move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Install Go
wget --inet4-only https://golang.org/dl/go1.21.5.linux-amd64.tar.gz # x86_64 only, at the monment.
if [[ ! -f "go1.21.5.linux-amd64.tar.gz" ]]; then
echo "ARCHIVE NOT FOUND"
exit 1
fi
sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz
# Add Go to PATH for the current session
export PATH=$PATH:/usr/local/go/bin
# Re-check if Go is available
if ! command -v go &> /dev/null
then
echo "Go installation failed or Go binary is not in PATH"
exit 1
fi
# Now that Go is available, get GOPATH and add it to .bashrc
GOPATH=$(go env GOPATH)
echo "export PATH=$PATH:$(go env GOPATH)/bin" >> ~/.bashrc
source ~/.bashrc
echo "Go has been installed and configured successfully."
else
read -p "Would you like to continue without Golang 1.21 installation? (y/n) " -n 1 -r
echo # move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
echo "Installation terminated by user."
exit 1
fi
fi
fi
hello,
./standalone-install.sh
in .sh script, where you've wget https://golangblablabla, after wget, add --inet4-only for solved the issue for 403 forbidden access...
trying to debug other issue, will edit post after if can fix :)
Fix pour Go installation:
go: downloading go1.22.3 (linux/amd64)
go: download go1.22.3: golang.org/toolchain@v0.0.1-go1.22.3.linux-amd64: reading https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.22.3.linux-amd64.zip: 403 Forbidden
go: downloading go1.22.3 (linux/amd64)
go: download go1.22.3: golang.org/toolchain@v0.0.1-go1.22.3.linux-amd64: reading https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.22.3.linux-amd64.zip: 403 Forbidden
The text was updated successfully, but these errors were encountered: