Skip to content

workstation

git-bash-prompt

Warning

Whenever you get sluggish behavior, git-bash-prompt could very well be the problem when your repositories become to big!

bash git prompt

Installation as it is advised on the website :

install bash-git-prompt
cd ~
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt

And edit .bashrc to source the file gitprompt.sh, so add :

source ~/.bash-git-prompt/gitprompt.sh

updatedb

Since /etc/updatedb.conf contains an exception for /media :

except paths from updatedb
PRUNEPATHS="/tmp /var/spool /media"

coding

development installs
apt-get install g++ gdb git subversion scons ant valgrind default-jdk

Use openjdk because it installs easier, and just add oracle when you encounter any problems. I have had very few.

zfs

zfs installation steps
apt-get install lsb-release
wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_6_all.deb
dpkg -i zfsonlinux_6_all.deb
apt-get update
apt-get install debian-zfs
modprobe zfs
zpool  import bigsafe

apache2 ssl

First set the servername in apache2.conf to get rid of the servername warning :

apache2.conf
ServerName power

Copy the certificate to /etc/ssl/certs and the key to /etc/ssl/private,

chmod 600 /etc/ssl/private/www_sslcertificaten_nl.key

edit /etc/apache2/sites-available/default-ssl and point the certificate setting to these files :

default-ssl.conf
SSLCertificateFile     /etc/ssl/certs/www_sslcertificaten_nl.pem
SSLCertificateKeyFile /etc/ssl/private/www_sslcertificaten_nl.key

SSLCACertificatePath /etc/ssl/certs/
SSLCACertificateFile /etc/ssl/certs/ca-bundle.crt

That last one has to be generated from the certificate plus all root and intermediate files : see

Actual command used :

bundle concatenation
cat www_sslcertificaten_nl.pem COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ca-bundle.crt

enable modules and restart apache

klopt.web

Add this near the end of the Virtualhost section in default-ssl.conf :

klopt web site configuration
# added for /klopt.web

DocumentRoot /var/www/html/klopt.web
WSGIScriptReloading On

Alias /klopt.web /var/www/html/klopt.web

<Directory /var/www/html/klopt.web>
     Order deny,allow
     Allow from all
</Directory>

# added for /ws webserice
WSGIScriptAlias /ws /var/www/html/klopt.web/ws.wsgi

shellinabox

Add this line to “set some default values” in

/etc/init.d/shellinabox
SHELLINABOX_ARGS="--localhost-only"
a2enmod proxy
a2enmod prox_http

Add this to default-ssl.conf, just after the virtualhost section and before ifmodule ends

default-ssl.conf
<Location /shell>
    ProxyPass http://localhost:4200/
</Location>

virtualbox

Still as always you need to use the install script and probably install the kernel headers. But after that you get the annoying side-bar always shifting into view.

This oneliner should eliminate that :

VBoxManage setextradata global GUI/SuppressMessages confirmGoingFullscreen,remindAboutMouseIntegration,remindAboutAutoCapture

This at least seems to stop the messages in the virtual machine itself. The messages on the virtualbox GUI itself seem to remain.