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:19] – [Basics] hc9 | vps_-_debian [2021/04/02 18:51] (current) – [Networking] hc9 | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== Debian on SDF VPS ====== | ====== Debian on SDF VPS ====== | ||
- | ====== Basics | + | ===== Basics ===== |
The root user on a fresh Debian VPS has the default password " | The root user on a fresh Debian VPS has the default password " | ||
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 128: | Line 130: | ||
Load rules (now): | Load rules (now): | ||
- | | + | <file config now> |
- | # iptables-restore < / | + | # iptables -F |
+ | # iptables-restore < / | ||
+ | </ | ||
Load rules (boot): | Load rules (boot): | ||
- | | + | <file config boot> |
+ | # vi / | ||
- | | + | #!/bin/sh |
- | / | + | / |
+ | |||
+ | # chmod 755 / | ||
+ | </ | ||
- | # chmod 755 / | ||
===== Software and Distribution Updating ===== | ===== Software and Distribution Updating ===== | ||
Line 144: | 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 155: | 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 164: | 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 173: | 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 181: | 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.txt · Last modified: 2021/04/02 18:51 by hc9