aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-10-06 18:35:55 +0200
committerneodarz <neodarz@neodarz.net>2020-10-06 18:35:55 +0200
commit52060dfbdfac04938393b4fdc441415fa08abe6e (patch)
tree59b7f268df58ab3c5dc8c78f61e58f6986213400 /dotfiles/cheat
parent58e780ddf31d446096066269cdc8de5ccaf495d2 (diff)
downloaddotfiles_dotdrop-52060dfbdfac04938393b4fdc441415fa08abe6e.tar.xz
dotfiles_dotdrop-52060dfbdfac04938393b4fdc441415fa08abe6e.zip
Another little update
Diffstat (limited to '')
-rw-r--r--dotfiles/cheat/pacman6
-rw-r--r--dotfiles/cheat/vpn19
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
+```