See man afterboot for a guideline as to what to do next
man lsAs the man page suggests, going through these steps will give you a warm fuzzy that you've at least got the basics going. Like the man page, this also assumes you have a basic knowledge of UNIX.
man daily.confman security.confSet system to automatically update the database of known vulnerable packages:
echo fetch_pkg_vulnerabilities=YES >> /etc/daily.conf
Root logins over SSH are disabled by default. You can enable them if you want:
vi /etc/ssh/sshd_config PermitRootLogin yes :x! /etc/rc.d/sshd restart
man passwdman suChange the root password if you didn't already do it during the install.
/usr/bin/passwd
man dateChange the system timezone if you need to:
ln -fs /usr/share/zoneinfo/America/Denver /etc/localtime
See what the timezone is set to:
readlink /etc/localtime
man 5 wscons.confSetup your keyboard map and console settings, if needed. The defaults are most likely fine.
vi /etc/wscons.conf
Set the system hostname, if needed.
vi /etc/rc.conf hostname=my-netbsd-server
man 8 ifconfigman 8 dhclientman 5 dhclient.conf
Run ifconfig to get your device name, and make sure the driver is loaded. The first word on the first line is the device name. For example, wm0.
Setup the system to get an IP address through DHCP:
echo dhclient=YES >> /etc/rc.conf
Verify you can get online:
netstat -rn
The default gateway address is set in the defaultroute variable in /etc/rc.conf or in the file /etc/mygate. If you edit either file, restart the network:
/etc/rc.d/network restart
By default, all services are disabled on boot with a fresh install. Go ahead and start the SSH server if you haven't already, to get remote access:
/etc/rc.d/sshd start
Update rc.conf to start sshd on boot:
echo sshd=YES >> /etc/rc.conf
Unless you want to setup a nameserver, you can ignore this.
Skip it for beginner setups.
Skip it for beginner setups.
man 8 mountman 8 umountman dfVerify that everything is partitioned and mounted correctly. If this is a clean install, and you just booted into it, it'd be pretty obvious if it wasn't.
cat /etc/fstab mount df pstat -s
man dateman 8 ntpdateman 8 ntpdman 8 rdateman 8 timedecho ntpdate=YES >> /etc/rc.conf echo ntpd=YES >> /etc/rc.conf
man 8 useraddman 8 groupaddman 8 userman 5 crontabman psman netstatman fstatman systatman topman 7 testsman 7 atfman atf-runman atf-test-program
Download the tests.tgz file set, and extract it to the root directory.
tar -C / -zxf tests.tgz
Run the system tests, saving the output for review:
atf-run | tee ~/tests.log | atf-report