Ok here they are , I had them prepared but wasn't sure to include them in the first post of this topic ( length )
Be sure to read them first before plunging into an install and feel free to shoot questions first before wiping your entire harddisk 🙂
IMPORTANT TO NOTE NetBSD might not be your cup of tea, I'll post my personal experiences later on today.
For laptops SLEEP/SUSPEND/HIBERNATE does not work, the build-in Airport Wireless does not work well
and there is no Altivec or mesa accelerated Graphics like on OS X Tiger/Leopard.
Wifi is not yet covered here so you will need wired Ethernet if you want to install/use it .
If you want to check out the packages that are available to install via pkgin first (binaries so no source compilation)
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/powerpc/10.0_2025Q2/All/
The guide is like in a typical BSD fashion overly documented which is good but overwhelming for a novice user.
Partitioning took me 3 times to get it right,
only installing NetBSD no dual-boot onto an iBook G4 with a working CDROM.
Burn the install media onto a CD-ROM from here
==Boot into OS X
I have a CompactFlash Firewire OS X installation which I used to boot into since you cannot wipe your harddisk that you are booting from !
If you have another Mac you could use Target Mode via Firewire to mount the harddisk of the machine on which
you want to install NetBSD.
Open Disk Utility ,create 2 partitions , the first being Apple Journaled Extended aka HFS+ , shrink it down as small as it can go. I gave it the name boot as to easily identify it later.
I could not choose MB in the graphical GUI of Disk utilty so I used command line to create a 512 MB HFS+ partition, rest as free space.
Open Terminal.
Run the command to list your drives:
Locate the identifier for the partition you want to resize (e.g., /dev/disk2s2).
Resize the partition using the diskutil resizeVolume command.
Replace X and Y by your partition that you saw listed.
Code:
diskutil resizeVolume /dev/diskXsY 512M
Download the netbsd-GENERIC.gz and ofwboot.xcf
copy it to this 512 MB HFS+ partition which you called boot .
==Boot the NetBSD installer CD
Boot into Open Firmware by pressing CMD+OPTION+O+F at power-on
Code:
boot cd:,ofwboot.xcf netbsd
Using netbsd.macppc like suggested in the INSTALL manual didn't work me (OpenFirmware version 3)
press enter for Terminal type vt100
I then followed the creation of partitions here on the Tenfourfox blog loosely
(First, as a public service message, if you're running Linux on a G5 you may wish to update the kernel .) I'm a big fan of NetBSD . I've ru...
tenfourfox.blogspot.com
Chose the option in the installer to go to shell, and adapted the Tenfourfox instructions to my use-case
S for shell
Attention backspace does not work in case you make typo's , you have to use CTRL-H as backspace.
pdisk /dev/wd0
When it asks you for a command, type a capital letter P and press RETURN.
This will print out the current partition map, which in my case showed 4 partitions:
the Apple partition map itself
the HFS+ partition
and a tiny Apple_Boot partition
After that is the space for NetBSD.
This was partition number 4 in my case.
First we will formally create the swap. This is done with the capital letter C command.
Indicate the first block is 4p (i.e., starting at partition 4), for 4194304 blocks (2GB), type Apple_UNIX_SVR2 (don't forget the underscores!), and choose the slice for swap.
Next is the actual NetBSD root: capital letter C, then saying the first block was 5p (i.e., starting at partition 5, the unallocated section), soaking up the rest of the blocks (however many you see listed under Apple_Free), type Apple_UNIX_SVR2 (don't forget the underscores!), and choose the slice for root
Verify the partition map one more time with the capital letter P command, then write it out with lower-case w, answering y(es), and then quit with lower-case q.
At the shell prompt, return to the installer by typing exit (ENTER) exit , press enter for the vt100 and then press I for install.
'a installation messages in English' press ENTER or change if you need another language
'a Install NetBSD to hard disk' press ENTER
'Shall we continue ?' choose 'b Yes' press ENTER
available disks a is selected in my case wd0 60G(igabtyes) , pressed ENTER
and when asked, indicate you will "a Use existing partition sizes.
In the list that is presented you will see the root partition on the top, a: , choose it and
press ENTER and choose' i: mount point' and fill in
/
Then choose X OK , and then X partitions ok option.
Shall we continue? choose b: yes
ATTENTION THIS IS WHERE NETBSD starts to format your harddisk
I chose a custom install to trim down the number of packages but learned on my first install that you better let it install textproc/compiler tools etc if you want to use pkgsrc to compile packages from source .
I installed all the X-related stuff since this is your graphical server.
Otherwise all these tools will need to be installed afterwards or worse compiled from source.
Then you will have to configure your timezone, wired network setup, add a user , add that user to wheel !
I chose NTP, NTP update, no SSH, none of the cgd/RAID/stuff but chose the xdm graphical login.
Make sure you install pkgin , it is the apt/pkg_add/dnf/yum of NetBSD.
if it complains that ftp cannot connect to https, change it to http and it will work.
When done configuring you will return to the main installer menu where you can select reboot , hold down CMD+OPTION+O+F again when your machine boots to go into OpenFirmware.
(if you are too late you will get the flashing folder icon, just reboot and keep the above keys pressed)
Code:
boot device hd:,\ofwboot.xcf /netbsd-GENERIC.gz
This will now boot NetBSD but each time you reboot you will have to go into OpenFirmware again and
type this command again.
In case you want your settings to be permanent , as in autoboot to NetBSD at poweron, I used these
Code:
setenv auto-boot? true
setenv boot-device hd:,\ofwboot.xcf
setenv boot-file hd:,/netbsd-GENERIC.gz
reset-all
Wifi is yet not configured so make sure to have your wired Ethernet cable plugged in.
Et voila you are now booting into the xdm login screen after which you arrive in cwtm (window manager) and are greeted by an uxterm/xterm window.
check that your Wired Ethernet has an ip
Code:
ifconfig gem0 | grep 'inet '
and that DNS works
switch to root
Code:
su root
pkgin install sudo
visudo
Use the arrow keys to go towards the bottom to find the line
##Uncomment to allow members of group wheel to execute any command
go to the beginning of the line underneath which says
# %wheel ALL=(ALL:ALL) ALL
delete the '
# ' by pressing x twice
You should now have
Code:
##Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL:ALL) ALL
Press
:w followed by
:q
type exit (ENTER) exit (ENTER) , your terminal window will now close.
Click on the background in the NetBSD open a new Terminal by click on ... Terminal
🙂
Now you can install packages using
sudo pkgin install or search for them with
sudo pkgin search
To be continued ...