Table of Contents
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
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.
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.
- 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.
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
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".
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.
Then, I'm going to select that my keyboard type is b: US-English.
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
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.
On the partition scheme screen, I'm selecting a: Guid Partition Table (GPT).
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.
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.
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
I don't know what a bootblock is honestly, lol. I'm selecting a: Use BIOS console.
Then, we're asked about the distribution. I'm selecting a: Full installation.
Install from a: CD-ROM / DVD / install image media (this will cover our USB as well.)
It will then do some installing. Sit around and wait for a moment.
Afterwards, Hit enter to continue once prompted.
3.3. Configuration
It will ask for your root password. Set something up!
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
- 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
- I'm just selecting US/ then US/Central.
3.3.3. e: Enable installation of binary packages
- It will ask if your network information is correct. Select a: Yes.
All the defaults should work fine, so from here select x: Install pkgin and update package summary.
- Wait for it to download and set things up, then Hit enter to continue.
3.3.4. f: Fetch and unpack pkgsrc
- Defaults should be fine here again. Select x: Fetch and unpack pkgsrc.
- Wait for a bit, then Hit enter to continue.
3.3.5. g: Enable sshd (Secure Shell daemon)
- Just toggle this to YES.
3.3.6. k: Enable xdm (X Display Manager)
- 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
- Set a Username
- You can add the user to the group wheel, to allow them to become su super user. (a: Yes)
- User shell: Set to a: /bin/sh
- Set a password for your user
3.3.8. x: Finished configuring
- Hit enter to continue.
- Remove your installation medium (remove USB, remove ISO on VM, whatever) and reboot.
4. Running NetBSD
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.
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
- Make sure to use
suto get into super user mode first. - You can use
pkgin search KEYWORDto do a search for binaries. Use
pkgin install PACKAGEorpkgin in PACKAGEto install a specific program.pkgin in firefox
4.1.2. Installing software from source with pkgsrc
- 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 installon 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.
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.
xfce - pretty light-weight
mate - my favorite (I have used mate for YEARS on my Linux Mint machine)
- 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
Fix is from https://stackoverflow.com/questions/21384040/why-does-the-terminal-show-a-b-c-d-when-pressing-the-arrow-k:
(As su):
chsh -s /bin/bash ${USER}
5.2. lxde - On boot, get error "GDBus.Error"
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
Created: 2026-11-27 Fri 13:36

