diff --git a/README.md b/README.md index 18d1417..7a45b82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ OpenVPN3-QT ============ -OpenVPN3 QT Client written in Python3. +A simple OpenVPN3 Client written in Python3 & QT. ## OpenVPN 3 First and foremost, please download and install OpenVPN 3 from here: @@ -27,9 +27,7 @@ Once you know that openvpn3 is working, give this QT client a go! To install copy and paste the following commands in a terminal: ```shell -cd /opt && sudo mkdir openvpn3-qt && sudo chmod a+rw openvpn3-qt -git clone https://github.com/guy-keller/openvpn3-qt.git -cd openvpn3-qt && chmod +x install.sh && ./install.sh +curl -s "https://raw.githubusercontent.com/guy-keller/openvpn3-qt/master/install.sh" | bash ``` After running the commands above you are good to go. @@ -57,7 +55,7 @@ UI - Connected: Paste the following in a terminal: ```shell sudo rm -rf /opt/openvpn3-qt/ -sudo rm -rf /usr/share/applications/ovpn3-qt.desktop +sudo rm -rf /usr/share/applications/openvpn3-qt.desktop ``` ### Disclaimer diff --git a/install.sh b/install.sh index f1f6dde..1dab443 100644 --- a/install.sh +++ b/install.sh @@ -1,10 +1,16 @@ #!/bin/bash +echo "Thanks for choosing to install OpenVPN-QT" +echo "We will ask for elevated rights to install dependencies, and configure your system" +echo "- - - - -" + # Blowing away any previous installation -sudo rm -rf /opt/openvpn3-qt/ -sudo rm -rf /usr/share/applications/openvpn3-qt.desktop +sudo rm -rf /opt/openvpn3-qt/ || echo "No previous installation found - p1" +sudo rm -rf /usr/share/applications/openvpn3-qt.desktop || echo "No previous installation found - p2" +echo "- - - - -" OS_RELEASE=$(cat /etc/os-release | grep NAME) +echo "Installing OpenVPN3-QT on: $OS_RELEASE" # Installing deps on DEB based distros if [[ "$OS_RELEASE" == *"Debian"* ]] || [[ "$OS_RELEASE" == *"Ubuntu"* ]]; then @@ -20,12 +26,21 @@ if [[ "$OS_RELEASE" == *"Fedora"* ]] || [[ "$OS_RELEASE" == *"Red Hat"* ]]; then sudo dnf install git -y fi -# Cloning the project +# Creates the folder where the project gets checked out with the right perms cd /opt -git clone https://github.com/guy-keller/openvpn3-qt.git +sudo mkdir openvpn3-qt sudo chmod a+rw openvpn3-qt +# Cloning the project +git clone https://github.com/guy-keller/openvpn3-qt.git + # Set up the app locally ( creates venv and shortcut ) cd /opt/openvpn3-qt/other/ chmod +x setup-app.sh source setup-app.sh + +echo "- - - - -" +echo "If you see any error messages, please do raise a bug on GitHub thanks!" +echo "Otherwise, congratulations OpenVPN3-QT has been installed!" +echo "Push the 'super' button, look for it and start using." +echo "You can now close this window, cheers!"