no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | freebsd_install [2015/06/01 22:17] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== FreeBSD Install ====== | ||
+ | * [[FreeBSD]] | ||
+ | * [[FreeBSD Ports]] | ||
+ | * [[FreeBSD Install ISO]] | ||
+ | * [[OS Install Base]] | ||
+ | ==== Afterboot ==== | ||
+ | |||
+ | Right after installation, | ||
+ | |||
+ | Before moving on, setup SSH so you can login as root remotely: | ||
+ | |||
+ | < | ||
+ | sed -ie ' | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Update the kernel and userspace, and then reboot the machine: | ||
+ | |||
+ | < | ||
+ | freebsd-update fetch | ||
+ | freebsd-update install | ||
+ | </ | ||
+ | |||
+ | ==== Install Ports Tree ==== | ||
+ | |||
+ | Before installing any packages, let's bring the ports tree up to date. Depending on your install, you may already have a ports tree, but it will be outdated at this point. | ||
+ | |||
+ | Fetch the latest ports snapshot and update the tree: | ||
+ | |||
+ | < | ||
+ | portsnap fetch | ||
+ | portsnap extract > /dev/null | ||
+ | </ | ||
+ | |||
+ | ==== Configure Build System ==== | ||
+ | |||
+ | Before building any ports from source, update the configuration for all builds: | ||
+ | |||
+ | < | ||
+ | echo BATCH=yes >> / | ||
+ | echo WITHOUT_TEST=yes >> / | ||
+ | echo WITHOUT_X11=yes >> / | ||
+ | </ | ||
+ | |||
+ | ==== Base Install ==== | ||
+ | |||
+ | == Update timezone == | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | echo ntpdate_enable=YES >> / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== Utilities Install ==== | ||
+ | |||
+ | Now that the base install is finished, let's move into the basic utilities. | ||
+ | |||
+ | == Setup linprocfs for htop == | ||
+ | |||
+ | < | ||
+ | echo linproc / | ||
+ | mkdir -p / | ||
+ | ln -s /usr/compat /compat | ||
+ | mount linproc | ||
+ | </ | ||
+ | |||
+ | ==== VMWare Guest Tools Install ==== | ||
+ | |||
+ | Since this is probably a VMWare guest, install the tools so the server runs more smoothly. | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | cd / | ||
+ | cd && ftp http:// | ||
+ | tar -ozxf vmware-freebsd-tools.tar.gz && cd vmware-tools-distrib | ||
+ | perl vmware-install.pl | ||
+ | </ | ||
+ | |||
+ | ==== Disable Sendmail ==== | ||
+ | |||
+ | * Remove sendmail from startup | ||
+ | |||
+ | Add to ''/ | ||
+ | |||
+ | < | ||
+ | sendmail_enable=" | ||
+ | sendmail_submit_enable=" | ||
+ | sendmail_outbound_enable=" | ||
+ | sendmail_msp_queue_enable=" | ||
+ | </ | ||
+ | |||
+ | And you can disable some sendmail specific daily maintenance routines in your | ||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | daily_clean_hoststat_enable=" | ||
+ | daily_status_mail_rejects_enable=" | ||
+ | daily_status_include_submit_mailq=" | ||
+ | daily_submit_queuerun=" | ||
+ | </ | ||
+ | |||
+ | If ''/ |