vps_-_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vps_-_debian [2021/04/02 18:31] – [Firewall Setup] hc9 | vps_-_debian [2021/04/02 18:51] (current) – [Networking] hc9 | ||
---|---|---|---|
Line 40: | Line 40: | ||
//Note: For VPS installations of Debian 8.4 (jesse) on VPS3, please omit the above dns-nameservers line from the interfaces file, and instead add this line to // | //Note: For VPS installations of Debian 8.4 (jesse) on VPS3, please omit the above dns-nameservers line from the interfaces file, and instead add this line to // | ||
- | | + | <file config / |
+ | nameserver 205.166.94.20 | ||
+ | </ | ||
Add this to /etc/hosts: | Add this to /etc/hosts: | ||
Line 134: | Line 136: | ||
Load rules (boot): | Load rules (boot): | ||
- | |||
- | # vi / | ||
<file config boot> | <file config boot> | ||
+ | # vi / | ||
+ | |||
#!/bin/sh | #!/bin/sh | ||
/ | / | ||
Line 149: | Line 151: | ||
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 164: | ||
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 175: | ||
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 184: | ||
# | # | ||
# | # | ||
- | </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. | ||
Line 186: | Line 192: | ||
rsyslogd eats a lot of memory by default (26MB on my vps) which can be reduced by the usage of ulimit. Edit / | rsyslogd eats a lot of memory by default (26MB on my vps) which can be reduced by the usage of ulimit. Edit / | ||
- | | + | <file config / |
+ | ulimit -s 256 | ||
+ | </ | ||
Example: | Example: |
vps_-_debian.1617388280.txt.gz · Last modified: 2021/04/02 18:31 by hc9