User interface written in Golang for CyberGhostVPN on Linux using the Fyne package.
It has only been tested on Ubuntu 22.04.
Usage requirements
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.
Installing
Downloading the release from GitHub
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.
From source
Requirements:
Go
Makefile
Fyne Go package
Steps:
Execute make build-prod to get the executable in the bin directory.
Alternatively execute make build-linux to get the linux bundle in the bin directory (this may take a while).
Install as in the if you were downloading the release from GitHub (previous section).
Running without invoking sudo
(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
Replace your_user with your username and make sure that the path to the executable is correct. It should be if you installed the GUI using the make user-install but it may be different if you did a system wide installation.
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 under usr/local/share/applications/cyberghostvpn-gui.desktop.
Edit the file and add sudo to the command used in the Exec directive. It should look like this if you did a user installation: Exec=sudo /home/carlos/.local/bin/cyberghostvpn-gui
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.
This project was developed independently for personal use. CyberGhost has no affiliation, nor has control over the content or availability of this project.