Just notes for myself to follow on subsequent OpenBSD 4.1 installs.
- Download and burn cd41.iso
- Insert CD and boot to CD on machine that is going to be setup.
- After disk detection, when prompted for Install/Upgrade/Shell, enter "i" for install.
- Press enter for [vt220] console.
- kdb(8) mapping?: "us"
- Proceed with install: "yes"
- Available disks are: wd0.
Which one is the root disk? (done 'done'): [wd0] - Do you want to use *all* of wd0 for OpenBSD? [no] "no"
(As I am goin going to have this machine tri-boot Windows XP, Debian, and OpenBSD) - As I have:
*0: 07 0 1 1 - 1292 239 63 [ 63: 19550097 ] HPFS/QNX/AUX (Windows NTFS) 1: 83 1293 0 1 - 1939 239 63 [ 19550160: 9782640 ] Linux files (Linux EXT3) 2: A6 1940 0 1 - 2457 239 64 [ 29332800: 7832160 ] OpenBSD 3: 83 2458 0 1 - 2583 239 63 [ 37164960: 1905120 ] Linux SWAP
Now, the "OpenBSD" seen above was created just as a partition label when using "fdisk" from Linux. Thus, we're still going to fully work on that partition here to make sure it's done right. -
fdisk: 1> e 1 Partition id: a6 CHS Mode? y BIOS Start. cyl.: 1940 BIOS Start. head: 0 BIOS Start. sec.: 1 BIOS End. cyl.: 2457 BIOS End. head: 239 BIOS End. sec.: 63 fdisk:*1> p m *0: 07 0 1 1 - 1292 239 63 [ 63: 9546M ] HPFS/QNX/AUX (Windows NTFS) 1: 83 1293 0 1 - 1939 239 63 [ 19550160: 4777M ] Linux files (Linux EXT3) 2: A6 1940 0 1 - 2457 239 64 [ 29332800: 3824M ] OpenBSD 3: 83 2458 0 1 - 2583 239 63 [ 37164960: 930M ] Linux SWAP fdisk:*1> f 2 Partition 2 marked active. fdisk:*1> p m 0: 07 0 1 1 - 1292 239 63 [ 63: 9546M ] HPFS/QNX/AUX (Windows NTFS) 1: 83 1293 0 1 - 1939 239 63 [ 19550160: 4777M ] Linux files (Linux EXT3) *2: A6 1940 0 1 - 2457 239 64 [ 29332800: 3824M ] OpenBSD 3: 83 2458 0 1 - 2583 239 63 [ 37164960: 930M ] Linux SWAP fdisk:*1> w Writing MBR at offset 0. fdisk: 1> q
- Initial label editor (enter '?' for help at any prompt):
> d a > a a offset: [29332800] size: [7832160] 150m Rounding to nearest cylinder: 307125 FS type: [4.2BSD] mount point: [none] / > a b offset: [29332800] 29639925 size: [4265634559] 500m Rounding to nearest cylinder: 1024380 FS type: [swap] > a d offset: [29332800] 30664305 size: [6500655] 50m Rounding to nearest cylinder: 102060 FS type: [4.2BSD] mount point: [none] /tmp > a e offset: [29332800] 30766365 size: [6397595] 50m Rounding to nearest cylinder: 102060 FS type: [4.2BSD] mount point: [none] /var > a f offset: [29332800] 30868425 size: [6296535] 500m Rounding to nearest cylinder: 1024380 FS type: [4.2BSD] mount point: [none] /home > a g offset: [29332800] 31892805 size: [5272155] FS type: [4.2BSD] mount point: [none] /usr > p m 16 partitions: # a: 150.0M 14322.7M 4.2BSD 2048 16384 16 # / b: 500.2M 14472.6M swap c: 19077.2M 0.0M unused 0 0 d: 49.8M 14972.8M 4.2BSD 2048 16384 16 # /tmp e: 49.8M 15022.6M 4.2BSD 2048 16384 16 # /var f: 500.2M 15072.5M 4.2BSD 2048 16384 16 # /home g: 2574.3M 15572.7M 4.2BSD 2048 16384 16 # /usr i: 9545.9M 0.0M unknown j: 4776.7M 9546.0M ext2fs k: 930.2M 18147.0M unknown > q Write new label?: [y]
Where c: is the entire-hardisk (OpenBSD stuff), i: is the NTFS for windows, j: the ext3 for linux, and k: the swap for linux. Mount point for wd0d: [/tmp] Mount point for wd0e: [/var] Mount point for wd0f: [/home] Mount point for wd0g: [/usr] Mount point for wd0d: [/tmp] done No more disks to initialize. OpenBSD filesystems: wd0a / wd0d /tmp wd0e /var wd0f /home wd0g /usr The next step *DESTROYS* all existing data on these partitions! Are you really sure that you're ready to proceed? [no] y
System hostname? (short form, e.g. 'foo') darvan Configure the network? [yes] (At this point I am connected via ethernet cable, not using my wireless card yet) Available interfaces are: fxp0 ath0. Which one do you wish to initialize? (or 'done') [fxp0] Symbolic (host) name for fxp0? [darvan] The media options for fxp0 are currently media: Ethernet autoselect (100baseTX full-duplex) Do you want to change the media options? [no] IPv4 address for fxp0? (or 'none' or 'dhcp') dhcp Bound to 10.0.3.115 -- renewal in 3600 seconds. IPv6 address for fxp0? (or 'rtsol' or 'none') [none] Available interfaces are: ath0. Which one do you wish to initialize? (or 'done') [ath0] done DNS domain name? (e.g. 'bar.com') [hostdime.com] dayid.org DNS nameserver? (IP address or 'none') [4.2.2.1 72.29.66.2] Use the nameserver now? [yes] Default IPv4 route? (IPv4 address, 'dhcp' or 'none') [dhcp] Edit hosts with ed? [no] Do you want to do any manual network configuration? [no]Password for root account? (will not echo) Password for root account? (again)
Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd] http HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] Display the list of known http servers? [no] y Server? (Ip address, hostname, list#, 'done' or '?') 41 Using mirror.planetubix.net/pub/OpenBSD Chicago, IL, USA Server? (IP address, hostname, list#, 'done' or '?') [mirror.planetunix.net] Server directory? [pub/OpenBSD/4.1/i386] [x] bsd [x] bsd.rd [ ] bsd.mp [x] base41.tgz [x] etc41.tgz [x] misc41.tgz [x] comp41.tgz [x] man41.tgz [x] game41.tgz [ ] xbase41.tgz [ ] xetc41.tgz [ ] xshare41.tgz [ ] xfont41.tgz [ ] xserv41.tgz Set name? (or 'done') [bsd.mp] all Set name? (or 'done') [done] Ready to install sets? [yes] [...] Location of sets? (cd disk ftp http or 'done') [done]
Start sshd(8) by default? [yes] Start ntpd(8) by default? [no] Do you expect to run the X Window System? [no] y Change the default console to com? [no] Saving configuration files...done. Generating intial host.random file...done. What timezone are you in? ('?' for list) [Canada/Mountain] EST Setting local timeszone to 'EST"...done. [...]CONGRATULATIONS! Your OpenBSD install has been successfully completed! To boot to the new system, enter halt at the command prompt. Once the system has halted, reset the machine and boot from the disk.
- [reboot & login]
- adduser, configure ssh, add packages...
- # export PKG_PATH=http://mirror.planetunix.net/pub/OpenBSD/4.1/packages/i386/
pkg_add -r wget rsync kismet portsentry tightvnc unzip zip mutt - Now, since my wired connection (fxp0, built-in) is already configured, we'll move to trying to figure out my wireless pcmcia card, a D-Link wna-2330:
# dmesg | grep ath0
ath0 at cardbus1 dev 0 function 0 "Atheros Communications, Inc., AR5001-0000-0000, Wireless LAN Reference Card": irq 11
ath0: AR5213 7.9 phy 4.5 rf2112a 5.6, FCC1A, address 00:15:e9:d9:6a:e3
# ifconfig ath0ath0: flags=8822
mtu 1500 lladdr 00:15:e9:d9:6a:e3 groups: wlan media: IEEE802.11 autoselect status: no network ieee80211: nwid ""


