The day before yesterday I backed up Vectra, /kolab, /etc, /usr/local/etc. And reformatted the computer and installed OpenBSD 4.0.
http://www.openbsd.org/
The worlds most secure OS, with only two remote holes in the default install found in over 10 years. And a heck of a lot of looking !!!
With out a doubt, this is the easiest to install OS I have ever worked with. I downloaded floppy40.fs from one of the FTP Mirrors. There are 40, 40A, and 40B. For most ‘Desktop’, ‘Server’, and ‘Laptop’ hardware sets respectfully.
I put one of my 3.5″ Stiffies in floppy disk drive #1 (/dev/fd0). Formated the disk and did a byte exact copy with the dd command.
Vectra# fdformat /dev/fd0
Format 1440K floppy `/dev/fd0'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.
Vectra# dd if=floppy40.fs of=/dev/rfd0c bs=32k
Vectra# cmp /dev/fd0 floppy40.fs
Vectra#
As per the OpenBSD documentation I used the compare utility to make sure I had a clean disk. Gotta remember about ol’cmp(1) hehe.
I ejected the disk and labeled it, ‘OpenBSD 4.0 Floppy40.fs’. Reinserted it and rebooted my computer. (After swapping monitors and keyboards).
The PC booted off the stiff disk, giving me a boot> prompt. Very sweetly I could use ‘ls’ to see what was on the disk, boot and bsd. Knowing that bsd was the kernel (from reading tfm) I booted it.
boot> boot bsd
Of course it will auto loaded the kernel into memory if you let it sit for a few seconds. Afterwards it asked for an install, upgrade, or shell prompt. I could have used a CD-ROM, but for just making a boot disk with an installer I felt it was kind of wasteful. Especially when Vectra is the only _personal_ computer I have /w a floppy drive. Ma’s has one but she’d freak if her PC booted to a getty prompt !
The installer reminds me some what of Slackware GNU/Linux’s way of asking which kernel to boot. But for the whole installer xD. I’m sorry to say that OpenBSD, while being the easiest to install OS I have _ever_ seen. Is not for the faint of heart to install !
The installer asked me for a terminal type, defaulting to vt220. I’m not really very smart about the old terminals having never used one. But the internet helps. The vt220 came with a LK201 keyboard with a layout close enough to the modern US Standard keyboard layout for my tastes. The only sad thing is that one cannot press scroll lock and page back to read stuff that flew by. At least on my system so, I’d recommend having the manual handy during partitioning.
The installer prompted for a kbd map, I took the default ‘us’ layout.
Welcome to the OpenBSD/i386 4.0 install program.
This program will help you install OpenBSD in a simple and rational way. At
any prompt except password prompts you can run a shell command by typing
'!foo', or escape to a shell by typing '!'. Default answers are shown in []'s
and are selected by pressing RETURN. At any time you can exit this program by
pressing Control-C and then RETURN, but quitting during an install can leave
your system in an inconsistent state.
Specify terminal type: [vt220]
kbd(8) mapping? ('L' for list) [none]
OpenBSD even supports using a serial console with a little hanky panky. One of the things, that in my opinion was very professional and a great change. It asked me _if_ I had a backup of my data. Normally (in my exp) you only get a warning about how dangerous it can be to any data on disk (which of course OpenBSD did). We then proceeded into the partitioning phase.
It listed the available disks (wd0) and asked for the root disk. I was prompted to use all of the disk or (default) not to use the whole disk for BSD. Being a dedicated machine, I wanted the whole disk used. If you want to multi-boot or make multiple slices (primary partitions) you’ll need to elect for a fdisking nightmare. Generally OpenBSD supports disks up to one Terrabyte, thats about 1,000,000 MB. Wwell, not really but close enough and easier to remember :-P. I chose to use the whole disk, so I was allowed to skip fdisk and go on to disklabel maker 9.0 pro.
I must warn ya, the fdisk/disklabel software has not advanced much in terms of interface. Since the ex(1) line editor was mans best friend. FYI, vi is a ‘visual’ interface to the ‘extended’ editor 🙂
I created a group of bsd partitions in my slice, following the suggestions most of the time.
From my installed system:
Terry@vectra-$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 147M 28.0M 112M 20% /
/dev/wd0h 393M 628K 372M 0% /home
/dev/wd0d 98.3M 2.0K 93.4M 0% /tmp
/dev/wd0g 6.7G 426M 5.9G 7% /usr
/dev/wd0e 148M 5.8M 135M 4% /var
One can set the offset, size, FS Type, and mount point when adding a new partition. Very lucky for me, it was smart enough to find the offset itself. I don’t really like working in cylinders so I was pleased to be able to specify the size in a more friendly manor. Such as 150M for 150 Megabytes 🙂
The file system type is ‘4.2BSD” or swap. wd0a and wd0b default to the root / partition and swap partitions respectfully. Also the wd0c refers to the _entire_ slice (primary partition). When done, I wrote the label and exited. It prompted me to confirm the mount points, kind of handy. After confirming my 5 mount points I issued a ‘done’.
Yet again, it wanted me to confirm that I wanted to continue with the formating. It auto formated each partition in the label and took me to the configuration phase.
I have never seen such a simple configuration phase, all it really amounts to is setting up enough data for the machine to attach to the network, or at least use the ‘hostname’ command. I set the short hostname when prompted to ‘vectra’. I then had a boolean problem, do I configure the network or not? Since I don’t see any point in waiting till first boot or chrooting after install and doing it before first boot. I decided to set up the network settings. Be warned, the only text editor you have to work with is ed(1). I really hate ed, but its a good little editor when you think about how tight the space is on a 1.44MB boot disk.
I set up my 3Com ethernet NIC (xl0) using DHCP, when prompted and worked the following.
DNS domain name? (e.g. 'bar.com') [my.domain] my.domain
DNS nameserver? (IP address or 'none') [my name servers] Enter
Use the nameserver now? [yes] yeskbd>
Default route? (IP address, 'dhcp' or 'none') [dhcp] dhcp
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] yes
A very nice set up, I then used the shell and ed to take a look at my network configuration, all was right. After exiting the shell, I was ordered to set roots password. That completed the configuration phase ! Yeah thats it, all you really have to set up is enough to get a network connection and a password for root.
Not having been able to afford a disk set, when prompted for the install media (i386 supports cd, disk, ftp, and http). I took up an ftp install, electing _not_ to setup ftp/http proxy connection details. As I do not have one to worry about when doing this stuff ^_^
I installed using the ftp.openbsd.org mirror with the default package sets. Be warned it does take a little while for it to connect to the server and let you choose packages. The required are:
- bsd - The Kernel
- base40.tgz - The base system (think /bin:/sbin:/usr/bin:/usr/sbin e.t.c)
- etc40.tgz - System Configuration files (/etc)
* bsd.mp - Multi-processor (SMP) kernel (only some platforms) * bsd.rd - RAM disk kernel
The other packages are: comp40, development tools (gcc, headers, libs e.t.c.), man40 (man pages), misc40 (extra docs), games40 (simple games), and a slew of x* packages required for using the X Windows System. Being intended for a SMB/NTP/Print server, I don't need an X Server eating my 8GB disk.
The system fetched and installed each package I selected from the ftp mirror and took me to the 'startup' phase. Where I could adjust settings related to what would turn on automatically at boot. Namely.
Do I want SSHD (default yes), my LAN requires this since I can't get a KVM switch.
Do I want NTPD (default no), I want vectra to be a time server for my lan.
Do I expect to run X (default no), which if yes would tune a few things to make the XxX life easier.
Should the default console be com0, *nix starts numbers at 0, so BSDs com0 is DOS/Winsucks com1 !
And a would've been nicer to ask during configuration: Time Zone setup. I elected for 'Zulu' time. I don't use local time for much, and try to use UTC when ever I can.
A little BSD Magic and vola
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter halt at the command prompt. Once the
system has halted, reset the machine and boot from the disk.
The manual did mention chroot'ing and doing configuration before reboot, but I found that it was unnecessary for my needs.
On reboot I had a very good working system, checked the afterboot man page, confirmed I had a solid network connection, added a regular user(s), and could SSH in from it/them.
All was well and good, but after like 10-15 mintues the system would drop off the LAN. I couldn't figure it out, but putting a KB or monitor back on it fixed it. After a poke in the BIOS the next morning. I found a very interesting option 🙂
The system was set to stand by after n minutes, I tested with both standby and suspend set to 15 minutes. And sure enough after 15 minutes my SSH session would time out. And I'd have to physically type a key on the keyboard, or insert one into the port. After I cleared this, all was well ! FreeBSD never cared a rats behind but FreeBSD is not OpenBSD 🙂
I had thought maybe the kernel thought there was a problem /w the default console, but I figured that'd leave some viable info or a crash. Apparently the BIOS was the problem hehe.
PC-BSD, an easy to install FreeBSD based desktop has a great GUI installer. Very easy and simple, but I think OpenBSDs was easier. Since I elect to do 'advanced' installs with PC-BSD rather then the short basics. Never the less, the effect was the same.
PC-BSD, a fully working KDE Desktop on the first boot.
OpenBSD, a fully working Console System on the first boot.
I didn't really have to configure a bloody thing after running adduser on the OpenBSD box 😉 Of course theres more work to do, but not as a case of getting a _working_ system. I find OpenBSD so far to be a great system.