bjornzd Posted March 2, 2020 Share Posted March 2, 2020 Bonjour, J'essaye en vain d'installer le VPN payant Cyberghost sous Elementary OS mais n'y parviens pas, si quelqu'un en sait plus sur comment l'adapter à cet OS merci de le partager ici :) Link to comment Share on other sites More sharing options...
0 Maxwell Posted April 27, 2020 Share Posted April 27, 2020 Bonjour, Voici la solution, il faut tout simplement supprimer la vérification de la version à l'installation pour ceci il faut modifier le fichier install.sh. Commande : nano install.sh Remplacer : #!/bin/bash # if user is not running the command as root if [ "$UID" -ne 0 ]; then # output message echo "Please run the installer with SUDO!" # stop script exit fi # check update apt update > /dev/null 2>&1 # output message echo -e "\nCyberGhost Installer ...\n" # get GLIBC version glibcVersion=$(ldd --version | grep -i ldd | awk -F' ' {'print $5'}) # get distribution version ubuntuDistroVersion=$(lsb_release -sr) distroName=$(lsb_release -a | grep -i "Distributor ID:" | awk -F' ' {'print $3'}) echo "Checking if glibc version is compatible" # check if GLIBC version is compatible if [ "$ubuntuDistroVersion" == "16.04" ]; then if [ "$glibcVersion" == "2.23" ] ; then echo "The glibc version is compatible, continue..." else echo "THe glibc version is incompatible, exiting setup..." exit fi elif [ "$ubuntuDistroVersion" == "18.04" ] || [ "$distroName" == "LinuxMint" ]; then if [ "$glibcVersion" == "2.27" ]; then echo "The glibc version is compatible, continue..." else echo "The glibc version is incompatible, exiting setup..." exit fi elif [ "$ubuntuDistroVersion" == "19.10" ]; then if [ "$glibcVersion" == "2.30" ]; then echo "The glibc version is compatible, continue..." else echo "The glibc version is incompatible, exiting setup..." exit fi elif [ "$distroName" == "Kali" ] || [ "$ubuntuDistroVersion" == "19.04" ]; then if [ "$glibcVersion" == "2.29" ]; then echo "The glibc version is compatible, continue..." else echo "The glibc version is incompatible, exiting setup..." exit fi else echo "Couldn't detect a valid version of your distribution." echo "Make sure you have downloaded the correct install package for your distribution" echo "Note: We support only the following distributions for Debian based OS:" echo "" echo "-Ubuntu 16.04 " echo "-Ubuntu 18.04 " echo "-Ubuntu 19.04 " echo "-Ubuntu 19.10 " echo "-Linux Mint 19.2 " echo "-PopOS 19.10 " echo "-Kali 2019/2020 (glibc version should be 2.29 in order to work) " exit fi # define required packages requiredPackages=(curl openvpn resolvconf wireguard) # loop through packages for package in "${requiredPackages[@]}"; do # set package p="$package" # if package is opwireguardenvpn if [ "$package" == "wireguard" ]; then # check if wireguard ppa exist responseCode=$(grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -c wireguard) # if ppa does not exist if [ "$responseCode" == "0" ]; then # install wireguard ppa add-apt-repository -y ppa:wireguard/wireguard > /dev/null 2>&1 apt update > /dev/null 2>&1 fi # change package name p="wg" fi # check if package is installed and get exit code responseCode=$(which "$p" > /dev/null 2>&1; echo "$?") # output message echo -n "Check if \"$package\" package is already installed ... " # if package is installed if [ "$responseCode" == "0" ]; then # output message echo "Yes" # if package is openvpn if [ "$package" == "openvpn" ]; then # get openvpn version openvpnVersion=$(openvpn --version | head -n 1 | awk '{print $2}') # get major version majorVersion=$(echo "$openvpnVersion" | awk -F. '{print $1}') # get minor version minorVersion=$(echo "$openvpnVersion" | awk -F. '{print $2}') # output message echo -n "Checking OpenVPN version ... " if [ $majorVersion -ge 2 ] && [ $minorVersion -gt 3 ]; then # output message echo "Latest ..." else # output message echo "The OpenVPN version is too old ... " echo "Removing old package ... " # uninstall package apt remove "$package" -y > /dev/null 2>&1 # output message echo -n "Installing new package ... " curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list apt update > /dev/null 2>&1 apt install "$package" -y > /dev/null 2>&1 # output message echo "Done." fi fi else # output message echo -n "No, installing ... " if [ "$package" == "openvpn" ]; then # get openvpn version from apt openvpnVersion=$(apt show openvpn|grep "Version:" | awk '{ print $2 }') version=$(echo "$openvpnVersion"| awk -F'-' '{print $1}') # get major version majorVersion=$(echo "$version" | awk -F. '{print $1}') # get minor version minorVersion=$(echo "$version" | awk -F. '{print $2}') # if version is lower then 2.4 if [ $majorVersion -ge 2 ] && [ $minorVersion -lt 4 ]; then curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list apt update > /dev/null 2>&1 fi fi # install package apt install "$package" -y > /dev/null 2>&1 # output message echo "Done." fi done # output message echo "Continue ..." # if directory exist if [ -d /usr/local/cyberghost ]; then # remove directory rm -rf /usr/local/cyberghost fi echo "Installing application ..." # if logs directory does not exist if [ ! -d /usr/local/cyberghost ]; then # create logs directory if not exist mkdir /usr/local/cyberghost fi # copy certificates to local directory cp -r cyberghost/* /usr/local/cyberghost # change directory permissions chmod -R 755 /usr/local/cyberghost # output message echo "Create symlinks ..." # if symlink exist if [ -L /usr/bin/cyberghostvpn ]; then # remove old symlink rm /usr/bin/cyberghostvpn fi # create symlink ln -sf /usr/local/cyberghost/cyberghostvpn /usr/bin/cyberghostvpn # setup application cyberghostvpn --setup PAR : #!/bin/bash # if user is not running the command as root if [ "$UID" -ne 0 ]; then # output message echo "Please run the installer with SUDO!" # stop script exit fi # check update apt update > /dev/null 2>&1 # output message echo -e "\nCyberGhost Installer ...\n" # get GLIBC version glibcVersion=$(ldd --version | grep -i ldd | awk -F' ' {'print $5'}) # get distribution version ubuntuDistroVersion=$(lsb_release -sr) distroName=$(lsb_release -a | grep -i "Distributor ID:" | awk -F' ' {'print $3'}) echo "Checking if glibc version is compatible" # define required packages requiredPackages=(curl openvpn resolvconf wireguard) # loop through packages for package in "${requiredPackages[@]}"; do # set package p="$package" # if package is opwireguardenvpn if [ "$package" == "wireguard" ]; then # check if wireguard ppa exist responseCode=$(grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -c wireguard) # if ppa does not exist if [ "$responseCode" == "0" ]; then # install wireguard ppa add-apt-repository -y ppa:wireguard/wireguard > /dev/null 2>&1 apt update > /dev/null 2>&1 fi # change package name p="wg" fi # check if package is installed and get exit code responseCode=$(which "$p" > /dev/null 2>&1; echo "$?") # output message echo -n "Check if \"$package\" package is already installed ... " # if package is installed if [ "$responseCode" == "0" ]; then # output message echo "Yes" # if package is openvpn if [ "$package" == "openvpn" ]; then # get openvpn version openvpnVersion=$(openvpn --version | head -n 1 | awk '{print $2}') # get major version majorVersion=$(echo "$openvpnVersion" | awk -F. '{print $1}') # get minor version minorVersion=$(echo "$openvpnVersion" | awk -F. '{print $2}') # output message echo -n "Checking OpenVPN version ... " if [ $majorVersion -ge 2 ] && [ $minorVersion -gt 3 ]; then # output message echo "Latest ..." else # output message echo "The OpenVPN version is too old ... " echo "Removing old package ... " # uninstall package apt remove "$package" -y > /dev/null 2>&1 # output message echo -n "Installing new package ... " curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list apt update > /dev/null 2>&1 apt install "$package" -y > /dev/null 2>&1 # output message echo "Done." fi fi else # output message echo -n "No, installing ... " if [ "$package" == "openvpn" ]; then # get openvpn version from apt openvpnVersion=$(apt show openvpn|grep "Version:" | awk '{ print $2 }') version=$(echo "$openvpnVersion"| awk -F'-' '{print $1}') # get major version majorVersion=$(echo "$version" | awk -F. '{print $1}') # get minor version minorVersion=$(echo "$version" | awk -F. '{print $2}') # if version is lower then 2.4 if [ $majorVersion -ge 2 ] && [ $minorVersion -lt 4 ]; then curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list apt update > /dev/null 2>&1 fi fi # install package apt install "$package" -y > /dev/null 2>&1 # output message echo "Done." fi done # output message echo "Continue ..." # if directory exist if [ -d /usr/local/cyberghost ]; then # remove directory rm -rf /usr/local/cyberghost fi echo "Installing application ..." # if logs directory does not exist if [ ! -d /usr/local/cyberghost ]; then # create logs directory if not exist mkdir /usr/local/cyberghost fi # copy certificates to local directory cp -r cyberghost/* /usr/local/cyberghost # change directory permissions chmod -R 755 /usr/local/cyberghost # output message echo "Create symlinks ..." # if symlink exist if [ -L /usr/bin/cyberghostvpn ]; then # remove old symlink rm /usr/bin/cyberghostvpn fi # create symlink ln -sf /usr/local/cyberghost/cyberghostvpn /usr/bin/cyberghostvpn # setup application cyberghostvpn --setup Cela fonctionne très bien. Bonne soirée ! Link to comment Share on other sites More sharing options...
0 Maxwell Posted April 27, 2020 Share Posted April 27, 2020 pas oublié de vider le sources.list et supprimer wirecard dans /etc/apt/sources.list.d/ Et faire un sudo apt-get update Link to comment Share on other sites More sharing options...
0 bjornzd Posted April 28, 2020 Author Share Posted April 28, 2020 Comme je disais plus haut, ça fonctionne sur mon macbook mais pas sur mon pc étrangement. olivier@olivier:~/Downloads/cyberghostvpn-ubuntu-18.04-1.3.2$ sudo bash install.sh [sudo] password for olivier: CyberGhost Installer ... No LSB modules are available. Checking if glibc version is compatible Check if "curl" package is already installed ... Yes Check if "openvpn" package is already installed ... Yes Checking OpenVPN version ... Latest ... Check if "resolvconf" package is already installed ... Yes Check if "wireguard" package is already installed ... Yes Continue ... Installing application ... Create symlinks ... Do you want to override the original configuration file? [Y/n]: Y Setup account ... Enter CyberGhost username and press [ENTER]: x Enter CyberGhost password and press [ENTER]: y Traceback (most recent call last): File "cyberghostvpn.py", line 761, in <module> File "cyberghostvpn.py", line 370, in main File "cyberghostvpn.py", line 233, in setup File "cyberghostvpn.py", line 84, in createAccount File "libs/config.py", line 90, in getConfig Exception: The section "account" is missing configuration file! [24345] Failed to execute script cyberghostvpn Du coup j'ai essayé une autre approche, celle-ci : https://support.cyberghostvpn.com/hc/en-us/articles/213189889-How-to-configure-OpenVPN-for-Linux-Ubuntu-Terminal- Tout en faisant ça depuis Elementary OS et sa configuration VPN intégrée. Bizarrement, Elementary OS me dit que tout est ok, qu'il est bien connecté. Or si je vais sur le site de Cyberghost j'ai toujours le statut Non-Protégé... J'ai bien du mal à comprendre. Link to comment Share on other sites More sharing options...
0 bjornzd Posted April 29, 2020 Author Share Posted April 29, 2020 Oui pour le moment je ne sais lequel. Link to comment Share on other sites More sharing options...
0 Nikos Posted May 1, 2020 Share Posted May 1, 2020 Malheureusement, cela va s'avérer assez compliqué à dépanner, sans avoir de compte Cyberghost, ça sera quasiment mission impossible de pouvoir t'aider Link to comment Share on other sites More sharing options...
0 bjornzd Posted May 24, 2020 Author Share Posted May 24, 2020 Désolé pour le déterrage. Je raconte un peu ma vie mais du coup je cherche un moyen sous mon Elementary OS de pouvoir télécharger librement avec mon VPN CyberGhost comme vous l'aurez compris. N'arrivant pas à faire fonctionner le VPN je cherche une autre méthode. Je cherche une solution viable. Télécharger dans une VM dans Elementary OS avec ledit VPN et faire du drag and drop entre les machines ? ? Utiliser Wine et CyberGhost ? ? Me tourner vers une box dédiée ? Ou un seedbox ? Je suis desespéré. Link to comment Share on other sites More sharing options...
0 lafy Posted May 25, 2020 Share Posted May 25, 2020 Salut @bjornzd comme dit, c'est presque impossible à dépanner, à moins que... tu ne nous trouves ces fichiers python dont il est question, en général les fichiers python sont en clair, ils ne sont ni masqués, ni transformés en exécutables, essaie de nous trouver dans ces 2 fichiers cyberghostvpn.py et libs/config.py les lignes indiquées dans le message d'erreur et peut-être qu'on aura de la chance. Il semble qu'il manque un paramètre account dans un fichier de config. Link to comment Share on other sites More sharing options...
0 bjornzd Posted May 25, 2020 Author Share Posted May 25, 2020 Je ne trouve pas les fichiers python en question sur mon système. C'est possible qu'ils n'existent pas... Link to comment Share on other sites More sharing options...
0 lafy Posted June 8, 2020 Share Posted June 8, 2020 Oui, je pense que ces fichiers sont copiés, exécutés puis effacés aussitôt, c'est comme ça qu'ils protègent leur code. La solution la plus simple c'est de les contacter ou de choisir un autre vpn. Link to comment Share on other sites More sharing options...
0 bjornzd Posted June 10, 2020 Author Share Posted June 10, 2020 Citation Merci de nous avoir contactés. En ce qui concerne votre problème, pour le moment, nous ne supportons que la distribution Linux suivante : Ubuntu 16.04, 18.04, 19.04, et 20.04; Fedora 29, 30, 31, et 32; Mint 19; CentOS 7; PopOS; Kali; Nous espérons que l'OS élémentaire sera supporté dans un futur proche. Cependant, je crains de ne pouvoir fournir un calendrier pour tout changement ou nouvelle mise en œuvre. 1 Link to comment Share on other sites More sharing options...
0 suic1de Posted June 15, 2020 Share Posted June 15, 2020 Bonjour, je n'utilise pas vos guêpes, mais je n'ai pas trouvé d'autre forum, pour de l'aide, je suis tombé sur cette situation Traceback (most recent call last): File "cyberghostvpn.py", line 761, in <module> File "cyberghostvpn.py", line 509, in main File "servers/traffic.py", line 13, in __init__ File "libs/services.py", line 21, in __init__ File "libs/locales.py", line 24, in __init__ File "libs/user.py", line 37, in __init__ File "libs/auth.py", line 61, in __init__ File "libs/auth.py", line 80, in authenticate File "libs/api.py", line 209, in doPost File "libs/api.py", line 288, in __doRequest File "requests/models.py", line 892, in json File "json/__init__.py", line 354, in loads File "json/decoder.py", line 339, in decode File "json/decoder.py", line 357, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) [32400] Failed to execute script cyberghostvpn my oc kodachi 7.1(ubuntu 18.04) Link to comment Share on other sites More sharing options...
0 bjornzd Posted September 1, 2020 Author Share Posted September 1, 2020 Bonjour, Je crois avoir trouvé une solution : Network Settings puis onglet VPN puis + puis Import a saved VPN configuration puis importer le fichier .ovpn de la configuration suivante sur le site de CyberGhost.fr Routers or other devices Server configuration Protocol : Open VPN <= 2.3 Country : France Server group : z Username : x Password : y Pre-Shared : CyberGhost Extra Features Ne rien cocher ? ? 1 Link to comment Share on other sites More sharing options...
Question
bjornzd
Bonjour,
J'essaye en vain d'installer le VPN payant Cyberghost sous Elementary OS mais n'y parviens pas,
si quelqu'un en sait plus sur comment l'adapter à cet OS merci de le partager ici :)
Link to comment
Share on other sites
37 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now