Difference between revisions of "Installing FreeBSD 5.3 on QUARKPRIME"

From Earlham CS Department
Jump to navigation Jump to search
Line 69: Line 69:
 
I installed the Amanda client utilities, with the server set as backup.
 
I installed the Amanda client utilities, with the server set as backup.
  
I installed vim and emacs as editors.
+
== Todo ==
 +
* Setup rsync for /clients and /var/mail
 +
* Install vim and emacs
 +
* Figure ACPI problem wrt rebooting

Revision as of 06:48, 11 March 2005

Initial installation

The install of FreeBSD 5.3 was fairly typical, with the exception that ACPI had to be disabled. This can be done by selecting "2" at the boot prompt, and permanently by adding hw.acpi.0.disable="1" to /boot/loader.conf.

After booting, the 54GB RAID-5 volume was partitioned like so:

/ UFS2 512MB
/clients UFS2 w/ SoftUp. 36GB
/var UFS2 w/ SoftUp. 3GB
/usr UFS2 w/ SoftUp. 10GB

After partitioning, base, compat4x, manpages, src, ports, and perl were selected for installation.

Configuration

The initial configuration consisted of adding the above-mentioned ACPI line to /boot/loader.conf, and then adding this /etc/rc.conf file:

usbd_enable="YES"
hostname="quarkprime.cs.earlham.edu"
nisdomainname="cs.earlham.edu"
ifconfig_xl0="inet 159.28.230.91 netmask 255.255.255.0"
ifconfig_xl1="inet 192.168.0.91 netmask 255.255.255.0"
named_enable="YES"
rwhod_enable="YES"
sshd_enable="YES"
nfs_server_enable="YES"
mountd_enable="YES"
mountd_flags="-rl"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_enable="YES"
ntpd_enable="YES"
nis_client_enable="YES"
nis_client_flags="-S cs.earlham.edu,159.28.230.91,159.28.230.3"
nis_server_enable="YES"
nis_yppasswdd_enable="YES"
defaultrouter="159.28.230.1"
saver="green"
enable_quotas="YES"
accounting_enable="YES"
linux_enable="YES"
kern_securelevel_enable="YES"
kern_securelevel="1"

I rebooted to make sure everything worked, and then ran ssh-keygen -t dsa to generate a public/private key pair, and gave it no password to remove the need to use an agent. I appended quarkprime's /root/.ssh/id_dsa.pub in quark's /root/.ssh/authorized_keys file, and quark's /root/.ssh/id_dsa.pub in quarkprime's /root/.ssh/authorized_keys file.

After getting ssh working, I installed a precompiled cvsup using /stand/sysinstall, and then proceeded to pull down fresh ports and src trees. I recompiled the kernel to enable SMP and quota support, and also to cut down on the amount of hardware drivers loaded with it.

For the NIS configuration, I made sure that the domainname was set to cs.earlham.edu, fired up rpcbind and ypserv, and then ran ypinit -s cs.earlham.edu to pull a fresh NIS map from quark. I added +:::::::: to the end of /etc/passwd and +::: to the end of /etc/group to enable the fall-through to NIS.

I put the 192.168.0 address for quark, quarkprime, image, and backup in /etc/hosts.

I installed the Amanda client utilities, with the server set as backup.

Todo

  • Setup rsync for /clients and /var/mail
  • Install vim and emacs
  • Figure ACPI problem wrt rebooting