Terminal desktop integration/Compile How-to

Da Hacklaviva

Ir para: navegação, pesquisa

Índice

Install needed packets

sudo apt-get install intltool gperf libglib2.0-dev libgtk2.0-dev python-gtk2-dev gnome-common gtk-doc-tools # libncurses5-dev libtool


Prepare Vte

cd
mkdir VTE
cd VTE

# Get the original src code
apt-src install libvte9
tar xzf vte_0.22.2.orig.tar.gz

#Extract the official ubuntu patches
patch < vte_0.22.2-0ubuntu2.diff

cd vte-0.22.2

# Apply the ubuntu patches
for patch in ../*.patch; do echo $patch; patch -p1 < $patch ; done

# Download and install our patch
wget http://idnael.net/projectoproximo/files/_vte-projectoproximo.patch
patch -p1 < _vte-projectoproximo.patch

# compile and install

sh autogen.sh 

./configure --enable-debug --prefix=$HOME/vteppinstall
make
make install

cd ..
cd ..


Prepare Terminator

mkdir TERMI
cd TERMI

apt-src install terminator
tar xzf terminator_0.13+ds1.orig.tar.gz 

patch < terminator_0.13+ds1-2.diff 

cd terminator-0.13
for patch in ../*.patch; do echo $patch; patch -p1 < $patch ; done

wget http://idnael.net/projectoproximo/files/_terminator-projectoproximo.patch
patch -p1 < _terminator-projectoproximo.patch

# You don't need to compile Terminator because it is python. 

cd ..
cd ..


Prepare coreutils

mkdir CORE
cd CORE

apt-src install coreutils
tar xzf coreutils_7.4.orig.tar.gz 

patch < coreutils_7.4-2ubuntu1.diff 

cd coreutils-7.4
for patch in ../*.patch; do echo $patch; patch -p1 < $patch ; done

wget http://idnael.net/projectoproximo/files/_coreutils-projectoproximo.patch
patch -p1 < _coreutils-projectoproximo.patch

./configure
make

cd ..
cd ..


Run the modified version of terminator

Define some environment variables:

export LD_LIBRARY_PATH=$HOME/vteppinstall/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$PYTHONPATH:$HOME/vteppinstall/python2.6/site-packages/gtk-2.0
# this is a special var needed when running from not standard location...
export PP_TERMCAP_FILE=$HOME/vteppinstall/share/vte/termcap/xterm

Run it:

$HOME/TERMI/terminator-0.13/terminator

Inside the shell:

alias ls="$HOME/CORE/coreutils-7.4/src/ls --color=auto --fields=auto"
Ferramentas pessoais
Espaços nominais
Variantes
Acções
Hacklaviva
Hackmeeting
Transparência Hackday
Ferramentas