2022-11-12 12:14:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Elevate script
|
|
|
|
if [ ! "$UID" -eq 0 ]
|
|
|
|
then
|
2023-01-23 14:55:10 +00:00
|
|
|
sudo bash "$BASH_SOURCE";
|
2022-11-13 00:11:32 +00:00
|
|
|
else
|
|
|
|
wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
|
2023-01-23 14:55:10 +00:00
|
|
|
| gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg;
|
2022-11-12 12:14:02 +00:00
|
|
|
|
2022-11-13 00:11:32 +00:00
|
|
|
echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" \
|
2023-01-23 14:55:10 +00:00
|
|
|
| sudo tee /etc/apt/sources.list.d/linux-surface.list;
|
2022-11-12 12:14:02 +00:00
|
|
|
|
2023-01-23 14:55:10 +00:00
|
|
|
apt update;
|
|
|
|
apt install -y linux-image-surface linux-headers-surface iptsd libwacom-surface;
|
|
|
|
systemctl enable iptsd;
|
2022-11-12 12:14:02 +00:00
|
|
|
|
2022-11-13 00:11:32 +00:00
|
|
|
# Install DTX
|
2023-01-23 15:11:51 +00:00
|
|
|
package="$(mktemp)";
|
|
|
|
wget https://github.com/linux-surface/surface-dtx-daemon/releases/download/v0.3.3-2/surface-dtx-daemon_0.3.3-2_amd64.deb -O "$package";
|
|
|
|
dpkg -i "$package";
|
|
|
|
rm -f "$package";
|
2022-11-13 00:11:32 +00:00
|
|
|
fi
|