refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vps-utils / README.md
1 ---
2 title: VPS Utils
3 homepage: https://webinstall.dev/vps-utils
4 tagline: |
5   VPS Utils make it easy to setup and manage a VPS
6 ---
7
8 ## Cheat Sheet
9
10 > VPS Utils includes shortcut commands for some common tasks, including
11 > `setcap-netbind`, 'vps-addswap', and 'myip'
12
13 **setcap-netbind**:
14
15 `setcap-netbind` will give the specified program the ability to listen on
16 privileged ports, such as 80 (http) and 443 (https) without `root` privileges or
17 `sudo`.
18
19 ```bash
20 sudo setcap-netbind node
21 ```
22
23 This is the same as running the full command:
24
25 ```bash
26 setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node))
27 ```
28
29 **myip**:
30
31 Will output externally detected IPv4 and IPv6 addresses. See
32 <https://webinstall.dev/vps-myip>.
33
34 ```bash
35 myip
36 ```
37
38 ```txt
39 IPv4 (A)   : 136.36.196.101
40 IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763
41 ```
42
43 **vps-addswap**:
44
45 Adds and activates permanent swap in `/var/swapfile`. See
46 <https://webinstall.dev/vps-addswap>.
47
48 ```bash
49 vps-addswap
50 ```