Go home


NetBSD Installation

Posted on 2026-11-27
‎

I set up NetBSD on my Acer Aspire One, but beyond that I'd like to install it perhaps on my primary laptop. I'm going to start with a VM first, and I'll put the steps here.

With my first NetBSD install, I followed How to Install NetBSD (2027 Edition) by tony, but not everything was super explained well and I deviated from a lot of the steps outside of the installation itself. So, I'll try to point out options beyond the base install as well.

1. Download NetBSD

  1. Go to the NetBSD.org homepage, which will have download links on the front page. You will have to select a version based on your CPU type.

    Modern computer? Probably amd64.

    Really old computer? Possibly i386 (like my Acer Aspire One)

    Mobile device? Possibly an arm processor.

  2. On the download page, I would grab the ISO file.

    They do have a "USB image" but I'm basically just familiar with creating bootable USBs via iso.

2. Creating a bootable USB

If you're installing to a VM you can skip this step. If you're installing to an actual computer you'll need to create a bootable device.

  1. Graphical program: I usually use unetbootin (Win/Linux/Mac) to create bootable USBs. You just have to select an iso file and the USB you're working with and it's usually good to go.
  2. Linux terminal: You will need to know the path to your plugged-in USB drive. Uusally you can open a partition program to view your devices.

    sudo dd bs=4M if=YOURISO.iso of=/dev/sdX status=progress oflag=sync
    

    https://linuxconfig.org/how-to-make-a-bootable-usb-from-an-iso-in-linux

3. Installation

  1. 2026-11-27_NetBSD_install01.png

    When you've successfully booted off your install medium you will get a little screen with an ASCII art flag and several options. Select "1. Boot normally".

  2. 2026-11-27_NetBSD_install02.png

    After some loading, you will get a screen with a blue background asking for your language. I am going to select "a: Installation messages in English" and press ENTER.

  3. 2026-11-27_NetBSD_install03.png

    Then, I'm going to select that my keyboard type is b: US-English.

  4. 2026-11-27_NetBSD_install04.png

    On the Install System menu, select Install NetSBSD to hard disk, then on the next screen select Yes to continue.

3.1. Setting up partitions

  1. 2026-11-27_NetBSD_install05.png

    On the Available disks screen, select whichever hard drive you're going to install the OS to. In this example, I have a VirtualBox virtual harddrive.

  2. 2026-11-27_NetBSD_install06.png

    On the partition scheme screen, I'm selecting a: Guid Partition Table (GPT).

  3. 2026-11-27_NetBSD_install07.png

    You may get a message asking if the hard drive geometry is correct. I am just going to select a: This is the correct geometry.

  4. 2026-11-27_NetBSD_install08.png

    Next we can set the partition sizes. For simplicity, and since I'm just on a VM right now, I'm selecting b: Use default partition sizes.

  5. 2026-11-27_NetBSD_install09.png

    Next it will display the partitions it sets up. You can select x: Partition sizes ok to continue. Then, select b: Yes on the next screen to continue.

3.2. Installing

  1. 2026-11-27_NetBSD_install10.png

    I don't know what a bootblock is honestly, lol. I'm selecting a: Use BIOS console.

  2. 2026-11-27_NetBSD_install11.png

    Then, we're asked about the distribution. I'm selecting a: Full installation.

  3. 2026-11-27_NetBSD_install12.png

    Install from a: CD-ROM / DVD / install image media (this will cover our USB as well.)

  4. 2026-11-27_NetBSD_install13.png

    It will then do some installing. Sit around and wait for a moment.

    Afterwards, Hit enter to continue once prompted.

3.3. Configuration

  1. 2026-11-27_NetBSD_install14.png

    It will ask for your root password. Set something up!

  2. 2026-11-27_NetBSD_install15.png

    Here we have the main configuration screen. DO NOT FINISH THE CONFIGURATION! We have stuff to set up!!

    Start with a: Configure network.

