Page 1 of 712345...Last »

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

File Locking

File locks control access to a file or a range of bytes within a file.  This is necessary in situations where multiple simultaneously executing programs need to modify the same file.

File locking functionalities are provided within the NIO API, or more specifically in the java.nio.channels package.

The two most important classes for file locking are java.nio.channels.FileChannel and . . . → Read More: File Locking

WPA/WPA2 security status

Here’s an interesting article, writte by Eric Geier, about current (May 2010) WPA/WPA2 security status: http://esecurityplanet.com/features/article.php/3884331/Busting-or-Trusting-Wi-Fi-Security-Myths.htm

I recommend it to everyone involved in using or planning to use WiFi . . . → Read More: WPA/WPA2 security status

My experience with Arch Linux x86_64

My laptop currently runs the 64-bit version of Arch Linux.

The last time (some years ago, I must admit) I tried to run a 64-bit Linux distribution, I was disappointed by the issues that existed with some Firefox plugins, Skype and some other 32-bit applications.

Some weeks ago, as I had to reinstall my laptop and thought it’s . . . → Read More: My experience with Arch Linux x86_64

My Arch Linux configuration files

As most of you probably don’t know, my prefered Linux distro is Arch Linux.  I use it on almost every computer I have:

On my desktop computer (Intel Core 2 Duo with embedded Intel Graphics Card)
On my laptop (Acer 5920G)
On my server (AMD Athlon X2) – a virtualized instance of Arch Linux
On my girlfriend’s laptop (Asus M51SE) . . . → Read More: My Arch Linux configuration files

Reply to Kent Tong’s post about scala’s getters and setters: http://agileskills2.org/blog/2010/01/applying_scala_to_solving_real_1.html

This post is a reply to Kent Tong’s post about scala’s getters and setters: http://agileskills2.org/blog/2010/01/applying_scala_to_solving_real_1.html:
You may also use the @BeanProperty annotation to generate Java-compatible getters and setters instead of weird methods with space and equal . . . → Read More: Reply to Kent Tong’s post about scala’s getters and setters: http://agileskills2.org/blog/2010/01/applying_scala_to_solving_real_1.html

VirtualBox setuid/packaging error

If you encounter the following error running VirtualBox as a user under openSUSE: Error -10 in SUPR3HardenedMain, then execute chkstat -set /etc/permissions.easy to set correct file permissions on the VirtualBox . . . → Read More: VirtualBox setuid/packaging error

Arch Linux: faster pacman

Instead of using pacman,I use pacman-color.
Instead of using pacman-color, I use powerpill.
Instead of using powerpill, I use yaourt.
Well, that’s the chain of wrappers around pacman I use:
yaourt->powerpill->pacman-color->pacman

This provides colorized output and parallel (thus faster) package downloads.

Simply change in /etc/yaourtrc:
PacmanBin = /usr/bin/powerpill
and in /etc/powerpill.conf:
PacmanBin = . . . → Read More: Arch Linux: faster pacman

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

Page 1 of 712345...Last »