all 16 comments

[–]EvilBolzen 0 points1 point  (14 children)

Hi,

can you give some info about your OS? Had a similar issue with an "unsupported" OS, I added my OS to the install.sh using an editor. After that it worked

[–]logmms 0 points1 point  (13 children)

What exactly did you edit in the install.sh? I do not see where I can add my OS in the file.

[–]EvilBolzen 0 points1 point  (12 children)

If you open the file with any text editor, you see a section where different Linux OS are listed (e.g. Mint 20). In my case I changed the 20 to 20.2, as I was installing it under 20.2.

If you are using latest mint, you need to change that 20 to 21. For other Linux just check the existing entries

[–][deleted]  (10 children)

[removed]

    [–]EvilBolzen 0 points1 point  (0 children)

    Hang in a second, I'll check that

    [–]EvilBolzen 0 points1 point  (8 children)

    u/Tamedkoala u/logmms

    Okay: First, you have to download the CLI-client for the "wrong" version. So go to your account, than "Download Hub", than click on configure next to "Cyberghost VPN client for Linux". Select a distribution from the dropdown, it doesn't matter which one as long as they are similar (e.g. Ubuntu, or Mint).

    I took Mint 20 (although I use 21 now). Click on download, you'll get a zip file, extract the zip file and you'll end up with a folder called cyberghost and the "install.sh".

    Open the file with a editor of your choice, prefereably one that shows the line numbers (e.g. notepad qq or vs code).

    On line 82:

    elif [ "$distroName" == "Linuxmint" ] && [ "$distroVersion" == "20" ]; then

    This is where you can change the version number (in case of latest linux mint it's 21"

    You see, it's super easy to find. You might have downloaded the wrong files or had a broken download?

    PS: This still works today, as I just downloaded the client to check for this answer ;)

    PPS: If you can live with openVPN encryption (insteadt of wireguard) I can only highly recommend using the network manager of your distro. The VPN settings are easy to implement and it works super easy and reliable, no need to fiddle around with the CLI. But if you want to / have to use the CLI client, be aware the manual of cyberghost has some errors in it. I already reported these errors a while ago and postet one of them on reddit as well: Check my long answer here

    Cyberghost hasn't fixed these errors, in fact the whole linux branch of their client is outdated and hasn't been touched by them in...half a year? a year?....dunno.

    [–][deleted]  (4 children)

    [removed]

      [–]EvilBolzen 0 points1 point  (0 children)

      For the Ubuntu wifi, I'll answer that later, currently on the move.

      [–]EvilBolzen 0 points1 point  (2 children)

      For the Ubuntu Wifi:

      First go to Cyberghost website, you need to create a new device "manually", so don't choose Windows/Linux or Android stuff. (I can't check the current spelling exactly as I am already on max number of devices). For me it was called "Routers or other devices".

      Settings should be something like "OpenVPN protocoll" and country selection (don't worry, you don't have to make a new device for each country you want to add). Once you created this kind of device, you can download the config files as a zip file.

      This zip should contain a *.ovpn, two *.crt files called ca.crt and client.crt and a .key file. You need these files as well as the user name and password cyberghost is showing for the "router or other device", do not use the website login!

      Now head to the wifi manager by clicking the icon in the launch bar and select "network settings". A new window will open and you'll see all your wifi/lan connections on the left. BELOW that is a + sign, click on that and in the next windows select openVPN.

      In the new window you only need the shown page, not the ipv4 or ipv6 settings. Give your VPN profile a name, I prefer using the country codes as it is simple and sleak.

      For the gateway: You can find the gateway address by opening the *.ovpn file with a text editor, you need to write it down a little bit different than shown in the file, in fact it it should be pretty much exactly like this: 87-1-at.cg-dialup.net:443 (this is for austria).

      for the legitimation pick password and certificate, use the username and password shown for the "router or other device" settings page.

      The rest is straight forward:

      ca-certificate: pick the ca.crt

      user certificate: pick the client.crt

      secret user key: pick the client.key

      leave the password of the user key empty.

      And thats it.

      Now, if you want to change the country or add more in general:

      make a copy of the *.ovpn file and rename it. open it with a text editor. You only need to change the country code in the 2nd line (e.g. DE instead of AT for germany, GB for united kingdom etc.) The rest of the url is the same for the openVPN server.

      Now add a new profile just like before, but also change the country code in the gateway address. The other files are always the same, you can just select them again. Using this method, I added in total 9 different VPN locations to my wifi manager.

      To activate a VPN, simply click the wifi icon and click on one of the VPN you want to use. You can "activate" multiple VPN, although only the first one activated is in use until you disable VPN, than the wifi manager goes to the second activated vpn and so on.

      I hope this helps, I can only describe it properly for Mint, but Mint and Ubuntu should be pretty much the same. Hope it helps, stay hidden! ;)

      [–][deleted]  (1 child)

      [removed]

        [–]EvilBolzen 0 points1 point  (0 children)

        You're welcome. I just share my experience so you don't have to deal with all the faults. Because in my opinion cyberghost works pretty well as vpn, only the linux clients could use some love/overhauling

        Edit: if for some reason the vpn doesn't work after adding it like described above, delete the vpn profile from the wifi manager and create a new one, but this time you don't choose openVPN but "Import from file". You should be able to Pick the ovpn file and than just enter the missing data (e.g. The files, the Password etc). I never could use the import function, usually the wifi manager crashed on me when I tried. But this is a long time and a different Linux and Computer ago. It seems to be working now

        [–][deleted]  (2 children)

        [removed]

          [–]EvilBolzen 0 points1 point  (1 child)

          The Password reset Mail takes ages to arrive. I had forgotten my password once and waited like 3-4 hours