GNOME: Difference between revisions

From Alpine Linux
(Update to new GNOME in Alpine v3.11 (edge))
(29 intermediate revisions by 12 users not shown)
Line 1: Line 1:
= Initial setup =
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}}


= Installing packages =
= Prerequisites =
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>
* [[Installation|Install]] AlpineLinux
{{Cmd|# apk add gnome-apps}}
* [[Setting_up_a_new_user#Creating_a_new_user|Create a user account]] (optional but recommended)
<BR>
* [[Repositories#Enabling_the_community_repository|Enable the Community repository]]
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]] (no longer needed if installing GNOME through "setup-desktop")


== Setting up udev ==
{{Note|[[Wayland]] can be used but may be less stable and Gnome may still require Xorg}}
You'll have to enable udev in order for GNOME to function properly.


{{Cmd|# apk add udev
= Installing packages =
# /etc/init.d/udev start && /etc/init.d/udev-trigger start && /etc/init.d/udev-settle start
# rc-update add udev sysinit
# rc-update add udev-trigger sysinit
# rc-update add udev-settle sysinit
}}


== Setting up Xorg ==
Install basic desktop system and gnome packages.
Even when using GNOME Wayland you'll still need a setup Xorg for XWayland.
{{Cmd|# setup-desktop gnome}}


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


{{cmd|$ apk search xf86-video}}
If you want, you can install additional GNOME apps for a more complete GNOME experience with:
{{Cmd|# apk add gnome-apps-extra}}


Then install the driver matching to your card, e.g. if you have an Intel iGPU:
And even all of GNOME games with:
{{Cmd|# apk add gnome-games-collection}}


{{cmd|# apk add xf86-video-intel}}
= 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:
{{cmd|# apk add bash}}
{{cmd|# apk add bash-completion}}


=== Input packages ===
= 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}}


Usually libinput is the best choice, as it's integrated best with GNOME and offers advanced functionality (e.g. palm rejection for touchpads).
= Troubleshooting =
If GDM does not start with no logs generated at /var/log/gdm, try setting up udev: {{cmd|# setup-devd udev}}


{{cmd|# apk add xf86-input-libinput}}
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.


= Starting your desktop =
If logging in from GDM kicks you back to the login screen, try {{cmd|# apk add bash}} (bug report: #10953 sorry cannot link yet)
Start GDM and login with your user.
{{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/locale.conf: LANG=en_US.UTF-8 and reboot.
{{Cmd|rc-update add gdm}}


= Troubleshooting =
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 are unable to login, check /var/log/gdm/greeter.log, there may be output there from X to indicate failed modules, etc.


[[Category:Desktop]]
[[Category:Desktop]]

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