diochnos/tips/customizing

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.

Linux

Information specific to linux will show up here.

Terminal Related

Below are my standard customizations for using the terminal.

.bash_aliases

This is the file that I am using.

.bashrc

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:

.bash_profile

This is the file that I am using.

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

X Windows

Below are some standard customizations using X Windows.

.xinitrc

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

.Xresources

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]

fail2ban

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]

LaTeX

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]

lpr

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

[lpr] [Table of Contents] [Top]

MAC OS

Information specific to MAC OS will show up here.

igraph

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]