Friday, September 18, 2009

Using Wine on Ubuntu

SkyHi @ Friday, September 18, 2009
What is Wine?
Wine is a program that offers a compatibility layer allowing Linux users to run some Windows-native applications inside of Linux. Wine is not the ideal. Ideally, you should find native Linux applications. You can use Ubuntu's software package manager to search for easily installable native Linux apps, or you can explore OSalt or Linux App Finder to find alternatives for specific Windows programs.

Not all Windows applications run in Wine. And some that do require extra configuration in order to work. You may want to consult the Wine HQ app database to see if the Windows application you're thinking of installing through Wine will work well with Wine or not. Platinum-rated applications will work with no extra configuration. The example on this page is a platinum-rated application.

Installing Wine
The installation of Wine is the same as for most software. These screenshots give you a basic overview of the steps. If you're unfamiliar with how software package management works in Ubuntu, you can find more details about it here.

Using Wine

Right-click the setup.exe for the Windows program you want to install. In this case, I went to the Sumatra PDF website and downloaded the installer file called SumatraPDF-0.9.3-install.exe and right-clicked it.

In the context menu that appears, select Open with "Wine Windows Program Loader"

Do the usual next-next-next you'd normally do with a Windows program installer.

To launch the installed Windows program, go to Applications > Wine > Programs and then find the menu item for the Windows program you just installed.

The program should launch and be ready for use!

Please note
I purposely used Sumatra PDF as an example, because it is a platinum-rated Windows application, and this is just an orientation to the basics of how to use Wine. If you are planning to install a Windows program that is gold-rated, silver-rated, or bronze-rated, be prepared to do some extra configuration, and try to look for a Wine tutorial specific to that application. Or, better yet, find a native Linux alternative instead of using a Windows program

pdf viewer with text highlighting.html

SkyHi @ Friday, September 18, 2009
Unfortunately xpdf, evince, acroread etc. cannot highlight text or add comments to PDFs. PDFedit cannot select text properly for many PDFs.

However, there is a nice and free alternative, but you need wine to run it: PDF-Xchange-Viewer []. There's also a thread on this on the SuSE forum.

Update: Apparently with newer wine versions you don't need the script below anymore, since opening files out of the PDF-Xchange-Viewer works directly. Also see the comments below on this.

After installing the viewer, the following script handles file opening:

Secure Bind Template

SkyHi @ Friday, September 18, 2009
The ordering of our views is very important. The named daemon accepts the first match. Because our external view permits all clients, our internal clients also match this view. For this reason we place our internal view first (permitting only our approved internal hosts) and our external view second (permitting all comers).

