Skip to content

Instantly share code, notes, and snippets.

@martin-eden
Last active February 26, 2024 18:00
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 martin-eden/e721436788994e5b183e94fb2f84b30b to your computer and use it in GitHub Desktop.
Save martin-eden/e721436788994e5b183e94fb2f84b30b to your computer and use it in GitHub Desktop.
TekUI installation (and removal)

TekUI installation

This text is about how to download, compile and install TekUI window manager.

Requirements: Linux system, Lua 5.4.

I'm using following script to download and install TekUI.

#!/bin/bash

## Installs "tekUI" widgets kit v1.12.
##
##   tekUI home page: http://tekui.neoscientists.org/
##
## Requirements
##
##   Linux
##   Lua v5.4
##
## Usage
##
##   Just run.
##
##   99% there will be compilation error.
##     Look for specific message.
##     Then uncomment following line.
##
## Test
##
##   lua -l tek.ui
##
## Last checked
##
##   2024-02-26 (LinuxMint 21, Lua 5.4)
##

url="http://tekui.neoscientists.org/releases/tekui-1.12-r1.tgz"

cd /tmp
curl -R -O $url
tar zxf $(basename $url)
cd $(basename $url .tgz)
sudo make LUAVER=5.4 all install clean

## fatal error: stdio.h: No such file or directory
# sudo apt install build-essential

## fatal error: X11/X.h: No such file or directory
# sudo apt install libx11-dev

## fatal error: X11/Xft/Xft.h: No such file or directory
# sudo apt install libxft-dev

## fatal error: ft2build.h: No such file or directory
# sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype
# sudo ln -s /usr/include/freetype2/ft2build.h /usr/include/ft2build.h

## fatal error: X11/extensions/XShm.h: No such file or directory
# sudo apt install libxext-dev

## /usr/bin/ld: cannot find -lXxf86vm
# sudo apt install libxxf86vm-dev

Possible compilation problems

Most likely sudo make will fail with one of errors. Look for specific error in commented tail of script, uncomment next block, rerun.

Test of successful installation

lua -l tek.ui

TekUI removal

sudo rm -rf /usr/local/lib/lua/5.4/tek
sudo rm -rf /usr/local/share/lua/5.4/tek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment