<?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=Carbon-starlight</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=Carbon-starlight"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Carbon-starlight"/>
	<updated>2026-05-05T15:47:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Dualbooting&amp;diff=26424</id>
		<title>Dualbooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Dualbooting&amp;diff=26424"/>
		<updated>2024-02-18T04:23:23Z</updated>

		<summary type="html">&lt;p&gt;Carbon-starlight: Added a warning about complexity level of operation for anyone who might be considering it (I personally spent about two nights trying to install Alpine alongside Windows, ended up breaking the bootloader, deleted created partitions and installed Debian in 15 minutes).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Warning|This manual is intended for experienced users. You will have to figure out your bootloader and manually edit partitions on your disk. A script to make installation of Alpine to a free space on a disk alongside another operating system as simple and straightforward as to a full disk with setup-alpine is yet to be written. If you doubt you can do it, it may be better for you to buy an external drive, use a VM for a second OS or choose another distro.}}&lt;br /&gt;
&lt;br /&gt;
It&#039;s assumed you have a box where you already run another operating system, and would like to be able to boot either the installed system or Alpine.&lt;br /&gt;
&lt;br /&gt;
= Prepare your hardware =&lt;br /&gt;
Alpine needs a separate partition where it can be installed to. If you don&#039;t already have one free, you need to create a primary partition with enough space for your Alpine installation.&lt;br /&gt;
&lt;br /&gt;
For this, see: [[Setting_up_disks_manually#Manual_partitioning | Manual_partitioning]]&lt;br /&gt;
&lt;br /&gt;
Make note of what partition you will use for your Alpine installation. In this example we are going to install Alpine on &#039;&#039;&#039;/dev/sdXY&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Installing Alpine on an HDD partition =&lt;br /&gt;
&lt;br /&gt;
Now it&#039;s time to install Alpine. Boot your system with a CD containing the latest Alpine Standard from [https://alpinelinux.org/downloads Downloads].&lt;br /&gt;
&lt;br /&gt;
== Format and mount the HDD partition ==&lt;br /&gt;
&lt;br /&gt;
First format your partition. We will need some tools for doing the formatting. After you are done the tools can be removed.&lt;br /&gt;
&lt;br /&gt;
{{Warning|Make sure you format the right partition! The {{Path|/dev/sdXY}} is only a example. If you choose the wrong partition, your data will be gone.&lt;br /&gt;
Make a backup first if you are unsure.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add e2fsprogs&lt;br /&gt;
mkfs.ext4 /dev/sdXY&lt;br /&gt;
apk del e2fsprogs}}&lt;br /&gt;
&lt;br /&gt;
Then mount the newly formatted partition. After mounting, the partition will be available at {{Path|/mnt}}.&lt;br /&gt;
{{Cmd|mount -t ext4 /dev/sdXY /mnt}}&lt;br /&gt;
&lt;br /&gt;
== Basic setup ==&lt;br /&gt;
&lt;br /&gt;
First, set up Alpine without installing to a disk.&lt;br /&gt;
&lt;br /&gt;
To do this, either run&lt;br /&gt;
{{Cmd|setup-alpine}}&lt;br /&gt;
and when to prompted &amp;quot;Which disks do you like to use?&amp;quot; make sure to answer &amp;quot;none&amp;quot;. Answer &amp;quot;none&amp;quot; to the remaining prompts about storing configs and the apk cache directory.&lt;br /&gt;
&lt;br /&gt;
Or, run this command sequence:&lt;br /&gt;
{{Cmd|setup-timezone&lt;br /&gt;
setup-alpine -q&lt;br /&gt;
setup-sshd&lt;br /&gt;
setup-ntp}}&lt;br /&gt;
&lt;br /&gt;
See [[setup-alpine]] for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If the &amp;quot;answerfile&amp;quot; functionality of setup-alpine is changed to permit specifying &amp;quot;-m none&amp;quot; for setup-disk, this sequence could be expressed more concisely.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install Alpine ==&lt;br /&gt;
&lt;br /&gt;
Now it&#039;s time to copy the prepared system to the prepared partition(s) that were mounted below /mnt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== In Alpine 2.2.3 or newer ===&lt;br /&gt;
&lt;br /&gt;
{{Cmd|setup-disk -m sys /mnt}}&lt;br /&gt;
See [[Alpine_setup_scripts#setup-disk|setup-disk]] for more details. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tip|If you use extlinux (default) and didn&#039;t create a separate boot partition, ({{Path|/boot}} resides on the root partition {{Path|/}}). &lt;br /&gt;
You might need to adjust the paths to the boot files in {{Path|/boot/extlinux.conf}}, eg.:&lt;br /&gt;
&amp;lt;pre&amp;gt;[...]&lt;br /&gt;
LABEL hardened&lt;br /&gt;
  MENU DEFAULT&lt;br /&gt;
  MENU LABEL Linux hardened&lt;br /&gt;
  LINUX /boot/vmlinuz-lts&lt;br /&gt;
  INITRD /boot/initramfs-lts&lt;br /&gt;
[...]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check that the &amp;lt;code&amp;gt;LINUX&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;INITRD&amp;lt;/code&amp;gt; paths actually point to the files shipped in your Alpine Linux release.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== With older Alpine versions up to 2.2.3 ===&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using an earlier version of Alpine Linux, you&#039;ll need to install the files and [[Bootloaders|bootloader]] manually.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If you&#039;re using a version of Alpine Linux older than 2.2.0, replace {{Path|/etc/apk/world}} in the last line with {{Path|/var/lib/apk/world}}}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd|lbu package - {{!}} tar -C /mnt -xzf -&lt;br /&gt;
apk add --root /mnt --initdb --repositories-file /etc/apk/repositories --keys-dir \&lt;br /&gt;
  /etc/apk/keys $(cat /etc/apk/world) acct linux-hardened alpine-base}}&lt;br /&gt;
&lt;br /&gt;
Your system is now on {{Path|/dev/sdXY}}. &lt;br /&gt;
&lt;br /&gt;
== Configuring the bootloader ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are different ways to get a boot menu that allows selecting the operating system to boot.&lt;br /&gt;
&lt;br /&gt;
It is easiest on (U)EFI based hardware platforms, where one may simply install the &amp;lt;code&amp;gt;rEFInd&amp;lt;/code&amp;gt; boot menu, as explained in [[Bootloaders]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, one may adjust the bootloader that has already been installed (by the other operating system).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because bootloaders vary, you&#039;ll need to figure out how to make yours boot your Alpine install.&lt;br /&gt;
&lt;br /&gt;
Hopefully you can get some ideas from the following example, adjusting Grub2 to boot Alpine:&lt;br /&gt;
&lt;br /&gt;
Reboot your system &#039;&#039;(start Ubuntu)&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Start a &#039;terminal&#039; &#039;&#039;(ALT-F2 + &amp;quot;terminal&amp;quot; + [Run])&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Take notes of the UUID of the partition you are planning to use:&lt;br /&gt;
{{Cmd|# blkid /dev/sdXY}}&lt;br /&gt;
&lt;br /&gt;
Start editing the grub2 configuration &lt;br /&gt;
{{Cmd|# gedit /etc/grub.d/40_custom}}&lt;br /&gt;
&lt;br /&gt;
I edited the file to look something like this:&lt;br /&gt;
{{Cat|/etc/grub.d/40_custom|&amp;lt;nowiki&amp;gt;#!/bin/sh&lt;br /&gt;
echo &amp;quot;Adding Alpine&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
cat &amp;lt;&amp;lt; EOF&lt;br /&gt;
menuentry &amp;quot;Alpine Linux&amp;quot; {&lt;br /&gt;
 set root=(hd0,3)&lt;br /&gt;
 linux /boot/vmlinuz-lts root=UUID=8de6973a-4a8c-40ed-b710-c4e2b42d6b7a modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
 initrd /boot/initramfs-lts&lt;br /&gt;
}&lt;br /&gt;
EOF&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Note|The root, linux, initrd, and UUID values mentioned above should be replaced with those of your system, e.g. the UUID you got when running the &#039;blkid&#039; command.}}&lt;br /&gt;
Finally the configuration changes need to be applied to the grub2 bootloader:&lt;br /&gt;
{{Cmd|update-grub2}}&lt;br /&gt;
&lt;br /&gt;
Now it&#039;s time to test. Reboot your box.&lt;br /&gt;
{{Note|You might need to press SHIFT when booting your box in order to see the grub-menu.}}&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
For Windows partitions to be detected with grub, you need `os-prober` and `grub-mount` installed at the time grub-mkconfig runs.&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Carbon-starlight</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Twm&amp;diff=26274</id>
		<title>Twm</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Twm&amp;diff=26274"/>
		<updated>2024-01-14T22:47:25Z</updated>

		<summary type="html">&lt;p&gt;Carbon-starlight: Created a page for twm window manager&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:VirtualBox Alpine with twm.png|thumb|alt=A depiction of Alpine Linux interface with twm window manager|A depiction of Alpine Linux interface with twm window manager]]&lt;br /&gt;
&lt;br /&gt;
twm (Tab Window Manager) is the standard window manager for the X Window System since version X11R4.&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
1. Run&lt;br /&gt;
{{Cmd|# setup-xorg-base}}&lt;br /&gt;
&lt;br /&gt;
2. Type &lt;br /&gt;
{{Cmd|# cd}}&lt;br /&gt;
to go to home directory.&lt;br /&gt;
In home directory create a file named &amp;quot;.xinitrc&amp;quot;:&lt;br /&gt;
{{Cmd|# vi .xinitrc}}&lt;br /&gt;
Or, if you prefer nano text editor&lt;br /&gt;
{{Cmd|# nano .xinitrc}}&lt;br /&gt;
&lt;br /&gt;
3. Write to file:&lt;br /&gt;
{{Cmd|exec twm}}&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
4. Install twm&lt;br /&gt;
{{Cmd|# apk add twm}}&lt;br /&gt;
&lt;br /&gt;
You will also need xterm to open apps:&lt;br /&gt;
{{Cmd|# apk add xterm}}&lt;br /&gt;
&lt;br /&gt;
5. Start the X window manager&lt;br /&gt;
{{Cmd|# startx}}&lt;br /&gt;
&lt;br /&gt;
You will be greeted with a black screen. Hold left mouse button and select &amp;quot;XTerm&amp;quot;. Type in a program name to launch it.&lt;br /&gt;
&lt;br /&gt;
= Keyboard layout =&lt;br /&gt;
Your keyboard layout will be back to US default. If you use an alternative layout (e.g. Colemak), that might be a problem.&lt;br /&gt;
&lt;br /&gt;
To switch to another layout first install setxkbmap:&lt;br /&gt;
{{Cmd|# apk add setxkbmap}}&lt;br /&gt;
&lt;br /&gt;
Then switch to another layout (example for colemak):&lt;br /&gt;
{{Cmd|# setxkbmap us -variant colemak}}&lt;/div&gt;</summary>
		<author><name>Carbon-starlight</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:VirtualBox_Alpine_with_twm.png&amp;diff=26273</id>
		<title>File:VirtualBox Alpine with twm.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:VirtualBox_Alpine_with_twm.png&amp;diff=26273"/>
		<updated>2024-01-14T22:22:23Z</updated>

		<summary type="html">&lt;p&gt;Carbon-starlight: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A depiction of Alpine Linux interface with twm window manager&lt;/div&gt;</summary>
		<author><name>Carbon-starlight</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Desktop_environments_and_Window_managers&amp;diff=26272</id>
		<title>Desktop environments and Window managers</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Desktop_environments_and_Window_managers&amp;diff=26272"/>
		<updated>2024-01-14T22:14:53Z</updated>

		<summary type="html">&lt;p&gt;Carbon-starlight: /* Tiling (dynamic) window managers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|Be sure to add your user to &amp;lt;code&amp;gt;input&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt; groups.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alpine Linux&#039;&#039;&#039; has no official desktop. Older versions used Xfce, but now all GUI and graphical interfaces are optional. many are available and are attempted to be listed below:&lt;br /&gt;
&lt;br /&gt;
== Desktop Environments ==&lt;br /&gt;
&lt;br /&gt;
See also: [[:Category:Desktop Environments|Desktop Environments Category]]&lt;br /&gt;
&lt;br /&gt;
* [[Xfce]]&lt;br /&gt;
* [[LXQt]]&lt;br /&gt;
* [[KDE|KDE Plasma]]&lt;br /&gt;
* [[GNOME]]&lt;br /&gt;
* [[MATE]]&lt;br /&gt;
&lt;br /&gt;
== Window Managers ==&lt;br /&gt;
&lt;br /&gt;
See also: [[:Category:Window Managers|Window Managers Category]]&lt;br /&gt;
&lt;br /&gt;
===  [https://en.wikipedia.org/wiki/Stacking_window_manager Stacking (floating) window managers] ===&lt;br /&gt;
&lt;br /&gt;
* X11:&lt;br /&gt;
** [[Openbox]]&lt;br /&gt;
&lt;br /&gt;
* Wayland:&lt;br /&gt;
** Weston&lt;br /&gt;
** [[LabWC]]&lt;br /&gt;
** [[Wayfire]]&lt;br /&gt;
&lt;br /&gt;
=== [https://en.wikipedia.org/wiki/Tiling_window_manager Tiling (dynamic) window managers] ===&lt;br /&gt;
&lt;br /&gt;
* X11:&lt;br /&gt;
** bspwm&lt;br /&gt;
** herbstluftwm&lt;br /&gt;
** [[twm]]&lt;br /&gt;
** [[dwm]]&lt;br /&gt;
** [[I3wm|i3]]&lt;br /&gt;
** [[AwesomeWM|Awesome Window Manager]]&lt;br /&gt;
** Ratpoison (Available in Edge branch under the testing repository)&lt;br /&gt;
** spectrwm (Available in Edge Branch under the testing repository)&lt;br /&gt;
** Qtile (Available in Edge Branch under the testing repository)&lt;br /&gt;
&lt;br /&gt;
* Wayland:&lt;br /&gt;
** [[Sway]]&lt;br /&gt;
** [[River]]&lt;br /&gt;
** Cagebreak&lt;br /&gt;
** dwl (Available in Edge Branch under the testing repository)&lt;br /&gt;
** Qtile (Available in Edge Branch under the testing repository)&lt;br /&gt;
&lt;br /&gt;
=== Other Window Managers ===&lt;br /&gt;
&lt;br /&gt;
* Wayland&lt;br /&gt;
** Cage - Wayland Compositor for running single app on fullscreen mode (kiosk)&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Installation]]&lt;br /&gt;
* [[Installation#Post-Installation|Post Installation]]&lt;br /&gt;
* [[Fonts]]&lt;br /&gt;
* [[Category:Display Managers]]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Desktop_environment Desktop environment - Archwiki]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Desktop_environment Desktop environment - Gentoo Wiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Newbie]]&lt;/div&gt;</summary>
		<author><name>Carbon-starlight</name></author>
	</entry>
</feed>