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
DOJ: Google Must Sell Off Chrome

And that's only one impact of Google being officially ruled a monopoly.

00:15:13
Mozilla's "Dreams" Do Not Include Firefox ... or Even Web Browsing

A survey about Mozilla's future doesn't mention Firefox... but it does have 8 gender options.

The "What Is Your Dream for Mozilla?" Survey: https://mozillafoundation.tfaforms.net/101

00:15:34
November 12, 2024
Red Hat: Linux is the Past, AI is the Future

Red Hat CEO says "Al needs to be everywhere", purchases Al company.

00:11:09
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
November 12, 2024
post photo preview
Last week at The Lunduke Journal (Nov 3 - Nov 9, 2024)
Gimp 3.0! NOTEPAD.EXE AI! Mozilla Layoffs!

There was some interesting news this week in the world of computing.

But the only one I can think about is NOTEPAD.EXE getting Artificial Intelligence.

I mean.  What the fart?!

The Shows

The Articles

Read full Article
November 09, 2024
post photo preview
Funny Programming Pictures Part LXIII
Now with 14% more Unicode jokes!

My favorite picture this week is the one thaNO CARRIER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read full Article
November 07, 2024
post photo preview
The Great Lunduke Journal November Fundraiser
Without The Lunduke Journal, many Tech stories would never be told. And you make that possible.

The November Fundraiser has ended -- and, thanks to all of you, was a resounding success.  Couldn't do this work without the support of each and every one of you.

Last Month at The Lunduke Journal

To give you an idea of what you're making possible, here is a simple list of the shows and articles published by The Lunduke Journal during the last month (October) alone.

It's... a lot.

The Shows

The Articles

Crazy, right?  Some of these news stories you won't find covered anywhere else.  If it weren't for The Lunduke Journal... so many stories simply would never be told.

A huge thank you to each and every supporter of The Lunduke Journal -- both new subscribers... and those of you who have been with us since the beginning.  Absolutely could not do it without you.

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