For the delopment

For development a good solution, I think, is to run in container (distrobox) because Oreon Lime R2 have docker.
For example now I try the last Gnome in Fedora Rawhide:

but to run Oreon Lime R2 in container I think a solution is to install Alma Linux and then to add specific repository?

I used the step from Distrobox
for Gnome work at full resolution but KDE work with 1024x768.

Example for AlmaLinux container

Install distrobox

I use Oreon Lime R2 with docker installed.

First we check if docker service was started:

$ sudo systemctl status docker

if is not active we start now and the boot with:

$ sudo systemctl enable --now docker

I add my user to docker group (I used nano editor for this job):

$ sudo nano /etc/group

and add your user name to docker group:

$ cat  /etc/group | grep florin
wheel:x:10:florin
docker:x:990:florin
florin:x:1000:
nm-openvpn:x:978:florin

After that we need to install distrobox

$ sudo dnf install distrobox -y

Install Alma Linux in container

To install we run:

$ distrobox create --name alma-linux  --init --image docker.io/library/almalinux:9
Image docker.io/library/almalinux:9 not found.
Do you want to pull the image now? [Y/n]: y
9: Pulling from library/almalinux
7edcf90c3c13: Pull complete 
Digest: sha256:ff4f72c2c65badbc7deea85a035d13b6fc5160b97777939e97479921c57a3cd7
Status: Downloaded newer image for almalinux:9
docker.io/library/almalinux:9
Creating 'alma-linux' using image docker.io/library/almalinux:9	 [ OK ]
Distrobox 'alma-linux' successfully created.
To enter, run:

distrobox enter alma-linux

Successfully copied 2.56kB to /tmp/alma-linux.os-release

After install we enter in container, wait some moments to initialise and add our password:

$ distrobox enter alma-linux
Starting container...                   	 [ OK ]
Installing basic packages...            	 [ OK ]
Setting up devpts mounts...             	 [ OK ]
Setting up read-only mounts...          	 [ OK ]
Setting up read-write mounts...         	 [ OK ]
Setting up host's sockets integration...	 [ OK ]
Integrating host's themes, icons, fonts...	 [ OK ]
Setting up distrobox profile...         	 [ OK ]
Setting up sudo...                      	 [ OK ]
Setting up user groups...               	 [ OK ]
Setting up kerberos integration...      	 [ OK ]
Setting up user's group list...         	 [ OK ]
Adding user...                          	 [ OK ]
Setting up user home...                 	 [ OK ]
Ensuring user's access...               	 [ OK ]
Setting up init system...               	 [ OK ]
Firing up init system...                	 [ OK ]

Container Setup Complete!
⚠️  First time user password setup ⚠️ 
Changing password for user florin.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

We check if we are in container:

$ cat /etc/redhat-release 
AlmaLinux release 9.4 (Seafoam Ocelot)

Install some packages:

$ sudo dnf install nano -y

If we need also Gnome desktop from AlmaLinux:

$ sudo dnf group install gnome -y

After this exit from container with:

$ exit

Next create a session to enter Gnome from AlmaLinux from Oreon Lime R2 gdm:

$ sudo nano /usr/share/xsessions/distrobox-almalinux.desktop

and insert next lines:

[Desktop Entry]
Name=GNOME on Wayland (alma-linux on distrobox)
Comment=This session logs you into GNOME
Exec=/usr/bin/distrobox-enter -n alma-linux -- /usr/bin/gnome-session
Type=Application
DesktopNames=GNOME
X-GDM-SessionRegisters=true

next is necessary to change the owner for /tmp/.X11-unix directory to our user:

$ sudo nano /etc/profile.d/fix_tmp.sh

and insert next lines:

# change the owner for /tmp/.X11-unix according with your user
chown -f -R $USER:$USER /tmp/.X11-unix

After that logout from desktop session, and from gdm we choose our last entry session “GNOME on Wayland (alma-linux on distrobox)”

and the result in picture (“The picture tell more like 1000 words”)

From Oreon Lime R2 we have a menu to Terminal enter in alma-linux container.

1 Like