惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

Chinmay D. Pai

Hunting Down Mysterious NixOS Configuration with Nix REPL I Think It's Time to Give Nix a Chance Digital Dams That Don't Hold: Why Internet Censorship Fails as Technical Policy Setting up Void Linux with Full-Disk Encryption Introduction to TensorFlow Variables
Installing Termite on Void Linux
Chinmay D. Pai · 2018-08-03 · via Chinmay D. Pai

Termite is a VTE-based terminal emulator for GNU/Linux, which is available as a package on most Linux distribution repositories, but not on Void Linux. This is because termite uses a custom VTE build which isn’t (and won’t be) included in the void packages repository. Void Linux GitHub - On why termite won’t be included in void-packages

In this post, I’ll show you how to build and install termite on Void Linux.

note

Even though termite is a pretty solid choice for a terminal emulator, I suggest checking out Alacritty, which is a GPU-accelerated terminal emulator and is available in the Void Linux repository.

Build Dependencies

We need to install some dependencies to set up the custom VTE build and compile termite. Luckily enough, all the required dependencies are available in the Void Linux repository.

$ sudo xbps-install -Sy git gcc make automake autoconf gtk-doc glib-devel \

vala-devel gobject-introspection pkg-config intltool \

gettext-devel gnutls gnutls-devel gtk+3 gtk+3-devel \

pango pango-devel gperf pcre2-devel

Building VTE-ng

Make sure all of the dependencies have been installed before proceeding. We’ll now be compiling a custom VTE build, VTE-ng. If you do not have a build directory yet, making one would help with better organization.

$ mkdir build && cd build

We then need to clone the VTE-ng git repository and checkout the latest versioned branch.

$ git clone https://github.com/jelly/vte-ng.git

$ cd vte-ng

$ git checkout 0.50.2-ng

It is now time to configure and build vte-ng. We need to add --prefix=/usr while configuring so that it installs the library to /usr and not /usr/local, which is not used by Void Linux. Unless you choose to add it to your $PATH, of course.

$ ./autogen.sh --prefix=/usr

$ make

$ sudo make install

That’s it for the custom VTE build.

Building Termite

To build and install termite, we need to go back to the build directory and clone the termite git repository. We’ll clone it recursively as termite requires some git submodules.

$ cd $BUILDDIR

$ git clone --recursive https://github.com/thestinger/termite.git

$ cd termite

We do not need to configure anything in here since everything is hardcoded in the Makefile. Although we still need to edit the Makefile to make termite install to /usr and not /usr/local. We can do this using sed, and then finally make and install termite.

$ sed 's/PREFIX = \/usr\/local/PREFIX = \/usr/' -i Makefile

$ make

$ sudo make install

That’s all. If everything goes well, you should end up with termite installed on your system.

Got any questions or comments? Drop me an email.