add VPS utils
[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 description: |
7   VPS Utils includes shortcut commands for some common tasks, including `cap-net-bind`, 'vps-addswap', and 'vps-myip'
8 ---
9
10 **cap-net-bind**:
11
12 `cap-net-bind` will give the specified program the ability to listen on
13 privileged ports, such as 80 (http) and 443 (https) without `root` privileges or
14 `sudo`.
15
16 ```bash
17 sudo cap-net-bind node
18 ```
19
20 This is the same as running the full command:
21
22 ```bash
23 setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node))
24 ```
25
26 **vps-myip**:
27
28 Will output externally detected IPv4 and IPv6 addresses. See
29 <https://webinstall.dev/vps-myip>.
30
31 ```bash
32 vps-myip
33 ```
34
35 ```txt
36 IPv4 (A)   : 136.36.196.101
37 IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763
38 ```
39
40 **vps-addswap**:
41
42 Adds and activates permanent swap in `/var/swapfile`. See
43 <https://webinstall.dev/vps-addswap>.
44
45 ```bash
46 vps-addswap
47 ```