Skip to content

Instantly share code, notes, and snippets.

@ThiagoBarradas
Created July 26, 2020 01:10
Show Gist options
  • Save ThiagoBarradas/2ecd166234e7d6f0efed03620da7bcab to your computer and use it in GitHub Desktop.
Save ThiagoBarradas/2ecd166234e7d6f0efed03620da7bcab to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install openvpn openconnect
# Requesting password
sudo openconnect -u user --passwd-on-stdin vpn.example.com
# OR non-interactive
echo "<password>" | sudo openconnect --user=thiagobarradas --authgroup=MYGROUP --passwd-on-stdin vpn.xxx.com
# Force Stop!
sudo pkill openconnect
### WSL Solution for "sleep: cannot read realtime clock: Invalid argument"
wget https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1871129/+files/libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb
sudo dpkg --install libc6_2.31-0ubuntu8+lp1871129~1_amd64.deb
sudo apt-mark hold libc6
sudo apt --fix-broken install
sudo apt full-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment