KDE: Difference between revisions
Prabuanand (talk | contribs) m (added URL of upstream) |
Prabuanand (talk | contribs) (rearranged headings based on changes in Include:Desktop prerequisites and Include:Setup-desktop) |
||
Line 4: | Line 4: | ||
{{Note|the {{Pkg|plasma-desktop-meta|arch=}} package isn't available for the <code>ppc64le</code>, <code>s390x</code>, <code>armhf</code>, or <code>riscv64</code> architectures due to the {{Pkg|kdeplasma-addons|arch=}} dependency not being available there. However, the rest of Plasma may be installed separately to potentially get a functional desktop.}} | {{Note|the {{Pkg|plasma-desktop-meta|arch=}} package isn't available for the <code>ppc64le</code>, <code>s390x</code>, <code>armhf</code>, or <code>riscv64</code> architectures due to the {{Pkg|kdeplasma-addons|arch=}} dependency not being available there. However, the rest of Plasma may be installed separately to potentially get a functional desktop.}} | ||
== Prerequisites == | |||
{{:Include:Desktop prerequisites}} | |||
* For users interested in Xorg as opposed to Wayland, install the [[Alpine_setup_scripts#setup-xorg-base|Xorg base packages]] | * For users interested in Xorg as opposed to Wayland, install the [[Alpine_setup_scripts#setup-xorg-base|Xorg base packages]] | ||
* [[Elogind#Installation|Install and configure Elogind]] | * [[Elogind#Installation|Install and configure Elogind]] | ||
* Wayland users: Install package {{pkg|xf86-input-libinput|arch=}} | * Wayland users: Install package {{pkg|xf86-input-libinput|arch=}} | ||
== Installation using setup-desktop == | |||
{{:Include:Setup-desktop}} | |||
When Plasma is chosen, the above script additionally installs [[PipeWire|Pipewire]] for audio and [[SDDM]] as display manager. | |||
== Manual Installation == | |||
The following command will install the Plasma desktop as specified by the plasma metapackage, including the {{Pkg|sddm|arch=}} display manager and other assorted niceties. {{Cmd|# apk add {{pkg|plasma-desktop-meta|arch=}}}} | |||
{{Note|'''polkit''' and '''udev''' are optional services for authentication and device management respectively. While KDE will function without these services enabled, some functionality may be missing or incomplete.}} | {{Note|'''polkit''' and '''udev''' are optional services for authentication and device management respectively. While KDE will function without these services enabled, some functionality may be missing or incomplete.}} | ||
== KDE Applications == | == KDE Applications == | ||
Line 46: | Line 37: | ||
* {{Pkg|kde-applications-utils|arch=}} | * {{Pkg|kde-applications-utils|arch=}} | ||
* {{Pkg|kde-applications-webdev|arch=}} | * {{Pkg|kde-applications-webdev|arch=}} | ||
== Starting Plasma == | == Starting Plasma == | ||
Line 73: | Line 62: | ||
For the Wayland session run | For the Wayland session run | ||
{{Cmd|XDG_SESSION_TYPE{{=}}wayland dbus-run-session startplasma-wayland}} | {{Cmd|XDG_SESSION_TYPE{{=}}wayland dbus-run-session startplasma-wayland}} | ||
== Troubleshooting == | == Troubleshooting == | ||
Line 86: | Line 73: | ||
You can also change the mouse cursor and icon size under <code>Settings -> Appearance</code>. | You can also change the mouse cursor and icon size under <code>Settings -> Appearance</code>. | ||
If your taskbar and window decorations are still too small, you might want to create the file {{path|~/.xprofile}} to define the ''PLASMA_USE_QT_SCALING'' environment variable: | If your taskbar and window decorations are still too small, you might want to create the file {{path|~/.xprofile}} to define the ''PLASMA_USE_QT_SCALING'' environment variable:{{Cmd|export PLASMA_USE_QT_SCALING{{=}}1}} | ||
{{Cmd|export PLASMA_USE_QT_SCALING{{=}}1}} | |||
After creating this file, you may need to restart your session to apply this modification. | After creating this file, you may need to restart your session to apply this modification. | ||
== See also == | == See also == | ||
* [[Installation#Post-Installation|Post installation]] | * [[Installation#Post-Installation|Post installation]] | ||
* [[Flatpak]] | * [[Flatpak]] |
Latest revision as of 09:49, 17 March 2025

Plasma is the desktop environment from KDE, a software project comprising of a collection of libraries known as KDE Frameworks, and several applications known as KDE Applications. Their UserBase wiki has detailed information about most KDE Applications.
ppc64le
, s390x
, armhf
, or riscv64
architectures due to the kdeplasma-addons dependency not being available there. However, the rest of Plasma may be installed separately to potentially get a functional desktop.Prerequisites
- Internet connectivity, unless the packages have been pre-fetched into a local cache.
- A non-root user account.
- The community repository must be enabled.
- Set up eudev.
- Install and configure D-Bus. without D-Bus icons and keyboard shortcuts may be missing.
- Install appropriate Graphics driver drivers for your hardware. Without graphics drivers, errors are likely to occur.
- For users interested in Xorg as opposed to Wayland, install the Xorg base packages
- Install and configure Elogind
- Wayland users: Install package xf86-input-libinput
Installation using setup-desktop
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 Plasma is chosen, the above script additionally installs Pipewire for audio and SDDM as display manager.
Manual Installation
The following command will install the Plasma desktop as specified by the plasma metapackage, including the sddm display manager and other assorted niceties.
# apk add plasma-desktop-meta
KDE Applications
To install the full set of KDE Applications, install kde-applications. You can also choose to install a smaller set of applications by installing any of the subpackages:
ppc64le
or s390x
.- kde-applications-accessibility
- kde-applications-admin
- kde-applications-base
- kde-applications-edu
- kde-applications-games
- kde-applications-graphics
- kde-applications-multimedia
- kde-applications-network
- kde-applications-pim
- kde-applications-sdk
- kde-applications-utils
- kde-applications-webdev
Starting Plasma
Plasma can be started using a display manager or from the console.
Using a display manager
When Plasma is installed via the plasma meta-package, the display manager is set up using sddm.
Make sure you enable and start the SDDM service.
rc-update add sddm rc-service sddm start
- Select Plasma to launch a new session in Wayland
- Select Plasma (X11) to launch a new session in Xorg
From the console
The Xorg session can be launched by installing xinit and appending exec startplasma-x11
to your .xinitrc
file. To start X:
xinit
For the Wayland session run
XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland
Troubleshooting
HiDPI Scaling
When using high resolution screens, e.g. 4K, you might need to apply scaling so the fonts and windows are not too small.
In order to achieve this you can open Settings -> Display and Monitor
and change the slider under Global Scale to an appropriate value.
You can also change the mouse cursor and icon size under Settings -> Appearance
.
If your taskbar and window decorations are still too small, you might want to create the file ~/.xprofile to define the PLASMA_USE_QT_SCALING environment variable:
export PLASMA_USE_QT_SCALING=1
After creating this file, you may need to restart your session to apply this modification.