main
Tran Hau 2020-05-20 16:50:13 +07:00
parent 9d74b0e3c2
commit 7e73e98599
4 changed files with 52 additions and 36 deletions

View File

@ -8,6 +8,10 @@
[Neovim](neovim.md): `vim` fork.
---
[rsync](rsync.md)
[exa](exa.md): `ls` replacement.
[bat](bat.md): `cat` with colors.
@ -20,20 +24,18 @@
[tldr](https://github.com/tldr-pages/tldr): simple `man`.
---
[Ncat](ncat.md): Netcat implementation from Nmap project.
[HTTPie](https://httpie.org/): call API.
[rsync](rsync.md)
[Rclone](https://rclone.org/): `rsync` for cloud storage.
[Prettier](https://prettier.io/): format code.
---
[Flatpak and Snap](flatpak-snap.md)
[systemd-boot](systemd-boot.md)
[blueman](https://github.com/blueman-project/blueman): Bluetooth Manager.
@ -42,6 +44,12 @@
[OpenVPN](openvpn.md)
[Xinput](xinput.md)
---
[Flatpak and Snap](flatpak-snap.md)
[Instaloader](instaloader.md)
[Steam](steam.md)

View File

@ -1,23 +1,16 @@
# OpenVPN
Assume you use Archlinux.
Read [OpenVPN](https://wiki.archlinux.org/index.php/OpenVPN).
Read [The update-systemd-resolved custom script](https://wiki.archlinux.org/index.php/OpenVPN#The_update-systemd-resolved_custom_script).
Read [update-systemd-resolved](https://github.com/jonathanio/update-systemd-resolved).
Read [Connecting To Access Server With Linux](https://openvpn.net/vpn-server-resources/connecting-to-access-server-with-linux/).
| Distribution | Package |
| ------------ | --------------------------------------- |
| Archlinux | `openvpn-update-systemd-resolved` (AUR) |
| Ubuntu | `openvpn-systemd-resolved` |
Install [openvpn-update-systemd-resolved](https://aur.archlinux.org/packages/openvpn-update-systemd-resolved/).
Start/enable service:
Start and enable service:
```sh
systemctl start systemd-resolved.service
systemctl enable systemd-resolved.service
systemctl enable --now systemd-resolved.service
```
Edit `client.ovpn`:
@ -29,8 +22,10 @@ down /etc/openvpn/scripts/update-systemd-resolved
down-pre
```
Connect:
Connect with factor authentication and start as a dameon:
```sh
sudo openvpn --config /path/to/client.ovpn --auth-user-pass --auth-retry interact
sudo openvpn --config /path/to/client.ovpn \
--auth-user-pass --auth-retry interact \
--daemon
```

30
Applications/xinput.md Normal file
View File

@ -0,0 +1,30 @@
# Xinput
| Distribution | Package |
| ------------ | ------------- |
| Archlinux | `xorg-xinput` |
| Ubuntu | `xinput` |
List devices:
```sh
xinput list
```
Usually laptop's keyboard is:
```txt
AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
```
Disable laptop's keyboard:
```sh
xinput float "AT Translated Set 2 keyboard"
```
Re-enable laptop's keyboard, `3` is from `slave keyboard (3)`:
```sh
xinput reattach "AT Translated Set 2 keyboard" 3
```

View File

@ -1,17 +0,0 @@
# Disable laptop keyboard
Why? Because I want to place my mechanical keyboard over my laptop keyboard.
Read [Xinput](https://wiki.archlinux.org/index.php/Xinput) carefully.
Disable:
```sh
xinput float "AT Translated Set 2 keyboard"
```
Enable:
```sh
xinput reattach "AT Translated Set 2 keyboard" 3
```