// @(#)named.conf 02 OCT 2001 Rob Thomas
// Set up our ACLs
// In BIND 8, ACL names with quotes were treated as different from
// the same name without quotes. In BIND 9, both are treated as
// the same.
acl "xfer" {
none; // Allow no transfers. If we have other
// name servers, place them here.


acl "trusted" {

// Place our internal and DMZ subnets in here so that
// intranet and DMZ clients may send DNS queries. This
// also prevents outside hosts from using our name server
// as a resolver for other domains.;


logging {

channel default_syslog {
// Send most of the named messages to syslog.
syslog local2;
severity debug;

channel audit_log {
// Send the security related messages to a separate file.
file "/var/named/bind/named.log";
severity debug;
print-time yes;

category default { default_syslog; };
category general { default_syslog; };
category security { audit_log; default_syslog; };
category config { default_syslog; };
category resolver { audit_log; };
category xfer-in { audit_log; };
category xfer-out { audit_log; };
category notify { audit_log; };
category client { audit_log; };
category network { audit_log; };
category update { audit_log; };
category queries { audit_log; };
category lame-servers { audit_log; };


// Set options for security
options {
directory "/var/named";
pid-file "/var/named/";
statistics-file "/var/named/named.stats";
memstatistics-file "/var/named/named.memstats";
dump-file "/var/adm/named.dump";
zone-statistics yes;

// Prevent DoS attacks by generating bogus zone transfer
// requests. This will result in slower updates to the
// slave servers (e.g. they will await the poll interval
// before checking for updates).
notify no;

// Generate more efficient zone transfers. This will place
// multiple DNS records in a DNS message, instead of one per
// DNS message.
transfer-format many-answers;

// Set the maximum zone transfer time to something more
// reasonable. In this case, we state that any zone transfer
// that takes longer than 60 minutes is unlikely to ever
// complete. WARNING: If you have very large zone files,
// adjust this to fit your requirements.
max-transfer-time-in 60;

// We have no dynamic interfaces, so BIND shouldn't need to
// poll for interface state {UP|DOWN}.
interface-interval 0;

allow-transfer {
// Zone tranfers limited to members of the
// "xfer" ACL.

allow-query {
// Accept queries from our "trusted" ACL. We will
// allow anyone to query our master zones below.
// This prevents us from becoming a free DNS server
// to the masses.

allow-query-cache {
// Accept queries of our cache from our "trusted" ACL.

view "internal-in" in {
// Our internal (trusted) view. We permit the internal networks
// to freely access this view. We perform recursion for our
// internal hosts, and retrieve data from the cache for them.

match-clients { trusted; };
recursion yes;
additional-from-auth yes;
additional-from-cache yes;

zone "." in {
// Link in the root server hint file.
type hint;
file "db.cache";

zone "" in {
// Allow queries for the 127/8 network, but not zone transfers.
// Every name server, both slave and master, will be a master
// for this zone.
type master;
file "master/db.127.0.0";

allow-query {

allow-transfer {

zone "" in {
// Our internal A RR zone. There may be several of these.
type master;
file "master/db.internal";

zone "" in {
// Our internal PTR RR zone. Again, there may be several of these.
type master;
file "master/db.7.7.7";


// Create a view for external DNS clients.
view "external-in" in {
// Our external (untrusted) view. We permit any client to access
// portions of this view. We do not perform recursion or cache
// access for hosts using this view.

match-clients { any; };
recursion no;
additional-from-auth no;
additional-from-cache no;

// Link in our zones
zone "." in {
type hint;
file "db.cache";

zone "" in {
type master;
file "master/db.ournetwork";

allow-query {

zone "" in {
type master;
file "master/db.8.8.8";

allow-query {


// Create a view for all clients perusing the CHAOS class.
// We allow internal hosts to query our version number.
// This is a good idea from a support point of view.

view "external-chaos" chaos {
match-clients { any; };
recursion no;

zone "." {
type hint;
file "/dev/null";

zone "bind" {
type master;
file "master/db.bind";

allow-query {
allow-transfer {



mySQL slow query log rotation

SkyHi @ Friday, September 18, 2009
One of the issues facing log rotation in mySQL is that mySQL doesn’t seem to have the ability to perform a “reload”.

Meaning standard methods of rotating logs using logrotate leave mySQL logging an error in the syslog saying that the log file could not be found, and refusing to to any logging until the server is restarted, not fun if like me you manage high availability solutions and restarting a service is never the best option.

As such I have written this log rotate script, this does however make some assumptions.

1. Your mysql user is “mysql”
2. Your mysql slow query log is /var/log/mysql-slow.log

The script is written to perform the following actions:

1. Rotate weekly
2. Retain 3 rotations (3 files + live log)
3. Compress on rotate (gzip)
4. Create new logfile with 660 permissions chowned to mysql:mysql
5. Run: mysqladmin flush-logs

Please be aware that the flush logs command will also rotate any binary logging currently in place, please ensure this will not adversely affect your deployment prior to use

Please ensure you carry out your own testing prior to deploying this script into a live environment.

# mySQL slow log rotation script by D.Busby
# place this script in /etc/logrotate.d/ or your appropriate logrotate dir.
# NOTE: if you are reliant on binlogs i.e. for replication, 'flush logs' closes the current binlog and moves to the next itteration of log files
# You should test this does not cause an issue with your deployment before using this script
/var/log/mysql-slow.log {
rotate 3
create 660 mysql mysql
/usr/bin/mysqladmin flush-logs
Tags: log rotation, mySQL, slow query


To enable slow query logging of mysql

SkyHi @ Friday, September 18, 2009
MySQL has built-in functionality that allows you to log SQL queries to a file , You can enable the full SQL queries logs to a file or only slow running queries log. It is easy for us to troubleshoot/ debug the sql statement if SQL queries log enable , The slow query log is used to find queries that take a long time to execute and are therefore candidates for optimization.

To enable you just need to add some lines to your my.cnf file, and restart. Add the following:

To enable slow Query Log only
log-slow-queries = /var/log/mysql/mysql-slow.log
touch /var/log/mysql/mysql-slow.log
chown mysql:mysql /var/log/mysql/mysql-slow.log
long_query_time = 1

service mysqld restart

After enabling slow query, mysqld writes a statement to the slow query log file and it consists of all SQL statements that took more than long_query_time seconds to execute. The time to acquire the initial table locks is not counted as execution time. mysqld only log after SQL statements has been executed and after all locks have been released, so log order might be different from execution order. The minimum and default values of long_query_time are 1 and 10, respectively.

To enable full Log Query

  touch /var/log/mysqlquery.log 
 chown mysql:mysql  /var/log/mysqlquery.log 
 chmod 640 /var/log/mysqlquery.log 
 service mysqld restart

The above will log all queries to the log file.


SkyHi @ Friday, September 18, 2009
Apache 1

###rewrite www.... OR not www to new URL

RewriteEngine On
RewriteCond %{HTTP_HOST} www\.dramxcole\.com [NC]
RewriteRule . [NC]

RewriteCond %{HTTP_HOST} dramxcole\.com [NC]
RewriteRule . [NC]

RewriteCond %{HTTP_HOST} www\.residcatee\.ca [NC]
RewriteRule . [NC]

RewriteCond %{HTTP_HOST} residcatee\.ca [NC]
RewriteRule . [NC]

###rewrite different Domains to one specific URL

RewriteEngine on
RewriteCond %{HTTP_HOST} okokmedi\.ca [NC]
RewriteRule ^(.*)$$1 [L,R=301]
RewriteCond %{HTTP_HOST} stratabc\.ca [NC]
RewriteRule ^(.*)$$1 [L,R=301]
RewriteCond %{HTTP_HOST} okmedirecord\.ca [NC]
RewriteRule ^(.*)$$1 [L,R=301]
RewriteCond %{HTTP_HOST} okmediinfo\.ca [NC]
RewriteRule ^(.*)$$1 [L,R=301]

RewriteEngine on
RedirectPermanent / ""

Thursday, September 17, 2009

Vsphere vim.fault.invalidlogin

SkyHi @ Thursday, September 17, 2009
disable ESX host and add it back.

Tuesday, September 15, 2009

ModSecurity and PHPMyAdmin

SkyHi @ Tuesday, September 15, 2009
Too many ModSecurity rules trip up PHPMyAdmin so I decided to find another way to protect it. I personally use the .htaccess password protection and then disable ModSecurity totally for this directory. It is also advisable to use a totally unique directory name so that it can’t be guessed.

Again this goes in modsecurity_crs_15_customrules.conf

<LocationMatch “^/mydbadmin234/”>
SecRuleEngine Off

I have just seen a post on the ModSecurity Mailing List where Yersinia Spiros has made a comment regarding this rule. He disagrees with switching off ModSecurity. I will try to clarify that I only recommend this for use in a single user environment. I use it on my personal install that accesses a developement database. The directory name is cryptic. The directory is not linked to from any site at all. There is a .htaccess password required to enter this directory and after that you still need to login to the server. This I feel is strong enough for a single user install of phpMyAdmin.

However if you are looking for a ruleset for ModSecurity on a shared environment such as a plesk install, Then Yersinia is absolutely correct and you shouldn’t use this method.

Here is a limited ruleset that will allow you to use the manual SQL tab. I will run some other tests later to find if anything else in phpMyAdmin is broken by ModSecurity.

<LocationMatch “/phpMyAdmin/sql.php”>
SecRuleRemoveById 959004
SecRuleRemoveById 959005
SecRuleRemoveById 959906

The downside to this rule is it switches off SQL Injection Attack protection, but I suppose as this particular part of phpMyAdmin is there just to execute SQL commands….
SecRuleEngine Off must work . Have you tried to put SecRuleEngine inside Directory:

<Directory /var/www/site/PHPMyAdmin>
SecRuleEngine Off

instead of LocationMatch ?


PHP error report display

SkyHi @ Tuesday, September 15, 2009

Monday, September 14, 2009

How to install a WordPress plugin

SkyHi @ Monday, September 14, 2009
This guide is another in the Inside WordPress series and will show you how to install a WordPress plugin. While this is a relatively simple task it is one of fundamental importance to WordPress and is often overlooked. As such it is a potential cause of problems to beginners, and not being able to successfully install plugins will prevent you from accessing the very large world of WordPress plugins.
The Third Man

There are three ways of installing a WordPress plugin:

1. Automatically through WordPress – easiest, some server setup
2. Manually uploading a plugin through WordPress – medium, some server setup
3. Manually uploading a plugin via FTP – more complicated, no server setup

Automatically Installing a Plugin

This is by far the easiest method but it does require that your server is setup in such a way as to allow modifications to the plugin directory. This is beyond the scope of this guide, but it involves giving group/other write permissions to the wp-content/plugins directory. Once setup you will be able to press on the Add New plugin menu option:
Plugin Menu

On the Install Plugin screen you can then simply enter the name of the plugin into the search field and perform the search:
Search Plugin

The search results should then show the plugin. Clicking on install will automatically download and install the plugin onto your blog.
Search Plugin results

When finished you can then activate the plugin – everything is done and dusted!
Plugin installed

Manually Installing a Plugin
Downloading a Plugin

WordPress plugins are usually distributed as zip files. A zip file is a special file that allows you to store and compress many files together, resulting in a single file that is small and fast to download. Downloading a plugin consists of clicking the download link from the appropriate website and allowing the browser to store the file somewhere on your computer:
Installing a downloaded plugin via WordPress

From the WordPress plugin menu click on Add New:
Plugin Menu

Instead of searching for a plugin you can directly upload your plugin zip file by clicking on Upload:
Upload zip

Use the browse button to select the plugin zip file that was downloaded, then click on Install Now. The plugin will be uploaded to your blog and installed. It can then be activated (see Automatically Installing a Plugin).
Installing a downloaded plugin via FTP

Once downloaded the file needs to be unzipped, a term that refers to the de-compressing and restoring to normal of a zip file. Depending what kind of computer you are using this is either a very simple stage, or one that requires additional software. Recent versions of Windows already understand zip files, as will OS X. If they don't then you will need to download and install something like 7-Zip, Winzip, or StuffIt.

When ready, unzip the plugin:
Unzipping on Windows

Now you will need to upload the plugin to your site using FTP. Before you continue you should have your FTP username and password available (these are the same details provided to you by your web host) and have installed an FTP client. For Windows you can use FileZilla, for Mac OS X you can use Cyberduck. Once you have the FTP software installed you should start it and open a new connection. Enter your FTP address, followed by your username and password:
Connecting to your website

After a few moments (if the address, username, and password are correct) you will be connected to your website and will see a directory listing.
Website directory listing

Navigate through this directory to where WordPress is installed. The exact location of this will change depending on your web host, but typically it will be inside a directory called public_html.
WordPress directory

Now navigate through WordPress to where the plugins are located: wp-content/plugins/
WordPress plugin directory

Now you can upload the plugin. Be aware that you need to upload the plugin directory as well as all files. Certain unzip applications will create a surrounding directory for you, which should not be uploaded. For example:

Correct (bold shows directory to be uploaded)




Uploading a plugin

When uploaded you need to activate the plugin.
Activating & Deactivating Plugins

When a plugin is installed it can be activated and deactivated quickly from the Installed Plugins menu:
WordPress plugin menu

You will be presented with a list of plugins. Locate your plugin and press activate or deactive. Simple!
Activating a plugin
Upgrading a Plugin

When an update for a plugin is available you will see a red indicator in the plugins menu:
Upgrade available

Clicking on this and then navigating to the Upgrade Available menu will display a list of plugins that can be updated. If this can be achieved automatically then selecting the upgrade automatically link will do this for you. If you want to manually update the plugin then you will need to follow the instructions above and re-upload the new version of the plugin. If you are using FTP then you are advised to delete the old plugin directory first – unless you have made modifications to the plugin files then all your settings and data will be retained.


Mod_dosevasive for Apache2 on Windows

SkyHi @ Monday, September 14, 2009
Denial of service attacks are a pain. There’s a module you can use with Apache 2 called mod_dosevasive (or mod_evasive), written by Jonathan A. Zdziarski over at Nuclear Elephant. The module helps stop DoS attacks. It let’s you configure parameters that should not be surpassed. Let’s take a semi-detailed look at that module before you download a copy and dive into using it.

In the suggested default configuration it’ll block any IP that makes more than 2 requests for the same page in 1 second or less, plus any IP that makes more than 50 requests to the site in 1 second or less. When that happens that IP becomes blocked for 10 seconds.

While it’s written for Linux systems there is a Windows port available (based on version 1.8) put together by a guy named Steffen in the Netherlands. You can download a copy of mod_dosevasive for Windows from this Web site. Source code is included, and the configuration options are listed below. Be aware that based ona cursory examination of the source code it seems that Steffen disabled the email notification functionality, so that might not work. But the other features should, in theory.

Drop the DLL file into your Apache 2 modules directory and configure Apache to load it:

LoadModule dosevasive_module c:apache2modulesmod_dosevasive.dll

Be sure to insert the configuration directives in your Apache 2 configuration file too. A directive block might look something like this:

DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600

You can also include a few other directives:

DOSSystemCommand “do-this.bat %1″
DOSLogDir “c:templockmod_dosevasive”

Just remember that the email notification feature appears to be disabled in this Windows-based version of the module. That said, here’s what those parameters do, and here’s a link to Zdiarski’s mod_evasive site where you can download the current version for Linux (version 1.10.1 at the time of this posting), which contains a more extensive README file that you should probably take a look at.


The hash table size defines the number of top-level nodes for each child’s hash table. Increasing this number will provide faster performance by decreasing the number of iterations required to get to the record, but consume more memory for table space. You should increase this if you have a busy web server. The value you specify will automatically be tiered up to the next prime number in the primes list (see mod_evasive.c for a list of primes used).


This is the threshhold for the number of requests for the same page (or URI) per page interval. Once the threshhold for that interval has been exceeded, the IP address of the client will be added to the blocking list.


This is the threshhold for the total number of requests for any object by the same client on the same listener per site interval. Once the threshhold for that interval has been exceeded, the IP address of the client will be added to the blocking list.


The interval for the page count threshhold; defaults to 1 second intervals.


The interval for the site count threshhold; defaults to 1 second intervals.


The blocking period is the amount of time (in seconds) that a client will be blocked for if they are added to the blocking list. During this time, all subsequent requests from the client will result in a 403 (Forbidden) and the timer being reset (e.g. another 10 seconds). Since the timer is reset for every subsequent request, it is not necessary to have a long blocking period; in the event of a DoS attack, this timer will keep getting reset.

Whitelisting IP Addresses

IP addresses of trusted clients can be whitelisted to insure they are never denied. The purpose of whitelisting is to protect software, scripts, local searchbots, or other automated tools from being denied for requesting large amounts of data from the server. Whitelisting should *not* be used to addcustomer lists or anything of the sort, as this will open the server to abuse. This module is very difficult to trigger without performing some type of malicious attack, and for that reason it is more appropriate to allow the module to decide on its own whether or not an individual customer should be blocked.

To whitelist an address (or range) add an entry to the Apache configuration in the following fashion:

DOSWhitelist 127.0.0.*

Wildcards can be used on up to the last 3 octets if necessary. Multiple DOSWhitelist commands may be used in the configuration.


mod_evasive howto step by step

SkyHi @ Monday, September 14, 2009
mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. mod_evasive presently reports abuses via email and syslog facilities.

Detection is performed by creating an internal dynamic hash table of IP Addresses and URIs, and denying any single IP address from any of the following:

* Requesting the same page more than a few times per second
* Making more than 50 concurrent requests on the same child per second
* Making any requests while temporarily blacklisted (on a blocking list)

This method has worked well in both single-server script attacks as well as distributed attacks, but just like other evasive tools, is only as useful to the point of bandwidth and processor consumption (e.g. the amount of bandwidth and processor required to receive/process/respond to invalid requests), which is why it's a good idea to integrate this with your firewalls and routers for maximum protection.

This module instantiates for each listener individually, and therefore has a built-in cleanup mechanism and scaling capabilities. Because of this per-child design, legitimate requests are never compromised (even from proxies and NAT addresses) but only scripted attacks. Even a user repeatedly clicking on 'reload' should not be affected unless they do it maliciously. mod_evasive is fully tweakable through the Apache configuration file, easy to incorporate into your web server, and easy to use. from

click read more for my HowTo

Download the actual version of mod_evasive
# wget

Unpack it
# tar xvzf mod_evasive_1.10.1.tar.gz /usr/local/src/mod_evasive

Move to that directory
# cd /usr/local/src/mod_evasive
And edit the file mod_evasive20.c, we will have to change the line 45 to
#define MAILER "/bin/mail -t %s"

We compile the module:
Apache2 Apache2-Prefork
# /usr/sbin/apxs2 -cia mod_evasive20.c # /usr/sbin/apxs2-prefork -cia mod_evasive20.c

Now we have to create a config file for mod_evasive:
# touch /etc/apache2/conf.d/mod_evasive.conf
and edit it
# vi /etc/apache2/conf.d/mod_evasive.conf
content of file

Apache2 Apache2-Prefork
LoadModule evasive20_module /usr/lib/apache2/

DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
DOSEmailNotify This e-mail address is being protected from spambots. You need JavaScript enabled to view it
LoadModule evasive20_module /usr/lib/apache2-prefork/

DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
DOSEmailNotify This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Restart Apache2 either with:
# rcapache2 stop
# rcapache2 start
# /etc/init.d/apache2 restart

Mod_evasive also deliver a sall perl script to try a DOS attack on your own webserver
# cd /usr/src/mod_evasive
# perl

You should read http ok but after some seconds you will only get HTTP error 403 showing that mod_evasive is correctly running!


To Do List After installing Ubuntu 9.04 aka Jaunty Jackalope

SkyHi @ Monday, September 14, 2009
This post is a follow up of this. In Ubuntu Jaunty Jackalope , as you would expect from any upgrade, the packages are a bit different, so i decided to write the Jaunty’s To Do List on its own. So here you go :

1 – Expand the Software Repository List

First of all, lets make Ubuntu “see” more packages. Go to the terminal and edit your sources.list with :

sudo gedit /etc/apt/sources.list

Here is the content of my sources.list which I think is quite complete to have all the necessary applications you could ever need. So delete the whole content of your sources list and replace it with the content of mine

Save it. Go to the Terminal and type:

sudo apt-get update && sudo apt-get upgrade

Now all your programs will run on the last version.

2 – Anti-Virus

Windows equivalent : AVG AntiVirus, NAV, TrendMicro, F-Prot, Kaspersky, …

Ubuntu equivalent : Avast


wget && sudo dpkg -i avast4workstation_1.3.0-2_i386.deb

Access it through Accessories → avast! Antivirus .

3 – Essential tools for compiling from sources

sudo apt-get install build-essential checkinstall cdbs devscripts dh-make fakeroot libxml-parser-perl check avahi-daemon

4 – Java runtime environment

Java is a very important thing to install, now that many programs like Azureus need it to run. So type:

sudo apt-get install sun-java6-fonts sun-java6-jre sun-java6-plugin equivs ttf-sazanami-gothic ttf-sazanami-mincho

5 – More Fonts

Here you will find a bunch of fonts you can install on your system, but remember that you don’t need to install all of them

sudo mkdir -p /usr/lib/X11/fonts/Type1 && sudo apt-get install msttcorefonts
&& sudo apt-get install ttf-larabie-straight ttf-larabie-deco mplayer-fonts xfonts-terminus-dos xfonts-terminus xfonts-terminus-oblique
xfonts-mona tv-fonts ttf-tuffy ttf-sjfonts ttf-sil-padauk ttf-sil-ezra ttf-paktype ttf-georgewilliams ttf-fifthhorseman-dkg-handwriting
ttf-farsiweb ttf-essays1743 ttf-opensymbol ttf-nafees ttf-mgopen ttf-gentium ttf-freefont ttf-dustin ttf-devanagari-fonts ttf-dejavu-extra
ttf-dejavu-core ttf-dejavu ttf-bpg-georgian-fonts ttf-bitstream-vera ttf-alee

6 – Ubuntu Control Panel

Ubuntu Tweak

Ubuntu Tweak allows you to tweak your system settings, all in one place. You can install new applications, customize your desktop settings, configure your startup applications, changing the system filetype association and many more tweaks in this single application.

sudo apt-get install ubuntu-tweak

Then access it through Applications → System Tools → Ubuntu Tweak

7 – Nice Right Click Sub-Menus

For some useful right click menus in nautilus

sudo apt-get install nautilus-actions nautilus-gksu nautilus-image-converter nautilus-open-terminal
nautilus-script-audio-convert nautilus-script-collection-svn nautilus-script-manager nautilus-sendto nautilus-share nautilus-wallpaper

App Runner

App Runner is a small open source utility that makes it very easy to run any type of program/executable/script on any distro/OS that uses the nautilus file manager: Debian/Ubuntu/Super OS/Fedora/etc

wget && sudo dpkg -i App_Runner_0.2.deb

Then right-click the file -> Scripts -> Run This App or Run This App (root)

8 – Multimedia

Windows equivalent : windows media player, real player, vlc, mplayer

Ubuntu equivalent : vlc, mplayer, helix player

To have Ubuntu playing all kinds of stuff, you need to install many codecs. So on the Terminal, type:

* Installing vlc and mplayer (plays almost everything):

sudo apt-get install vlc mplayer

* Common packs

sudo apt-get install non-free-codecs libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123
libflac++6 ffmpeg toolame libmp4v2-0 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert
mozilla-helix-player helix-player libmad0 libjpeg-progs libmpcdec3 libquicktime1 flac faac faad sox toolame
ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-dev

* Gstreammer 0.10

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-fluendo-mpegdemux
gstreamer0.10-gnonlin gstreamer0.10-pitfdll gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-schroedinger gstreamer0.10-plugins-ugly-multiverse totem-gstreamer

* More programs

sudo apt-get install gstreamer-dbus-media-service gstreamer-tools ubuntu-restricted-extras

* Enable dvd support

sudo aptitude install libdvdcss2 && sudo /usr/share/doc/libdvdread4/./

* Flash

sudo apt-get install gsfonts gsfonts-x11 flashplugin-nonfree

9. Tweak your eyecandy

Ubuntu 9.04 comes with compiz fusion effects OOTB but doesn’t offer a way to customize them.

In a terminal copy/paste this:

sudo apt-get install simple-ccsm

Now navigate to System → Preferences → Simple CompizConfig Settings Manager .

10 – Missing Windows software?? Run Windows softwares in Linux!!!


Wine is a compatibility layer for running Windows programs in Linux.

sudo apt-get install wine

Then just double click .exe file.

Note: Not all windows software can run.A list is available in the website.

11 – Play Windows Games in Linux

Install PlayonLinux.Games like world of warcraft ,counterstrike and many other can be played.Playonlinux is based on wine.

Click here for list of games available

sudo apt-get install playonlinux

12 – Clipboard Management

By Default in ubuntu when u copy something from an application and closes the application u will not be able to access it from the clipboard. And also when u copy severals text in serial u only have the last on available to you in the clipboard. To solve that install either of the following but Glipper is better because it supports plugins.


sudo apt-get install glipper

Then right click ur panel → Add to Panel then drag Clipboard Manager to ur panel


sudo apt-get install parcellite

13 – Archiver/ Packing software

Windows equivalent : winrar, zip, 7zip

Ubuntu equivalent : tar, unrar, p7zip, arj, unace

It’s bad when you don’t have Internet on your computer/notebook, but you have to pack/unpack something but the file format isn’t recognized by the system. To prevent from this bad situation, you can install a bunch of packing software by typing this on the terminal:

sudo apt-get install unace rar unrar zip unzip p7zip-full p7zip-rar sharutils aish uudeview mpack lha arj cabextract file-roller

14 – Graphical web browser

Windows equivalent : Internet explorer, firefox, opera

Ubuntu equivalent : Firefox, opera


sudo apt-get install opera

Firefox (installed by default intrepid)

sudo apt-get install firefox

15 – Download Manager

Windows equivalent : Free download manager

Ubuntu equivalent : Multiget

MultiGet is a http/ftp downloader with a nice GUI for linux desktop users. It can run on almost all desktops without any configuration. It has many powerful functions comparing to others.

sudo apt-get install multiget

Access it through Applications → Internet → MultiGet .

16 – Graphical Email client

Windows equivalent : Outlook

Ubuntu equivalent : Evolution, Thunderbird

Evolution (installed by default in intrepid)

sudo apt-get install evolution

Access it through Applications → Internet → Evolution Mail .


sudo apt-get install thunderbird

Access it through Applications → Internet → Mozilla Thunderbird Mail/News .

17 – Instant Messanging protocal clients

Windows equivalent : MSN messenger, Yahoo messenger, QQ, AIM, Gtalk, ICQ,IRC

Ubuntu equivalent : Pidgin, emesene

Pidgin (installed by default in intrepid)

Pidgin is an easy to use and free chat client used by millions. Connect to AIM, MSN, Yahoo, and more chat networks all at once. Supported chat networks: AIM, Bonjour, Gadu-Gadu, Google Talk, Groupwise, ICQ, IRC, MSN, MySpaceIM, QQ, SILC, SIMPLE, Sametime, XMPP, Yahoo!, Zephyr

sudo apt-get install pidgin pidgin-data pidgin-lastfm pidgin-guifications msn-pecan pidgin-musictracker pidgin-plugin-pack pidgin-themes

Access it through Applications → Internet → Pidgin Internet Messenger .

Emesene only for MSN Messenger.

sudo apt-get install emesene

Access it through Applications → Internet → Emesene .

18 – VOIP

Windows equivalent : skype

Ubuntu equivalent : skype, ekiga


sudo apt-get install skype

Access it through Applications → Internet → Skype.

Ekiga (installed by default in intrepid)

sudo apt-get install ekiga

Access it through Applications → Internet → Ekiga SoftPhone.

19 – Viewing PDF files

Windows equivalent : Adobe Reader

Ubuntu equivalent : Adobe Reader

Adobe Reader

sudo apt-get install acroread acroread-fonts

Access it through Applications → Office → Adobe Reader.

20– Adobe Air

chmod +x . /AdobeAIRInstaller.bin

Access it through Applications → Accessories → Adobe Air Application Installer.

21 – Music / MP3 / OGG Players

Windows equivalent : iTunes, Winamp

Ubuntu equivalent : Rhythmbox, Amarok


sudo apt-get install rhythmbox

Access it through Applications → Sound & Video → Rhythmbox Music Player.


sudo apt-get install amarok amarok-common

Access it through Applications → Sound & Video → Amarok.

22 – Hard Disk Partitions Manager

Windows equivalent : Symanted Partition Magic

Ubuntu equivalent : GParted, Disk-Manager


sudo apt-get install gparted ntfsprogs

Access it through System → Administration → Partition Editor.

23 – Vector Graphics Editor

Windows equivalent : Adobe Illustrator

Ubuntu equivalent : Inkscape


sudo apt-get install inkscape

Access it through Applications → Graphics → Inkscape Vector Graphics Editor.

24 – Image Editor

Windows equivalent : Adobe Photoshop

Ubuntu equivalent : GIMP


sudo apt-get install gimp gimp-data gimp-plugin-registry

Access it through Applications → Graphics → GIMP Image Editor.

25 – 3D Graphics Applications

Windows equivalent : 3D Studio MAX

Ubuntu equivalent : Blender


sudo apt-get install blender

Access it through Applications → Graphics → Blender (windowed).

26 – Simple Yet Advanced Text Editor

Windows equivalent : Notepad ++

Ubuntu equivalent : GEdit


sudo apt-get install gedit gedit-plugins

Access it through Applications → Accessories → Text Editor.

27 – Office Applications

Windows equivalent : Microsoft Office

Ubuntu equivalent : OpenOffice


sudo apt-get install

Access it through Applications → Office

28 – Microsoft Visio

Windows equivalent : Microsoft Visio

Ubuntu equivalent : Dia


sudo apt-get install dia

Access it through Applications → Graphics → Dia Diagram Editor

29 – Microsoft Project

Windows equivalent : Microsoft Project

Ubuntu equivalent : OpenProj


wget && sudo dpkg -i openproj_1.4-2.deb

Access it through Applications → Office → OpenProj

30 – Development IDE

Windows equivalent : Dreamweaver

Ubuntu equivalent : Quanta, Kompozer, NetBeans


sudo apt-get install quanta

Access it through Applications → Programming → Quanta Plus


sudo apt-get install kompozer nvu

Access it through Applications → Internet → Kompozer


sudo apt-get install netbeans

Access it through Applications → Programming → NetBeans IDE

31 – Graphical FTP clients

Windows equivalent : CuteFTP, SmartFTP

Ubuntu equivalent : FileZilla


This is great FTP program, very complete, in my opinion, the best one for linux.

On the terminal type:

sudo apt-get install filezilla filezilla-common

Access it through Applications → Internet → FileZilla FTP Client.

32 – P2P Clients / Servers, File Sharing

Windows equivalent : utorrent, azureus, emule

Ubuntu equivalent : Deluge, azureus, amule

Bittorent clients

Deluge (written in python)

sudo apt-get install deluge-torrent

Access it through Applications → Internet → Deluge Torrent.

Azureus: Uses Java to run, very complete but a bit heavy

sudo apt-get install azureus

Access it through Applications → Internet → Azureus.

Emule Donkey Clients


sudo apt-get install amule

Access it through Applications → Internet → aMule.

33 – Programs for CD burning with GUI

Windows equivalent : Nero, Roxio Easy CD Creator

Ubuntu equivalent : K3b, Brasero


Nero is available for linux,but its not free.A trial is available for 1 month usage and later it asks or activation code.But K3B is as good as Nero.Have a good feature set as Nero.

sudo apt-get install k3b k3b-data k3b-i18n libk3b3

Access it through Applications → Sound & Video → K3B.

Brasero (installed by default in Intrepid)

sudo apt-get install brasero

Access it through Applications → Sound & Video → Brasero Disc Burning .

34 – Mountings ISO files

Windows equivalent : Alcohol

Ubuntu equivalent : acetoneiso


The best one for linux ACETONEISO,which is similar to ALCOHOL in windows

its supports almost all formats. AcetoneISO is CD/DVD image manipulator for Linux.Using this tool it is very easy to Mount and Unmount ISO,MDF,NRG Images . I dont think its available in ubuntu repository.

sudo apt-get install libksba8 libenca0 libtwolame0 fuseiso kommander p7zip-full gnupg-agent gnupg2 pinentry-qt mencoder
cdrdao libqt4-webkit libphonon4 phonon phonon-backend-gstreamer
wget && sudo dpkg -i

Access it via Sound & Videos -> AcetoneISO

35 – Install Vista like gadgets.

Windows equivalent : Vista Sidebar

Ubuntu equivalent : google-gadgets

Google gadgets

&& sudo dpkg -i google-gadgets_0.10.5-1~getdeb2_i386.deb

This will complete the installation.

Now press Alt+F2, and type “ggl-gtk” to start them. You should see a small icon show up in your system tray, and a sidebar. Right click on any of them and select ‘Add Gadgets’ to show a menu. If you’d like to have Google Gadgets start automatically, go to System – Preferences – Session, click ‘Add’, paste ‘Google Gadgets’ for the name and ‘ggl-gtk’ for the command. Click OK and Close, and you’re good to go.

36 – Google Desktop

Google Desktop allows one to full text search of a user’s e-mail, computer files, music, photos, chat, and Web pages viewed,OpenOffice documents , PDF files and more .

Now similar tools already existed on Linux like beagle (supported by novell ) , meta tracker etc . However Google Desktop search is not based on any of these tools and uses its proprietary algorithms to search for files on the computer ,also being 1.0 release and more stable then these products it could be preferred over tools like beagle .

To install Google Desktop Search type the following command in the terminal window : -

sudo apt-get install google-desktop-linux

Access it through Applications → Google Desktop → Google Desktop

Now after choosing appropriate option through Applications → Google Desktop → Google Desktop Preferences, you would find Google Desktop icon in the bar at the top of the screen , now it would automatically scan and index files on computer and store it in local database which could be searched using web browser .

37 – Photo Management

Google Picasa

Google Picasa is an extremely professional good looking photo management application available on Windows ,Linux and Mac OS (??) . Now Google Picasa has a number of features that many photo management software on Linux dont have further Google Picasa looks very user friendly as compared to similar open source application available on linux . Now Google Picasa for Linux is not a native linux application but runs on Linux thru application layer called wine which allows many windows application to run flawlessly on Linux.

Now to install Google – Picasa type the following command in the terminal window

sudo apt-get install picasa

Access it through Applications → Graphics → Picasa → Picasa

38 – Map Viewing and Management

Google Earth

To install Google Earth type the following command in the Terminal Window.

sudo aptitude install googleearth

After downloading is over you will get a screen like this press ¨Yes¨ to accept the license agreement and complete software installation.

Now you can launch Google Earth from Application → Internet → Google Earth

39 – Gmail Notification


If you would like to get notified when you have a new mail in your google mail account, checkgmail is for you. To install Checkgmail type the following command in the Terminal Window.

sudo apt-get install checkgmail

Now you can launch it from Application → Internet → CheckGmail

40 – Configure Firewall

If you are concern about your security, then it is pertinent that you activate the firewall and prevent any unauthorized access to your computer.

UFW is installed by default, but if you need a graphical interface, install GUFW.

sudo apt-get install gufw

41 – Gnome Do
Gnome Do is a small application that allows you to search and do things faster and more efficiently in your Ubuntu machine. It is similar to QuickSilver in Mac and Launchy in Windows. For those who have not tried Gnome Do before, it might take some time for you to get used to it. But once you’re hooked to it, there will be no turning back for you.Gnome Do also comes with a dock interface that you can use it like any other docks.

sudo apt-get install gnome-do

Now you can launch it from Application → Accessories → Gnome Do

20-07-2009 om 16:07 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Adobe Reader 9.1 on Ubuntu 9.04

To get official Adobe Reader 9.1 on Ubuntu 9.04, you can follow one of the 2 methods listed below;

1) sudo gedit /etc/apt/sources.list
2) Add the below line in sources.list,
deb jaunty partner
3) sudo apt-get update
4) sudo apt-get install acroread


II. 1) wget
2.) chmod +x ./AdbeRdr9.1.0-1_i486linux_enu.bin

20-07-2009 om 15:51 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Belgische EID (ACR38U) onder ubuntu

I removed every packages and was about to give up when I finally found the answer that made things work out of the box at

Packages to install :

sudo apt-get install libacr38u libacr38ucontrol0 beid-tools pcscd libpcsclite-dev beidgui libbeid2 libbeidlibopensc2

After installing these, I was able to read my card under beid.

Firefox :

In order to access websites working with the eID, you need to load the PKCS#11 module.

Edit > Preferences > Advanced > Encryption > Security Devices > Load

Module name : “Belgium Identity Card PKCS#11″
Module filename : “/usr/lib/″

Restart Firefox when done.

The card reader MUST be plugged before starting Firefox if you intend to access a website requiring access to your eID.

20-07-2009 om 15:25 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.How to install LimeWire ?

0. Make sure you have "multiverse" repository enabled in your /etc/apt/sources.list by clicking on System -> Administration -> Software Sources. The checkbox "Software restricted by copyright or legal issues (multiverse)" has to be enabled.

1. Download the latest LimeWire from or if you prefer the beta is here:

2. If you are using Gnome or KDE you should be able to double-click on the file. If not, you may have to manually install with dpkg.

There should be an entry in the programs menu if you are using KDE or Gnome. You will also be able to start limewire by typing "limewire" in the terminal.

20-07-2009 om 15:20 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.How do i add public keys?

# If you get errors about missing keys, lookup the key in this file
# and run these commands (replace KEY with the key number):
# gpg --keyserver --recv KEY
# gpg --export --armor KEY | sudo apt-key add -
# If you have a gpg key URL use (replace URL with the key address):
# wget URL --quiet -O - | sudo apt-key add -
# If you have a gpg key file use (replace FILE with the key file):
# sudo apt-key add FILE

20-07-2009 om 15:15 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.ING HomeBank op Ubuntu 9.04

Voor Ubuntu 8.04 en 8.10 bleef de installatie van ING HomeBank gelijk. De nieuwste Ubuntu telg 9.04 vraagt één extra commando.

Om te beginnen, volg de volledige handleiding voor 8.04 en 8.10 64-bit.

Like promised a blog post about how to instal ING HomeBank on a Ubuntu 8.04 64-bit system. En nu verder in het Nederlands om te voorkomen dat de Engelstaligen het volgende uur niet meer zouden bijkomen van het lachen en deze blog onder het mapje “grappig” van hun favorieten klasseren. Voor de installatie van de 32-bit versie op Ubuntu 8.04 kan je nog steeds hier terecht.

Deze methode is hetzelfde voor Ubuntu versie 8.10.

1. Nog steeds is het installatie bestand (een *.deb) te downloaden op deze pagina van ING.Be. Sla het bestand op in je persoonlijke map (home folder).

2. Open een terminal venster en voer volgend commando uit (op moment van schrijven is de versie 3.33):
sudo dpkg -i HomeBank333.deb

3. Ga nu naar /opt/HomeBank:
cd /opt/HomeBank

4. Als je te vlug op de zaken voorloopt en je start HomeBank krijg je deze fout: “error while loading shared libraries: : cannot open shared object file: No such file or directory“. HomeBank heeft nodig, maar Ubuntu bezit enkel We verhelpen dit probleempje door een symbolische link van versie 3 naar versie 4 aan te leggen.
sudo ln -s /usr/lib32/ /usr/lib32/

5. Een volgende fout die je zou krijgen is “Error while loading shared libraries: : cannot open shared object file: No such file or directory“. Om dit te voorkomen dienen we nog een symbolische link te leggen (met dank aan Peter!):
sudo ln -s /usr/lib32/ /usr/lib32/

6. Als je HomeBank nu zou starten krijg je helaas nog één foutmelding: “error while loading shared libraries: : cannot open shared object file: No such file or directory“. Dit komt door het ontbreken van “libstdc++2.10-glibc2.2″. Ubuntu zelf levert dit helaas niet meer mee. We gaan het pakket handmatig downloaden en installeren. (Met dank aan Peter voor de tip!)
sudo dpkg -i --force-architecture libstdc++2.10-glibc2.2_2.95.4-27_i386.deb

7. Als alles goed is zou het nu moeten werken. Start de module met:
cd /opt/HomeBank

Tip 1
Ik voeg aan het menu “Toepassingen – Internet” steeds ook een snelkoppeling toe naar de veiligheidsmodule. Dit is niet noodzakelijk, maar eens zo handig:
- klik rechts op het menu (Toepassingen),
- klik op “Menu’s bewerken”,
- ga naar “Internet” en klik op “Nieuw item”,
– Type: Applicatie
– Naam: HomeBank
– Commando: /opt/HomeBank/HBSecurity
– Als je wil kan je nog een icoontje meegeven door op het plaatje met de veer te klikken
- klaar!

Tip 2
Wil je niet naar het bankkantoor lopen achter nieuwe opstartcodes als je een nieuwe Ubuntu versie geïnstalleerd hebt kan je de bestanden “**********.bbl en .hbrc” van je oude installatie kopiëren en plakken in je nieuw systeem. Beide bestanden zijn te vinden in je persoonlijke map. Let op: om .hbrc te zien moet je eerst “Verborgen bestanden tonen” aanvinken in het menu “Beeld”.

Helaas krijg je de fout “HBSecGUI: error while loading shared libraries: cannot open shared object file: No such file or directory“.
Om dit op te lossen installeren we het pakket “ia32-libs”:

sudo apt-get install ia32-libs

Vervolgens zou ING HomeBank probleemloos moeten opstarten!


In de repo’s van Ubuntu zit standaard reeds een pakket met de naam “HomeBank”. Dit is echter niét de HomeBank van ING en zal dus niet werken!
Om te voorkomen dat Ubuntu dit pakket zal upgraden, dien je dit te “locken” via Synaptic package manager:

Zoek naar “HomeBank”. Selecteer het pakket en in het menu “Package” vink je “Lock Version” aan. Dit zal voorkomen dat ING HomeBank overschreven wordt.

20-07-2009 om 15:11 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Ubuntu 9.04 Alternate (Jaunty Jackalope) Alpha 2 - Installation
Ubuntu 9.04 Alternate (Jaunty Jackalope) Alpha 2 - Installation

18-07-2009 om 09:13 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Installing a Creative Zen USB on Linux

Even though most of the people don't know about it, there is a project on Linux which allows you to connect your Zen mp3 player on Linux. Developers are working quite hard at the moment to get a new release out and which also supports my Zen 2.0. I am not using usb-ohci (the USB module for USB 2.0) as it makes my system unstable after a while so I only upload songs using USB 1.1 (even if it is slower, at least it works all the time which is the most important to me). Make sure that you have a system which is properly supporting USB (recompile your kernel if necessary to allow more modules).

Regarding software, make sure you have installed : libusb and hotplug. For distributions using packages, you will also need the 'devel' versions (dev for Debian) if you want to be able to properly compile your source and the application. Make also sure you installed CVS as you will need it to download the lastest up to date version of libnjb. This is indeed the project name which deals with your player. Concerning the software with a nice GUI, I chose Gnomad2 (screenshot below). You could also use GnomeDap which does nearly the same job but I found it much less stable.

Begin by installing libnjb. You will have to get the latest sources from CVS. You can create a little script cvs_libnjb by example, in which you can copy the following content (you could also just use the command line but as I tend to get the sources every 2 days for testing, I preferred using a script):

cvs login
cvs -z3 co libnjb

Run this and press return when it prompts for the password. It will then create a local directory called : libnjb. As root go in this directory and do:

./configure ; make ; make install ; ldconfig

If you get a compilation error, you might have forgotten to install the developement libraries from libusb, install them, delete that directory then grab the sources from CVS once more (this is my recommended method). Once compiled, it will install the brand new libraries in /usr/local/lib/libnjb.*.

You will then have to set up the hotplug and devfs part (if using it). The best way is to proceed as follows (still being in the libnjb directory) :

cat nomad.usermap >> /etc/hotplug/usb.usermap ; cp nomadjukebox /etc/hotplug/usb/ ; chmod a+x /etc/hotplug/usb/nomadjukebox

If you have a hotplug service, now might be a good idea to restart it. The commands that we just typed will allow your system to properly recognise when your Zen is connected to Linux and will run the nomadjukebox script with the correct permissions to allow any user on your system to use it. If you get an error at this stage, you could either not have hotplug installed, or missing the usb directory under the hotplug tree which can be easily solved by doing mkdir /etc/hotplug/usb. Make then sure that you type again those commands.

The next step is to install gnomad2, I have used the most recent one while I was writing this article which was 2.0.1. Download the latest and then do :

cd gnomad-2.x.x/ ; ./configure ; make ; make install ; ldconfig

Congratulations! You just got your Zen properly configured under Linux. You can now connect it. Make you you always connect it before running Gnomad2 (it might sound logical but it's worth mentioning). Leave the Zen connected while Gnomad2 is launched. If anything crashes (either the player or the application), make sure you close Gnomad2 first then disconnect your Zen from the USB port, shutdown your player and you can then reconnect it and run Gnomad2 again.

The rest is quite simple, use an mp3 encoder (grip for example) which supports id3v2 tags (as mp3 tags get written to the mp3 file), failing that you might get incomplete names in your songs when you transfer them to your Zen. Transferring files from the Zen to my harddrive doesn't work properly for me (and I didn't have time to really investigate the matter).

I will update this article quite soon with more information. You must use the CVS version from libnjg as the current tarball is dated back from 2002 and so is too old to support the latest players. CVS activity is quite intense, with an update at least every 2 days. You can subscribe to the mailing list or read the archives at the following url : libnjb-users.

18-07-2009 om 09:07 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Managing a Creative Zen mp3 jukebox with Gnomad2
1 Installation

Install the "gnomad2" package.

2 Transferring files with Gnomad2

Plug the jukebox into a USB port. Wait a few seconds for the jukebox to recognise the connection. If you wish to make sure that the jukebox is recognised, open a terminal window and enter the "lsusb" command to list USB devices. You should see something like this.

$ lsusb

Bus 005 Device 009: ID 041e:411b Creative Technology, Ltd Zen Touch

Run Gnomad2. If you are using the Gnome desktop, you can find it in the menu:

Applications -> Sound & Video -> Gnomad2

You may see some information popup windows while Gnomad2 scans for music files: "track metadata" on your computer and "jukebox library" on your jukebox.

Gnomad2 opens with the "Music transfer" tab active. There are two list boxes - one for your computer and one for your jukebox. The computer list contains hyperlinks that enable you to navigate between directories by double-clicking. Select a directory for storing mp3 files. Transferring files is easy. Just highlight the files you wish to transfer, and click on one of the arrow buttons between the two lists. The upper arrow button transfers files from computer to jukebox, and the lower arrow button transfers files from jukebox to computer.

3 Troubleshooting

3.1 Gnomad2 does not communicate with jukebox

3.1.1 Make sure that you belong to the "audio" group

Enter the command "groups" in a terminal window. You should see something like this.

$ groups
chris dialout cdrom floppy audio video plugdev

You must switch user ("su") to root if you need to add yourself to the audio group. Use the "adduser" command. For instance, you would add user "chris" to the "audio" group like this.

$ su
(password for user root)
# adduser chris audio
# exit

3.1.2 Try running Gnomad2 from a terminal window

Look for error messages in the terminal window.

$ gnomad2

You may get these messages like these in the terminal window.

This is a PDE device
Device was not connected.

You may also get error message in popup windows.

Could not open jukebox:
usb_set_configuration: Operation not permitted

3.1.3 Try running Gnomad2 as user root

Run Gnomad2 from a terminal window.

$ su
(password for user root)
# gnomad2

If Gnomad2 runs OK as user root, the problem may be in the file /etc/udev/rules.d/libnjb.rules (from the package libnjb5). These rules control the degree of access to the USB port. Open the file in a text editor (eg Nano) as user root.

# nano /etc/udev/rules.d/libnjb.rules

Look for the "MODE" entries which set access permissions for the USB port. A typical entry looks like this.

# Creative Nomad Jukebox Zen Touch
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="411b", MODE="660", GROUP="audio"

If the MODE is set to "066", edit the file and change it to MODE="770".

# Creative Nomad Jukebox Zen Touch
SYSFS{idVendor}=="041e", SYSFS{idProduct}=="411b", MODE="770", GROUP="audio"

Save the file and exit the text editor. (In Nano, the commands are ctrl-O and ctrl-X.) Restart udev with the new permissions.

# /etc/init.d/udev restart

Exit from user root and test the system as a normal user.

# exit
$ gnomad2

18-07-2009 om 09:03 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Ubuntu Satanic Edition


Here we try to make installing Ubuntu Satanic Edition as easy as possible. If you're an advanced user, see the Quick Install guide.
Live CD

The good news is that you no longer need to install SE over the top of Ubuntu Christian Edition; we now have our own Live CD, which contains the operating system, our dark themes, plus some heavy music (which you can play backwards and do whatever you hear it tell you to do). See the following page for details:

* Ubuntu Satanic Live CD

Installing onto an Existing Ubuntu PC

You can also install Ubuntu Satanic Edition on your existing Ubuntu computer. It is available for Ubuntu Jaunty 9.04, Intrepid 8.10, Hardy 8.04, Gutsy 7.10, Feisty 7.04 and Edgy 6.10 including both Gnome (Ubuntu) and KDE (Kubuntu) variants.

The recommended way to install Ubuntu SE is from our secure APT repository. This makes installation, upgrading and removal very simple. If you don't want to use this then you can get the packages and themes from the download page or the individual wallpapers from the screenshots page.
Download the Secure Key

Ubuntu SE is stored in a secure APT repository, so you'll need to download the key before installation. This is standard practice and if you haven't done it before it's very simple; just do the following:

Run a terminal window (Applications->Accessories->Terminal) and cut and paste the following command into it (note that you cut the text by highlighting it with the left mouse button and paste it into the terminal with the middle mouse button):

wget -q -O- | sudo apt-key add -

Adding the Repository

Now we'll add the software repository to your system.

Go to System->Administration->Software Sources->Third Party Software->Add and enter the following APT line:

deb jaunty main

Note: If you using an older version of Ubuntu or you're not sure what version you have, click here.
Installing the packages

To install Ubuntu SE with one click, just select the version you require for your monitor:
Install Ubuntu Satanic Edition [4:3] [widescreen]
Install Kubuntu Satanic Edition [4:3] [widescreen]

For the Ubuntu screensaver plugin, install: eternal-ubuntu

15-07-2009 om 15:32 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.How to Configure Ubuntu 9.04 (Jaunty Jackalope)
Set Up Repositories
Add Canonical Commercial Repository

Enable the Commercial Partners repo:

System -> Administration -> Software Sources -> Third Party -> select the partner repo

Update after modifying sources.list:

Click Reload
Medibuntu Repository (Multimedia, Acrobat Reader, RealPlayer)

sudo wget
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update


sudo apt-get remove vim-tiny


sudo apt-get install vim-full thunderbird keepassx xtightvncviewer ubuntu-restricted-extras acroread w32codecs ntp
ntfs-config alsa-oss faac faad flashplugin-nonfree non-free-codecs sun-java6-fonts sun-java6-jre sun-java6-plugin
unrar gnomebaker

Install Options

* xinetd (super daemon - used for VMware Server and TFTP server)
* build-essential (compilers and tools)
* linux-headers-`uname -r` (kernel headers)
* lightning-extension (calendar add-on for Thunderbird)
* k3b (CD/DVD burning tool) (adds KDE libs)
* k9copy (CD/DVD copy tool) (adds KDE libs)
* lshw (hardware inventory)
* wireshark (network diagnostic tool)
* nessusd, nessus (network diagnostics and scanning)
* kompozer (HTML editor)
* libdvdcss2 (DVD playback)
* grip, lame, easytag, audacity (rip CDs, process music files, encode .mp3's)


wget -c
sudo dpkg -i realplayer_11.0.0-0.2_i386.deb

Firefox Addons

* Foxmarks
* FireFTP
* FlashBlock
* Firebug


Most directly connected printers are plug n' play and just work automatically.

Our Linksys 3-port print server supports the LPR/LPD protocol, as do most print servers. Use LPR/LPD instead of SMB protocol as there have been 'issues' using SMB in the past. You need to know the LPD queue names used by your print server. Linksys often uses 'L1', 'L2' and 'L3' (case sensitive).

System -> Administration -> Printing -> New

For LPD print servers, if you don't see an option for LPD printers, select "Other" under Devices and enter the URI in the form of:


Internal note: The Lexmark C510 is on print server 'ps' on queue (port) 'L1' using the PPD (printer description) file from the Support folder. The Pan KX-2023 is on 'L2'. The Oki 520 is on 'L3'.

The PDF printer is via SMB using a generic postscript driver.
PDF Printer

The default configuration in 8.10 is simpler than in the past. Just select Print -> To File -> PDF.

You can also install cups-pdf and do it the previous way if you wish. If you do, there will be a PDF Printer detected. Select the Generic -> PDF Printer driver. The output files will be in your home folder, under the PDF folder. If you have any trouble with this, try creating the ~/PDF folder manually.
NVidia Graphics Drivers

First, try System -> Administration -> Hardware Drivers.

Try both nVidia driver versions if the newest one doesn't work properly.

Otherwise, and only as a last resort, you may need to download and install the drivers from nVidia. You probably shouldn't use this procedure unless you really have to:

Download the latest driver from the NVidia web site then switch to a text-mode virtual console by hitting ctrl-alt-F1. Then enter the following commands:

sudo /etc/init.d/gdm stop
sudo sh ./

Edit the /etc/default/linux-restricted-modules-common file and add nv:



System -> Preferences -> Appearance -> Fonts (Sub-Pixel Smoothing) -> Details (96dpi, Light Hinting)(try actual dpi of your monitor)

Gnome Terminal window placement

gnome-terminal --geometry=120x50+450+150

Panels (right-click, Properties) - 28 pixels

Startup Applications - Add Tomboy, Pidgin and Firefox to start up automatically

Preferred Applications - Thunderbird, F-Spot

Screensaver - Lock screen
Nautilus Options

Launch nautilus - Select Edit -> Preferences.

Media - Set your preferences for what happens when you plug in external media, cameras, etc. here.

f-spot-import %h
ln -s /home/extra/Photos /home/gcooper/Photos # optionally link your existing photos library

Delete Context Option - Click on the behavior tab. Under the "Trash" section, select the option that reads "Include a Delete command that bypasses Trash"
Floppy Drive

If you still have a floppy drive, you may want to format floppies once in a while. You can add the gfloppy tool to the menu to make it easier to use:

System -> Preferences -> Main Menu -> Accessories

Then select the Floppy Formatter option and close.

If you have any trouble viewing fax files in the .tif format, try using the Evince viewer.
Network Faxing

See this page.
F-Spot Photo Manager

If you want to move your F-Spot photo database to a new computer or user home directory, you will normally only have to move the Photos folder plus the ~/.gnome2/f-spot folder to the same locations in the new home directory.
Installing VMwareTools

sudo apt-get install open-vm-tools

Installing VMware Server

If you are upgrading from VMware Server 1.x, uninstall it first with:


Download the free VMware Server software from here as a binary (.tar.gz) file.

sudo apt-get install build-essential xinetd linux-headers-`uname -r`
tar -xzvf VMware-server-2.0.0-122956.i386.tar.gz
cd vmware-server-distrib/
sudo ./

Then after a successful installation:

cd ..
sudo rm -rf vmware-server-distrib/

You will want to add a valid (your) username as the VMware Administrator.

I don't enable NAT, and I sometimes keep my VMs in my Home Directory, but otherwise I use the defaults presented.

You may find that you get an error when configuring VMware:

Unable to make a vsock module...

Create a text file named with these contents:

--- /usr/bin/ 2008-11-28 12:06:35.641054086 +0100
+++ /usr/bin/ 2008-11-28 12:30:38.593304082 +0100
@@ -4121,6 +4121,11 @@
return 'no';

+ if ($name eq 'vsock') {
+ print wrap("VMWare config patch VSOCK!n");
+ system(shell_string($gHelper{'mv'}) . ' -vi ' . shell_string($build_dir . '/../Module.symvers') . ' ' . shell_string($build_dir . '/vsock-only/' ));
+ }
print wrap('Building the ' . $name . ' module.' . "nn", 0);
if (system(shell_string($gHelper{'make'}) . ' -C '
. shell_string($build_dir . '/' . $name . '-only')
@@ -4143,6 +4148,10 @@
if (try_module($name, $build_dir . '/' . $name . '.o', 0, 1)) {
print wrap('The ' . $name . ' module loads perfectly into the running kernel.'
. "nn", 0);
+ if ($name eq 'vmci') {
+ print wrap("VMWare config patch VMCI!n");
+ system(shell_string($gHelper{'cp'}) . ' -vi ' . shell_string($build_dir.'/vmci-only/Module.symvers') . ' ' . shell_string($build_dir . '/../'));
+ }
return 'yes';

Apply the patch to the file like this:

sudo patch /usr/bin/ /path/to/

Then run as you would after any kernel upgrade.

VMware Server 2.0 no longer includes the VMware uses web browser management instead.

http://localhost:8222 or https://localhost:8333

If you have keyboard problems installating a VM, you need to create ~/.vmware/config and add xkeymap.nokeycodeMap = TRUE to the file. Save it, restart your browser and it should work fine.
Text Terminal

Here is a sample configuration file for BASH:

# .bashrc
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc

alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias ls="BLOCK_SIZE='1 ls --color=auto"
export GREP_OPTIONS='--color=auto'
PS1='${debian_chroot:+($debian_chroot)}[�33[00;36m]u[�33[00m]@h:[�33[05;33m]w[�33[00m] $ '
export HISTCONTROL=ignoredups

Remote Access


sudo apt-get install openssh-server


System -> Preferences -> Remote Desktop (enable and enter password)
Accessing Network (SMB) Shares

If the 'smbfs' package is not already installed, install it like this:

sudo apt-get install smbfs

Create a script that mounts your SMB shares at the mount point you specify in the script. I named mine 'mymounts' and I keep it in a ~/bin folder with the rest of my scripts. You could also just keep it on your desktop and forego the automatic execution below.

# ~/bin/mymounts
# Store this file in your home directory with 700 perms as it contains SMB password
# Set variables here:
# End of variables
mkdir -p ~/mnt/$SHARENAME1
mkdir -p ~/mnt/$SHARENAME2
smbumount ~/mnt/$SHARENAME1 > /dev/null 2>&1
smbmount //$SMBSERVER/$SHARENAME1 ~/mnt/$SHARENAME1 -o username=$SMBUSER,password=$SMBPASS
smbumount ~/mnt/$SHARENAME2 > /dev/null 2>&1
smbmount //$SMBSERVER/$SHARENAME2 ~/mnt/$SHARENAME2 -o username=$SMBUSER,password=$SMBPASS

Make it executeable:

chmod +x ~/bin/mymounts

To make it run automatically when you log in:



15-07-2009 om 15:21 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Ubuntu Desktop Edition

With Ubuntu Desktop Edition you can surf the web, read email, create documents and spreadsheets, edit images and much more. Ubuntu has a fast and easy graphical installer right on the Desktop CD. On a typical computer the installation should take you less than 25 minutes.
Desktop tour

The fastest way to see Ubuntu is to take the tour
Desktop simplicity

When you start your system for the first time you'll see a desktop that is clean and tidy, no desktop icons, and a default theme that is easy on the eye.

Ubuntu 'Just works'

We've done all the hard work for you. Once Ubuntu is installed, all the basics are in place so that your system will be immediately usable.
A complete office productivity suite

OpenOffice contains a user interface and feature set that is similar to other office suites, and includes all the key desktop applications you need, such as:

Word processor - for anything from writing a quick letter to producing an entire book. More »

Spreadsheet - a tool to calculate, analyse, and present your data in numerical reports or charts. More »

Presentation - an easy, and powerful tool for creating effective multimedia presentations. More »
Edit and share files in other formats

Easily open, edit and share files with your friends that have Microsoft Office, Word Perfect, KOffice or StarOffice.

Quick and easy updates

The task bar contains an update area where we'll notify you when there are updates available for your system, from simple security fixes to a complete version upgrade. The update facility enables you to keep your system up-to-date with just a few clicks of your mouse.

A vast library of free software

Need more software? Simply choose from thousands of software packages in the Ubuntu catalogue, all available to download and install at the click of a button. And it's all completely free!
Help and support

You'll be able to find help using the desktop browser or online. If you have a question about using Ubuntu, you can bet someone else has already asked it. Our community has developed a range of documentation that may contain the answer to your question, or give you ideas about where to look.

This is also where you'll get access to free support from the Ubuntu community in the chat and mailing lists in many languages. Alternatively, you can purchase professional support from the Canonical Global Support Services Team, or local providers.

Ubuntu in your local language

Ubuntu aims to be usable by as many people as possible, which is why we include the very best localisation and accessibility infrastructure that the free software community has to offer.

More Features »

You can download Ubuntu, or request a free CD from Canonical.

System requirements

Ubuntu is available for PC, 64-Bit PC and Intel-based Mac architectures. At least 256 MB of RAM is required to run the alternate install CD (384MB of RAM is required to use the live CD based installer). Install requires at least 4 GB of disk space.

15-07-2009 om 15:12 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Playing Encrypted DVDs
To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. Some more information about this package can be found at Below are the instructions for installing the packages using the command line. For other methods, please refer to Installing Software. With the entire Medibuntu repository If you have added the entire Medibuntu repository, you just need to install the package using APT:

sudo apt-get install libdvdcss2

With individual packages If you wish to install just libdvdcss2, you can first download the individual package and then install the package.

* i386:

wget -c sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb

* amd64:

wget -c sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_amd64.deb

* powerpc:

wget -c sudo dpkg -i libdvdcss2_1.2.9-2medibuntu2_powerpc.deb

15-07-2009 om 14:14 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.How to add Medibuntu

Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Add Medibuntu to your sources.list, as well as its GPG key to your keyring. Make sure to use the correct sources.list that corresponds to your current distribution.

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list

Then, add the GPG Key:

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

Some people don't want to install non-free software on their computer as explained in the "Free and Non-Free components" section. We will explain how to exclude getting packages from the non-free component of the Medibuntu repository. You should understand that if you remove the non-free component, you will NOT have access to these packages: * acroread (Acrobat Reader -- not really needed because you can use free software, such as Evince, to read pdfs) * alsa-firmware -- needed for some audio cards * AMR and FAAC support in MPlayer and FFmpeg * googleearth * restricted video codecs (ppc-codecs, w32codecs, w64codecs) * Skype To exclude getting packages from the non-free component of the Medibuntu repository, type the following command:

sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list

15-07-2009 om 13:50 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Unable to lock the administration directory (/var/lib/dpkg/), is another process

Unable to lock the administration directory (/var/lib/dpkg/), is another process


sudo rm /var/lib/dpkg/lock

15-07-2009 om 13:49 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.04 (Jaunty)

MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.

Install Mplayer in Ubuntu 9.04 (Jaunty)

You need to add the following lines to /etc/apt/sources.list file or you need to make sure you have enabled Universe and multiverse repositories

Using GUI:

sudo gedit /etc/apt/sources.list

Make sure you have the following two lines save and exit your file

deb jaunty universe multiverse
deb-src jaunty universe multiverse

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer

If you want to open mplayer go to Applications—>Sound&Video—> Mplayer

Movie Player

Install Mplayer Front-end

1) Smplayer Qt Mplayer front-end, with basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more. One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave… don’t worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume…

sudo apt-get install smplayer

Install smplayer themes using the following command

sudo apt-get install smplayer-themes

2) gnome-mplayer

A simple GUI for MPlayerIt provides a simple and clean interface to MPlayer. GNOME MPlayer has a rich API that is exposed via DBus. Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command.GNOME MPlayer can be used to play media on websites when used in conjunction with Gecko Mediaplayer.
Install gnome mplayer using the following command

sudo apt-get install gnome-mplayer

Install libdvdcss2 and w32 video codecs in Ubuntu 9.04 (Jaunty) Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This package is not available from the Ubuntu repositories due to licensing and legal restrictions.
To play encrypted DVDs, the libdvdcss2 package is essential.
For Ubuntu 9.04 (Jaunty) Users use the following procedures

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list

Then, add the GPG Key using the following commands

sudo apt-get install w32codecs libdvdcss2
sudo apt-get update
sudo apt-get install medibuntu-keyring
sudo apt-get update

For i386 Users install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

For amd64 Users install Codecs using the following command

sudo apt-get install w64codecs libdvdcss2

Using above download locations you can install most of the mutimedia codecs for ubuntu.
Mplayer Plugin for Firefox If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

15-07-2009 om 13:47 geschreven door Glenn Vermoortel

» Reageer (0)
Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.Ubuntu Christian Edition

About Ubuntu CE

BibleUbuntu Christian Edition is a free, open source operating system geared towards Christians. It is based on the popular Ubuntu Linux. Ubuntu is a complete Linux-based operating system, freely available with both community and professional support. The goal of Ubuntu Christian Edition is to bring the power and security of Ubuntu to Christians. Ubuntu Christian Edition is suitable for both desktop and server use. The current Ubuntu Christian Edition release supports PC (Intel x86). Ubuntu Christian Edition includes more than 16,000 pieces of software, but the core desktop installation fits on a single CD. Ubuntu Christian Edition covers every standard desktop application from word processing and spreadsheet applications to web server software and programming tools.

Along with the standard Ubuntu applications, Ubuntu Christian Edition includes the best available Christian software. The latest release contains Xiphos, OpenSong, E-Sword installer, and much more.

Ubuntu Christian Edition also includes fully integrated web content parental controls powered by Dansguardian. A graphical tool to adjust the filter settings has also been developed specifically for Ubuntu Christian Edition. These features are truly what sets Ubuntu Christian Edition apart.