Skip to content

Instantly share code, notes, and snippets.

@dragonde
Last active July 30, 2024 09:26
Show Gist options
  • Save dragonde/0215db4ac7b7343b3ecd94a593b1df1e to your computer and use it in GitHub Desktop.
Save dragonde/0215db4ac7b7343b3ecd94a593b1df1e to your computer and use it in GitHub Desktop.
awsvpnclient-ubuntu2404

Steps

Working with awsvpnclient 3.14.0

Download & Install AwsVPNClient and LibSSL1.1

curl -O http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb

curl https://d20adtppz83p9s.cloudfront.net/GTK/latest/awsvpnclient_amd64.deb -o awsvpnclient_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb awsvpnclient_amd64.deb

Edit files and add Env vars

sudo vim /etc/systemd/system/awsvpnclient.service

Put the Enviroment line

[Service]
Type=simple
ExecStart=/opt/awsvpnclient/Service/ACVC.GTK.Service
Restart=always
RestartSec=1s
User=root
Environment=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl restart awsvpnclient
journalctl -u awsvpnclient -n 20

Create a simbolic link

cd /opt/awsvpnclient 

/opt/awsvpnclient  …
➜ sudo ln -s AWS\ VPN\ Client awsvpnclient  

Edit the menu to modify Exec

sudo vim /usr/share/applications/awsvpnclient.desktop

Put this content here.

[Desktop Entry]
Type=Application
Name=AWS VPN Client
Exec=/opt/awsvpnclient/awsvpnclient %u
Path=/opt/awsvpnclient
Icon=acvc-64
Terminal=false
Categories=Network;
Keywords=vpn;aws;

desktop-file-validate /usr/share/applications/awsvpnclient.desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment