diff options
Diffstat (limited to 'dotfiles/cheat')
-rw-r--r-- | dotfiles/cheat/pacman | 6 | ||||
-rw-r--r-- | dotfiles/cheat/vpn | 19 |
2 files changed, 18 insertions, 7 deletions
diff --git a/dotfiles/cheat/pacman b/dotfiles/cheat/pacman index 6a00642..d740ed9 100644 --- a/dotfiles/cheat/pacman +++ b/dotfiles/cheat/pacman @@ -55,5 +55,7 @@ sudo pacman -U <package file (.pkg.tar.xz)> # Reinstall a package installed via pip with pacman sudo pip uninstall --yes <package>; sudo pacman -S --noconfirm python-<package> -# exemple via pikaur pkg -sudo pip uninstall --yes i3pystatus; pikaur -S i3pystatus-git --noconfirm +# If there is some package from AUR use you package manager. +# Exemple with pikaur +pikaur -S --noconfirm --rebuild $(pikaur -Qq | grep "python-") +# note pikaur -Qe seems to return only official package and not them from AUR diff --git a/dotfiles/cheat/vpn b/dotfiles/cheat/vpn index 141e9cd..437c1ca 100644 --- a/dotfiles/cheat/vpn +++ b/dotfiles/cheat/vpn @@ -1,7 +1,16 @@ -nmcli device show wlp3s0 +# VPN per namespace (and so per program) -#Know other ip -/etc/openvpn/ipp.txt +https://github.com/slingamn/namespaced-openvpn -#Server perso -script is in /root/OpenVPN-install +``` +# create an openvpn tunnel in a new namespace, named `protected` by default: +sudo /path/to/namespaced-openvpn --config ./my_openvpn_config_file + +# start an unprivileged shell in the new namespace +# anything started from this shell will use the openvpn tunnel exclusively for connectivity: +sudo ip netns exec protected sudo -u $USER -i +``` + +``` +sudo systemctl start openvpn-client@neodarz-perso.service +``` |