Color in bash

This is the line defining my bash prompt in .bashrc, using some colors:

PS1=’\[\e[0;32m\][\u@\H\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;32m\]]\[\e[1;32m\]\$\[\e[m\] \[\e[0m’

This is what my prompt looks like:

If I’m not wrong, the characters in bold give the content of the prompt, the other ones are color-codes.

I currently haven’t found out how to use this prompt by default for all users, even existing . . . → Read More: Color in bash

Installing Archlinux with software raid1, encrypted filesystem and LVM2

On the web, you’ll find how to setup ArchLinux with LVM, or with RAID, or with encryption, but not with the combination of these three technologies.  This article explains the different steps I took to setup these three technologies with ArchLinux.

Required skills:

Sound understanding of Linux (ArchLinux specifics may be useful…) and raid, lvm2, partitioning, encryption.

The story

During . . . → Read More: Installing Archlinux with software raid1, encrypted filesystem and LVM2

Show icons in Fedora 12 / Gnome 2.28 menus

gconftool-2 –type boolean –set /desktop/gnome/interface/buttons_have_icons true
gconftool-2 –type boolean –set /desktop/gnome/interface/menus_have_icons . . . → Read More: Show icons in Fedora 12 / Gnome 2.28 menus

Endian Firewall Community 2.3

This week-end, I managed to reconfigure my complete home network to use a virtualized instance of Endian Firewall 2.3 Community.  And it rocks.

You simply download the ISO file, install it in a new VM, connect to its web interface, and that’s all.  Or almost.  I think even people without much knowledge of TCP/IP would be able . . . → Read More: Endian Firewall Community 2.3

Eclipse 3.5.1 strange button behaviour on Linux

To solve Eclipse 3.5.1′s strange button behaviour in wizard on Linux, execute:

export GDK_NATIVE_WINDOWS=true

before launching eclipse or add it to . . . → Read More: Eclipse 3.5.1 strange button behaviour on Linux

HP OfficeJet 5610 Error 5012 or Error 12 on Linux

This is due to the fact that the user does not have access to the device.

Add the user to the group lp.
sudo chmod 664 /dev/bus/usb/001/004
sudo chown root:lp /dev/bus/usb/001/004

Bus/Device 001/004 identifies my printer on my system, to see how it is identified on yours, execute lsusb.

Log out and in again and that should . . . → Read More: HP OfficeJet 5610 Error 5012 or Error 12 on Linux

Install MSOffice 2007 on Linux with Wine

Simply follow the steps given at the following . . . → Read More: Install MSOffice 2007 on Linux with Wine

Tweak Linux TCP/IP parameters

The page behind the following URL explains how to tweak Linux TCP/IP parameters for faster connections : http://www.speedguide.net/read_articles.php?id=121

These settings may be useful in environments where network perrformance is . . . → Read More: Tweak Linux TCP/IP parameters