Command-line script to access global proxy via PKU VPN
-
Mac OS:
brew install openconnect
-
Linux:
sudo apt-get install openconnect
- Edit
pkuvpn.sh
: follow the annotations inpkuvpn.sh
to replace***
with your own passwords or student ID
- In this directory:
./pkuvpn.sh
- Just
ctrl+c
-
Add an extra line
alias pkuvpn='$PATH_OF_REPO/pkuvpn.sh'
in your~/.zshrc
(for Mac OS) or~/.bashrc
(for Linux) -
source ~/.zshrc
(for Mac OS) orsource ~/.bashrc
(for Linux) -
Now everything is finished! Just type one-line command
pkuvpn
in any directory to access your own PKU proxy
Official Introduction to PKU VPN