Last updated at: 2009/09/14

> Downloads :: OpenBSD :: Installation

Install

Please burn the ISO-Image to a CD and boot from it, to install the OpenBSD Release of Anoubis. Alternatively it is possible to install this ISO to a virtual machine like qemu(1):

    qemu-img create <path/to/filesystem/image> 4G
    qemu -hda <path/to/filesystem/image> -cdrom <path/to/ISO> -boot d   

We will now demonstrate how to install OpenBSD.

After booting the install program displays the following messages:

    root on rd0a swap on rd0b dump on rd0b
    erase ^?, werase ^W, kill ^U, intr ^C, status ^T

    Welcome to the OpenBSD/i386 4.6 install program.
    (I)nstall, (U)pgrade or (S)hell? I

    Cool! Let's get to it.

    At any promp except password prompts you can escape to a shell by
    typing '!'. Default answers are shown in []'s and are selected by
    pressing RETURN. You can exit this program at any time by pressing
    Control-C. But this can leave your system in an inconsistent state.

    Choose your keyboard layout ('?' or 'L' for list) [default] de
    kbd: keyboard mapping set to de

    root on rd0a swap on rd0b dump on rd0b
    erase ^?, werase ^W, kill ^U, intr ^C, status ^T
    	(I)nstall, (U)pgrade or (S)hell? i
  

Now we configure the network:

    System hostname? (short form, e.g. 'foo') anoubis

    Available network interfaces are: fxp0 x10.
    Which one do you wish to configure? (or 'done') [x10] <Enter>
    IPv4 address for x10? (or 'dhcp' or 'none') [dhcp] <Enter>
    Issuing hostname-associated DHCP request for x10.
    DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 2
    DHCPOFFER from 192.168.1.257 (00:30:48:8c:50:21)
    DHCPREQUEST on x10 to 255.255.255.255 port 67
    DHCPACK from 192.1668.1.254 (00:30:48:8c:50:21)
    bound to 69.241.244.76 -- renewal in 1800 seconds.
    IPv6 address for x10? (or 'rtsol' or 'none') [none] <Enter>
    Available network interfaces are: fxp0 x10.
    Which one do you wish to configure? (or 'done') [done] <Enter>
    Using DNS domainname example.com
    Using DNS nameserver at 68.87.77.130 68.87.72.130
    Do you want to do any manual network configuration? [no] <Enter>
  

Followed by the configuration of the password for user root:

    Password for root account? (will not echo) pAssWOrd
    Password for root account? (again) pAssWOrd
    Start sshd(8) by default? [yes] <Enter>
    Start ntpd(8) by default? [no] <Enter>
    Do you expect to run the X Window System? [yes] <Enter>
    Do you want the X Window System to be started by xdm(1)? [no] <Enter>
    Change the default console to com0? [no] <Enter>
    Setup a user? (enter a lower-case loginname, or 'no') [no] <Enter>
    Since you setup a user, disable sshd(8) logins to root? [yes] <Enter>
  

In this step the harddisk will be partitioned. Then comes the selection of install media.

    Available disks are: wd0
    Which one is the root disk? (or 'done') [wd0] <Enter>

    Offset: 1312752       Signature: 0xAA55
            Starting         Ending        LBA Info:
     #: id      C   H   S -      C   H   S [      start:       size ]
    -------------------------------------------------------------------------------
    *0: 0B      0   1   1 -    195 254  63 [         63:    3148677 ] WinXP FAT-32
     1: 00      0   0   0 -      0   0   0 [          0:          0 ] unused     
     2: 00      0   0   0 -      0   0   0 [          0:          0 ] unused     
     3: 00      0   0   0 -      0   0   0 [          0:          0 ] unused   
    Offset: 1012095       Signature: 0xAA55
                Starting         Ending        LBA Info:
     #: id      C   H   S -      C   H   S [      start:       size ]
    -------------------------------------------------------------------------------
     0: 0B      0   1   1 -    195 254  63 [         63:    3148677 ] OpenBSD
     1: 00      0   0   0 -      0   0   0 [          0:          0 ] unused.....
     2: 00      0   0   0 -      0   0   0 [          0:          0 ] unused.....
     3: 00      0   0   0 -      0   0   0 [          0:          0 ] unused...
    Offset: 12739545       Signature: 0xAA55
                Starting         Ending        LBA Info:
     #: id      C   H   S -      C   H   S [      start:       size ]
    -------------------------------------------------------------------------------
     0: 0B      0   1   1 -    195 254  63 [         63:    3148677 ] Linux
     1: 00      0   0   0 -      0   0   0 [          0:          0 ] unused.....
     2: 00      0   0   0 -      0   0   0 [          0:          0 ] unused.....
     3: 00      0   0   0 -      0   0   0 [          0:          0 ] unused...
    Use (W)hole disk, use the (O)penBSD area, or (E)dit the MBR? [OpenBSD] W
    The auto-allocated layout for wd0 is:
#                size           offset  fstype  [fsize bsize  cpg]
    a:           984.5M          1012158  4.2BSD    2048 16384    1 # /
    b:           256.0M          3028435    swap
    c:         76319.1M                0  unused
    d:          3072.0M          3552726  4.2BSD    2048 16384    1 # /usr
    e:          1413.8M          9844182  4.2BSD    2048 16384    1 # /home
    e:           494.2M               63  ext2fs
    j:         70096.1M          12739608 unknown
    Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] A
    /dev/rwd0a: 984.5MB in 2016280 sectors of 512 bytes
    5 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
    /dev/rwd0e: 1413.8MB in 2895360 sectors of 512 bytes
    7 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
    /dev/rwd0d: 3072.0MB in 6291456 sectors of 512 bytes
    16 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
    /dev/wd0a on /mnt type ffs (rw, asynchronous, local)
    /dev/wd0e on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
    /dev/wd0d on /mnt/usr type ffs (rw, asynchronous, local, nodev)
  

    Let's install the sets!
    Location of sets? (cd disk ftp http or 'done') [cd] <Enter>
    Available CD-ROMs are: cd0.
    Which one contains the install media? (or 'done') [cd0] <Enter>
    Pathname to the sets?  (or 'done') [4.6/i386] <Enter>

    Select sets by entering a set name, a file name pattern or 'all'. De-select
    sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
    sets are labeled '[x]'.
    [X] bsd            [X] etc46.tgz       [X] game46.tgz     [X] xserv46.tgz
    [X] bsd.rd         [X] misc46.tgz      [X] xbase46.tgz    [ ] site46.tgz
    [X] bsd.mp         [X] comp46.tgz      [X] xetc46.tgz
    [X] base46.tgz     [X] man46.tgz       [X] xshare46.tgz
    Set name(s)? (or 'abort' or 'done') [done] all
    [X] bsd            [X] etc46.tgz       [X] game46.tgz     [X] xserv46.tgz
    [X] bsd.rd         [X] misc46.tgz      [X] xbase46.tgz    [X] site46.tgz
    [X] bsd.mp         [X] comp46.tgz      [X] xetc46.tgz
    [X] base46.tgz     [X] man46.tgz       [X] xshare46.tgz
    Set name(s)? (or 'abort' or 'done') [done] <Enter>


    Set name(s)? (or 'abort' or 'done') [done] <Enter>
    bsd          100% |***************************************|  6356 KB   00:09 ETA
    bsd.rd       100% |***************************************|  5003 KB   00:03 ETA
    bsd.mp       100% |***************************************|  6401 KB   00:04 ETA
    base46.tgz   100% |***************************************| 42854 KB   00:38 ETA
    etc46.tgz    100% |***************************************|  1190 KB   00:01 ETA
    misc46.tgz   100% |***************************************|  2252 KB   00:02 ETA
    comp46.tgz   100% |***************************************| 77563 KB   01:05 ETA
    man46.tgz    100% |***************************************|  7530 KB   00:08 ETA
    game46.tgz   100% |***************************************|  2547 KB   00:01 ETA
    xbase46.tgz  100% |***************************************|  9450 KB   00:08 ETA
    xetc46.tgz   100% |***************************************| 76180 KB   00:00 ETA
    xshare46.tgz 100% |***************************************|  2678 KB   00:05 ETA
    xserv46.tgz  100% |***************************************|  8543 KB   00:07 ETA
    site46.tgz   100% |***************************************|  8543 KB   00:32 ETA
    Location of sets? (cd disk ftp http or 'done') [done] <Enter>
  

Ending with a few questions about system daemons, Xorg(1) and the automatic Installation of the Anoubis packages.

    Start sshd(8) by default? [yes] y
    Start ntpd(8) by default? [no] y
    NTP server? (hostname or 'default') [default] <Enter>
    Do you expect to run the X Window System? [no] y
    Change the default console to com0? [no] <Enter>

    Saving configuration files......done.
    Generating initial host.random file ......done.
    What timezone are you in? ('?' for list) [Europe/Berlin] <Enter>
    Setting local timezone to 'Europe/Berlin'...done.

    Making all device nodes...done.
    Mulitprocessor machine; using bsd.mp instead of bsd.

    ***********************************
    Installing Anoubis packages
    ***********************************

    ==> Installing anoubisd ..
    ==> Installing xanoubis ..

    CONGRATULATIONS! Your OpenBSD install has been successfully completed!
    To boot the new system, enter 'reboot' at the command prompt.
    When you login to your new system the first time, please read your mail
    using the 'mail' command.
  

The install procedure is finished. To boot the new System please type in the shell prompt the command reboot.

    # reboot
    syncing disks... done

    The operating system has halted.
    Please press any key to reboot.
  

Uninstall

To uninstall anoubis restart your system.

Then remove the Anoubis kernel as well as the packages - such as anoubis-daemon and anoubis-gui - by following the steps below after the system has booted:

   pkg_delete anoubis-gui
   pkg_delete daemon
   mv /bsd /bsd.anoubis
 

Before proceeding with the following step you might have to export your http_proxy via export http_proxy=http://proxy:port.

  cd /
  ftp http://ftp.eu.openbsd.org/pub/OpenBSD/4.6/i386/bsd
 

The components anoubisd and xanoubis use additional files which cannot be removed by the deinstallation process. To completely remove Anoubis from your system please also delete the files and directories listed below.

   /dev/anoubis
   /dev/eventdev
   /var/run/anoubisd.pid
   /var/lib/anoubisd/
   /var/run/anoubisd.sock
   /etc/anoubis/
 

We recommend that you reboot your system after completing the deinstallation procedure.