GNOME: Difference between revisions

From Alpine Linux
(Add the mesa-dri-swrast package)
(rephrased sentence)
 
(52 intermediate revisions by 15 users not shown)
Line 1: Line 1:
= Initial setup =
[https://www.gnome.org/ Gnome Desktop] aims to get things done with ease, comfort, and control.
Start by booting up Alpine (see [[Installation|these]] instructions on how to do that)<BR>
When you Alpine is up and running, do the initial setup.
{{Cmd|# setup-alpine}}
{{Cmd|# setup-xorg-base}}


== Prerequisites ==
{{:Include:Desktop prerequisites}}


= Enable Community Repository =
== Installation ==  
[[Enable Community Repository|How to Enable the Community Repository]]
{{:Include:Setup-desktop}}


= Installing packages =
When gnome is chosen, the above script enables community repository and additionally installs [[D-Bus]], [[eudev]], [[PipeWire|Pipewire]] and {{Pkg|gdm}} as [[Display manager|display manager]] .
Install basic desktop system and gnome packages. As of right now, these are in the testing repo.<BR>
This might take a few minutes depending on your network speed.
{{Cmd|# apk add gnome}}
<BR>


If you want to you can also install additional GNOME apps for a more complete GNOME experience with:<BR>
== Configuration ==
{{Cmd|# apk add gnome-apps}}
<BR>


== Setting up udev ==
To manage network through GUI, configure [[NetworkManager]]. You may need to [[Install]] necessary subpackages like {{Pkg|networkmanager-wifi}}.  
You'll have to enable udev in order for GNOME to function properly.


{{Cmd|# apk add udev }}
To use GNOME Software as GUI front end for [[Alpine Package Keeper]], ensure that {{ic|apk-polkit-server}} service from {{pkg|apk-polkit-rs}} package is running:{{cmd|# rc-update add apk-polkit-server default && rc-service apk-polkit-server start}}
{{Cmd|# rc-update add udev }}
{{Cmd|# rc-update add udev-trigger }}
{{Cmd|# rc-update add udev-settle }}


== Setting up Xorg ==
Even when using GNOME Wayland you'll still need a setup Xorg for XWayland.


=== Video packages ===
== Updating GNOME packages ==


{{cmd|$ apk search xf86-video}}
Most GNOME apps and core systems follow a common versioning pattern, and have a similar release cadence. In order to reduce the workload on maintainers, the [https://gitlab.alpinelinux.org/pabloyoyoista/gnome-aports-utils gnome-aports-utils] project exists. It contains a series of scripts that can be used to detect changes on GNOME-related projects, and commit them. When doing major GNOME updates, and doing minor updates on many projects, these scripts can help warranty that no project is forgotten, and reduce the time needed to build and test the upgrades.


Then install the driver matching to your card, e.g. if you have an Intel iGPU:
We recommend everybody to '''use and contribute''' to that repository instead of pushing updates for every GNOME component individually.


{{cmd|# apk add xf86-video-intel}}
=== Major GNOME upgrade ===


Also add the mesa-dri-swrast package:
About every half year, GNOME publishes a new major release. These are announced at: https://release.gnome.org/calendar/ (note the dates are the tarball-due-dates and not the actual release drop).


{{cmd|# apk add mesa-dri-swrast}}
With this release the whole GNOME stack gets upgraded, this includes G-related libraries, the GNOME shell with mutter, [https://apps.gnome.org/ GNOME core apps] and other packages following the same schedule. The [https://matrix.to/#/%23release-team:gnome.org GNOME release engeneering team] publishes dates for alpha, beta, release candidates and stable versions for every major version, most GNOME core packages follow their schedules, but not all of them. Announcements of the releng team are posted on the GNOME forum (https://discourse.gnome.org/tag/release-team) and Release Notes for each phase (with it's upgraded packages) are at: https://download.gnome.org/core/


=== Input packages ===
Therefore we should also upgrade along the dependency tree (glib -> gtk4 -> mutter -> gnome-shell -> other apps). Most important libraries are glib, gtk4, libadwaita. These are mostly already released in the alpha-phase and don't contain many breaking changed. To upgrade other GNOME core package to the latest version in a major version, you can use [https://gitlab.alpinelinux.org/pabloyoyoista/gnome-aports-utils gnome-aports-utils] or also check [https://download.gnome.org/sources/?C=M&O=D https://download.gnome.org/sources (sorted by date)] (thats where all GNOME core maintainers upload their tarballs).


Usually libinput is the best choice, as it's integrated best with GNOME and offers advanced functionality (e.g. palm rejection for touchpads).
Also take a look at Gentoo's upgrading guide: https://wiki.gentoo.org/wiki/Project:GNOME/GNOME_Bumping_Guide


{{cmd|# apk add xf86-input-libinput}}
== Troubleshooting ==


= Starting your desktop =
If you are unable to log in, check {{Path|/var/log/gdm/greeter.log}}, there may be info there from X that indicates failed modules, etc.
Start GDM and login with your user. You need a user other than root for this to succeed, since GDM will refuse starting if no user accounts (meaning accounts with a UID >= 1000) are available.
{{Cmd|rc-service gdm start}}


Once you have verified that it actually works you can make gdm start up at boot:
If GNOME Terminal doesn't start, add the following to /etc/profile.d/locale.sh: <code>LANG=en_US.UTF-8</code> and reboot.
{{Cmd|rc-update add gdm}}


= Enabling terminal apps =
If the on-screen keyboard shows up in GDM after installing other UIs such as Phosh, you need to disable it by opening the Accessibility menu (top right) when you are in the GDM login screen. You can disable the on-screen keyboard there. Or set <code>org.gnome.desktop.a11y.applications screen-keyboard-enabled</code> to <code>false</code> for the <code>gdm</code> user with <code>dconf</code>
If you want to use the gnome-terminal/other terminal applications you will need to install bash. If you want a typical bash setup also enable bash completion:
{{cmd|# apk add bash}}
{{cmd|# apk add bash-completion}}


= Troubleshooting =
=== Slow applications or rendering issues ===
If you are unable to login, check /var/log/gdm/greeter.log, there may be output there from X to indicate failed modules, etc.


If logging in from GDM returns to logging screen, try {{cmd|# apk add bash}} (bug report: #10953 sorry cannot link yet)
Please note that some applications, i.e. Gnome Web (Epiphany), may require the installation of libraries related to hardware acceleration to work correctly.


In quite some cases, this can be solved by installing <code>mesa-gles</code> (OpenGL ES). Check if you you have issues loading the shared library <code>libGLESv2.so.2</code>. If so, you can install it with:{{Cmd|# apk add mesa-gles}}
== See also ==
* [https://wiki.archlinux.org/title/GNOME GNOME - Archwiki]
* [https://wiki.gentoo.org/wiki/GNOME GNOME - Gentoo Wiki]
* [https://wiki.postmarketos.org/wiki/GNOME GNOME - PostmarketOS Wiki]
* [https://wiki.postmarketos.org/wiki/GNOME_apps Alpine linux packages available for Gnome]
[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Desktop Environments]]

Latest revision as of 18:41, 30 March 2025

Gnome Desktop aims to get things done with ease, comfort, and control.

Prerequisites

Installation

The Alpine Linux script for quickly setting up a desktop is:

# setup-desktop

On running the above command, you will be prompted to select a desktop environment.

Which desktop environment? ('gnome', 'plasma', 'xfce', 'mate', 'sway', 'lxqt' or 'none') [none]

Once you have chosen a desktop environment, this script installs the chosen desktop along with necessary packages, firefox browser and adds necessary services to run on startup. You can reboot when complete, and the system will boot into a graphical login screen with the chosen desktop environment. To view the packages installed by the script: $ cat /usr/sbin/setup-desktop

When gnome is chosen, the above script enables community repository and additionally installs D-Bus, eudev, Pipewire and gdm as display manager .

Configuration

To manage network through GUI, configure NetworkManager. You may need to Install necessary subpackages like networkmanager-wifi.

To use GNOME Software as GUI front end for Alpine Package Keeper, ensure that apk-polkit-server service from apk-polkit-rs package is running:

# rc-update add apk-polkit-server default && rc-service apk-polkit-server start


Updating GNOME packages

Most GNOME apps and core systems follow a common versioning pattern, and have a similar release cadence. In order to reduce the workload on maintainers, the gnome-aports-utils project exists. It contains a series of scripts that can be used to detect changes on GNOME-related projects, and commit them. When doing major GNOME updates, and doing minor updates on many projects, these scripts can help warranty that no project is forgotten, and reduce the time needed to build and test the upgrades.

We recommend everybody to use and contribute to that repository instead of pushing updates for every GNOME component individually.

Major GNOME upgrade

About every half year, GNOME publishes a new major release. These are announced at: https://release.gnome.org/calendar/ (note the dates are the tarball-due-dates and not the actual release drop).

With this release the whole GNOME stack gets upgraded, this includes G-related libraries, the GNOME shell with mutter, GNOME core apps and other packages following the same schedule. The GNOME release engeneering team publishes dates for alpha, beta, release candidates and stable versions for every major version, most GNOME core packages follow their schedules, but not all of them. Announcements of the releng team are posted on the GNOME forum (https://discourse.gnome.org/tag/release-team) and Release Notes for each phase (with it's upgraded packages) are at: https://download.gnome.org/core/

Therefore we should also upgrade along the dependency tree (glib -> gtk4 -> mutter -> gnome-shell -> other apps). Most important libraries are glib, gtk4, libadwaita. These are mostly already released in the alpha-phase and don't contain many breaking changed. To upgrade other GNOME core package to the latest version in a major version, you can use gnome-aports-utils or also check https://download.gnome.org/sources (sorted by date) (thats where all GNOME core maintainers upload their tarballs).

Also take a look at Gentoo's upgrading guide: https://wiki.gentoo.org/wiki/Project:GNOME/GNOME_Bumping_Guide

Troubleshooting

If you are unable to log in, check /var/log/gdm/greeter.log, there may be info there from X that indicates failed modules, etc.

If GNOME Terminal doesn't start, add the following to /etc/profile.d/locale.sh: LANG=en_US.UTF-8 and reboot.

If the on-screen keyboard shows up in GDM after installing other UIs such as Phosh, you need to disable it by opening the Accessibility menu (top right) when you are in the GDM login screen. You can disable the on-screen keyboard there. Or set org.gnome.desktop.a11y.applications screen-keyboard-enabled to false for the gdm user with dconf

Slow applications or rendering issues

Please note that some applications, i.e. Gnome Web (Epiphany), may require the installation of libraries related to hardware acceleration to work correctly.

In quite some cases, this can be solved by installing mesa-gles (OpenGL ES). Check if you you have issues loading the shared library libGLESv2.so.2. If so, you can install it with:

# apk add mesa-gles

See also