Lunduke
News • Science & Tech
How To: Build and run Serenity OS
(In 5 easy steps)
May 10, 2023
post photo preview

So you've heard about Serenity OS -- the scrappy little upstart operating system that takes deep inspiration from the systems of the 1990s.  And now, because you are a totally normal and reasonable nerd, you want to try it out.

Well, here's the bad news: There are no ready-to-go ISO images of Serenity.  No installers.  If you want Serenity OS, you're going to have to build it from source.  Seriously.

But fear not, fellow nerd!

For I am here to walk you through doing exactly that... and -- you know what? -- it's actually a pretty simple process.

So simple, in fact, that I'm going to fill this article up with screenshots just to make it seem bigger, and more dififcult, than it actually is.

Step 1) Be running Ubuntu and have some drive space ready

Most of these instructions will be very similar most flavors of Linux... and pretty doggone similar for Windows or macOS as well (especially the last couple of steps).  But we're going to assume you are running a semi-recent version of Ubuntu for this tutorial.  Or, at the very least, an Ubuntu-derived system.

If you happen to be running Windows or macOS, you can still mostly follow along... but you'll also want to check the Build Instructions on the Serenity GitHub page for more details on getting all of the requirements installed.

In addition you'll need 7.6 GB of space available on your hard drive.  At least.  This is how much the total code repository, build, and disk image takes up.

Step 2) Install the Requirements

Copy, paste, and run the following to install most of the key system requirements:

sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs ninja-build qemu-system-gui qemu-system-x86 qemu-utils ccache rsync unzip texinfo libssl-dev

Then run the following to install the needed version of the GCC compiler:

sudo apt install gcc-12 g++-12

On some systems it might be a good idea to explicitly install QEMU (the PC emulator which we'll be using).  Though it should be installed in the requirements above.  But doesn't hurt to run this:

sudo apt install qemu

Note: You must have at least version 6.2 of QEMU for Serenity OS.

Step 3) Grab the Serenity OS code

There are two super simple ways to get the full code for Serenity OS:

Option 1: Run the following command:

git clone https://github.com/SerenityOS/serenity

That will create a "serenity" directory and make a clone of the entire repository.  Easy peasy.

Option 2: Go to https://github.com/SerenityOS/serenity and click on the "Code" button... then click "Download ZIP".

It will look something like this:

This will download the whole project as a single zip file.  Then you'll simply extract that zip file to any folder you like.

Step 4) Build the Toolchain

Before we build the latest version of the operating system itself... we need to build all of the tools needed to do the building.

Luckily that process is simply one command.  Be within the "serenity" directory and run the following:

Meta/serenity.sh rebuild-toolchain

Fair warning: This can take a while depending on how beefy your machine is.  The output will look something like this...

Or this...

Also a bit of this...

When that finishes... we're on to the fun part...

Step 5) Build Serenity OS and run it!

This last step, likewise, is super simple.  But it can take a while for a full, fresh build of the whole Serenity OS.

Run this:

Meta/serenity.sh run

That is where all the magic happens.  All of the code is compiled (with the binaries located in Build/x86_64/Root) and then a QEMU ready disk image is created with the entire Serenity OS ready to rock and roll.

Then... wait for it... Ta-da!  QEMU launches with Serenity OS!

This is what Serenity OS looks like on first boot (at least... in the current build... which is changing all the time).

But, of course, Serenity has a whole bunch of themes you can choose from.  Like this semi-sorta-macOS inspired theme:

Or this Windows 95 inspired theme:

Can't go wrong with classic computer themes, I always say!

You now have a fully functional, virtualized Serenity OS system!  Huzzah!

Enjoy and poke around this delightful, open source system!

If you're not already a subscriber to The Lunduke Journal of Technology on Locals... now's the time!  Click that button so you don't miss out on all the nerdy goodness!

 

community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
13
What else you may like…
Videos
Podcasts
Posts
Articles
December 19, 2024
ChatGPT Can Not Say "Bryan Lunduke"

Move over David Mayer, Lunduke joins the list of names which OpenAl will not display. Here's how this was accomplished.

00:22:23
December 19, 2024
Mozilla Executive Pay Doubles as Loss of 80% of Revenue Looms

"Mozilla has shifted much of its work toward Al" as funds directed towards African "Digital Justice", "Queer Youth Inclusion", & "Digital Activism for Young Feminists".

00:25:04
December 17, 2024
Wordpress Contributors Must Now Agree That "Pineapple is Delicious on Pizza'

The Wordpress v. WP Engine legal battle just took a detour into... food.

00:05:57
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044
post photo preview

For those of you who have joined me recently, in grousing and complaining about ongoing changes to Locals and it's integration into Rumble, this screenshot should help to explain to you what has been going on:

https://corp.rumble.com/blog/rumble-announces-775-million-strategic-investment-from-tether/

post photo preview

While the lady with the two iBooks and the AirPort stuff ghosted me, I am meeting a guy MUCH closer tomorrow afternoon to pick up an early Christmas present for myself. In preparation for it, I ventured over to the Macintosh Repository and they've added an embedded MacAmp player with some cool lo-fi tunes. It's a quality feature.

post photo preview
post photo preview
Funny Programming Pictures Part LXVII
More funny, nerdy pictures than you can [idiom for large quantity understandable by humans]

There are XXXIX pictures in part LXVII of "Funny Programming Pictures".

IX out of X people reading that sentence just googled "Roman Numeral Converter".

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read full Article
December 18, 2024
The real "Year of The Linux Desktop"...
Read full Article
December 16, 2024
Lunduke's Quest - December 16, 2024
Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals