Recently, we wrote an article on DistroBox showcasing the advantages of using it, in which one was trying out the latest Linux desktop environment (DE) release before it officially arrives.
In todayβs article, weβll try the latest Gnome 45, officially accessible for Ubuntu 23.10, on our host system running on Ubuntu 22.04 (with Gnome 42) using the DistroBox.
Trying Out the Latest Linux Gnome DE with DistroBox
The first thing you need to do is install DistroBox on your host Linux system, followed by installing an Ubuntu 23.10 container, and then accessing the container, all of which have already been discussed in our DistroBox article.
So, as you can see from the picture below, I am already inside my Ubuntu 23.10 container.
Once you are ready and inside your DistroBox container, follow the below-mentioned steps one by one.
1. Run the following command to make the host systemd session accessible from within the container:
If you encounter an error, you must manually create those directories by running:
$ sudo mkdir /run/systemd
$ sudo mkdir /run/dbus
$ sudo ln -s /run/host/run/systemd/system /run/systemd
$ sudo ln -s /run/host/run/dbus/system_bus_socket /run/dbus/
Output:
2. Then, proceed to install Gnome inside the container:
$ sudo apt install ubuntu-gnome-desktop gnome-session gdm3
Output:
During installation, if asked to specify a language for the keyboard configuration, choose the one you want and click βOKβ to proceed.
3. Quit the DistroBox container and fix the common permissions problem with the β/tmp/.X11-unix
β directory by changing the ownership from βroot
β to β$USER
β.
$ exit
$ chown -f -R $USER:$USER /tmp/.X11-unix
Output:
4. Create a βwayland-session
β directory at β/usr/local/share/
β required for the next step in creating the desktop file for the Gnome DE running inside the container on the host file system.
$ sudo mkdir -p /usr/local/share/wayland-sessions/
Output:
5. Create a βdistrobox-gnome.desktop
β file at β/usr/local/share/wayland-sessions/
β using your choice of text editor.
$ sudo nano /usr/local/share/wayland-sessions/distrobox-gnome.desktop
#OR
$ sudo vim /usr/local/share/wayland-sessions/distrobox-gnome.desktop
And then copy and paste the following line:
[Desktop Entry]
Name=GNOME on Wayland (Ubuntu 23.10 distrobox)
Comment=This session logs you into GNOME
Exec=/usr/local/bin/distrobox-enter -n ubuntu -- /usr/bin/gnome-session --builtin
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true
Save and close the file.
6. Finally, log out of your host system; upon relogging in, you will find an option to switch to the new Gnome DE in the bottom right corner.
Once you switch and log into the system, you will be welcomed by the new Gnome look.
The following is a picture of the new Gnome application menu.
The following is a picture of the new Gnome settings.
Final Word
Thatβs it for todayβs article. If you have any questions or queries related to the topic, then do let me know in the comment section.
Till then, peace!
I hope that was a typo where you said you were running Ubuntu 22.10. 22.10 isnβt a LTS release and is only supported for 9 monthsβ¦ unless Iβm mistaken. 22.10 + 9 months > now. use a supported version of Ubuntu.
Hi Scott,
It was a typo mistake by us which is now corrected.
Thanks for bringing that to our attention.