The TryHackMe VPN Shortcut Maker script automates the process of setting up a shortcut for the TryHackMe VPN connection on your system. It prompts the user to provide the path to the VPN configuration file and then installs the necessary files to create a shortcut for starting the VPN connection easily.
- This script requires root privileges to execute. Make sure to run it with
sudo.
- Download the
thm and install.shscript from this repository. - link:
https://github.com/Aether-0/tryhackmevpn-shortcut.git - Make sure the script is executable by running:
chmod +x * - Run the script with
sudoto install the VPN shortcut:sudo ./install.sh -v <filepath>
5.Install new vpn file :
sudo ./install.sh -nAfter successful installation, you can use the following command to start the TryHackMe VPN connection:
thm -sTo stop the VPN connection, use:
thm -S- Make sure to provide the correct path to your VPN configuration file when prompted.
- The VPN configuration file will be moved to
/opt/thmvpn.ovpnand the script will be moved to/usr/bin/thmfor global access. - The script checks if the installation is successful and provides appropriate feedback.