<?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=Ncrav</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=Ncrav"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Ncrav"/>
	<updated>2026-04-30T12:21:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=26539</id>
		<title>Software management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=26539"/>
		<updated>2024-03-03T00:44:46Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add info relating to permissions for X11&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to run [https://www.gnu.org/software/libc/ glibc] programs in Alpine Linux, there are a few ways of doing so. You can install the [https://git.adelielinux.org/adelie/gcompat gcompat] compatibility layer, you can install glibc alongside [https://musl.libc.org/ musl] (manually, as it isn&#039;t packaged), or you could do it the easy way and use either Flatpak (the easiest), containers or a chroot.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because there are different use cases, this is just a slight overview about what&#039;s possible and what&#039;s sensible.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Your options =&lt;br /&gt;
&lt;br /&gt;
== gcompat ==&lt;br /&gt;
&lt;br /&gt;
gcompat is the go-to compatibility layer for Alpine users.&lt;br /&gt;
&lt;br /&gt;
 {{cmd|apk add {{pkg|gcompat}}}}&lt;br /&gt;
&lt;br /&gt;
After that you run your binaries as normal.&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
Flatpak is by far the easiest method of running any graphical glibc program on Alpine.&lt;br /&gt;
Firstly install it.&lt;br /&gt;
&lt;br /&gt;
 {{cmd|apk add {{pkg|flatpak}}}}&lt;br /&gt;
&lt;br /&gt;
Then you can run any Flatpak application:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|flatpak run &amp;lt;flatpak name&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
It is recommended to enable [https://flathub.org Flathub] using its instructions [https://flatpak.org/setup/Alpine/ here], as most glibc programs you might need will be packaged there.&lt;br /&gt;
&lt;br /&gt;
You can then install applications from it, for example:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|flatpak install com.valvesoftware.Steam}}&lt;br /&gt;
&lt;br /&gt;
== Chroot ==&lt;br /&gt;
&lt;br /&gt;
An option that&#039;s easier to generalize to other glibc applications is installing a glibc-based distribution into a chroot. You can then either chroot into it, or use a symlink and some configuration to make its glibc (and associated libraries) usable from Alpine.&lt;br /&gt;
&lt;br /&gt;
After setting up a chroot using any of the methods described below, the loader can be set up in Alpine like so (these instructions are for a Debian chroot in /var/chroots/debian, on x86_64, but can be adapted to other systems by using the appropriate paths):&lt;br /&gt;
&lt;br /&gt;
{{cmd|mkdir -p /lib64&lt;br /&gt;
ln -s /var/chroots/debian/lib/x86_64-linux-gnu/ld-2.33.so /lib64&lt;br /&gt;
printf &#039;/var/chroots/debian/lib/x86_64-linux-gnu\n/var/chroots/debian/usr/lib/x86_64-linux-gnu\n&#039; &amp;gt; /etc/ld.so.conf&lt;br /&gt;
/var/chroots/debian/sbin/ldconfig}}&lt;br /&gt;
&lt;br /&gt;
=== Gentoo Linux ===&lt;br /&gt;
&lt;br /&gt;
Select a stage3 from [https://www.gentoo.org/downloads/ here] and portage latest from [https://www.gentoo.org/downloads/mirrors/ here] at gentoo/snapshots/portage-latest.tar.xz.&lt;br /&gt;
&lt;br /&gt;
First,&lt;br /&gt;
&lt;br /&gt;
{{cmd|doas apk add {{pkg|xz}}}}&lt;br /&gt;
&lt;br /&gt;
Enter the chroot:&lt;br /&gt;
{{cmd|mkdir ~/chroot&lt;br /&gt;
cd ~/chroot&lt;br /&gt;
tar -xvf stage3-*.tar.xz&lt;br /&gt;
tar -xvf portage-latest.tar.xz&lt;br /&gt;
mv portage usr&lt;br /&gt;
doas mount --bind /dev dev&lt;br /&gt;
doas mount --bind /sys sys&lt;br /&gt;
doas mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
doas chroot . /bin/bash}}&lt;br /&gt;
&lt;br /&gt;
And voilà, you have your working Gentoo chroot!&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now take a look at [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo&#039;s Handbook] to find out how you can configure and install your system, or simply extract/copy the program you need to run in your chroot enviroment and execute it.&lt;br /&gt;
&lt;br /&gt;
Here is a wrapper script that is similar to &amp;lt;code&amp;gt;arch-chroot&amp;lt;/code&amp;gt; when you frequently reuse this chroot:&lt;br /&gt;
&lt;br /&gt;
Also, create an account with the same user name as host current user to the chroot or make changes to the userspec option to chroot line.&lt;br /&gt;
&lt;br /&gt;
{{Cat|gentoo-chroot.sh|&amp;lt;nowiki&amp;gt;!/bin/bash&lt;br /&gt;
CHROOT_PATH=&amp;quot;/home/$USER/chroot&amp;quot;&lt;br /&gt;
cd $CHROOT_PATH&lt;br /&gt;
mount | grep $CHROOT_PATH/dev || doas mount --bind /dev dev&lt;br /&gt;
mount | grep $CHROOT_PATH/sys || doas mount --bind /sys sys&lt;br /&gt;
mount | grep $CHROOT_PATH/proc || doas mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
doas chroot --userspec=$USER:users . /bin/bash&lt;br /&gt;
echo &amp;quot;You must manually unmount $CHROOT_PATH/dev, $CHROOT_PATH/sys, $CHROOT_PATH/proc.&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Do at &amp;lt;code&amp;gt;chmod +x gentoo-chroot.sh&amp;lt;/code&amp;gt; to get it to work.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
&lt;br /&gt;
Either use &#039;&#039;&#039;pacstrap&#039;&#039;&#039; (included with the arch-install-scripts package) or an Arch bootstrap image:&lt;br /&gt;
&lt;br /&gt;
{{cmd|doas apk add {{pkg|arch-install-scripts}}&lt;br /&gt;
mkdir ~/chroot &amp;amp;&amp;amp; cd ~/chroot&lt;br /&gt;
curl -O https://mirrors.edge.kernel.org/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.gz&lt;br /&gt;
doas tar xzf archlinux-bootstrap-x86_64.tar.gz &amp;amp;&amp;amp; rm archlinux-bootstrap-x86_64.tar.gz&lt;br /&gt;
doas sed -i &#039;/evowise/s/^#//&#039; root.x86_64/etc/pacman.d/mirrorlist&lt;br /&gt;
doas sed -i &#039;/CheckSpace/s/^/#/&#039; root.x86_64/etc/pacman.conf&lt;br /&gt;
doas arch-chroot root.x86_64&lt;br /&gt;
[chroot]# pacman-key --init&lt;br /&gt;
[chroot]# pacman-key --populate archlinux}}&lt;br /&gt;
&lt;br /&gt;
Once that is done, update the system and install the desired package(s) (denoted by &#039;&#039;&amp;quot;foo&amp;quot;&#039;&#039; in this example):&lt;br /&gt;
  &lt;br /&gt;
{{cmd|[chroot]# pacman -Syu &#039;&#039;foo&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
{{todo|gresec referencs need to be cleanly removed from this section.}}&lt;br /&gt;
Use the provided debootstrap package to create the Debian chroot. &amp;lt;code&amp;gt;--arch&amp;lt;/code&amp;gt; is optional, depending of your needs.&lt;br /&gt;
&lt;br /&gt;
On the &#039;&#039;&#039;linux-grsec&#039;&#039;&#039; kernel, you will need to relax chroot limitations:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add debootstrap&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done&lt;br /&gt;
  mkdir ~/chroot&lt;br /&gt;
  sudo debootstrap --arch=i386 wheezy ~/chroot https://deb.debian.org/debian/&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done&lt;br /&gt;
  sudo chroot ~/chroot /bin/bash&lt;br /&gt;
&lt;br /&gt;
You can now use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; to install needed packages.&lt;br /&gt;
&lt;br /&gt;
== Containers ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible to use Docker or Podman containers with a helper like Distrobox. This allows using graphical programs easily and doesn&#039;t require root privileges once set up.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{pkg|distrobox}}}}&lt;br /&gt;
&lt;br /&gt;
=== Distrobox + Podman ===&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{pkg|podman}}}}&lt;br /&gt;
&lt;br /&gt;
Then set up rootless Podman, following [[Podman|these steps]].&lt;br /&gt;
You&#039;ll need to mount your root as shared for Distrobox to function.&lt;br /&gt;
&lt;br /&gt;
Fill in {{path|/etc/local.d/mount-rshared.start}} like so:&lt;br /&gt;
&lt;br /&gt;
{{cmd|#!/bin/sh&lt;br /&gt;
mount --make-rshared /}}&lt;br /&gt;
&lt;br /&gt;
Mark it as executable.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# chmod +x /etc/local.d/mount-rshared.start}}&lt;br /&gt;
&lt;br /&gt;
Then autostart its service.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# rc-update add local default&lt;br /&gt;
&amp;amp;#35; rc-service local start}}&lt;br /&gt;
&lt;br /&gt;
Finally you can create a container using your chosen image.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ distrobox create --image debian --name debian&lt;br /&gt;
$ distrobox enter debian}}&lt;br /&gt;
&lt;br /&gt;
It may also be necessary to allow X authorization for GUI programs to work.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ xhost +si:localuser:$USER}}&lt;br /&gt;
&lt;br /&gt;
== Chroot + Bubblewrap ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible to use a Debian system chroot with Bubblewrap. This allows running programs without root.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add bubblewrap debootstrap&lt;br /&gt;
&amp;amp;#35; mkdir -p /var/chroots/debian&lt;br /&gt;
&amp;amp;#35; debootstrap --arch amd64 stable /var/chroots/debian/ https://deb.debian.org/debian}}&lt;br /&gt;
&lt;br /&gt;
Finally we can make an alias for bwrap.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ alias glibc{{=}}&amp;quot;LANG{{=}}en_US.UTF-8 bwrap --bind /var/chroots/debian / --dev-bind /dev /dev --proc /proc --bind /sys /sys --bind /run /run --bind /home /home --ro-bind /etc/resolv.conf /etc/resolv.conf --ro-bind /etc/passwd /etc/passwd --ro-bind /etc/group /etc/group&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
To run programs that use X11/Xorg you can use: &lt;br /&gt;
{{cmd|$ alias glibcX11{{=}}&amp;quot;LANG{{=}}en_US.UTF-8 bwrap --bind /var/chroots/debian / --dev-bind /dev /dev --proc /proc --bind /sys /sys --bind /run /run --bind /home /home --ro-bind /etc/resolv.conf /etc/resolv.conf --ro-bind /etc/passwd /etc/passwd --ro-bind /etc/group /etc/group --bind /tmp/.X11-unix/X0 /tmp/.X11-unix/X0 --setenv DISPLAY :0&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
In this case you might need to use xhost to allow local connections, e.g.:&lt;br /&gt;
{{cmd|# xhost + local:}}&lt;br /&gt;
&lt;br /&gt;
Now we can invoke glibc-built binaries like so:&lt;br /&gt;
{{cmd|$ glibc ./binary}} or {{cmd|$ glibcX11 ./binary}} &lt;br /&gt;
&lt;br /&gt;
For updating the Chroot or installing dependencies we can mount it and then login as root:&lt;br /&gt;
{{cmd|# mount --bind /dev /var/chroots/debian/dev&lt;br /&gt;
&amp;amp;#35; mount --bind /proc /var/chroots/debian/proc&lt;br /&gt;
&amp;amp;#35; chroot /var/chroots/debian /bin/bash&lt;br /&gt;
&amp;amp;#35; apt update &amp;amp;&amp;amp; apt upgrade}}&lt;br /&gt;
&lt;br /&gt;
After installing what you might want to umount the binds for dev and proc to avoid issues. &lt;br /&gt;
{{cmd|#umount /var/chroots/debian/dev}}&lt;br /&gt;
{{cmd|#umount /var/chroots/debian/proc}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=26538</id>
		<title>Software management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Software_management&amp;diff=26538"/>
		<updated>2024-03-03T00:41:19Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Update Chroot + Bubblewrap with X11 instructions and umount bindings.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to run [https://www.gnu.org/software/libc/ glibc] programs in Alpine Linux, there are a few ways of doing so. You can install the [https://git.adelielinux.org/adelie/gcompat gcompat] compatibility layer, you can install glibc alongside [https://musl.libc.org/ musl] (manually, as it isn&#039;t packaged), or you could do it the easy way and use either Flatpak (the easiest), containers or a chroot.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because there are different use cases, this is just a slight overview about what&#039;s possible and what&#039;s sensible.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Your options =&lt;br /&gt;
&lt;br /&gt;
== gcompat ==&lt;br /&gt;
&lt;br /&gt;
gcompat is the go-to compatibility layer for Alpine users.&lt;br /&gt;
&lt;br /&gt;
 {{cmd|apk add {{pkg|gcompat}}}}&lt;br /&gt;
&lt;br /&gt;
After that you run your binaries as normal.&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
Flatpak is by far the easiest method of running any graphical glibc program on Alpine.&lt;br /&gt;
Firstly install it.&lt;br /&gt;
&lt;br /&gt;
 {{cmd|apk add {{pkg|flatpak}}}}&lt;br /&gt;
&lt;br /&gt;
Then you can run any Flatpak application:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|flatpak run &amp;lt;flatpak name&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
It is recommended to enable [https://flathub.org Flathub] using its instructions [https://flatpak.org/setup/Alpine/ here], as most glibc programs you might need will be packaged there.&lt;br /&gt;
&lt;br /&gt;
You can then install applications from it, for example:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|flatpak install com.valvesoftware.Steam}}&lt;br /&gt;
&lt;br /&gt;
== Chroot ==&lt;br /&gt;
&lt;br /&gt;
An option that&#039;s easier to generalize to other glibc applications is installing a glibc-based distribution into a chroot. You can then either chroot into it, or use a symlink and some configuration to make its glibc (and associated libraries) usable from Alpine.&lt;br /&gt;
&lt;br /&gt;
After setting up a chroot using any of the methods described below, the loader can be set up in Alpine like so (these instructions are for a Debian chroot in /var/chroots/debian, on x86_64, but can be adapted to other systems by using the appropriate paths):&lt;br /&gt;
&lt;br /&gt;
{{cmd|mkdir -p /lib64&lt;br /&gt;
ln -s /var/chroots/debian/lib/x86_64-linux-gnu/ld-2.33.so /lib64&lt;br /&gt;
printf &#039;/var/chroots/debian/lib/x86_64-linux-gnu\n/var/chroots/debian/usr/lib/x86_64-linux-gnu\n&#039; &amp;gt; /etc/ld.so.conf&lt;br /&gt;
/var/chroots/debian/sbin/ldconfig}}&lt;br /&gt;
&lt;br /&gt;
=== Gentoo Linux ===&lt;br /&gt;
&lt;br /&gt;
Select a stage3 from [https://www.gentoo.org/downloads/ here] and portage latest from [https://www.gentoo.org/downloads/mirrors/ here] at gentoo/snapshots/portage-latest.tar.xz.&lt;br /&gt;
&lt;br /&gt;
First,&lt;br /&gt;
&lt;br /&gt;
{{cmd|doas apk add {{pkg|xz}}}}&lt;br /&gt;
&lt;br /&gt;
Enter the chroot:&lt;br /&gt;
{{cmd|mkdir ~/chroot&lt;br /&gt;
cd ~/chroot&lt;br /&gt;
tar -xvf stage3-*.tar.xz&lt;br /&gt;
tar -xvf portage-latest.tar.xz&lt;br /&gt;
mv portage usr&lt;br /&gt;
doas mount --bind /dev dev&lt;br /&gt;
doas mount --bind /sys sys&lt;br /&gt;
doas mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
doas chroot . /bin/bash}}&lt;br /&gt;
&lt;br /&gt;
And voilà, you have your working Gentoo chroot!&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now take a look at [https://wiki.gentoo.org/wiki/Handbook:Main_Page Gentoo&#039;s Handbook] to find out how you can configure and install your system, or simply extract/copy the program you need to run in your chroot enviroment and execute it.&lt;br /&gt;
&lt;br /&gt;
Here is a wrapper script that is similar to &amp;lt;code&amp;gt;arch-chroot&amp;lt;/code&amp;gt; when you frequently reuse this chroot:&lt;br /&gt;
&lt;br /&gt;
Also, create an account with the same user name as host current user to the chroot or make changes to the userspec option to chroot line.&lt;br /&gt;
&lt;br /&gt;
{{Cat|gentoo-chroot.sh|&amp;lt;nowiki&amp;gt;!/bin/bash&lt;br /&gt;
CHROOT_PATH=&amp;quot;/home/$USER/chroot&amp;quot;&lt;br /&gt;
cd $CHROOT_PATH&lt;br /&gt;
mount | grep $CHROOT_PATH/dev || doas mount --bind /dev dev&lt;br /&gt;
mount | grep $CHROOT_PATH/sys || doas mount --bind /sys sys&lt;br /&gt;
mount | grep $CHROOT_PATH/proc || doas mount -t proc proc proc&lt;br /&gt;
cp /etc/resolv.conf etc&lt;br /&gt;
doas chroot --userspec=$USER:users . /bin/bash&lt;br /&gt;
echo &amp;quot;You must manually unmount $CHROOT_PATH/dev, $CHROOT_PATH/sys, $CHROOT_PATH/proc.&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Do at &amp;lt;code&amp;gt;chmod +x gentoo-chroot.sh&amp;lt;/code&amp;gt; to get it to work.&lt;br /&gt;
&lt;br /&gt;
=== Arch Linux ===&lt;br /&gt;
&lt;br /&gt;
Either use &#039;&#039;&#039;pacstrap&#039;&#039;&#039; (included with the arch-install-scripts package) or an Arch bootstrap image:&lt;br /&gt;
&lt;br /&gt;
{{cmd|doas apk add {{pkg|arch-install-scripts}}&lt;br /&gt;
mkdir ~/chroot &amp;amp;&amp;amp; cd ~/chroot&lt;br /&gt;
curl -O https://mirrors.edge.kernel.org/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.gz&lt;br /&gt;
doas tar xzf archlinux-bootstrap-x86_64.tar.gz &amp;amp;&amp;amp; rm archlinux-bootstrap-x86_64.tar.gz&lt;br /&gt;
doas sed -i &#039;/evowise/s/^#//&#039; root.x86_64/etc/pacman.d/mirrorlist&lt;br /&gt;
doas sed -i &#039;/CheckSpace/s/^/#/&#039; root.x86_64/etc/pacman.conf&lt;br /&gt;
doas arch-chroot root.x86_64&lt;br /&gt;
[chroot]# pacman-key --init&lt;br /&gt;
[chroot]# pacman-key --populate archlinux}}&lt;br /&gt;
&lt;br /&gt;
Once that is done, update the system and install the desired package(s) (denoted by &#039;&#039;&amp;quot;foo&amp;quot;&#039;&#039; in this example):&lt;br /&gt;
  &lt;br /&gt;
{{cmd|[chroot]# pacman -Syu &#039;&#039;foo&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
{{todo|gresec referencs need to be cleanly removed from this section.}}&lt;br /&gt;
Use the provided debootstrap package to create the Debian chroot. &amp;lt;code&amp;gt;--arch&amp;lt;/code&amp;gt; is optional, depending of your needs.&lt;br /&gt;
&lt;br /&gt;
On the &#039;&#039;&#039;linux-grsec&#039;&#039;&#039; kernel, you will need to relax chroot limitations:&lt;br /&gt;
&lt;br /&gt;
  sudo apk add debootstrap&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 0 | sudo tee $i; done&lt;br /&gt;
  mkdir ~/chroot&lt;br /&gt;
  sudo debootstrap --arch=i386 wheezy ~/chroot https://deb.debian.org/debian/&lt;br /&gt;
  for i in /proc/sys/kernel/grsecurity/chroot_*; do echo 1 | sudo tee $i; done&lt;br /&gt;
  sudo chroot ~/chroot /bin/bash&lt;br /&gt;
&lt;br /&gt;
You can now use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; to install needed packages.&lt;br /&gt;
&lt;br /&gt;
== Containers ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible to use Docker or Podman containers with a helper like Distrobox. This allows using graphical programs easily and doesn&#039;t require root privileges once set up.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{pkg|distrobox}}}}&lt;br /&gt;
&lt;br /&gt;
=== Distrobox + Podman ===&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{pkg|podman}}}}&lt;br /&gt;
&lt;br /&gt;
Then set up rootless Podman, following [[Podman|these steps]].&lt;br /&gt;
You&#039;ll need to mount your root as shared for Distrobox to function.&lt;br /&gt;
&lt;br /&gt;
Fill in {{path|/etc/local.d/mount-rshared.start}} like so:&lt;br /&gt;
&lt;br /&gt;
{{cmd|#!/bin/sh&lt;br /&gt;
mount --make-rshared /}}&lt;br /&gt;
&lt;br /&gt;
Mark it as executable.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# chmod +x /etc/local.d/mount-rshared.start}}&lt;br /&gt;
&lt;br /&gt;
Then autostart its service.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# rc-update add local default&lt;br /&gt;
&amp;amp;#35; rc-service local start}}&lt;br /&gt;
&lt;br /&gt;
Finally you can create a container using your chosen image.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ distrobox create --image debian --name debian&lt;br /&gt;
$ distrobox enter debian}}&lt;br /&gt;
&lt;br /&gt;
It may also be necessary to allow X authorization for GUI programs to work.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ xhost +si:localuser:$USER}}&lt;br /&gt;
&lt;br /&gt;
== Chroot + Bubblewrap ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible to use a Debian system chroot with Bubblewrap. This allows running programs without root.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add bubblewrap debootstrap&lt;br /&gt;
&amp;amp;#35; mkdir -p /var/chroots/debian&lt;br /&gt;
&amp;amp;#35; debootstrap --arch amd64 stable /var/chroots/debian/ https://deb.debian.org/debian}}&lt;br /&gt;
&lt;br /&gt;
Finally we can make an alias for bwrap.&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ alias glibc{{=}}&amp;quot;LANG{{=}}en_US.UTF-8 bwrap --bind /var/chroots/debian / --dev-bind /dev /dev --proc /proc --bind /sys /sys --bind /run /run --bind /home /home --ro-bind /etc/resolv.conf /etc/resolv.conf --ro-bind /etc/passwd /etc/passwd --ro-bind /etc/group /etc/group&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
To run programs that use X11/Xorg you can use: &lt;br /&gt;
{{cmd|$ alias glibcX11{{=}}&amp;quot;LANG{{=}}en_US.UTF-8 bwrap --bind /var/chroots/debian / --dev-bind /dev /dev --proc /proc --bind /sys /sys --bind /run /run --bind /home /home --ro-bind /etc/resolv.conf /etc/resolv.conf --ro-bind /etc/passwd /etc/passwd --ro-bind /etc/group /etc/group --bind /tmp/.X11-unix/X0 /tmp/.X11-unix/X0 --setenv DISPLAY :0&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
Now we can invoke glibc-built binaries like so:&lt;br /&gt;
{{cmd|$ glibc ./binary}}&lt;br /&gt;
&lt;br /&gt;
For updating the Chroot or installing dependencies we can mount it and then login as root:&lt;br /&gt;
{{cmd|# mount --bind /dev /var/chroots/debian/dev&lt;br /&gt;
&amp;amp;#35; mount --bind /proc /var/chroots/debian/proc&lt;br /&gt;
&amp;amp;#35; chroot /var/chroots/debian /bin/bash&lt;br /&gt;
&amp;amp;#35; apt update &amp;amp;&amp;amp; apt upgrade}}&lt;br /&gt;
&lt;br /&gt;
After installing what you might want to umount the binds for dev and proc to avoid issues. &lt;br /&gt;
{{cmd|#umount /var/chroots/debian/dev}}&lt;br /&gt;
{{cmd|#umount /var/chroots/debian/proc}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Ncrav&amp;diff=26537</id>
		<title>User:Ncrav</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Ncrav&amp;diff=26537"/>
		<updated>2024-03-02T21:52:11Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add some info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! I&#039;m Nuno, I am a Computer Scientist and Data Scientist. &lt;br /&gt;
&lt;br /&gt;
I&#039;ve been using Alpine in servers and containers for a while now! &lt;br /&gt;
&lt;br /&gt;
I recently changed my daily driver to run Alpine + KDE5!&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Power_management&amp;diff=26512</id>
		<title>Power management</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Power_management&amp;diff=26512"/>
		<updated>2024-02-29T00:49:05Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add instructions on how to configure the action for when the power button is pressed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to configure what happens when you press the power button. This might be useful to allow for desktop environments to control what happens instead of shutting down.&lt;br /&gt;
&lt;br /&gt;
# Install {{pkg|acpid}}: {{cmd|# apk add acpid}}&lt;br /&gt;
# Enable and start the acpid daemon: {{cmd|# rc-update add acpid &amp;amp;&amp;amp; rc-service acpid start}}&lt;br /&gt;
&lt;br /&gt;
== Busybox acpid ==&lt;br /&gt;
&lt;br /&gt;
This can be done via [[Busybox acpid]] by creating/modifying the hook in {{path|/etc/acpi/PWRF/00000080}}. &lt;br /&gt;
&lt;br /&gt;
=== Configuring for shutdown === &lt;br /&gt;
In a newly installed system this might be already defined, however you can create the hook as follows:&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/acpi/PWRF/00000080|#!/bin/sh&lt;br /&gt;
poweroff}}&lt;br /&gt;
&lt;br /&gt;
=== Configuring for sleep === &lt;br /&gt;
&lt;br /&gt;
# Install {{pkg|zzz}}: {{cmd|# apk add zzz}}&lt;br /&gt;
# Modify the hook as follows: {{cat|/etc/acpi/PWRF/00000080|#!/bin/sh&lt;br /&gt;
zzz}}&lt;br /&gt;
&lt;br /&gt;
=== Disabling === &lt;br /&gt;
&lt;br /&gt;
To disable simply comment or remove the hook. This is useful to allow desktop environments to handle the power button.&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/acpi/PWRF/00000080|#!/bin/sh&lt;br /&gt;
#Nothing}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Power Management]]&lt;br /&gt;
[[category: Desktop]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=26511</id>
		<title>Tutorials and Howtos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=26511"/>
		<updated>2024-02-29T00:37:31Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add stub for Configure action when power-button is pressed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Todo|This material has been re-organized..., but grouping should be checked: &#039;&#039;&#039;Howtos are smaller articles&#039;&#039;&#039; and &#039;&#039;&#039;tutorials are more detailed document&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
[[Image:package_edutainment.svg|right|link=]]&lt;br /&gt;
{{TOC left}}&lt;br /&gt;
&#039;&#039;&#039;Welcome to Tutorials and Howtos, a place of basic and advanced configuration tasks for your Alpine Linux.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The tutorials are hands-on&#039;&#039;&#039; and the reader is expected to try and achieve the goals described in each step, possibly with the help of a good example. The output in one step is the starting point for the following step.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Howtos are smaller articles&#039;&#039;&#039; explaining how to perform a particular task with Alpine Linux, that expects a minimal knowledge from reader to perform actions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; contributions on those pages must be complete articles as well as requesting topics to be covered, don&#039;t override already made contributions. If you want to request a topic, please add your request in this page&#039;s [[Talk:Tutorials_and_Howtos|Discussion]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
= Howtos =&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
=== Miscellaneous ===&lt;br /&gt;
&lt;br /&gt;
* [[Ansible]] &#039;&#039;(Configuration management)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Monitoring ===&lt;br /&gt;
&lt;br /&gt;
* [[Awstats]] &#039;&#039;(Free log file analyzer)&#039;&#039;&lt;br /&gt;
* [[Cacti: traffic analysis and monitoring network]] &#039;&#039;(Front-end for rrdtool networking monitor)&#039;&#039;&lt;br /&gt;
* [[Cvechecker]] &#039;&#039;(Compare installed packages for Common Vulnerabilities Exposure)&#039;&#039; &amp;lt;!-- Monitoring and Security --&amp;gt;&lt;br /&gt;
* [[Linfo]]&lt;br /&gt;
* [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[PhpSysInfo]] &#039;&#039;(A simple application that displays information about the host it&#039;s running on)&#039;&#039;&lt;br /&gt;
* [[Matomo]] &#039;&#039;(A real time web analytics software program)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft, solution, Networking and Monitoring and Server --&amp;gt;&lt;br /&gt;
** [[Setting up NRPE daemon]] &#039;&#039;(Performs remote Nagios checks)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting Up Fprobe And Ntop|Ntop]] &#039;&#039;(NetFlow collection and analysis using a remote fprobe instance; for alpine 3.10-3.12 only)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up lm_sensors]]&lt;br /&gt;
* [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
* [[Traffic monitoring]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
** [[Setting up monitoring using rrdtool (and rrdcollect)]]&lt;br /&gt;
** [[Setting up traffic monitoring using rrdtool (and snmp)]] &amp;lt;!-- Monitoring --&amp;gt;&lt;br /&gt;
* [[Zabbix|Zabbix - the professional complete manager]] &#039;&#039;(Monitor and track the status of network services and hardware)&#039;&#039;&lt;br /&gt;
* [[ZoneMinder video camera security and surveillance]]&lt;br /&gt;
&lt;br /&gt;
=== Networking ===&lt;br /&gt;
&lt;br /&gt;
* Alpine Wall &#039;&#039;(a new firewall management framework)&#039;&#039;&lt;br /&gt;
** [[Alpine Wall]]&lt;br /&gt;
** [https://git.alpinelinux.org/awall/about/ Alpine Wall User&#039;s Guide]&lt;br /&gt;
** [[How-To Alpine Wall]]&lt;br /&gt;
* [[Freeradius Active Directory Integration]]&lt;br /&gt;
* [[GNUnet]]&lt;br /&gt;
* [[Setting up a OpenVPN server|OpenVPN server]] &#039;&#039;(Allowing single users or devices to remotely connect to your network)&#039;&#039;&lt;br /&gt;
* [[OpenVSwitch]]&lt;br /&gt;
* [[Using Alpine on Windows domain with IPSEC isolation]]&lt;br /&gt;
* [[Configure a Wireguard interface (wg)|Wireguard]]&lt;br /&gt;
&lt;br /&gt;
=== Telephony ===&lt;br /&gt;
&lt;br /&gt;
* [[FreePBX|FreePBX on Alpine Linux]]&lt;br /&gt;
* [[Setting up Zaptel/Asterisk on Alpine]]&lt;br /&gt;
* [[Kamailio]] &#039;&#039;(SIP Server, formerly OpenSER)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Backup and data migration ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]]&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
* [[Migrating data]]&lt;br /&gt;
* [[Rsnapshot]] - setting up periodic backups&lt;br /&gt;
&lt;br /&gt;
== Desktop ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine and UEFI]]&lt;br /&gt;
* [[Default applications]]&lt;br /&gt;
* Desktop cloud&lt;br /&gt;
** [[Nextcloud]] &#039;&#039;(Self hostable cloud suite - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
* [[Desktop environments and Window managers]] (overall information only)&lt;br /&gt;
* [[Printer Setup]]&lt;br /&gt;
* [[Remote Desktop Server]]&lt;br /&gt;
* Sound Systems&lt;br /&gt;
** [[ALSA]]&lt;br /&gt;
** [[PipeWire]]&lt;br /&gt;
** [[PulseAudio]]&lt;br /&gt;
* [[Configure action when power-button is pressed]]&lt;br /&gt;
* [[Suspend on LID close]]&lt;br /&gt;
* [[Alpine setup scripts#setup-xorg-base|Xorg Setup]]&lt;br /&gt;
&lt;br /&gt;
== Networking ==&lt;br /&gt;
&lt;br /&gt;
* [[Bluetooth]] - Instructions for installing and configuring Bluetooth&lt;br /&gt;
* [[Bonding]] - Bond (or aggregate) multiple ethernet interfaces&lt;br /&gt;
* [[Bridge]] - Configuring a network bridge&lt;br /&gt;
** [[Bridge wlan0 to eth0]]&lt;br /&gt;
* [[Configure Networking]]&lt;br /&gt;
* [[How to configure static routes]]&lt;br /&gt;
* Modem&lt;br /&gt;
** [[Using HSDPA modem]]&lt;br /&gt;
** [[Using serial modem]]&lt;br /&gt;
* [[mDNS]] - Howto implement multicast DNS resolution in Alpine. &lt;br /&gt;
* [[Multi ISP]] &#039;&#039;(Dual-ISP setup with load-balancing and automatic failover)&#039;&#039;&lt;br /&gt;
* [[PXE boot]]&lt;br /&gt;
* Wi-Fi&lt;br /&gt;
** [[Wi-Fi|Connecting to a wireless access point]]&lt;br /&gt;
** [[How to setup a wireless access point]] &#039;&#039;(Setting up Secure Wireless AP w/ WPA encryption with bridge to wired network)&#039;&#039;&lt;br /&gt;
* [[VLAN]]&lt;br /&gt;
&lt;br /&gt;
== Other Architectures ==&lt;br /&gt;
&lt;br /&gt;
=== ARM ===&lt;br /&gt;
&lt;br /&gt;
* [[Alpine on ARM]]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi Bluetooth Speaker|Raspberry Pi - Bluetooth Speaker]]&lt;br /&gt;
* [[Raspberry Pi|Raspberry Pi - Installation]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi|Raspberry Pi - Router with VPN]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi (IPv6)|Raspberry Pi - Router with VPN (IPv6)]]&lt;br /&gt;
* [[Classic install or sys mode on Raspberry Pi|Raspberry Pi - Sys mode install]]&lt;br /&gt;
* [[RPI Video Receiver|Raspberry Pi - Video Receiver]] &#039;&#039;(network video decoder using Rasperry Pi and omxplayer)&#039;&#039;&lt;br /&gt;
* [[Raspberry Pi 3 - Browser Client]] - kiosk or digital sign&lt;br /&gt;
* [[Raspberry Pi 3 - Configuring it as wireless access point -AP Mode]]&lt;br /&gt;
* [[Raspberry Pi 3 - Setting Up Bluetooth]]&lt;br /&gt;
* [[Raspberry Pi 4 - Persistent system acting as a NAS and Time Machine]]&lt;br /&gt;
* [[How to set up Alpine as a wireless router|Raspberry Pi Zero W - Wireless router]] &#039;&#039;(Setting up a firewalled, Wireless AP with wired network on a Pi Zero W)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== IBM Z (IBM z Systems) ===&lt;br /&gt;
&lt;br /&gt;
* [[s390x|s390x - Installation]]&lt;br /&gt;
&lt;br /&gt;
=== PowerPC ===&lt;br /&gt;
&lt;br /&gt;
* [[Ppc64le|Powerpc64le - Installation]]&lt;br /&gt;
&lt;br /&gt;
== Post-Install ==&lt;br /&gt;
&lt;br /&gt;
* [[CPU frequency scaling]]&lt;br /&gt;
* [[Repositories#Enabling_the_community_repository|Enable Community repository]] &#039;&#039;(Providing additional packages)&#039;&#039;&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
* [[Alpine Linux Init System|Init System (OpenRC)]] &#039;&#039;(Configure a service to automatically boot at next reboot)&#039;&#039;&lt;br /&gt;
** [[Multiple Instances of Services|Init System - Multiple Instances of Services]]&lt;br /&gt;
** [[Writing Init Scripts|Init System - Writing Init Scripts]]&lt;br /&gt;
* [[Installing Oracle Java|Oracle Java (installation)]]&lt;br /&gt;
* [[IGMPproxy]]&lt;br /&gt;
* [[Alpine Package Keeper|Package Management (apk)]] &#039;&#039;(How to add/remove packages on your Alpine)&#039;&#039;&lt;br /&gt;
** [[Comparison with other distros|Package Management - Comparison with other distros]]&lt;br /&gt;
* [[Running glibc programs]]&lt;br /&gt;
* [[Setting up a new user]]&lt;br /&gt;
* [[Upgrading Alpine]]&lt;br /&gt;
&lt;br /&gt;
== Remote Administration ==&lt;br /&gt;
&lt;br /&gt;
* ACF&lt;br /&gt;
** [[Changing passwords for ACF|ACF - changing passwords]]&lt;br /&gt;
** [[Generating SSL certs with ACF]] &amp;lt;!-- Generating SSL certs with ACF 1.9 --&amp;gt;&lt;br /&gt;
** [[setup-acf| ACF - setup]] &#039;&#039;(Configures ACF (webconfiguration/webmin) so you can manage your box through https)&#039;&#039;&lt;br /&gt;
* [[Setting up a SSH server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
** [[HOWTO OpenSSH 2FA with password and Google Authenticator |OpenSSH 2FA]] &#039;&#039;(A simple two factor setup for OpenSSH)&#039;&#039;&lt;br /&gt;
* [[OpenVCP]] &#039;&#039;(VServer Control Panel)&#039;&#039;&lt;br /&gt;
* [[PhpMyAdmin]] &#039;&#039;(Web-based administration tool for MYSQL)&#039;&#039;&lt;br /&gt;
* [[PhpPgAdmin]] &#039;&#039;(Web-based administration tool for PostgreSQL)&#039;&#039;&lt;br /&gt;
* [[Webmin]] &#039;&#039;(A web-based interface for Linux system)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Server ==&lt;br /&gt;
&lt;br /&gt;
* [[Hosting services on Alpine]] &#039;&#039;(Hosting mail, webservices and other services)&#039;&#039;&lt;br /&gt;
* [[Hosting Web/Email services on Alpine]]&lt;br /&gt;
&lt;br /&gt;
=== DNS ===&lt;br /&gt;
&lt;br /&gt;
* [[DNSCrypt-Proxy]] &#039;&#039;Encrypt and authenticate DNS calls from your system&#039;&#039;&lt;br /&gt;
* [[Setting up nsd DNS server]]&lt;br /&gt;
* [[Setting up unbound DNS server]]&lt;br /&gt;
* [[TinyDNS Format]]&lt;br /&gt;
&lt;br /&gt;
=== HTTP ===&lt;br /&gt;
&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
** [[Apache with php-fpm]]&lt;br /&gt;
** [[Setting Up Apache with PHP]]&lt;br /&gt;
** [[Apache authentication: NTLM Single Signon]]&lt;br /&gt;
* [[Darkhttpd]]&lt;br /&gt;
* [[Lighttpd]]&lt;br /&gt;
** [[Lighttpd Advanced security]]&lt;br /&gt;
** [[Setting Up Lighttpd With FastCGI]]&lt;br /&gt;
* [[Nginx]]&lt;br /&gt;
** [[Nginx as reverse proxy with acme (letsencrypt)]]&lt;br /&gt;
** [[Nginx with PHP]]&lt;br /&gt;
* Squid Proxy&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
** [[Setting up Explicit Squid Proxy]]&lt;br /&gt;
** [[Setting up Transparent Squid Proxy]] &#039;&#039;(Covers Squid proxy and URL Filtering system)&#039;&#039;&lt;br /&gt;
** [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
* [[Tomcat]]&lt;br /&gt;
&lt;br /&gt;
==== Hostable Content ====&lt;br /&gt;
&lt;br /&gt;
* [[DokuWiki]]&lt;br /&gt;
* [[Drupal]] &#039;&#039;(Content Management System (CMS) written in PHP)&#039;&#039;&lt;br /&gt;
* [[Kopano]] &#039;&#039;(Microsoft Outlook compatible Groupware)&#039;&#039;&lt;br /&gt;
* [[Mahara]] &#039;&#039;(E-portfolio and social networking system)&#039;&#039;&lt;br /&gt;
* [[MediaWiki]] &#039;&#039;(Free web-based wiki software application)&#039;&#039;&lt;br /&gt;
* [[Pastebin]] &#039;&#039;(Pastebin software application)&#039;&#039;&lt;br /&gt;
* [[WordPress]] &#039;&#039;(Web software to create website or blog)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== IRC ===&lt;br /&gt;
&lt;br /&gt;
* [[NgIRCd]] &#039;&#039;(Server for Internet Relay Chat/IRC)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mail ===&lt;br /&gt;
&lt;br /&gt;
* Exim/Dovecot&lt;br /&gt;
** [[Small-Time Email with Exim and Dovecot]] &#039;&#039;(A simple configuration for your home network.)&lt;br /&gt;
** [[Setting up dovecot with imap and tls]]&lt;br /&gt;
* [[relay email to gmail (msmtp, mailx, sendmail]]&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Setting up postfix with virtual domains]]&lt;br /&gt;
* Server protection&lt;br /&gt;
** [[Setting up clamsmtp]]&lt;br /&gt;
&lt;br /&gt;
=== Other Servers ===&lt;br /&gt;
&lt;br /&gt;
* [[Chrony and GPSD | Chrony, gpsd, and a garmin LVC 18 as a Stratum 1 NTP source ]]&lt;br /&gt;
* [[Glpi]] &#039;&#039;(Manage inventory of technical resources)&#039;&#039;&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[Setting up an NFS server|nfs-server]]&lt;br /&gt;
* [[Odoo]]&lt;br /&gt;
* [[Configure OpenLDAP | OpenLDAP]] &#039;&#039;(Installing and configuring the Alpine package for OpenLDAP)&#039;&#039;&lt;br /&gt;
* [[Setting up a samba-ad-dc|samba-ad-dc]] &#039;&#039;(Active Directory compatible domain controller)&#039;&#039;&lt;br /&gt;
* [[Setting up a Samba server|samba-server]] &#039;&#039;(standard file sharing)&#039;&#039;&lt;br /&gt;
* [[Setting up Transmission (bittorrent) with Clutch WebUI]]&lt;br /&gt;
&lt;br /&gt;
=== Software development ===&lt;br /&gt;
&lt;br /&gt;
* [[Cgit]]&lt;br /&gt;
* [[OsTicket]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Patchwork]] &#039;&#039;(Patch review management system)&#039;&#039;&lt;br /&gt;
* [[Redmine]] &#039;&#039;(Project management system)&#039;&#039;&lt;br /&gt;
* [[Request Tracker]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Setting up trac wiki|Trac]] &#039;&#039;(Enhanced wiki and issue tracking system for software development projects)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
* [[Setting up disks manually|Disk setup (manual)]]&lt;br /&gt;
* [[Filesystems]]&lt;br /&gt;
** [[Burning ISOs]]&lt;br /&gt;
* [[Setting up iSCSI|iSCSI Setup]]&lt;br /&gt;
** [[iSCSI Raid and Clustered File Systems]]&lt;br /&gt;
** [[Linux iSCSI Target (TCM)|iSCSI Target (TCM)/LinuxIO (LIO)]]&lt;br /&gt;
** [[Linux iSCSI Target (tgt)|User space iSCSI Target (tgt)]]&lt;br /&gt;
* [[Setting up Logical Volumes with LVM|LVM Setup]]&lt;br /&gt;
** [[Setting up LVM on GPT-labeled disks|LVM on GPT-labeled disks]]&lt;br /&gt;
** [[Installing on GPT LVM|LVM on GPT-labeled disks (updated)]]&lt;br /&gt;
** [[LVM on LUKS]]&lt;br /&gt;
* RAID&lt;br /&gt;
** [[Raid Administration]]&lt;br /&gt;
** [[Setting up a software RAID array]]&lt;br /&gt;
* ZFS&lt;br /&gt;
** [[Root on ZFS with native encryption]]&lt;br /&gt;
** [[Setting up ZFS on LUKS]]&lt;br /&gt;
** [[Setting up ZFS with native encryption]]&lt;br /&gt;
** [[ZFS scrub and trim]]&lt;br /&gt;
&lt;br /&gt;
== Virtualization ==&lt;br /&gt;
&lt;br /&gt;
* [[Docker]]&lt;br /&gt;
* [[Installing Alpine in a virtual machine]]&lt;br /&gt;
** [[Install Alpine on VMware ESXi]]&lt;br /&gt;
* [[KVM]] &#039;&#039;(Setting up Alpine as a KVM hypervisor)&#039;&#039;&lt;br /&gt;
* [[LXC]] &#039;&#039;(Setting up a Linux container in Alpine Linux)&#039;&#039;&lt;br /&gt;
* [[QEMU]]&lt;br /&gt;
* Xen&lt;br /&gt;
** [[Xen Dom0]] &#039;&#039;(Setting up Alpine as a dom0 for Xen hypervisor)&#039;&#039;&lt;br /&gt;
** [[Xen Dom0 on USB or SD]]&lt;br /&gt;
** [[Create Alpine Linux PV DomU|Xen DomU (paravirtualized)]]&lt;br /&gt;
** [[Xen LiveCD]]&lt;br /&gt;
** [[Xen PCI Passthrough]]&lt;br /&gt;
&lt;br /&gt;
= Tutorials =&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
* [[TTY_Autologin|TTY Autologin]]&lt;br /&gt;
* [[Kexec|Faster rebooting with kexec]]&lt;br /&gt;
* [[Dynamic Multipoint VPN (DMVPN)]] combined with [[Small Office Services]]&lt;br /&gt;
* [[DIY Fully working Alpine Linux for Allwinner and Other ARM SOCs]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]]&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039;&lt;br /&gt;
* [[Linux iSCSI Target (TCM)]]&lt;br /&gt;
* [[ISP Mail Server 3.x HowTo]]] &#039;&#039;(Postfix+PostfixAdmin+DoveCot+Roundcube+ClamAV+Spamd - A full-service ISP mail server)&#039;&#039;&lt;br /&gt;
* [[Replacing non-Alpine Linux with Alpine remotely]]&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
* [[Streaming Security Camera Video with VLC]]&lt;br /&gt;
&lt;br /&gt;
== Newbie corner ==&lt;br /&gt;
&lt;br /&gt;
* [[How to get regular stuff working]] &#039;&#039;some notes on need-to-know topics&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Servers ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine production deploy]]&lt;br /&gt;
** [[Production Web server: Lighttpd|Production web server: Lighttpd‎‎]]&lt;br /&gt;
** [[MySQL|Production database: MySQL]]&lt;br /&gt;
** [[Production LAMP system: Lighttpd + PHP + MySQL‎‎]]&lt;br /&gt;
* Alpine production monitoring&lt;br /&gt;
** [[Cacti: traffic analysis and monitoring network]]&lt;br /&gt;
** [[Zabbix|Zabbix - the professional complete manager]]&lt;br /&gt;
* Kubernetes&lt;br /&gt;
** [[K8s]] Building a K8s Cluster on Alpine Linux&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=KDE&amp;diff=26510</id>
		<title>KDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=KDE&amp;diff=26510"/>
		<updated>2024-02-29T00:28:39Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add information about installation and configuration with setup-desktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:KDEScreenshot.png |thumb |KDE Plasma screenshot.]]&lt;br /&gt;
&lt;br /&gt;
KDE is a software project comprising a desktop environment known as Plasma, a collection of libraries and frameworks known as KDE Frameworks, and several applications known as KDE Applications. Their [https://userbase.kde.org/Welcome_to_KDE_UserBase UserBase wiki] has detailed information about most KDE Applications.&lt;br /&gt;
&lt;br /&gt;
{{Note|the {{Pkg|plasma-desktop-meta|arch=}} package isn&#039;t available for the &amp;lt;code&amp;gt;ppc64le&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;s390x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;armhf&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;riscv64&amp;lt;/code&amp;gt; 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.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* [[Installation|Install]] Alpine Linux&lt;br /&gt;
* Create a [[Setting_up_a_new_user#Creating_a_new_user|user account]]&lt;br /&gt;
* Enable the &amp;lt;code&amp;gt;community&amp;lt;/code&amp;gt; [[Repositories#Managing_repositories|repository]]&lt;br /&gt;
* For users interested in Xorg as opposed to Wayland, install the [[Alpine_setup_scripts#setup-xorg-base|Xorg base packages]]&lt;br /&gt;
* [[D-Bus#Installation|Install and configure D-Bus]]&lt;br /&gt;
* [[Elogind#Installation|Install and configure Elogind]]&lt;br /&gt;
* Wayland users: Install package {{pkg|xf86-input-libinput|arch=}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Using setup-desktop ===&lt;br /&gt;
&lt;br /&gt;
You may use the alpine provided &#039;&#039;setup-desktop&#039;&#039; to install and configure KDE, by running the command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# setup-desktop}}&lt;br /&gt;
&lt;br /&gt;
on a shell and selecting KDE as your desktop.&lt;br /&gt;
&lt;br /&gt;
=== Manual Installation ===&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{pkg|plasma-desktop-meta|arch=}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{:Include:Setup_Device_Manager}}&lt;br /&gt;
&lt;br /&gt;
{{Note|&#039;&#039;&#039;polkit&#039;&#039;&#039; and &#039;&#039;&#039;udev&#039;&#039;&#039; are optional services for authentication and device management respectively. While KDE will function without these services enabled, some functionality may be missing or incomplete.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KDE Applications ==&lt;br /&gt;
&lt;br /&gt;
To install the full set of KDE Applications, install {{Pkg|kde-applications}}. You can also choose to install a smaller set of applications by installing any of the subpackages:&lt;br /&gt;
&lt;br /&gt;
{{Note|Most of these are not available on &amp;lt;code&amp;gt;ppc64le&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;s390x&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
* {{Pkg|kde-applications-accessibility|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-admin|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-base|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-edu|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-games|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-graphics|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-multimedia|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-network|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-pim|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-sdk|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-utils|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-webdev|arch=}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Starting Plasma ==&lt;br /&gt;
&lt;br /&gt;
Plasma can be started using a display manager or from the console.&lt;br /&gt;
&lt;br /&gt;
=== Using a display manager ===&lt;br /&gt;
&lt;br /&gt;
When Plasma is installed via the plasma meta-package, the display manager is set up using sddm.&lt;br /&gt;
&lt;br /&gt;
Make sure you enable and start the SDDM service.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-update add sddm&lt;br /&gt;
rc-service sddm start&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* Select &#039;&#039;Plasma&#039;&#039; to launch a new session in Wayland&lt;br /&gt;
* Select &#039;&#039;Plasma (X11)&#039;&#039; to launch a new session in Xorg&lt;br /&gt;
&lt;br /&gt;
=== From the console ===&lt;br /&gt;
&lt;br /&gt;
The Xorg session can be launched by installing {{Pkg|xinit|arch=}} and appending &amp;lt;code&amp;gt;exec startplasma-x11&amp;lt;/code&amp;gt; to your &amp;lt;code&amp;gt;.xinitrc&amp;lt;/code&amp;gt; file. To start X:&lt;br /&gt;
{{Cmd|xinit}}&lt;br /&gt;
&lt;br /&gt;
For the Wayland session run&lt;br /&gt;
{{Cmd|XDG_SESSION_TYPE{{=}}wayland dbus-run-session startplasma-wayland}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== HiDPI Scaling ===&lt;br /&gt;
&lt;br /&gt;
When using high resolution screens, e.g. 4K, you might need to apply scaling so the fonts and windows are not too small.&lt;br /&gt;
&lt;br /&gt;
In order to achieve this you can open &amp;lt;code&amp;gt;Settings -&amp;gt; Display and Monitor&amp;lt;/code&amp;gt; and change the slider under &#039;&#039;Global Scale&#039;&#039; to an appropriate value.&lt;br /&gt;
&lt;br /&gt;
You can also change the mouse cursor and icon size under &amp;lt;code&amp;gt;Settings -&amp;gt; Appearance&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your taskbar and window decorations are still too small, you might want to create the file {{path|~/.xprofile}} to define the &#039;&#039;PLASMA_USE_QT_SCALING&#039;&#039; environment variable:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|export PLASMA_USE_QT_SCALING{{=}}1}}&lt;br /&gt;
&lt;br /&gt;
After creating this file, you may need to restart your session to apply this modification.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Installation#Post-Installation|Post installation]]&lt;br /&gt;
* [[Flatpak]]&lt;br /&gt;
* [https://wiki.archlinux.org/title/KDE KDE - Archwiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Desktop Environments]]&lt;br /&gt;
[[Category:Wayland]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=KDE&amp;diff=26509</id>
		<title>KDE</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=KDE&amp;diff=26509"/>
		<updated>2024-02-29T00:22:36Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add information regarding high resolution monitors and scaling&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:KDEScreenshot.png |thumb |KDE Plasma screenshot.]]&lt;br /&gt;
&lt;br /&gt;
KDE is a software project comprising a desktop environment known as Plasma, a collection of libraries and frameworks known as KDE Frameworks, and several applications known as KDE Applications. Their [https://userbase.kde.org/Welcome_to_KDE_UserBase UserBase wiki] has detailed information about most KDE Applications.&lt;br /&gt;
&lt;br /&gt;
{{Note|the {{Pkg|plasma-desktop-meta|arch=}} package isn&#039;t available for the &amp;lt;code&amp;gt;ppc64le&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;s390x&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;armhf&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;riscv64&amp;lt;/code&amp;gt; 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.}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* [[Installation|Install]] Alpine Linux&lt;br /&gt;
* Create a [[Setting_up_a_new_user#Creating_a_new_user|user account]]&lt;br /&gt;
* Enable the &amp;lt;code&amp;gt;community&amp;lt;/code&amp;gt; [[Repositories#Managing_repositories|repository]]&lt;br /&gt;
* For users interested in Xorg as opposed to Wayland, install the [[Alpine_setup_scripts#setup-xorg-base|Xorg base packages]]&lt;br /&gt;
* [[D-Bus#Installation|Install and configure D-Bus]]&lt;br /&gt;
* [[Elogind#Installation|Install and configure Elogind]]&lt;br /&gt;
* Wayland users: Install package {{pkg|xf86-input-libinput|arch=}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{pkg|plasma-desktop-meta|arch=}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{:Include:Setup_Device_Manager}}&lt;br /&gt;
&lt;br /&gt;
{{Note|&#039;&#039;&#039;polkit&#039;&#039;&#039; and &#039;&#039;&#039;udev&#039;&#039;&#039; are optional services for authentication and device management respectively. While KDE will function without these services enabled, some functionality may be missing or incomplete.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KDE Applications ==&lt;br /&gt;
&lt;br /&gt;
To install the full set of KDE Applications, install {{Pkg|kde-applications}}. You can also choose to install a smaller set of applications by installing any of the subpackages:&lt;br /&gt;
&lt;br /&gt;
{{Note|Most of these are not available on &amp;lt;code&amp;gt;ppc64le&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;s390x&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
* {{Pkg|kde-applications-accessibility|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-admin|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-base|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-edu|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-games|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-graphics|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-multimedia|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-network|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-pim|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-sdk|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-utils|arch=}}&lt;br /&gt;
* {{Pkg|kde-applications-webdev|arch=}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Starting Plasma ==&lt;br /&gt;
&lt;br /&gt;
Plasma can be started using a display manager or from the console.&lt;br /&gt;
&lt;br /&gt;
=== Using a display manager ===&lt;br /&gt;
&lt;br /&gt;
When Plasma is installed via the plasma meta-package, the display manager is set up using sddm.&lt;br /&gt;
&lt;br /&gt;
Make sure you enable and start the SDDM service.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-update add sddm&lt;br /&gt;
rc-service sddm start&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* Select &#039;&#039;Plasma&#039;&#039; to launch a new session in Wayland&lt;br /&gt;
* Select &#039;&#039;Plasma (X11)&#039;&#039; to launch a new session in Xorg&lt;br /&gt;
&lt;br /&gt;
=== From the console ===&lt;br /&gt;
&lt;br /&gt;
The Xorg session can be launched by installing {{Pkg|xinit|arch=}} and appending &amp;lt;code&amp;gt;exec startplasma-x11&amp;lt;/code&amp;gt; to your &amp;lt;code&amp;gt;.xinitrc&amp;lt;/code&amp;gt; file. To start X:&lt;br /&gt;
{{Cmd|xinit}}&lt;br /&gt;
&lt;br /&gt;
For the Wayland session run&lt;br /&gt;
{{Cmd|XDG_SESSION_TYPE{{=}}wayland dbus-run-session startplasma-wayland}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== HiDPI Scaling ===&lt;br /&gt;
&lt;br /&gt;
When using high resolution screens, e.g. 4K, you might need to apply scaling so the fonts and windows are not too small.&lt;br /&gt;
&lt;br /&gt;
In order to achieve this you can open &amp;lt;code&amp;gt;Settings -&amp;gt; Display and Monitor&amp;lt;/code&amp;gt; and change the slider under &#039;&#039;Global Scale&#039;&#039; to an appropriate value.&lt;br /&gt;
&lt;br /&gt;
You can also change the mouse cursor and icon size under &amp;lt;code&amp;gt;Settings -&amp;gt; Appearance&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your taskbar and window decorations are still too small, you might want to create the file {{path|~/.xprofile}} to define the &#039;&#039;PLASMA_USE_QT_SCALING&#039;&#039; environment variable:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|export PLASMA_USE_QT_SCALING{{=}}1}}&lt;br /&gt;
&lt;br /&gt;
After creating this file, you may need to restart your session to apply this modification.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Installation#Post-Installation|Post installation]]&lt;br /&gt;
* [[Flatpak]]&lt;br /&gt;
* [https://wiki.archlinux.org/title/KDE KDE - Archwiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Desktop Environments]]&lt;br /&gt;
[[Category:Wayland]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Fonts&amp;diff=26508</id>
		<title>Fonts</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Fonts&amp;diff=26508"/>
		<updated>2024-02-28T23:45:54Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add Changing GRUB font and font size&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Fonts&#039;&#039;&#039; on Alpine Linux covers a wide range of various languages.  If you can&#039;t see your language, you need to install the font that has glyphs (little picture) created for it.  The square box called a substitute character or &amp;quot;tofu&amp;quot; that acts as a placeholder for missing a glyph usually with a two byte sequence.  Tofu is a prepared food that is a traditional part of East Asian and Southeast Asian meals. It is often served in a white rectangular appearance.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|The system font directory is located at {{path|/usr/share/fonts}} which is reserved for the Alpine package creators and the package system. The user font location is located in {{path|~/.fonts}} which is the preferred install font location especially from unknown sources.  Fonts have been used as a source of security exploits [https://www.cvedetails.com/vulnerability-list/vendor_id-4535/product_id-7835/Freetype-Freetype.html (See CVEs)] so to reduce the spread of attack install fonts inside {{path|~/.fonts}}.  The trusted system fonts that Alpine Linux packages typically are from well known sources like corporations like Google, Adobe, open organizations like Xorg or well known font designers or projects licensed as either [https://en.wikipedia.org/wiki/SIL_Open_Font_License SIL], GPL, etc.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
 &lt;br /&gt;
Default internal fb fonts (tty console) or xorg fonts (desktops) are suitable for a default installation. {{Pkg|font-misc-misc}} is installed with Xorg, so fonts for most languages (Japanese, Korean, Latin, Cyrillic) are already covered. Exceptions are Arabic, Persian, Thai, Tamil, etc. according to the Wikipedia Page on languages for article translation. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These selections will cover most languages and are a good fit for most setups: &lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add font-terminus font-inconsolata font-dejavu font-noto font-noto-cjk font-awesome font-noto-extra}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These selections add special support for &#039;&#039;&#039;cyrillic languages like Russian and Serbian, etc.&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add font-vollkorn font-misc-cyrillic font-mutt-misc font-screen-cyrillic font-winitzki-cyrillic font-cronyx-cyrillic}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These selections cover special &#039;&#039;&#039;Asiatic languages like Japanese, etc.&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add font-terminus font-noto font-noto-thai font-noto-tibetan font-ipa font-sony-misc font-jis-misc}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following will add some &#039;&#039;&#039;partially supported Chinese fonts&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add font-isas-misc}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These selection will cover, in general &#039;&#039;&#039;Arabic, Thai, Ethiopic, Hebrew, Romanian, Persian, Korean Hangul, Greek, Persian, Russian/Slavic Cyrillic, Macedonian/Serbian, Armenian, Georgian, Lao, Devanagari, Urdu (Hindustani as in Northern India and Pakistan), Cherokee, Thaana languages support&#039;&#039;&#039; for desktop setups:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# apk add font-terminus font-noto font-noto-extra font-arabic-misc &lt;br /&gt;
# apk add font-misc-cyrillic font-mutt-misc font-screen-cyrillic font-winitzki-cyrillic font-cronyx-cyrillic&lt;br /&gt;
# apk add font-noto-arabic font-noto-armenian font-noto-cherokee font-noto-devanagari font-noto-ethiopic font-noto-georgian&lt;br /&gt;
# apk add font-noto-hebrew font-noto-lao font-noto-malayalam font-noto-tamil font-noto-thaana font-noto-thai&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fc-cache -fv&amp;lt;/code&amp;gt; can be used to display the font locations and to update the cache.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some applications do not specify a specific font to use but rather say sans-serif [sans means without as in without tiny lines], serif, monospace [as in proportional square font].  This is where Fontconfig comes into place by substituting the general font type with a specific font that you like.  For package developers, {{path|/etc/fonts/conf.avail}} contains a fontconfig configuration file.  This will be symlinked into {{path|/etc/fonts/conf.d}}.  See {{path|/etc/fonts/conf.d/README}} for details about the meaning behind the priority numbers.&lt;br /&gt;
&lt;br /&gt;
For regular users, you want to create/edit your personal {{path|~/.fonts.conf}}.  This is in XML and describes which preferred font to use for these general types.  See [https://www.freedesktop.org/software/fontconfig/fontconfig-user.html this] for details.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Per-user Configuration is made in {{path|~/.fonts.conf}} but it&#039;s hard to configure. An easier method is to use the&lt;br /&gt;
{{path|~/.Xresources}} file.&lt;br /&gt;
&lt;br /&gt;
The following will set up for all users, a minimal resource usage for fonts. No antialiasing. No hint, etc:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# cat &amp;gt; /home/*/.Xresources &amp;lt;&amp;lt; EOF&lt;br /&gt;
Xft.antialias: 0&lt;br /&gt;
Xft.rgba:      rgb&lt;br /&gt;
Xft.autohint:  0&lt;br /&gt;
Xft.hinting:   1&lt;br /&gt;
Xft.hintstyle: hintslight&lt;br /&gt;
EOF&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of fonts in Alpine Linux ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Utopia_(typeface) Utopia] - {{pkg|font-adobe-utopia-*}}&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Noto_fonts Noto] - {{pkg|font-noto-*}} -- These fonts can cover different glyphs for your language.  If you go to https://fonts.google.com/noto , you can try to search for your language to see if it is supported.  If Alpine doesn&#039;t have it, you can download it from Google into your {{path|~/.font}} .  As hinted in the introduction, noto comes from &#039;&#039;&#039;no to&#039;&#039;&#039;fu or gradual elimination of these substitute characters off the web.&lt;br /&gt;
* [https://terminus-font.sourceforge.net/ Terminus] - {{pkg|font-terminus}} -- Monospace font&lt;br /&gt;
* [https://mirrors.ibiblio.org/CTAN/systems/win32/bakoma/fonts/fonts.html BaKoMa] {{pkg|font-bakoma-*}} -- Fonts for TeX typesetting system (for academics in the math and sciences and book writers) and TeX (WYSIWYG) editors&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Bitstream_Vera Bitstream Vera] {{pkg|font-bitstream-*}}&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Bitstream_Vera Bera (Bitstream Vera Type 1)] - {{pkg|font-bitstream-type1}} -- Use for LaTeX&lt;br /&gt;
* [https://fontawesome.com/ Font Awesome] - {{pkg|font-awesome}} -- It was used in Twitter Bootstrap.  It is a font representing things and brands as Icons.&lt;br /&gt;
* [https://www.gnu.org/software/freefont/ GNU FreeFont] - {{pkg|font-freefont}} -- See link for support for different writing systems/languages&lt;br /&gt;
* [https://savannah.gnu.org/projects/unifont/ GNU Unifont] - {{pkg|font-unifont}} -- It contains glyphs of every codepoint&lt;br /&gt;
* {{pkg|font-misc-cyrillic}} -- Cyrillic fonts (Russian/Slavic Style)&lt;br /&gt;
* {{pkg|font-screen-cyrillic}} -- X.org public domain Cyrillic fonts for screen use&lt;br /&gt;
* {{pkg|font-misc-ethiopic}} -- Ethiopic fonts used in Ethiopia and Eritrea&lt;br /&gt;
* {{pkg|font-misc-misc}} -- Bitmap fonts in PCF format (shows glyphs of many types and installed by default by xorg-server package)&lt;br /&gt;
* [https://www.rockbox.org/mail/archive/rockbox-dev-archive-2005-12/0029.shtml ClearlyU fonts] - {{pkg|font-mutt-misc}} -- Thai, Ethiopic, Hebrew, Romanian, Persian, Korean Hangul, Greek, Persian, Russian/Slavic Cyrillic, Macedonian/Serbian, Armenian, Georgian, Lao, Devanagari, Urdu (Hindustani as in Northern India and Pakistan), Cherokee, Thaana.  See link to changelog for full list of languages supported.&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Overpass_(typeface) Overpass] - {{pkg|font-overpass}}&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Luxi_fonts Luxi fonts] - {{pkg|font-bh-*}} -- designed by Kris Holmes and Charles Bigelow which bh is refers to the last name&lt;br /&gt;
* [https://directory.fsf.org/wiki/IPAfont IPA Font] - {{pkg|font-ipa}} -- A Japanese font&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Croscore_fonts Chrome OS core fonts] - {{pkg|font-croscore}}&lt;br /&gt;
* [http://vollkorn-typeface.com/ Vollkorn] - {{pkg|font-vollkorn}} - A serif font with glyphs for Cyrillic (Russian/Slavic), Greek, Polish, Dutch, Bulgarian, Serbian, and small capitals&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Open_Sans Open Sans] - {{pkg|font-opensans}}&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Cantarell_(typeface) Cantarell] - {{pkg|font-cantarell}} -- Designed for reading and the default GNOME font&lt;br /&gt;
* [https://en.wikipedia.org/wiki/DejaVu_fonts DejaVu] - {{pkg|font-dejavu}} -- A modified Bitstream Vera with more styles and unicode coverage&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Linux_Libertine Linux Libertine] - {{pkg|font-linux-libertine}} -- A free alternative to Times New Roman&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Liberation_fonts Liberation] {{pkg|font-liberation}} -- A free alternative to Helvetica and Arial&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Inconsolata Inconsolata] - {{pkg|font-inconsolata}} -- A monospace font designed for terminals and reading source code&lt;br /&gt;
* [https://madmalik.github.io/mononoki/ mononoki] - {{pkg|font-mononoki}} -- A font for programming and code review&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Droid_fonts Droid] - {{pkg|font-droid}} / {{pkg|font-droid-nonlatin}} -- Designed for small screens and was used in older Android&lt;br /&gt;
* {{pkg|font-schumacher-misc}} -- Fixed width fonts by Dale Schumacher&lt;br /&gt;
* {{pkg|font-sony-misc}} -- Japanese Kana fonts by Sony Electronics&lt;br /&gt;
* {{pkg|font-cursor-misc}} -- A standard cursor font&lt;br /&gt;
* {{pkg|font-sun-misc}} -- Cursor and glyph fonts by Sun Microsystems&lt;br /&gt;
* {{pkg|font-winitzki-cyrillic}} -- A Cyrillic (Russian) font by Serge Winitzki designed for proofreading mixed Russian-English text&lt;br /&gt;
* {{pkg|font-isas-misc}} -- Chinese Song Ti style fonts (thinner horizontal lines compared to vertical)&lt;br /&gt;
* {{pkg|font-jis-misc}} -- A Japanese International Standard font&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Courier_(typeface)#IBM_Courier IBM Courier] {{pkg|font-ibm-type1}}&lt;br /&gt;
* {{pkg|font-dec-misc}} -- A Digital Equipment Corporation cursor and session fonts&lt;br /&gt;
* {{pkg|font-cronyx-cyrillic}} -- A Russian font for X11 by Cronyx&lt;br /&gt;
* {{pkg|font-arabic-misc}} -- A bitmap and proportional Arabic font in newspaper style [https://unicode.org/mail-arch/unicode-ml/Archives-Old/UML010/0237.html ]&lt;br /&gt;
&lt;br /&gt;
==Non-free fonts==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Core_fonts_for_the_Web Core fonts for the Web] ({{Pkg|msttcorefonts-installer}}) - For installing non-free proprietary Microsoft fonts like [https://en.wikipedia.org/wiki/Comic_Sans Comic Sans]. Not recommended for commercial or open source projects. See their [https://web.archive.org/web/20091208063245/http://www.microsoft.com/typography/fontpack/eula.htm licensing].&lt;br /&gt;
  Arial&lt;br /&gt;
  Arial Black&lt;br /&gt;
  Andalé Mono&lt;br /&gt;
  Courier New&lt;br /&gt;
  Comic Sans MS&lt;br /&gt;
  Georgia&lt;br /&gt;
  Impact&lt;br /&gt;
  Times New Roman&lt;br /&gt;
  Trebuchet MS&lt;br /&gt;
  Verdana&lt;br /&gt;
  Webdings&lt;br /&gt;
&lt;br /&gt;
== Changing the console font ==&lt;br /&gt;
&lt;br /&gt;
The default font may be too small on high-resolution monitors, e.g. 4K ones. To change the default font, e.g. to the 32px ISO Latin-1 Terminus font:&lt;br /&gt;
&lt;br /&gt;
# {{cmd|# apk add {{pkg|font-terminus}}}}&lt;br /&gt;
# try out fonts in a virtual console using &amp;lt;code&amp;gt;# setfont /usr/share/consolefonts/ter-132n.psf.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit {{path|/etc/conf.d/consolefont}}, set it to the font you choose, e.g. &amp;lt;code&amp;gt;consolefont=&amp;quot;ter-132n.psf.gz&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
# enable this using &amp;lt;code&amp;gt;# rc-update add consolefont boot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changing GRUB font and font size ==&lt;br /&gt;
&lt;br /&gt;
The font in the GRUB boot screen might also be too small on high-resolution monitors. In order to change the default font and font size, you first need install &#039;&#039;grub-mkfont&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{pkg|grub-mkfont}}}}&lt;br /&gt;
&lt;br /&gt;
Then you can choose one of the fonts in {{path|/usr/share/fonts}}, e.g. {{path|/usr/share/fonts/inconsolata/Inconsolata-Regular.otf}}. Then you can create a grub font with the desired size:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# grub-mkfont -s32 /usr/share/fonts/inconsolata/Inconsolata-Regular.otf -o /boot/grub/fonts/inconsolata-32.pf2}}&lt;br /&gt;
&lt;br /&gt;
Here we are using size 32 but you can adjust it. &lt;br /&gt;
&lt;br /&gt;
After creating the font you need to edit {{path|/etc/default/grub}} and add the configuration with the path for your selected font, e.g. {{path| /boot/grub/fonts/inconsolata-32.pf2}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;GRUB_FONT=/boot/grub/fonts/inconsolata-32.pf2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally you can run &lt;br /&gt;
&lt;br /&gt;
{{cmd|# update-grub}} &lt;br /&gt;
&lt;br /&gt;
and then you can reboot your system.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Emojis]]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Fonts Fonts - Archwiki]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Infographics]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=26507</id>
		<title>Flatpak</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Flatpak&amp;diff=26507"/>
		<updated>2024-02-28T23:15:43Z</updated>

		<summary type="html">&lt;p&gt;Ncrav: Add possible solution to dbus errors when dbus-launch didn&amp;#039;t run&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Flatpak is a technology for building and distributing applications with the goal of having a universal package format for all Linux distributions, it is similar to [https://en.wikipedia.org/wiki/Snap_(software) Snap], &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup / Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Runtime dependencies ===&lt;br /&gt;
&lt;br /&gt;
* {{Pkg|dbus}}&lt;br /&gt;
* {{Pkg|polkit}}&lt;br /&gt;
* {{Pkg|xdg-desktop-portal}}&lt;br /&gt;
* an implementation of &amp;lt;code&amp;gt;xdg-desktop-portal&amp;lt;/code&amp;gt;, e.g. {{Pkg|xdg-desktop-portal-gtk}}&lt;br /&gt;
&lt;br /&gt;
{{Note|If you are running a window manager from {{Path|.xinitrc}}, make sure you are running a &amp;lt;code&amp;gt;dbus&amp;lt;/code&amp;gt; session explicitly, i.e.:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# exec dbus-launch --exit-with-session your_favourite_wm}}}}&lt;br /&gt;
&lt;br /&gt;
=== Installing Flatpak Itself ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;From: https://flatpak.org/setup/Alpine/&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Note|To install Flatpak you will need to enable the  Community repository, See: [[Repositories#Managing_repositories|Repositories - Managing repositories]]}}&lt;br /&gt;
&lt;br /&gt;
To install Flatpak run:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add {{Pkg|flatpak}}}}&lt;br /&gt;
&lt;br /&gt;
Next you need to add a repository, for this guide we will use the recommended repository, [https://flathub.org Flathub].&lt;br /&gt;
&lt;br /&gt;
{{cmd|$ flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo}}&lt;br /&gt;
&lt;br /&gt;
Flatpak is now ready to use immediately, however flatpak desktop entries will not appear until you restart your desktop session (i.e. by logging out and then logging back in)&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
To get all of the available options to use with the &#039;&#039;&#039;flatpak&#039;&#039;&#039; command run: &#039;&#039;&#039;flatpak --help&#039;&#039;&#039; or &#039;&#039;&#039;flatpak -h&#039;&#039;&#039;,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Search ===&lt;br /&gt;
&lt;br /&gt;
To search for applications run &#039;&#039;&#039;flatpak --user search &amp;lt;appplicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak --user search chromium&lt;br /&gt;
&lt;br /&gt;
Name                   Description                                                        Application ID                        Version       Branch  Remotes&lt;br /&gt;
Chromium Web Browser   The web browser from Chromium project                              org.chromium.Chromium                 96.0.4664.93  stable  flathub&lt;br /&gt;
Chromium B.S.U.        Fast paced, arcade-style, top-scrolling space shooter              net.sourceforge.chromium-bsu          0.9.16.1      stable  flathub&lt;br /&gt;
ungoogled-chromium     A lightweight approach to removing Google web service dependency   com.github.Eloston.UngoogledChromium  96.0.4664.45  stable  flathub&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
&lt;br /&gt;
To install a package run &#039;&#039;&#039;flatpak --user install &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak --user install com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
&lt;br /&gt;
com.github.Eloston.UngoogledChromium permissions:&lt;br /&gt;
    ipc             network                 cups                   pulseaudio               wayland                       x11&lt;br /&gt;
    devices         file access [1]         dbus access [2]        bus ownership [3]        system dbus access [4]&lt;br /&gt;
&lt;br /&gt;
    [1] /run/.heim_org.h5l.kcm-socket, home, xdg-run/pipewire-0&lt;br /&gt;
    [2] org.freedesktop.FileManager1, org.freedesktop.Notifications, org.freedesktop.secrets, org.gnome.SessionManager&lt;br /&gt;
    [3] org.mpris.MediaPlayer2.chromium.*&lt;br /&gt;
    [4] org.freedesktop.Avahi, org.freedesktop.UPower&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        ID                                                      Branch             Op            Remote             Download&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium.Codecs             stable             i             flathub              &amp;lt; 1.1 MB&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Locale             stable             i             flathub            &amp;lt; 112.8 kB&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium                    stable             i             flathub            &amp;lt; 119.0 MB&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or if you don&#039;t know or don&#039;t want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak --user install chromium&lt;br /&gt;
&lt;br /&gt;
Looking for matches…&lt;br /&gt;
Similar refs found for ‘chromium’ in remote ‘flathub’ (system):&lt;br /&gt;
&lt;br /&gt;
   1) app/net.sourceforge.chromium-bsu/x86_64/stable&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable&lt;br /&gt;
   3) runtime/org.chromium.Chromium.Codecs/x86_64/stable&lt;br /&gt;
   4) app/org.chromium.Chromium/x86_64/stable&lt;br /&gt;
   5) app/com.github.Eloston.UngoogledChromium/x86_64/stable&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-5]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove ===&lt;br /&gt;
&lt;br /&gt;
To remove a package run: &#039;&#039;&#039;flatpak --user remove &amp;lt;applicationname&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak --user remove com.github.Eloston.UngoogledChromium&lt;br /&gt;
&lt;br /&gt;
        ID                                                     Branch           Op&lt;br /&gt;
 1.     com.github.Eloston.UngoogledChromium                   stable           r&lt;br /&gt;
 2.     com.github.Eloston.UngoogledChromium.Codecs            stable           r&lt;br /&gt;
 3.     com.github.Eloston.UngoogledChromium.Locale            stable           r&lt;br /&gt;
&lt;br /&gt;
Proceed with these changes to the system installation? [Y/n]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
or if you don&#039;t know or don&#039;t want to type the exact package name:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; flatpak --user remove chromium&lt;br /&gt;
&lt;br /&gt;
Similar installed refs found for ‘chromium’:&lt;br /&gt;
&lt;br /&gt;
   1) app/com.github.Eloston.UngoogledChromium/x86_64/stable (system)&lt;br /&gt;
   2) runtime/com.github.Eloston.UngoogledChromium.Codecs/x86_64/stable (system)&lt;br /&gt;
   3) All of the above&lt;br /&gt;
&lt;br /&gt;
Which do you want to use (0 to abort)? [0-3]:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Developers ==&lt;br /&gt;
&lt;br /&gt;
* [https://docs.flatpak.org/en/latest/available-runtimes.html Flatpak - available runtimes]&lt;br /&gt;
&lt;br /&gt;
These are all hosted on [https://flathub.org/ Flathub.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Draft|More documentation and testing is needed, but everything currently here should be safe to follow.}}&lt;br /&gt;
&lt;br /&gt;
=== Permission errors ===&lt;br /&gt;
&lt;br /&gt;
If you receive errors about permissions then you may need to add your user to the &#039;&#039;&#039;flatpak&#039;&#039;&#039; group.&lt;br /&gt;
&lt;br /&gt;
{{Note|You need to log out and log back in or reboot for the group change(s) to take effect}}&lt;br /&gt;
&lt;br /&gt;
=== Application launch errors === &lt;br /&gt;
&lt;br /&gt;
If the application is not starting try running it with {{Cmd|&amp;lt;nowiki&amp;gt;flatpak run the.application.name&amp;lt;/nowiki&amp;gt;}} on a terminal. If this yields an a dbus error starting with &#039;&#039;Failed to connect to session bus&#039;&#039; then you might solve this by adding &lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;export $(dbus-launch)&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
in {{Path|/etc/profile}}.&lt;br /&gt;
&lt;br /&gt;
=== Fixing audio issues ===&lt;br /&gt;
&lt;br /&gt;
If you have a minimal setup and don&#039;t have access to audio devices you will need to set the XDG_RUNTIME_DIR variable. Save the following script in {{Path|/etc/profile.d/xdg_runtime_dir.sh}} and re-login to have it set up properly.&lt;br /&gt;
&lt;br /&gt;
 if test -z &amp;quot;${XDG_RUNTIME_DIR}&amp;quot;; then&lt;br /&gt;
   export XDG_RUNTIME_DIR=/tmp/$(id -u)&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
When you launch a Flatpak you will need to start pulseaudio as well:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ pulseaudio --start &amp;amp;&amp;amp; flatpak run com.example.Example}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Unable to upload files ===&lt;br /&gt;
&lt;br /&gt;
If you are unable to upload files from the host, this maybe due to [https://docs.flatpak.org/en/latest/sandbox-permissions.html Flatpak sandbox] and you may have to manually add the authorization.&lt;br /&gt;
&lt;br /&gt;
This can be done with the following commands:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;$ flatpak override ApplicationID --filesystem=/home/user/Downloads&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;ApplicationID&#039;&#039; is given by:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ flatpak list}}&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;$ flatpak override org.signal.Signal --filesystem=/home/user/Downloads&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Error while opening repository ===&lt;br /&gt;
&lt;br /&gt;
There is a current issue where sometimes flatpak will try to read the system-wide repository even if your install is with --user. This will result in failure to launch a flatpak application with the terminal reading &amp;quot;&amp;quot;error: While opening repository /var/lib/flatpak/repo: opening repo: opendir(/var/lib/flatpak/repo): No such file or directory&amp;quot;. An alpine user has posted more information, as well as a workaround, at https://github.com/flatpak/flatpak/issues/5488&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [https://flatpak.org/ Flatpak]&lt;br /&gt;
* [https://flathub.org/ Flathub]&lt;br /&gt;
* [https://winepak.github.io/ Winepak]&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;br /&gt;
[[Category: Desktop]]&lt;/div&gt;</summary>
		<author><name>Ncrav</name></author>
	</entry>
</feed>