3.3.1. a: Configure network

  1. There may be multiple options here.
    • On my Aspire One there was an option for ethernet and for wifi, and I just entered the name of my wifi and the password.
    • On my VM it just shows wm0, so I am selecting that.
      • Network media type: Just ENTER with empty to autoconfigure.
      • Your host name: Put whatever you want. (I'm just putting "netbsd-vm" here.)
      • Your DNS domain [lan]: Leave blank
      • Then a: Yes to confirm.
      • Is the network information you entered accurate for this machine in regular operation and do you want it installed in /etc? Yes.

3.3.2. b: Timezone

  1. I'm just selecting US/ then US/Central.

3.3.3. e: Enable installation of binary packages

  1. It will ask if your network information is correct. Select a: Yes.
  2. 2026-11-27_NetBSD_install16.png

    All the defaults should work fine, so from here select x: Install pkgin and update package summary.

  3. Wait for it to download and set things up, then Hit enter to continue.

3.3.4. f: Fetch and unpack pkgsrc

  1. Defaults should be fine here again. Select x: Fetch and unpack pkgsrc.
  2. Wait for a bit, then Hit enter to continue.

3.3.5. g: Enable sshd (Secure Shell daemon)

  1. Just toggle this to YES.

3.3.6. k: Enable xdm (X Display Manager)

  1. If you want the OS to boot into a GUI instead of the command line, you can set this to YES.

3.3.7. o: Add a user

  1. Set a Username
  2. You can add the user to the group wheel, to allow them to become su super user. (a: Yes)
  3. User shell: Set to a: /bin/sh
  4. Set a password for your user

3.3.8. x: Finished configuring

  1. Hit enter to continue.
  2. Remove your installation medium (remove USB, remove ISO on VM, whatever) and reboot.

4. Running NetBSD

2026-11-27_NetBSD_install17.png

After rebooting it will take a bit to load up the first time, but eventually it will show the login screen. Enter your username, press ENTER, then enter your password, press ENTER.

2026-11-27_NetBSD_install18.png

The basic X view is not a great place to work in, so we'll set up a different desktop environment after we cover how to get software installed.

4.1. Installing software

4.1.1. Installing software with pkgin

2026-11-27_NetBSD_install19.png

  • Make sure to use su to get into super user mode first.
  • You can use pkgin search KEYWORD to do a search for binaries.
  • Use pkgin install PACKAGE or pkgin in PACKAGE to install a specific program.

    pkgin in firefox
    

4.1.2. Installing software from source with pkgsrc

2026-11-27_NetBSD_install20.png

  • Within the /usr/pkgsrc/ folder there will be a set of category folders that contain program source you can make and install.
  • Note that building from source seems to take a really long time compared to software I've used make install on in my Linux Mint environment.

4.2. Setting up a desktop environment

Many of your favourite Desktop Environments that you may be familiar with from Linux is also available for NetBSD.

The easiest way to get this set up is to probably install desktop-installer first:

pkgin in desktop-installer

And then running the program. It will ask you which desktop environment to set up and do the install and set it as the default desktop environment.

2026-11-27_NetBSD_install22.png

After the install, you can reboot the machine with reboot now.

4.2.1. Desktop Environment recommendations

Here are my recommendations:

  • lxde - very light-weight (I have this on my Acer Aspire One and it runs plenty snappy!) This is probably my favorite desktop environment for NetBSD.

    2026-11-27_NetBSD_lxde.png

  • xfce - pretty light-weight

    2026-11-27_NetBSD_xfce.png

  • mate - my favorite (I have used mate for YEARS on my Linux Mint machine)

    2026-11-27_NetBSD_mate.png

  • i3 - my favorite tiling window manager (I love i3 for when I'm stuck on just the laptop screen), however I've been having some trouble getting it working.

5. Additional setup notes

This is where I'll put random other things I run into to configure/fix.

5.1. Pressing "up" in terminal gives escape commands instead of previous command

5.2. lxde - On boot, get error "GDBus.Error"

2026-11-27_NetBSD_lxde_error.png

GDBus.Error:org.freedesktop.ConsoleKit.Manager.Error.General: Unable to lookup session information for process '1231'

This thread says to edit a ~/.xinitrc, though this did not help for me.

ck-launch-session dbus-launch --exit-with-session startlxde

Still figuring it out

5.3. i3wm - status_command not found or is missing a library dependency; dmenu not launching

When installing i3 with desktop-installer, it doesn't set up i3status or dmenu, so make sure to run:

(As su):

pkgin in i3status dmenu

5.4. i3wm - dmenu doesn't launch anything

Still figuring it out


Author: RachelWil

Created: 2026-11-27 Fri 13:36

Validate


Post list


Go home