vps_-_netbsd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vps_-_netbsd [2021/04/02 08:18] – hc9 | vps_-_netbsd [2023/07/31 18:01] (current) – Added alternative set up method based on recent experience and need for help from membership. stug | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{: | + | {{: |
====== NetBSD on SDF VPS ====== | ====== NetBSD on SDF VPS ====== | ||
- | |||
- | ===== Contents ===== | ||
- | |||
- | * [[# | ||
- | * [[# | ||
- | * [[# | ||
- | * [[# | ||
- | * [[# | ||
- | * [[# | ||
- | * [[# | ||
===== First Steps ===== | ===== First Steps ===== | ||
Line 21: | Line 11: | ||
One of the first things you will want to do is change the default root password by typing " | One of the first things you will want to do is change the default root password by typing " | ||
- | It is also a good habit to create a regular user account for working, using "su" | + | It is also a good habit to create a regular user account for working, using '' |
- | useradd -m -G wheel <username> | + | useradd -m -G wheel <username> |
Then immediately set its password with: | Then immediately set its password with: | ||
- | passwd | + | passwd |
- | This user will be in the "wheel" | + | This user will be in the '' |
==== System Clock ==== | ==== System Clock ==== | ||
- | It is customary on UNIX systems for the system clock to be set to UTC. To set the local time zone, find your zone file in "/ | + | It is customary on UNIX systems for the system clock to be set to UTC. To set the local time zone, find your zone file in '' |
ln -fs / | ln -fs / | ||
Line 41: | Line 31: | ||
Look at the first line of your control panel at vps.sdf.org and note YOUR_HOSTNAME (e.g. netbsd99), EXTERNAL_IP (e.g. 205.166.94.nnn), | Look at the first line of your control panel at vps.sdf.org and note YOUR_HOSTNAME (e.g. netbsd99), EXTERNAL_IP (e.g. 205.166.94.nnn), | ||
- | | + | < |
- | -------- | + | VPS Maintenance Shell for netbsd99 (205.166.94.nnn / 10.1.0.nnn) |
+ | -------- | ||
- | | + | |
- | | | + | | |
- | | | + | | |
- | YOUR_HOSTNAME | + | YOUR_HOSTNAME |
+ | </ | ||
Open / | Open / | ||
- | | + | <file config etc/ |
- | defaultroute=205.166.94.1 | + | hostname=YOUR_HOSTNAME.sdf.org |
- | auto_ifconfig=yes | + | defaultroute=205.166.94.1 |
- | ifconfig_xennet0=" | + | auto_ifconfig=yes |
- | ifconfig_xennet1=" | + | ifconfig_xennet0=" |
+ | ifconfig_xennet1=" | ||
+ | </ | ||
Then put this in / | Then put this in / | ||
- | | + | <file config / |
+ | nameserver 205.166.94.20 | ||
+ | </ | ||
Add this to /etc/hosts: | Add this to /etc/hosts: | ||
- | | + | <file config / |
+ | EXTERNAL_IP YOUR_HOSTNAME.sdf.org YOUR_HOSTNAME | ||
+ | </ | ||
+ | |||
+ | Run/Type: | ||
+ | |||
+ | / | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | Open / | ||
+ | |||
+ | <file config etc/ | ||
+ | hostname=YOUR_HOSTNAME.sdf.org | ||
+ | defaultroute=205.166.94.1 | ||
+ | </ | ||
+ | |||
+ | Create / | ||
+ | |||
+ | <file config etc/ | ||
+ | up | ||
+ | EXTERNAL_IP netmask 255.255.255.0 | ||
+ | </ | ||
+ | |||
+ | Then put this in / | ||
+ | |||
+ | <file config / | ||
+ | nameserver DNS_SERVER_IP | ||
+ | </ | ||
+ | |||
+ | Add this to / | ||
+ | |||
+ | <file config / | ||
+ | EXTERNAL_IP YOUR_HOSTNAME.sdf.org YOUR_HOSTNAME | ||
+ | </ | ||
Run/Type: | Run/Type: | ||
Line 87: | Line 117: | ||
To set this up on boot, execute the steps above and then: | To set this up on boot, execute the steps above and then: | ||
- | | + | < |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
+ | echo " | ||
+ | </ | ||
Note that you cannot use both this pre-built pkgsrc and pre-built packages from netbsd.org. It may be possible to set the system up so you can, however this is best left to the experienced NetBSD administrator. | Note that you cannot use both this pre-built pkgsrc and pre-built packages from netbsd.org. It may be possible to set the system up so you can, however this is best left to the experienced NetBSD administrator. | ||
Line 107: | Line 139: | ||
Decide which sets you want to remove and examine their contents. For example, to remove games and all X11 sets: | Decide which sets you want to remove and examine their contents. For example, to remove games and all X11 sets: | ||
- | | + | < |
- | tar tzf / | + | for set in games xbase xcomp xetc xfont xserver ; do \ |
- | done | + | tar tzf / |
+ | done | ||
+ | </ | ||
- | After examining | + | After examining |
cat / | cat / | ||
Line 121: | Line 155: | ||
---- | ---- | ||
- | $Id: VPS_NetBSD.html, | + | $Id: VPS_NetBSD.html, |
vps_-_netbsd.txt · Last modified: 2023/07/31 18:01 by stug