<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LittleWhiteFern</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LittleWhiteFern"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/LittleWhiteFern"/>
	<updated>2026-05-06T03:09:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=PipeWire&amp;diff=31310</id>
		<title>PipeWire</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=PipeWire&amp;diff=31310"/>
		<updated>2025-10-31T11:42:03Z</updated>

		<summary type="html">&lt;p&gt;LittleWhiteFern: /* Connection failure: Connection refused: added note to verify that pipewire-pulse service is running */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
[https://pipewire.org/ PipeWire] is a multimedia processing engine that aims to improve audio and video handling on Linux. Pipewire can act as a replacement for both [[PulseAudio]] and [[ALSA]] servers.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* PipeWire requires [[D-Bus#D-Bus session bus|D-Bus session bus]] for most of its functionality.&lt;br /&gt;
* If [[Elogind|elogind]] is used, no further configuration is required. &lt;br /&gt;
** If [[Elogind#Verify_working_of_elogind|elogind is not used]], the user [[Setting_up_a_new_user#Group_management|should be added]] to &amp;lt;code&amp;gt;audio&amp;lt;/code&amp;gt; group to access audio devices.&lt;br /&gt;
** Add &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt; group, if you need to access webcam devices.  &lt;br /&gt;
***{{Warning|Membership of the &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt; group will also grant unrestricted access to video devices, which is often a security issue. See issue {{issue|15409}} for further details.}}&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The following packages i.e {{Pkg|pipewire}} and {{Pkg|wireplumber}} a session manager are the minimum required packages for getting pipewire to work.{{Cmd|# apk add pipewire wireplumber}}&lt;br /&gt;
&lt;br /&gt;
=== Pulseaudio interface ===&lt;br /&gt;
&lt;br /&gt;
The package {{Pkg|pipewire-pulse}} allows pulseaudio applications and [[#GUI tools|GUI tools]] to use PipeWire as audio server in the backend.{{Cmd|# apk add pipewire-pulse}}&lt;br /&gt;
&lt;br /&gt;
=== JACK compatibility ===&lt;br /&gt;
&lt;br /&gt;
Since Pipewire replaces JACK, Install {{Pkg|pipewire-jack}} package, so it provides ABI-compatible libraries for JACK applications.{{Cmd|# apk add pipewire-jack}}&lt;br /&gt;
&lt;br /&gt;
=== ALSA support ===&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|pipewire-alsa}} package to provide support for Alsa applications.{{Cmd|# apk add pipewire-alsa}}&lt;br /&gt;
&lt;br /&gt;
=== GUI tools ===&lt;br /&gt;
&lt;br /&gt;
[[#Pulseaudio interface|Pulseaudio Interface]] is mandatory for {{ic|pavucontrol}} to work with PipeWire.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pavucontrol&amp;lt;/code&amp;gt; tool from {{Pkg|pavucontrol}} provide a simple GUI app for controlling sound, outputs, etc. Consider using {{Pkg|pavucontrol-qt}} for [[KDE|Plasma]], if not installed already. &lt;br /&gt;
&lt;br /&gt;
The XFCE Audio mixer can also be used to help control volume by installing the package {{pkg|xfce4-mixer}} which is currently in available in [[Repositories#Testing|testing]] repository.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;{{Pkg|qpwgraph}}&#039;&#039;&#039; is a graph manager dedicated to PipeWire with Qt GUI Interface.&lt;br /&gt;
&lt;br /&gt;
== Launch Pipewire  ==&lt;br /&gt;
&lt;br /&gt;
Most [[Desktop_environments_and_Window_managers#Desktop_environments|desktop environments]] launch Pipewire automatically in Alpine Linux upon relogging( i.e logging out and logging in) after [[#Installation|installing the above packages]]. Proceed with section below only if Pipewire is [[#Testing|not launched]] after a relogin/reboot.&lt;br /&gt;
&lt;br /&gt;
[[#Pipewire user service|Pipewire user service]] is the recommended method to launch Pipewire and will replace [[#pipewire-launcher|pipewire-launcher]]. Do &#039;&#039;&#039;NOT&#039;&#039;&#039; use both methods to avoid running multiple instances of Pipewire.&lt;br /&gt;
&lt;br /&gt;
=== Pipewire user service ===&lt;br /&gt;
&lt;br /&gt;
Since [[Release_Notes_for_Alpine_3.22.0#OpenRC_User_services|V3.22]], Pipewire can be launched as a user service.  &lt;br /&gt;
&lt;br /&gt;
{{Note| Ensure the [[OpenRC#Prerequisites|Prerequisites]] are met and necessary [[OpenRC#Configure environment variables|environment variables are configured]] for using OpenRC user services before proceeding further.}}&lt;br /&gt;
&lt;br /&gt;
Issue the command {{ic|$ rc-status -Ur}} to view and verify the current user runlevel as &#039;&#039;&#039;gui&#039;&#039;&#039; and &#039;&#039;&#039;default&#039;&#039;&#039; for Wayland and Xorg, respectively, before proceeding. &lt;br /&gt;
&lt;br /&gt;
To start the [[PipeWire]] user service and its &#039;&#039;&#039;wireplumber&#039;&#039;&#039; session manager:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ rc-service -U pipewire start&lt;br /&gt;
$ rc-service -U wireplumber start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To enable the [[PipeWire]] and &#039;&#039;&#039;wireplumber&#039;&#039;&#039; user services in &#039;&#039;&#039;Wayland&#039;&#039;&#039;, issue the following commands;  omit the term {{ic|gui}}/swap it for {{ic|default}} for &#039;&#039;&#039;Xorg&#039;&#039;&#039; sessions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ rc-update -U add pipewire gui&lt;br /&gt;
$ rc-update -U add wireplumber gui&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above steps may be repeated for other user services, such as {{ic|pipewire-pulse}}, etc. &lt;br /&gt;
&lt;br /&gt;
Note that the {{ic|pipewire-pulse}} service would be required to enable various functions, including setting audio levels with {{ic|pactl}} when [[PulseAudio#PulseAudio_Utils|running pulseaudio with pulseaudio-utils]] and to enable associated volume user keys.&lt;br /&gt;
&lt;br /&gt;
=== pipewire-launcher ===&lt;br /&gt;
&lt;br /&gt;
{{Note|The pipewire-launcher script will be removed in the future to be replaced with [[#Pipewire user service|OpenRC User service]].}}&lt;br /&gt;
&lt;br /&gt;
Launch PipeWire by using the &amp;lt;code&amp;gt;pipewire-launcher&amp;lt;/code&amp;gt; script. You&#039;ll probably get quite a few errors but just ignore them for now. {{Cmd|$ /usr/libexec/pipewire-launcher}}&lt;br /&gt;
&lt;br /&gt;
If .xinitrc is used, add {{Path|/usr/libexec/pipewire-launcher}} to your {{Path|~/.xinitrc}}.&lt;br /&gt;
&lt;br /&gt;
If you do not use GUI by default, add the following stanza to your shell configuration file:{{Cmd|export $(dbus-launch) &lt;br /&gt;
/usr/libexec/pipewire-launcher}}&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
PipeWire and WirePlumber store their default configuration in {{Path|/usr/share/pipewire}} and {{Path|/usr/share/wireplumber}} respectively. If you want to edit the configuration, you need to move it to {{Path|/etc}}:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# cp -a /usr/share/pipewire /etc&lt;br /&gt;
# cp -a /usr/share/wireplumber /etc&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Screen sharing on Wayland ===&lt;br /&gt;
&lt;br /&gt;
Applications which don&#039;t implement native Wayland screensharing rely on [https://github.com/flatpak/xdg-desktop-portal xdg-desktop-portal] plus the correct backend for your compositor. Screen sharing is known to work on:&lt;br /&gt;
* GNOME with &amp;lt;code&amp;gt;xdg-desktop-portal-gtk&amp;lt;/code&amp;gt;&lt;br /&gt;
* KDE Plasma with &amp;lt;code&amp;gt;xdg-desktop-portal-kde&amp;lt;/code&amp;gt; and Firefox&lt;br /&gt;
* Sway with &amp;lt;code&amp;gt;xdg-desktop-portal-wlr&amp;lt;/code&amp;gt; and Firefox, see [[Sway]] for details&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth audio ===&lt;br /&gt;
{{Main|Bluetooth}}&lt;br /&gt;
* Enable PulseAudio support as described above&lt;br /&gt;
* Install bluetooth service packages: &amp;lt;code&amp;gt;bluez bluez-openrc pipewire-spa-bluez&amp;lt;/code&amp;gt;&lt;br /&gt;
* Optional: install GUI manager for bluetooth &amp;lt;code&amp;gt;blueman&amp;lt;/code&amp;gt;&lt;br /&gt;
* Enable and start bluetooth service: &amp;lt;code&amp;gt;rc-update add bluetooth; rc-service bluetooth start&amp;lt;/code&amp;gt;&lt;br /&gt;
* Restart PipeWire&lt;br /&gt;
* Use commandline program  &amp;lt;code&amp;gt;bluetoothctl&amp;lt;/code&amp;gt; or GUI program &amp;lt;code&amp;gt;blueman-manager&amp;lt;/code&amp;gt; to scan and pair bluetooth audio devices.&lt;br /&gt;
* Use pavucontrol to adjust volume and manually select high definition bluetooth codecs.&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
&lt;br /&gt;
Video should work out-of-the-box with v4l2 devices (e.g. a lot of webcams) and [https://gstreamer.freedesktop.org/ GStreamer] applications.&lt;br /&gt;
&lt;br /&gt;
=== Realtime scheduling ===&lt;br /&gt;
&lt;br /&gt;
For realtime scheduling, it is recommended to use {{Pkg|rtkit}} package. Add your user to the &amp;lt;code&amp;gt;rtkit&amp;lt;/code&amp;gt; group.&lt;br /&gt;
&lt;br /&gt;
Alternatively, ensure your user has the right ulimit permissions. Since pipewire 0.3.66, you can add yourself to the &amp;lt;code&amp;gt;pipewire&amp;lt;/code&amp;gt; group. You generally need (e.g. in {{Path|/etc/security/limits.conf}}):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@pipewire - memlock 4194304&lt;br /&gt;
@pipewire - nice -19&lt;br /&gt;
@pipewire - rtprio 95&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows a member of the pipewire group to have the right permissions for PipeWire to use realtime scheduling without rtkit. This same snippet comes with pipewire since 0.3.66, so if you have a [[PAM]] login session and add yourself to the pipewire group, you don&#039;t have to do anything else. Note that the above {{Path|/etc/security/limits.conf}} will only work if your session is using [[PAM]].&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;code&amp;gt;wpctl&amp;lt;/code&amp;gt; utility from {{pkg|WirePlumber}} to test the working of pipewire: {{Cmd|$ wpctl status}}&lt;br /&gt;
&lt;br /&gt;
=== pw-cat playback ===&lt;br /&gt;
&lt;br /&gt;
Test sound is working using an audio file in a format supported by [http://www.mega-nerd.com/libsndfile/ libsndfile]{{insecure url|Server refuses HTTPS connections}} (e.g. flac, opus, ogg, wav). Use &amp;lt;code&amp;gt;pw-cat&amp;lt;/code&amp;gt; utility from {{Pkg|pipewire-tools}}:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ pw-cat -p test.flac&lt;br /&gt;
$ pw-play /usr/share/sounds/alsa/Front_Center.wav&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== pw-cat recording ===&lt;br /&gt;
&lt;br /&gt;
If you have a microphone test audio recording is working.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ pw-cat -r --list-targets&lt;br /&gt;
$ pw-cat -r recording.flac&lt;br /&gt;
(Speak for a while then stop it with Ctrl+c)&lt;br /&gt;
$ pw-cat -p recording.flac&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== PulseAudio ===&lt;br /&gt;
&lt;br /&gt;
Test PulseAudio clients using a media player, as most use PulseAudio.&lt;br /&gt;
&lt;br /&gt;
=== JACK ===&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;jack_simple_client&amp;lt;/code&amp;gt; from {{Pkg|jack-simple-clients}}:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ jack_simple_client}}&lt;br /&gt;
&lt;br /&gt;
You should hear a sustained beep.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== `wpctl status` shows no targets ===&lt;br /&gt;
&lt;br /&gt;
First, check whether ALSA knows about your sound card using the &amp;lt;code&amp;gt;aplay&amp;lt;/code&amp;gt; utility from {{pkg|alsa-utils}} package: {{Cmd|aplay -l}}&lt;br /&gt;
&lt;br /&gt;
If sound devices are found, the issue is with your pipewire configuration.  Consider double-checking the instructions above. Otherwise, your sound card may not be supported in the version of the Linux Kernel you&#039;re running.  You should search online for fixes relating to your current kernel version and the codec of your sound card.  You can find each of these with:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|uname -r&lt;br /&gt;
cat /proc/asound/card0/codec* | grep Codec}}&lt;br /&gt;
&lt;br /&gt;
Modern devices might require {{Pkg|sof-firmware}}, which is the case if you get &amp;lt;code&amp;gt;sof firmware file is missing&amp;lt;/code&amp;gt; errors in dmesg.&lt;br /&gt;
&lt;br /&gt;
=== Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY ===&lt;br /&gt;
&lt;br /&gt;
Check and ensure that [[D-Bus#D-Bus session bus|D-Bus session bus]] is started along with your GUI session i.e. you are in a tty.&lt;br /&gt;
&lt;br /&gt;
=== Connection failure: Connection refused ===&lt;br /&gt;
&lt;br /&gt;
When using [[Wayland]], ensure that [[XDG_RUNTIME_DIR]] is configured correctly. If this is not set, pipewire will create a directory in your home folder instead, called {{Path|~/pulse}}, and on attempting to run Pavucontrol or pactl, you will get the following error:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ pactl list&lt;br /&gt;
Connection failure: Connection refused&lt;br /&gt;
pa_context_connect() failed: Connection refused&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are running Alpine 3.22+ and continue to experience this error after verifying that [[XDG_RUNTIME_DIR]] is correctly set, ensure that the &amp;lt;code&amp;gt;pipewire-pulse&amp;lt;/code&amp;gt; [[#Pipewire_user_service|user service is running]].&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth connect failed: br-connection-profile-unavailable === &lt;br /&gt;
&lt;br /&gt;
Ensure that [[#WirePlumber|Session Manager]] is running.&lt;br /&gt;
&lt;br /&gt;
=== Play/Pause buttons not working on bluetooth headphones ===&lt;br /&gt;
&lt;br /&gt;
Check {{Path|/var/log/messages}}. If you see something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bluetoothd[3463]: profiles/audio/avctp.c:uinput_create() Can&#039;t open input device: No such file or directory (2)&lt;br /&gt;
bluetoothd[3463]: profiles/audio/avctp.c:init_uinput() AVRCP: failed to init uinput for WH-1000XM5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then bluez is trying to register the headphones buttons as an input devices, but &amp;lt;code&amp;gt;uinput&amp;lt;/code&amp;gt; is not loaded. Try &amp;lt;code&amp;gt;modprobe uinput&amp;lt;/code&amp;gt;. If this works, see [[Architecture#Module_Loading]] for instructions on how to make sure this module is loaded automatically on each startup.&lt;br /&gt;
&lt;br /&gt;
=== RTKit error: org.freedesktop.DBus.Error.ServiceUnknown ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:330:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:995:do_rtkit_setup: RTKit does not give us MaxRealtimePriority, using 1&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:330:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:1000:do_rtkit_setup: RTKit does not give us MinNiceLevel, using 0&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:330:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown&lt;br /&gt;
mod.rt ../src/modules/module-rt.c:1005:do_rtkit_setup: RTKit does not give us RTTimeUSecMax, using -1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing the {{pkg|rtkit}} package as mentioned in [[#Realtime scheduling|Realtime scheduling]] section resolves the above error message.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bluetooth]]&lt;br /&gt;
* [https://gitlab.freedesktop.org/pipewire/pipewire PipeWire source repository]&lt;br /&gt;
* [https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/home PipeWire Wiki]&lt;br /&gt;
* [https://wiki.archlinux.org/index.php/PipeWire PipeWire on the ArchWiki]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Pipewire PipeWire on the Gentoo Wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Sound]]&lt;/div&gt;</summary>
		<author><name>LittleWhiteFern</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=31299</id>
		<title>Dwm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Dwm&amp;diff=31299"/>
		<updated>2025-10-30T05:22:44Z</updated>

		<summary type="html">&lt;p&gt;LittleWhiteFern: /* Add Troubleshooting section for odd bug where kb/mouse are unresponsive on starting X */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:dwm}}[https://dwm.suckless.org/ dwm] is an extremely fast, small, and dynamic window manager for X. It manages windows in tiled, monocle and floating layouts. This page provides instructions for installing dwm both from binary packages and from source along with dependencies. &lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
{{:Include:Desktop prerequisites}}&lt;br /&gt;
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
The {{pkg|dbus-x11}} package is needed for the dbus system as it enables Firefox running in dwm to open in a tile.The packages {{pkg|adwaita-icon-theme}} and {{pkg|font-dejavu}} are optional, but recommended for a nicer looking firefox. Install them before proceeding: {{Cmd|# apk add {{pkg|dbus-x11}} {{pkg|adwaita-icon-theme}} {{pkg|font-dejavu}} {{pkg|firefox-esr}}}}&lt;br /&gt;
&lt;br /&gt;
=== Installing binary packages  ===&lt;br /&gt;
&lt;br /&gt;
Alpine Linux provides  binary packages for {{Pkg|dwm}} (dynamic window manager), {{Pkg|dmenu}} (dynamic menu) and {{Pkg|st}} (simple terminal). This allows new users to experience dwm quickly without compiling the source code. To install the binary packages, issue the command:{{Cmd|# apk add dwm dmenu st}}&lt;br /&gt;
&lt;br /&gt;
Proceed to [[#Starting dwm|Starting dwm]] section to start using dwm with default settings. If you are new to dwm, refer to the [https://dwm.suckless.org/tutorial/ official dwm tutorial].&lt;br /&gt;
&lt;br /&gt;
To customize dwm, refer [[#Installing from source|Installing from source]]. &lt;br /&gt;
&lt;br /&gt;
=== Installing from source  ===&lt;br /&gt;
&lt;br /&gt;
To customize dwm, the source code written in &#039;&#039;&#039;c&#039;&#039;&#039; language must be edited, compiled and installed everytime for the changes to take effect, which usuaully takes less than a minute. &lt;br /&gt;
&lt;br /&gt;
If you have installed the [[#Installing binary packages|binary packages]], remove them first before proceeding:{{Codeline| # apk del dwm dmenu st}}&lt;br /&gt;
&lt;br /&gt;
Install the necessary packages to compile dwm: {{cmd|# apk add {{pkg|git}} {{pkg|make}} {{pkg|gcc}} {{pkg|g++}} {{pkg|libx11-dev}} {{pkg|libxft-dev}} {{pkg|libxinerama-dev}} {{pkg|ncurses}} }}&lt;br /&gt;
&lt;br /&gt;
The following instructions downloads the sources for {{ic|dwm}}, {{ic|dmenu}} and {{ic|st}} in {{Path|/usr/src/suckless}}, compiles the source(make) and installs the binaries in {{Path|/usr/local/bin}}. If you do not want to keep the sources, use {{Path|/tmp}} for downloading the sources.&lt;br /&gt;
&lt;br /&gt;
# Create a directory {{Path|/usr/src/suckless}} using the command: {{Cmd|# mkdir -p /usr/src/suckless}}&lt;br /&gt;
# Change to the {{Path|/usr/src/suckless directory}}:{{cmd|$ cd /usr/src/suckless}}&lt;br /&gt;
# Download the {{ic|dwm}} sources: {{cmd|# git clone https://git.suckless.org/dwm}}&lt;br /&gt;
# Once downloaded, go to the dwm directory:{{cmd|# cd dwm }} &lt;br /&gt;
# To install dwm, issue the command: {{cmd|# make clean install}}&lt;br /&gt;
# Next, go up one directory level {{cmd|# cd ..}}&lt;br /&gt;
# Download and install {{ic|dmenu}} launcher: {{cmd|&amp;lt;nowiki&amp;gt;# git clone https://git.suckless.org/dmenu&lt;br /&gt;
# cd dmenu&lt;br /&gt;
# make clean install&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# Finally, go up one more directory level: {{cmd|# cd ..}}&lt;br /&gt;
# Download and install {{ic|st}} terminal: {{cmd|&amp;lt;nowiki&amp;gt;# git clone https://git.suckless.org/st&lt;br /&gt;
# cd st&lt;br /&gt;
# make clean install&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The configuration of dwm and other suckless tools are done by editing the {{Path|config.h}} file. If not already done, complete [[#Installing from source|Installing from source]] before proceeding. &lt;br /&gt;
&lt;br /&gt;
The {{ic|make}} command will create {{Path|config.h}} file from {{Path|config.def.h}}. If the file {{Path|config.h}} already exists, {{ic|make}} won&#039;t overwrite it and instead use it. Based on above instructions, for customizing dwm, edit the file {{Path|/usr/src/suckless/dwm/config.h}}. &lt;br /&gt;
&lt;br /&gt;
All changes related to keybindings, colors, fonts, patches, etc. are to be made to the {{Path|config.h}} file and (re)compile the source code by issuing the command {{Codeline|# make clean install}}.&lt;br /&gt;
&lt;br /&gt;
=== Starting dwm === &lt;br /&gt;
&lt;br /&gt;
Create or edit {{Path|~/.xinitrc}} with at least the following: {{cat|~/.xinitrc|#!/bin/sh&lt;br /&gt;
# Start D-Bus session&lt;br /&gt;
if [ -z &amp;quot;$DBUS_SESSION_BUS_ADDRESS&amp;quot; ]; then&lt;br /&gt;
    eval $(dbus-launch --sh-syntax --exit-with-session)&lt;br /&gt;
fi&lt;br /&gt;
exec dwm}}&lt;br /&gt;
&lt;br /&gt;
To prevent X from attempting to launch {{ic|dwm}} every time your shell is called with the login flag, make launching `startx` conditional by creating or editing {{Path|.profile}} as follows:{{cat|~/.profile|if [ -z $DISPLAY ] &amp;amp;&amp;amp; [ $(tty) {{=}} /dev/tty1 ]; then&lt;br /&gt;
    startx&lt;br /&gt;
fi&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Log out or reboot. dwm will run the next time you log in. &lt;br /&gt;
&lt;br /&gt;
Press {{Key|Alt}}+{{Key|p}} to launch {{ic|dmenu}}. Type firefox then press {{key|enter}}. Firefox will load and run in tile 9.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== unable to connect to X server: Connection refused ===&lt;br /&gt;
&lt;br /&gt;
If you receive above error message on hitting &amp;quot;startx&amp;quot; with {{Path|Xorg.0.log}} showing errors like {{Cmd|&lt;br /&gt;
Xorg.(EE) Failed to load module &amp;quot;driver_name&amp;quot;&lt;br /&gt;
Fatal server error:&lt;br /&gt;
no screens found}}&lt;br /&gt;
The issue might be due to the user not in the &#039;&#039;&#039;video&#039;&#039;&#039; group. [[Setting_up_a_new_user#Group_management|Adding &#039;&#039;&#039;video&#039;&#039;&#039; group]] for the user will solve the issue.&lt;br /&gt;
&lt;br /&gt;
=== No Input/Keyboard and Mouse don&#039;t work ===&lt;br /&gt;
&lt;br /&gt;
If X and dwm start but you find you cannot use your mouse and/or keyboard/trackpad, check to make sure your user is in the &#039;&#039;&#039;input&#039;&#039;&#039; group.&lt;br /&gt;
&lt;br /&gt;
[[Setting_up_a_new_user#Group_management]]&lt;br /&gt;
&lt;br /&gt;
If you used the [[Alpine_setup_scripts#setup-alpine|{{ic|setup-alpine}}]] script to set up a user, this &#039;&#039;should&#039;&#039; already be done for you, but there seems to be edge cases where the scrip fails, or some other part of setting up the desktop removes the user from the &#039;&#039;&#039;input&#039;&#039;&#039; group.&lt;br /&gt;
{{Todo|More testing is needed to see how and why this occurs.}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://dwm.suckless.org/tutorial/ official dwm tutorial]&lt;br /&gt;
* [https://git.sr.ht/~bt/alpine-suck-installer Alpine Suck] Desktop installer for Alpine Linux based on the suckless philosophy&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Dwm Gentoo wiki page on dwm]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Dwm Archwiki page on dwm]&lt;br /&gt;
* [[Raspberry Pi 3 - Browser Client]] - A guide which omits dwm, but uses similar steps to install firefox in a diskless install on ARM. dwm is not used on the RPI3, due to tmpfs limitations.&lt;br /&gt;
&lt;br /&gt;
[[Category:Window Managers]]&lt;/div&gt;</summary>
		<author><name>LittleWhiteFern</name></author>
	</entry>
</feed>