Skip to content

Instantly share code, notes, and snippets.

@pfeerick
Created June 2, 2018 10:44
Show Gist options
  • Save pfeerick/8bc82f279db036f5ca81a89eea10d0b0 to your computer and use it in GitHub Desktop.
Save pfeerick/8bc82f279db036f5ca81a89eea10d0b0 to your computer and use it in GitHub Desktop.
Install MATE Desktop Environment for Debian on the pine64
#!/bin/bash
set -e
DISTRO=""
if hash apt-get 2>/dev/null; then
DISTRO=debian
fi
if [ -z "$DISTRO" ]; then
echo "This script requires a Debian based Linux distribution."
exit 1
fi
if [ "$(id -u)" -ne "0" ]; then
echo "This script requires root."
exit 1
fi
# Packages to install
PACKAGES=(
xserver-xorg-video-fbturbo
xserver-xorg-video-armsoc-sunxi
libmali-sunxi-utgard0-r6p0
mesa-utils-extra
glmark2-es2
libvdpau-sunxi1
vdpauinfo
aisleriot
geany
gnomine
gnome-sudoku
mplayer
scratch
smplayer
smplayer-themes
smtube
chromium-browser
mate-desktop-environment-core
lightdm
)
# Install.
apt -y update
apt -y --no-install-recommends install ${PACKAGES[@]}
# Kill parport module loading, not available on arm64.
if [ -e "/etc/modules-load.d/cups-filters.conf" ]; then
echo "" >/etc/modules-load.d/cups-filters.conf
fi
# Disable Pulseaudio timer scheduling which does not work with sndhdmi driver.
if [ -e "/etc/pulse/default.pa" ]; then
sed -i 's/load-module module-udev-detect$/& tsched=0/g' /etc/pulse/default.pa
fi
systemctl set-default graphical.target
echo
echo "Done - Mate installed - you should reboot now."
@pfeerick
Copy link
Author

pfeerick commented Jun 8, 2018

jessie-minimal-pine64-0.7.19-118.img.xz appears no different, and enabling backports and testing repos doesn't doing anything useful either. It seems that xorg-video-abi-20 was a virtual package provided by a specific version of xserver-xorg-core, and the debian repos skipped that particular version. i.e xorg-video-abi was 18 in jessie, is 23 in stretch and is 18, 23 and 24 in sid. So debian skipped the magic xorg-video-abi-20 that is needed to resolve the package dependency issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment