Archive for the ‘Linux’ Category

Steps to install Oracle Express Edition (XE) database 10g on Ubuntu 11.10 (Oneiric). Download the Oracle XE deb package (free registration is required). Double click the downloaded file and select to install it. In terminal run sudo /etc/init.d/oracle-xe configure. You will be prompted to enter the following parameters: HTTP port number, database listener port number, [...]

Saturday, February 4th, 2012 at 11:21 | 0 comments
Categories: Database, Linux
Tags: ,

GNU/Linux includes many utilities for working with text files through the shell. In this post we take a quick look at accessing and manipulating text files in a “column-wise” mode. Suppose you have the following two files, each with two columns separated by the TAB character. $cat file1 Alice   Paris Bob     Tokyo Mary    London John    New York $cat file2 [...]

Monday, October 17th, 2011 at 17:02 | 0 comments
Categories: Linux

Sed can be used to strip out all HTML or XML tags from a file and get the plain text version. Suppose you have file gnulinux.html with the following contents: <p>The combination of <a href=“/gnu/linux-and-gnu.html“>GNU and Linux</a> is the <strong>GNU/Linux operating system</strong>, now used by millions and sometimes incorrectly called simply “Linux“.</p> Tempting but incorrect [...]

Monday, October 17th, 2011 at 12:16 | 0 comments
Categories: Linux

If you use TrueCrypt under Ubuntu 11.04 Natty you would have noticed an annoying behaviour. Under previous versions an icon is present in the system tray which remains there whilst a volume is mounted even if the TrueCrypt window is closed. Under Unity the tray icon is not shown. If you accidentally close the window [...]

Tuesday, August 16th, 2011 at 02:16 | 0 comments
Categories: Linux

After finally getting some time to fully read up on Mono (especially on the excellent The Source) I have decided it is best to remove it from my system. The Open Sourcerer has a nicely written up set of instructions for 10.04 Lucid Lynx and 10.10 Maverick Meerkat.

Wednesday, December 29th, 2010 at 00:49 | 0 comments
Categories: Linux

Here’s a quick way to remove empty lines from a file using the Linux command line: cat file1 | sed /^$/d > file2 Where file1 is the input file containing empty lines and file2 is a newly created file with empty lines removed.

Wednesday, September 22nd, 2010 at 16:50 | 0 comments
Categories: Linux

Changing the port number of SSH daemon is a quick way of reducing the number of SSH brute force attacks your server might face (check the file /var/log/auth.log to see if there are many failed SSH login attempts). Just to be on the safe side, create a backup copy of the SSH daemon config file. [...]

Friday, September 3rd, 2010 at 08:56 | 0 comments
Categories: Linux

Here’s how to disable the annoying Update Manager pop-up (technically a “pop-under”) and instead have the update icon displayed in the notification area. Hit Alt-F2 to open the “Run Application” dialog. Type in gconf-editor to run the GNOME Configuration Editor. Navigate to Apps > Update Notifier. Untick the auto_launch checkbox.

Saturday, August 7th, 2010 at 05:56 | 0 comments
Categories: Linux
Tags:

This post is an update on integrating Thunderbird with Ubuntu’s notification system. For Ubuntu 10.04 Lucid Lynx it supersedes my earlier post on the topic which was applicable previous versions of Ubuntu (Jaunty and Karmic). The big difference in Lucid Lynx is the Indicator Applet and the “Me Menu”, both of these incorporating features related [...]

Thursday, August 5th, 2010 at 14:59 | 2 comments
Categories: Linux

Password proliferation is a serious problem on the web today. Most websites require users to register and create a username/password combination for future authentication. Unfortunately not many websites support reusable logins such as OpenID. The main problem is that of human memory. It is of course not reasonable to expect the user to remember 100+ [...]

Saturday, July 31st, 2010 at 04:07 | 0 comments
Categories: Linux, Web, Windows
Tags: