no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | netbsd_install_afterboot [2015/06/01 22:59] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== NetBSD Install Afterboot ====== | ||
| + | * [[NetBSD]] | ||
| + | * [[NetBSD Install]] | ||
| + | |||
| + | See '' | ||
| + | |||
| + | === Starting out === | ||
| + | |||
| + | * '' | ||
| + | |||
| + | As the man page suggests, going through these steps will give you a warm fuzzy that you've at least got the basics going. | ||
| + | |||
| + | === Security alerts === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * [[http:// | ||
| + | |||
| + | Set system to automatically update the database of known vulnerable packages: | ||
| + | |||
| + | < | ||
| + | echo fetch_pkg_vulnerabilities=YES >> / | ||
| + | </ | ||
| + | |||
| + | === Login === | ||
| + | |||
| + | Root logins over SSH are disabled by default. | ||
| + | |||
| + | < | ||
| + | vi / | ||
| + | PermitRootLogin yes | ||
| + | :x! | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Root password === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Change the root password if you didn't already do it during the install. | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === System date === | ||
| + | |||
| + | * '' | ||
| + | |||
| + | Change the system timezone if you need to: | ||
| + | |||
| + | < | ||
| + | ln -fs / | ||
| + | </ | ||
| + | |||
| + | See what the timezone is set to: | ||
| + | |||
| + | < | ||
| + | readlink / | ||
| + | </ | ||
| + | |||
| + | === Console settings === | ||
| + | |||
| + | * '' | ||
| + | |||
| + | Setup your keyboard map and console settings, if needed. | ||
| + | |||
| + | < | ||
| + | vi / | ||
| + | </ | ||
| + | |||
| + | === Check hostname === | ||
| + | |||
| + | Set the system hostname, if needed. | ||
| + | |||
| + | < | ||
| + | vi / | ||
| + | hostname=my-netbsd-server | ||
| + | </ | ||
| + | |||
| + | === Verify network interface configuration === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Run '' | ||
| + | |||
| + | Setup the system to get an IP address through DHCP: | ||
| + | |||
| + | < | ||
| + | echo dhclient=YES >> / | ||
| + | </ | ||
| + | |||
| + | === Checking routing tables === | ||
| + | |||
| + | Verify you can get online: | ||
| + | |||
| + | < | ||
| + | netstat -rn | ||
| + | </ | ||
| + | |||
| + | The default gateway address is set in the '' | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Secure Shell (SSH) === | ||
| + | |||
| + | By default, all services are disabled on boot with a fresh install. | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Update '' | ||
| + | |||
| + | < | ||
| + | echo sshd=YES >> / | ||
| + | </ | ||
| + | |||
| + | === BIND Name Server (DNS) === | ||
| + | |||
| + | Unless you want to setup a nameserver, you can ignore this. | ||
| + | |||
| + | === RPC-based network services === | ||
| + | |||
| + | Skip it for beginner setups. | ||
| + | |||
| + | === YP (NIS) Setup === | ||
| + | |||
| + | Skip it for beginner setups. | ||
| + | |||
| + | === Check disk mounts === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Verify that everything is partitioned and mounted correctly. | ||
| + | |||
| + | < | ||
| + | cat /etc/fstab | ||
| + | mount | ||
| + | df | ||
| + | pstat -s | ||
| + | </ | ||
| + | |||
| + | === Concatenated disks (ccd) === | ||
| + | |||
| + | === Automounter daemon (AMD) === | ||
| + | |||
| + | === Clock synchronization === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | < | ||
| + | echo ntpdate=YES >> / | ||
| + | echo ntpd=YES >> / | ||
| + | </ | ||
| + | |||
| + | ==== CHANGING /etc FILES ==== | ||
| + | |||
| + | === Add new users === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | === System boot scripts and / | ||
| + | |||
| + | === rc.conf === | ||
| + | |||
| + | === X Display Manager === | ||
| + | |||
| + | === Printers === | ||
| + | |||
| + | === Tighten up security === | ||
| + | |||
| + | === Kerberos === | ||
| + | |||
| + | === Mail aliases === | ||
| + | |||
| + | === Postfix === | ||
| + | |||
| + | === DHCP server === | ||
| + | |||
| + | === Bootparam server === | ||
| + | |||
| + | === NFS server === | ||
| + | |||
| + | === HP remote boot server === | ||
| + | |||
| + | === Daily, weekly, monthly scripts === | ||
| + | |||
| + | === Other files in /etc === | ||
| + | |||
| + | === Crontab (background running processes) === | ||
| + | |||
| + | * '' | ||
| + | |||
| + | === Next day cleanup === | ||
| + | |||
| + | === Packages === | ||
| + | |||
| + | * [[NetBSD pkgsrc]] | ||
| + | * [[ftp:// | ||
| + | * [[http:// | ||
| + | |||
| + | === Check the running system === | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== SYSTEM TESTING ==== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Download the '' | ||
| + | |||
| + | < | ||
| + | tar -C / -zxf tests.tgz | ||
| + | </ | ||
| + | |||
| + | Run the system tests, saving the output for review: | ||
| + | |||
| + | < | ||
| + | atf-run | tee ~/tests.log | atf-report | ||
| + | </ | ||