22 lines
705 B
Bash
22 lines
705 B
Bash
#!/bin/bash
|
|
# Elevate script
|
|
if [ ! "$UID" -eq 0 ]
|
|
then
|
|
exec sudo bash "$0"
|
|
fi
|
|
|
|
wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
|
|
| gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg
|
|
|
|
echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" \
|
|
| sudo tee /etc/apt/sources.list.d/linux-surface.list
|
|
|
|
apt update
|
|
apt install linux-image-surface linux-headers-surface iptsd libwacom-surface
|
|
systemctl enable iptsd
|
|
|
|
# Install DTX
|
|
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
|