Operating System - tulliolo/mobybolt GitHub Wiki
We configure the PC and install the Linux operating system.
We use the latest stable Debian release (currently Debian 12 - Bookworm), without a graphical user interface. This provides the best stability for the PC and makes the initial setup a breeze.
From your regular PC, direct download Debian by going to the official website and clicking on the Download button.
Open a terminal and point it to the directory where you downloaded the image (usually, $HOME/Downloads):
$ cd $HOME/Downloads
$ ls | grep debian
> debian-12.5.0-amd64-netinst.iso
debian-12.X.Y-amd64-netinst.iso
Identify the USB flash drive by running the sudo fdisk -l command before and after inserting it (the output will be in the form /dev/sdX, where X may vary):
$ sudo fdisk -l
> ...
> Disk /dev/sdb: 14,51 GiB, 15581839360 bytes, 30433280 sectors
> Disk model: MyUSB Drive
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x1a92d911
> ...
Create the USB bootable media:
$ cp debian-12.X.Y-amd64-netinst.iso /dev/sdX
$ sync
Remove the pen drive.
To flash the operating system .iso to the pen drive, we will use the Balena Etcher application. Go to the website and download the installer for your OS.
- Install the Balena Etcher
- Start the Balena Etcher
- Select "Flash from file" -> Select the Debian .iso file previously downloaded
- Attach the pen drive
- Click on "Select target"
- Select your pen drive unit
- Click on "Flash!"
Balena Etcher will now flash the operating system to your drive and validate it.
âī¸ It should display a "Flash Complete!" message after
Remove the pen drive.
Let's install Debian. Following is the installation procedure. At the bottom, you'll also find an animated gif that reports the entire process.
âšī¸ A wired connection is recommended, but if you prefer you can configure wifi during installation
âšī¸ The use of the mouse is optional, you can also navigate between the installation settings using the arrow and tab keys.
Plug the pen drive in the target MobyBolt Host, together with a keyboard, a monitor, a mouse (optional) and a ethernet wire.
Turn on the PC and press the key quickly to enter to BIOS setup or directly to the boot menu to select the pen drive as the 1st boot priority device (normally, F9, Esc, F12, or Supr keys). Save and exit.
When the Debian menu appears, choose Graphical install and proceed with the following steps:
-
In
Select a languagepickEnglishand hitEnter/Continue -
In
Select your location:- pick
otherand hitEnter/Continue - pick
Europeand hitEnter/Continue - pick
Italyand hitEnter/Continue
- pick
-
In
Configure localespickUnited Statesand hitEnter/Continue -
In
Configure the keyboardpickItalianand hitEnter/Continue -
In
Configure the network:- in
Hostnamewritemobyboltand hitEnter/Continue - leave the
Domain namefield blank and hitEnter/Continue
- in
-
In
Set up users and passwords:- write twice a simple root password it in the proper fields and hit
Enter/Continue - leave the
Full name for the new userfield blank and hitEnter/Continue - in
Username for your accountwritetempand hitEnter/Continue - write twice a simple temp password it in the proper fields and hit
Enter/Continue
âšī¸ You can safely choose a simple password for the root user, since we will disable root login in the following steps
âšī¸ You can safely choose a simple password for the temp user, since this user will be replaced by the admin user (you can't use the username "admin" during installation) - write twice a simple root password it in the proper fields and hit
-
In
Partition disks:- pick
Guided - use entire diskand hitEnter/Continue - in
Select disk to partitionpick the smallest disk and hitEnter/Continue - in
Partitioning schemepickAll files in one partition (recommended for new users)and hitEnter/Continue - in the overwiew window,
â ī¸ only if you have a secondary storage for dataâ ī¸ :- pick the largest disk and hit
Enter/Continue - in
Create new empty partition table for this device?pickYesand hitEnter/Continue - in the overview window pick the
FREE SPACErelated to the secondary drive and hitEnter/Continue - in
How to use this free spacepickCreate a new partitionand hitEnter/Continue - in
New partition sizewritemaxand hitEnter/Continue - in
Partition settingspickMount pointand hitEnter/Continue - in
Mount point for this partitionpickEnter manuallyand hitEnter/Continue - in
Mount point for this partitionwrite/var/lib/dockerand hitEnter/Continue - in
Partition settingspickDone setting up the partitionand hitEnter/Continue
- pick the largest disk and hit
- in the overview window pick
Finish partitioning and write changes to diskand hitEnter/Continue - in
Write the changes to disks?pickYesand hitEnter/Continue
- pick
-
In
Configure the package manager:- in
Scan extra installation mediapickNoand hitEnter/Continue - in
Debian archive mirror countrypickItalyand hitEnter/Continue - in
Debian archive mirrorpickdeb.debian.organd hitEnter/Continue - leave the
HTTP proxy informationfield blank and hitEnter/Continue
- in
-
In
Configure the popularity-contextpickNoand hitEnter/Continue -
In
Software selectionpick onlySSH serverandstandard system utilities, uncheck all the other options, and hitEnter/Continue -
In
Finish the installationhitEnter/Continueto reboot and remove the pen drive

Once rebooted, log in as root and follow the next instructions.
Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. By installing avahi, the node will be reachable on the local network as mobybolt.local, as well as with the IP address, which can then stay dynamic.
đĄ To check your current IP address, you can type the command ip addr and look for an interface name like enp0s1 (wired) or wlp2s0 (wifi). You should then see a line similar to inet 192.168.X.Y, which is your IP address.
In the following example we detect the IP 192.168.122.58 associated with the wired interface enp1s0:
$ ip addr
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> valid_lft forever preferred_lft forever
> inet6 ::1/128 scope host noprefixroute
> valid_lft forever preferred_lft forever
> 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
> link/ether 52:54:00:e6:0a:2f brd ff:ff:ff:ff:ff:ff
> inet 192.168.122.58/24 brd 192.168.122.255 scope global dynamic enp1s0
> valid_lft 3335sec preferred_lft 3335sec
> inet6 fe80::5054:ff:fee6:a2f/64 scope link
> valid_lft forever preferred_lft forever
To install and run Avahi, run the following command:
$ apt install -y avahi-daemon
-
Remove the temp user (do not worry about the "
userdel: temp mail spool (/var/mail/temp) not found" message):$ userdel -rf temp > userdel: temp mail spool (/var/mail/temp) not found -
Install sudo
$ apt install -y sudo vim -
Create the admin user with your Password [ A ]:
$ adduser --comment "" admin > Adding user `admin' ... > Adding new group `admin' (1000) ... > Adding new user `admin' (1000) with group `admin (1000)' ... > Creating home directory `/home/admin' ... > Copying files from `/etc/skel' ... > New password: > Retype new password: > passwd: password updated successfully > Adding new user `admin' to supplemental / extra groups `users' ... > Adding user `admin' to group `users' ... -
Add the admin user to some groups:
$ usermod -a -G adm,audio,cdrom,dip,floppy,netdev,plugdev,sudo,users,video admin -
Logout:
$ logout
You can now disconnect the keyboard and monitor and continue the installation remotely.