Skip to content

Commit 399be90

Browse files
committed
Split Arch install steps into include, add EndeavourOS install instructions
This reduces the amount of duplicated text in the repository, and allows us to easier support variants of Arch Linux
1 parent 28ccf6a commit 399be90

4 files changed

Lines changed: 41 additions & 19 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% assign ramdiskUpdateCommand = include.ramdisk_update_command | default: "mkinitcpio -P" %}
2+
{% assign elevateCommand = include.elevate_command | default: "sudo" %}
3+
{% assign includeMakepkgSteps = include.makepkg | default: false %}
4+
5+
```sh
6+
{% if includeMakepkgSteps -%}
7+
{% include wiki/arch-makepkg-steps.txt %}
8+
{%- endif -%}
9+
{% include wiki/arch-regen-commands.txt -%}
10+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Downloads the pkgbuild from the AUR.
2+
git clone https://aur.archlinux.org/opentabletdriver.git
3+
# Changes into the correct directory, pulls needed dependencies, then installs OpenTabletDriver
4+
cd opentabletdriver && makepkg -si
5+
# Clean up leftovers
6+
cd ..
7+
rm -rf opentabletdriver
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Regenerate initramfs
2+
{{ elevateCommand }} {{ ramdiskUpdateCommand }}
3+
# Unload kernel modules
4+
{{ elevateCommand }} rmmod wacom hid_uclogic

site/_wiki/Install/Linux.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ If you're experiencing `libhostfxr` issues, please see the solutions from Micros
6868

6969
4. Refer to [this section]({% link _wiki/FAQ/Linux.md %}#autostart) for instructions on how to auto-start OpenTabletDriver on boot.
7070

71+
## EndeavoursOS {#endeavouros}
72+
73+
While EndeavourOS is based on Arch Linux, it uses a different initramfs
74+
generator compared to standard Arch Linux, which means the post-install setup is different.
75+
76+
1. Install the `opentabletdriver` AUR package with either the GUI package utility, Pamac,
77+
or the command-line utility, `yay`
78+
79+
```sh
80+
yay -S opentabletdriver
81+
```
82+
83+
2. Then, run the following commands in a terminal
84+
85+
{% include wiki/arch-install-steps.md ramdisk_update_command="dracut-rebuild" %}
86+
87+
Then refer to [this section]({% link _wiki/FAQ/Linux.md %}#autostart) for instructions on how to auto-start OpenTabletDriver on boot.
88+
7189
## Arch Linux {#arch}
7290

7391
You can install OpenTabletDriver from the AUR. There are two ways to do this.
@@ -86,30 +104,13 @@ Then refer to [this section]({% link _wiki/FAQ/Linux.md %}#autostart) for instru
86104
1. Use an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers) to install the `opentabletdriver` AUR package.
87105
2. Run the following commands in a terminal
88106
89-
```sh
90-
# Regenerate initramfs
91-
sudo mkinitcpio -P
92-
# Unload kernel modules
93-
sudo rmmod wacom hid_uclogic
94-
```
107+
{% include wiki/arch-install-steps.md %}
95108
96109
### `makepkg` method {#manual-makepkg-method}
97110
98111
1. Run the following commands in a terminal
99112
100-
```sh
101-
# Downloads the pkgbuild from the AUR.
102-
git clone https://aur.archlinux.org/opentabletdriver.git
103-
# Changes into the correct directory, pulls needed dependencies, then installs OpenTabletDriver
104-
cd opentabletdriver && makepkg -si
105-
# Clean up leftovers
106-
cd ..
107-
rm -rf opentabletdriver
108-
# Regenerate initramfs
109-
sudo mkinitcpio -P
110-
# Unload kernel modules
111-
sudo rmmod wacom hid_uclogic
112-
```
113+
{% include wiki/arch-install-steps.md makepkg=true %}
113114
114115
## Gentoo {#gentoo}
115116

0 commit comments

Comments
 (0)