Last active
April 23, 2020 03:37
-
-
Save gwerbin/82044b57e0ddb118710b00414697a970 to your computer and use it in GitHub Desktop.
Build KMSCon on Linux Mint 19.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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