shell/install/openvpn

38 lines
912 B
Plaintext
Raw Normal View History

2022-11-30 09:51:28 +00:00
#!/bin/bash
##makedesc: Install openvpn v2.5.8 (src)
# https://openvpn.net/community-downloads/
# https://openvpn.net/community-resources/installing-openvpn/
[ $1 ] && OVPNVER="$1" || OVPNVER='2.5.8'
echo
echo "==============================================="
echo "Installing openvpn v${OVPNVER} (src)..."
echo "==============================================="
echo
set -ex
sudo apt install -y \
libssl-dev \
liblzo2-dev \
libpam0g-dev
2023-04-14 04:06:40 +00:00
mkdir -p "$HOME/install/"
2022-11-30 09:51:28 +00:00
wget "https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVER}.tar.gz" \
-O "/tmp/openvpn-${OVPNVER}.tar.gz"
2023-04-14 04:06:40 +00:00
tar -xzf "/tmp/openvpn-${OVPNVER}.tar.gz" -C "$HOME/install/"
cd "$HOME/install/openvpn-${OVPNVER}"
2022-11-30 09:51:28 +00:00
sudo ./configure && \
sudo make && \
sudo make install &&
sudo apt install -y \
network-manager-openvpn \
2023-04-11 15:43:14 +00:00
network-manager-openvpn-gnome
echo
echo "Finish!"
openvpn --version
echo