User Tools

Site Tools


vps_-_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
vps_-_debian [2021/04/02 18:32] – [Firewall Setup] hc9vps_-_debian [2021/04/02 18:39] – [rsyslogd] hc9
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 <code> apt-get update 
-  * apt-get dist-upgrade -y+</code> 
 +  * apt-get dist-upgrade -y <code> apt-get dist-upgrade -y 
 +</code>
  
 ===== 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
 +</file>
  
 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 /etc/inittab and modify the corresponding lines like this: This being a virtual system, you won't need getty on tty1-6. In order to eliminate them, edit /etc/inittab and modify the corresponding lines like this:
  
-<code>+<file config /etc/inittab>
   co:2345:respawn:/sbin/getty hvc0 9600 linux   co:2345:respawn:/sbin/getty hvc0 9600 linux
  
Line 178: Line 182:
   #5:23:respawn:/sbin/getty 38400 tty5   #5:23:respawn:/sbin/getty 38400 tty5
   #6:23:respawn:/sbin/getty 38400 tty6   #6:23:respawn:/sbin/getty 38400 tty6
-</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 190:
 rsyslogd eats a lot of memory by default (26MB on my vps) which can be reduced by the usage of ulimit. Edit /etc/init.d/rsyslog and include the following line just before the command where rsyslogd will be started: rsyslogd eats a lot of memory by default (26MB on my vps) which can be reduced by the usage of ulimit. Edit /etc/init.d/rsyslog and include the following line just before the command where rsyslogd will be started:
  
-  ulimit -s 256+<file config /etc/init.d/rsyslog> 
 +ulimit -s 256 
 +</file>
  
 Example: Example:
vps_-_debian.txt · Last modified: 2021/04/02 18:51 by hc9