Table of Contents

General Information

General information about what sort of customizations can be found in this webpage.

Regarding linux, the distribution that I have in mind is debian.


Information specific to linux will show up here.

Terminal Related

Below are my standard customizations for using the terminal.


This is the file that I am using.


I introduce the following two lines in the top of .bashrc:

Moreover, in order to have a timestamp presented in the bash history I add the following line:


This is the file that I am using.

[Terminal Related] [Table of Contents] [Top]

X Windows

Below are some standard customizations using X Windows.


This is the file that I am using (debian squeeze + WindowMaker).


This is the file that I am using (debian squeeze + WindowMaker).

[X Windows] [Table of Contents] [Top]

Apache - PHP

In order to make apache work and enable PHP the following should be done:

Port Forwarding

In order to make Apache responsive to the outside world we have to forward the following ports and protocols:

[Apache - PHP] [Table of Contents] [Top]


Copy /etc/fail2ban/jail.conf to /etc/fail2ban/jail.local and edit that file. I tend to give bantime at least 1800 instead of the 600 default seconds. Maximum number of retries also changes to 3 from 6.

[fail2ban] [Table of Contents] [Top]

apt-get update/upgrade

Updating/upgrading the system using apt-get, times out for some servers when using IPv6. Instead one can use commands like the following one and force the use of IPv4.

apt-get -o Acquire::ForceIPv4=true update/upgrade

[apt-get update/upgrade] [Table of Contents] [Top]


For double-sided (portrait) printing lpr needs the option: -o sides=two-sided-long-edge

[lpr] [Table of Contents] [Top]


Information specific to texlive.

Path for Packages

Up until debian squeeze (6.0) the directory for the packages of texlive used to be /usr/share/texmf-texlive/tex/latex. However, after migrating to wheezy (7.0) it appears that this path has moved to /usr/share/texlive/texmf-dist/tex/latex.

[LaTeX] [Table of Contents] [Top]

Convert Images to Encapsulated Postscript Files

Oftentimes I want to introduce a screenshot to my slides (say, using beamer). The conversion can be done with the command:

convert image.png image.eps

However, a more useful version of the above command is probably the one that creates the minimum size for the eps file:

convert image.png eps3:image.eps

[LaTeX] [Table of Contents] [Top]


Information specific to MAC OS will show up here.


After upgrading to Mavericks (10.9.x) I installed MacPorts under a custom directory: /opt/macports/latest. For the configuration of the latest igraph version 0.7.0 (as of this writing; link) I used the following command:

./configure LIBS=-L/opt/macports/latest/lib CFLAGS=-I/opt/macports/latest/include --prefix=/opt/igraph/0.7.0-pre

[Table of Contents] [Top]