User interface written in Golang for CyberGhostVPN on Linux using the Fyne package.
It has only been tested on Ubuntu 22.04.
- You need to have installed the CyberGhostVPN CLI and login into your account.
- The GUI needs to be executed with sudo privileges as CyberGhostVPN CLI requires sudo as well.
Requirements:
- Makefile
Steps:
- Download the desired release from GitHub.
- Extract the contents of the compressed file.
- Give a look to the Makefile for the different install and uninstall options.
- After installing you will have the program available in you applications with a desktop icon.
- You can also run it with
sudo cyberghostvpn-gui
.
Requirements:
- Go
- Makefile
- Fyne Go package
Steps:
- Execute
make build-prod
to get the executable in thebin
directory. - Alternatively execute
make build-linux
to get the linux bundle in thebin
directory (this may take a while). - Install as in the if you were downloading the release from GitHub (previous section).
(Do it at your own risk) It is possible to run the GUI without having to invoke sudo every time using the terminal. The steps to achieve are the following:
- Add your user to the sudoers file for executing the GUI without password prompt.
- Use the
/etc/sudoers.d
file if possible and add the following line:
your_user ALL=(root) NOPASSWD: /home/your_user/.local/bin/cyberghostvpn-gui
Replaceyour_user
with your username and make sure that the path to the executable is correct. It should be if you installed the GUI using themake user-install
but it may be different if you did a system wide installation.
- Use the
- Edit the desktop file used to run the GUI to execute as with sudo.
- Locate the
.desktop
file. If you did a user installation it should be under/home/you_user/.local/share/applications/cyberghostvpn-gui.desktop
. If not it may be underusr/local/share/applications/cyberghostvpn-gui.desktop
. - Edit the file and add
sudo
to the command used in theExec
directive. It should look like this if you did a user installation:
Exec=sudo /home/carlos/.local/bin/cyberghostvpn-gui
- Locate the
- Now you should be able to run the GUI from the application launcher without any issues. Sometimes it takes some seconds for the application launcher to recognize the changes in the
.desktop
file, take it into account.
The CyberGhostVPN CLI requires sudo privileges to run. I find this somewhat concerning. If you just want to always connect to the same servers from time to time, you are probably better off configuring your desired servers directly in your system using OpenVPN.
This project was developed independently for personal use. CyberGhost has no affiliation, nor has control over the content or availability of this project.