X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=vps-utils%2FREADME.md;fp=vps-utils%2FREADME.md;h=3dbce199b05a7465b4d4d5a7b1d749b07dfe73fa;hb=a9a7904f52f4f7bc078211323d46825b3c93d6d3;hp=0000000000000000000000000000000000000000;hpb=7cbcabb2d1420a50a328cf5726341800f0d0504b;p=webi-installers%2F.git diff --git a/vps-utils/README.md b/vps-utils/README.md new file mode 100644 index 0000000..3dbce19 --- /dev/null +++ b/vps-utils/README.md @@ -0,0 +1,47 @@ +--- +title: VPS Utils +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**: + +`cap-net-bind` 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 +sudo cap-net-bind node +``` + +This is the same as running the full command: + +```bash +setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node)) +``` + +**vps-myip**: + +Will output externally detected IPv4 and IPv6 addresses. See +. + +```bash +vps-myip +``` + +```txt +IPv4 (A) : 136.36.196.101 +IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763 +``` + +**vps-addswap**: + +Adds and activates permanent swap in `/var/swapfile`. See +. + +```bash +vps-addswap +```