vps_-_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
vps_-_debian [2021/04/02 18:30] – [Firewall Setup] hc9 | vps_-_debian [2021/04/02 18:38] – [cron and at] hc9 | ||
---|---|---|---|
Line 128: | Line 128: | ||
Load rules (now): | Load rules (now): | ||
- | < | + | < |
# iptables -F | # iptables -F | ||
# iptables-restore < / | # iptables-restore < / | ||
Line 135: | Line 135: | ||
Load rules (boot): | Load rules (boot): | ||
- | | + | <file config boot> |
+ | # vi / | ||
- | < | ||
#!/bin/sh | #!/bin/sh | ||
/ | / | ||
Line 149: | Line 149: | ||
To update your system, run the following commands: | To update your system, run the following commands: | ||
- | * apt-get update | + | * apt-get update |
- | * apt-get dist-upgrade -y | + | </ |
+ | * apt-get dist-upgrade -y < | ||
+ | </ | ||
===== Reducing Memory Usage ===== | ===== Reducing Memory Usage ===== | ||
Line 160: | Line 162: | ||
You might not need one or both of those, so you can deactivate them with | You might not need one or both of those, so you can deactivate them with | ||
+ | <file config cron and at> | ||
# update-rc.d -f atd remove | # update-rc.d -f atd remove | ||
# update-rc.d -f cron remove | # update-rc.d -f cron remove | ||
+ | </ | ||
This frees up ca. 7MB (if both are deactivated). | This frees up ca. 7MB (if both are deactivated). | ||
Line 169: | Line 173: | ||
This being a virtual system, you won't need getty on tty1-6. In order to eliminate them, edit / | This being a virtual system, you won't need getty on tty1-6. In order to eliminate them, edit / | ||
- | <code> | + | <file config / |
co: | co: | ||
Line 178: | Line 182: | ||
# | # | ||
# | # | ||
- | </code> | + | </file> |
You need to keep the line with hvc0 so you can attach a serial console from vps.sdf.org to your vps. This frees up ca. 10MB. | You need to keep the line with hvc0 so you can attach a serial console from vps.sdf.org to your vps. This frees up ca. 10MB. |
vps_-_debian.txt · Last modified: 2021/04/02 18:51 by hc9