Updated docs
This commit is contained in:
parent
6230b8b918
commit
bb28d26191
17
README.md
17
README.md
@ -40,7 +40,7 @@ On Linux secrets will be shortly stored in tmpfs (memory) and deleted once they
|
|||||||
|
|
||||||
After setting up, change the run-vpn.sh, routing.sh and hostscan-bypass.sh ownership to root:
|
After setting up, change the run-vpn.sh, routing.sh and hostscan-bypass.sh ownership to root:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
chown root:root run-vpn.sh
|
chown root:root run-vpn.sh
|
||||||
chown root:root hostscan-bypass.sh
|
chown root:root hostscan-bypass.sh
|
||||||
chown root:root routing.sh
|
chown root:root routing.sh
|
||||||
@ -54,19 +54,26 @@ Rename routes.txt.sample to routes.txt or create an empty routes.txt and add sub
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Usage from terminal
|
### Usage from terminal
|
||||||
```
|
```sh
|
||||||
DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS sudo -E ./run-vpn.sh
|
DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS sudo -E ./run-vpn.sh
|
||||||
```
|
```
|
||||||
You can stop it by pressing `CTRL+C` or killing the process.
|
You can stop it by pressing `CTRL+C` or killing the process.
|
||||||
|
|
||||||
### GUI usage from bitbar/xbar/swaybar/argos
|
### GUI usage from bitbar/xbar/swaybar/argos
|
||||||
|
|
||||||
Consult the `bitbar-openconnect` script for sudoers entries needed to run it. Add them to `/etc/sudoers`
|
Consult the `bitbar-openconnect.6s.sh` script for sudoers entries needed to run it. Add them to `/etc/sudoers`
|
||||||
|
|
||||||
**Symlink**(!) the `bitbar-openconnect` script to your bitbar config folder:
|
**Symlink**(!) the `bitbar-openconnect.6s.sh` script to your bitbar config folder:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ln -s ~/Documents/git/always-on-openconnect-vpn/bitbar-openconnect.6s.sh ~/.config/argos/
|
||||||
```
|
```
|
||||||
ln -s ~/Documents/git/always-on-openconnect-vpn.6s.sh ~/.config/argos/
|
|
||||||
|
Enable running from your `user`, add this to /etc/sudoers:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
user ALL=(ALL) NOPASSWD:SETENV: /home/user/Documents/git/always-on-openconnect-vpn/run-vpn.sh
|
||||||
|
user ALL=(ALL) NOPASSWD: /usr/bin/killall -2 openconnect
|
||||||
```
|
```
|
||||||
|
|
||||||
### Yubikey
|
### Yubikey
|
||||||
|
Loading…
Reference in New Issue
Block a user