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
Next revisionBoth sides next revision
vps_-_debian [2021/04/02 18:31] – [Firewall Setup] hc9vps_-_debian [2021/04/02 18:37] – [getty / virtual terminals] hc9
Line 134: Line 134:
  
 Load rules (boot): Load rules (boot):
- 
-  # vi /etc/network/if-pre-up.d/firewall 
  
 <file config boot> <file config boot>
 +# vi /etc/network/if-pre-up.d/firewall
 +
 #!/bin/sh #!/bin/sh
 /sbin/iptables-restore < /etc/firewall /sbin/iptables-restore < /etc/firewall
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 169: Line 171:
 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 180:
   #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.
vps_-_debian.txt · Last modified: 2021/04/02 18:51 by hc9