You are not logged in.

#1 2017-12-14 14:53:15

cog
Member
From: The Southwest
Registered: 2015-10-27
Posts: 655
Website

Installing termite terminal locally in $HOME using gnu stow

Hey all,

While I'm not on BL these days, I have been using termite on Ubuntu MATE through a process of compiling it without root privileges locally and using gnu stow to manage it in my home directory.  This seemed like something that would be mutually beneficial for the BL community as it's Debian based and should be the same process.  I know there are some of you who like the termite terminal as well.

Installing the dependencies do require root, but that's it.  Everything else doesn't require root privileges.  Here's my little script.  Don't chmod + x and run it as it's a little rough around the edges.  Instead copy and paste each line.  Also you'll have to add the first line to your .profile  If any of you shell script guru's can modify it to just execute and without having to copy and paste each line feel free to update it and submit a patch at my github.

#!/bin/bash

export PATH=$HOME/.local/bin:$PATH

sudo apt install g++ libgtk-3-dev gtk-doc-tools gnutls-bin valac intltool libpcre2-dev libglib3.0-cil-dev libgnutls28-dev libgirepository1.0-dev libxml2-utils gperf git stow

mkdir -p $HOME/github.com/thestinger && cd $HOME/github.com/thestinger

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

cd vte-ng && ./autogen.sh && ./configure --prefix=$HOME/.local/stow/vte-ng && make && make install

cd ~/.local/stow && stow vte-ng

cd $HOME/github.com/thestinger/termite 

vi Makefile

## Edit termite Makefile as follows
## install -Dm644 config ${DESTDIR}${PREFIX}/etc/xdg/termite/config

PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig CXXFLAGS="-I$HOME/.local/include/vte-2.91" make && make PREFIX=$HOME/.local/stow/termite install

cd ~/.local/stow && stow termite

## Add terminfo to $HOME
mkdir $HOME/.terminfo
cp -r $HOME/.local/share/terminfo/x $HOME/.terminfo

## Running termite
LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH" termite

## Fix Ctrl-Shift-t
echo "source $HOME/.local/etc/profile.d/vte.sh" >> $HOME/.bashrc

Last edited by cog (2017-12-14 14:55:21)

Offline

#2 2017-12-15 08:20:42

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Installing termite terminal locally in $HOME using gnu stow

Nice, i will definitely have to give this a try.

Offline

#3 2017-12-15 23:59:14

cog
Member
From: The Southwest
Registered: 2015-10-27
Posts: 655
Website

Re: Installing termite terminal locally in $HOME using gnu stow

Cool.  Let me know.

Offline

#4 2017-12-16 15:50:02

cog
Member
From: The Southwest
Registered: 2015-10-27
Posts: 655
Website

Re: Installing termite terminal locally in $HOME using gnu stow

I’ve actually got another stow, (that’s what I call them) for polybar.  If anyone is interested.

I’m considering making a little package manager like home brew for Linux around stow that will build stuff without privileges in home like this.

Offline

#5 2017-12-16 16:06:21

cog
Member
From: The Southwest
Registered: 2015-10-27
Posts: 655
Website

Re: Installing termite terminal locally in $HOME using gnu stow

I think it would be a good solution for Debian based systems to be able to have some of these Git based projects without cross contamination.

Offline

Board footer

Powered by FluxBB