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:21] – [Setting up SSH] hc9 | vps_-_debian [2021/04/02 18:38] – [cron and at] 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 15: | Line 15: | ||
This user will be able to perform administrative tasks by runing '' | This user will be able to perform administrative tasks by runing '' | ||
- | ====== Set Your Timezone | + | ===== Set Your Timezone ===== |
dpkg-reconfigure tzdata | dpkg-reconfigure tzdata | ||
- | ====== Networking | + | ===== Networking ===== |
In your control panel at vps.sdf.org, | In your control panel at vps.sdf.org, | ||
Line 58: | Line 58: | ||
/ | / | ||
- | ====== Setting up SSH ====== | + | ===== Setting up SSH ===== |
You may wish to add ssh access to your VPS. It is **// | You may wish to add ssh access to your VPS. It is **// | ||
Line 128: | Line 128: | ||
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 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 155: | 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 164: | 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 173: | 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