projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: add -- global flag
[webi-installers/.git]
/
vps-utils
/
README.md
diff --git
a/vps-utils/README.md
b/vps-utils/README.md
index 3dbce199b05a7465b4d4d5a7b1d749b07dfe73fa..a81dd2cccab3f7faeee1c02a3bd73a90f03b0ae3 100644
(file)
--- a/
vps-utils/README.md
+++ b/
vps-utils/README.md
@@
-3,18
+3,21
@@
title: VPS Utils
homepage: https://webinstall.dev/vps-utils
tagline: |
VPS Utils make it easy to setup and manage a VPS
homepage: https://webinstall.dev/vps-utils
tagline: |
VPS Utils make it easy to setup and manage a VPS
-description: |
- VPS Utils includes shortcut commands for some common tasks, including `cap-net-bind`, 'vps-addswap', and 'vps-myip'
---
---
-**cap-net-bind**:
+## Cheat Sheet
-`cap-net-bind` will give the specified program the ability to listen on
+> VPS Utils includes shortcut commands for some common tasks, including
+> `setcap-netbind`, 'vps-addswap', and 'myip'
+
+**setcap-netbind**:
+
+`setcap-netbind` will give the specified program the ability to listen on
privileged ports, such as 80 (http) and 443 (https) without `root` privileges or
`sudo`.
```bash
privileged ports, such as 80 (http) and 443 (https) without `root` privileges or
`sudo`.
```bash
-sudo
cap-net-
bind node
+sudo
setcap-net
bind node
```
This is the same as running the full command:
```
This is the same as running the full command:
@@
-23,13
+26,13
@@
This is the same as running the full command:
setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node))
```
setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node))
```
-**
vps-
myip**:
+**myip**:
Will output externally detected IPv4 and IPv6 addresses. See
<https://webinstall.dev/vps-myip>.
```bash
Will output externally detected IPv4 and IPv6 addresses. See
<https://webinstall.dev/vps-myip>.
```bash
-
vps-
myip
+myip
```
```txt
```
```txt