Skip to content

Instantly share code, notes, and snippets.

@gwerbin
Last active April 23, 2020 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwerbin/82044b57e0ddb118710b00414697a970 to your computer and use it in GitHub Desktop.
Save gwerbin/82044b57e0ddb118710b00414697a970 to your computer and use it in GitHub Desktop.
Build KMSCon on Linux Mint 19.3
#!/bin/sh
uname -a | grep --quiet 'Debian\|Ubuntu' || {
echo 'Refusing to run on a potentially incompatible system.'
return 1
}
# Build dependencies
sudo apt install \
autoconf \
automake \
libtool
# Program dependencies
sudo apt install \
libc6 \
libtsm-dev \
libudev-dev \
libxkbcommon-dev \
libdrm-dev \
linux-kernel-headers \
libpango1.0-dev \
libdrm-dev \
libgbm-dev \
libegl1-mesa-dev \
libgles2-mesa-dev \
unifont
test -f ./configure || NOCONFIGURE=1 ./autogen.sh
./configure
make -j4
sudo make install
sed -i.original s,/usr/bin/kmscon,/usr/local/bin/kmscon, docs/kmsconvt@.service
sudo cp docs/kmsconvt@.service /etc/systemd/system/
sudo systemctl disable getty@tty6.service
sudo systemctl enable kmsconvt@tty6.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment