GNOME: Difference between revisions

From Alpine Linux
(14 intermediate revisions by 6 users not shown)
Line 2: Line 2:
= Prerequisites =
= Prerequisites =


* [[Installation|Alpine Installation]]
* [[Installation|Install]] AlpineLinux
* [[Setting_up_a_new_user#Creating_a_new_user|Create user accounts]]
* [[Setting_up_a_new_user#Creating_a_new_user|Create a user account]] (optional but recommended)
* [[Alpine_setup_scripts#setup-xorg-base|Graphical base environment]]
* [[Repositories#Enabling_the_community_repository|Enable the Community repository]]
* [[Enable_Community_Repository#Using_community_repositories|Enabled "community" repository]]
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]] (no longer needed if installing GNOME through "setup-desktop")
 
{{Note|[[Wayland]] can be used but may be less stable and Gnome may still require Xorg}}


= Installing packages =
= Installing packages =


Install basic desktop system and gnome packages.
Install basic desktop system and gnome packages.
{{Cmd|# apk add gnome}}
{{Cmd|# setup-desktop gnome}}


It will take care of installing the basic packages and setting up the display manager.


If you want, you can install additional GNOME apps for a more complete GNOME experience with:
If you want, you can install additional GNOME apps for a more complete GNOME experience with:
{{Cmd|# apk add gnome-apps}}
{{Cmd|# apk add gnome-apps-extra}}
 
= Graphical login =
To start the GDM display manager and login with your user, you need a user other than root for this to succeed. GDM will refuse to start if no user accounts (accounts with a UID >= 1000) are available.
{{Cmd|rc-service gdm start}}


Once you have verified correct operation, you can make GDM start at boot:
And even all of GNOME games with:
{{Cmd|rc-update add gdm}}
{{Cmd|# apk add gnome-games-collection}}


= Enabling terminal apps =
= Enabling terminal apps =
Line 27: Line 26:
{{cmd|# apk add bash}}
{{cmd|# apk add bash}}
{{cmd|# apk add bash-completion}}
{{cmd|# apk add bash-completion}}
= Enabling GNOME Shell screen recording =
For the embedded screen recording in GNOME Shell to work, you will need some additional packages: {{cmd|# apk add pipewire pipewire-media-session gst-plugin-pipewire}}


= Troubleshooting =
= Troubleshooting =
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 GDM does not start with no logs generated at /var/log/gdm, try setting up udev: {{cmd|# setup-devd udev}}
 
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 logging in from GDM returns to logging screen, try {{cmd|# apk add bash}} (bug report: #10953 sorry cannot link yet)
If logging in from GDM kicks you back to the login screen, try {{cmd|# apk add bash}} (bug report: #10953 sorry cannot link yet)


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

Revision as of 15:48, 1 August 2022

Prerequisites

Note: Wayland can be used but may be less stable and Gnome may still require Xorg

Installing packages

Install basic desktop system and gnome packages.

# setup-desktop gnome

It will take care of installing the basic packages and setting up the display manager.

If you want, you can install additional GNOME apps for a more complete GNOME experience with:

# apk add gnome-apps-extra

And even all of GNOME games with:

# apk add gnome-games-collection

Enabling terminal apps

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:

# apk add bash

# apk add bash-completion

Enabling GNOME Shell screen recording

For the embedded screen recording in GNOME Shell to work, you will need some additional packages:

# apk add pipewire pipewire-media-session gst-plugin-pipewire

Troubleshooting

If GDM does not start with no logs generated at /var/log/gdm, try setting up udev:

# setup-devd udev

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 logging in from GDM kicks you back to the login screen, try

# apk add bash

(bug report: #10953 sorry cannot link yet)

If GNOME Terminal doesn't start, add the following to /etc/locale.conf: 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