Install Flash Player 10 in liferea

Installing flash player 10 in Ubuntu does not install it for Liferea

The fix for this is very simple:

  1. First install Flash Player 10 using this Tutorial

  2. Next execute this command in the terminal:

    sudo ln -s /usr/lib/firefox-addons/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/libflashplayer.soFlash Player 10 should now work in Liferea`

Tip: Purge Auto-installed packages with Aptitude

When switching from apt-get to aptitude, I discovered that aptitude, unlike apt-get, does not purge configuration files of auto-removed packages when given the command aptitude purge package. The fix for this is very simple.

In order to purge configuration files only when the purge command is given you must either specify the --purge-unused option in the command or create an alias. To create an alias add this alias command='sudo aptitude purge --purge-unused' to ~/.bashrc. Command is the command that you would like to assign for purging the packages.

To always purge configuration files for auto-removed packages add Aptitude::Purge-Unused=true to /etc/apt/apt.conf.d/05aptitude. This will cause aptitude to always purge configuration files for all auto-removed packages regardless of weather or not the command was aptitude purge or aptitude remove.

Make Firefox 3's autocomplete bar work with a dark theme

I use MurrinaAngustifolium as my gtk theme but, because it is a dark theme, it does not always play nicely with other applications. One problem that I have finally fixed is the drop-down auto-complete menu for the location bar. Put the following code in your userChrome.css file (or use stylish).

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.ac-comment {
  font-size: 100% !important;
  color: #dddddd !important;
}
.ac-comment[selected="true"] {
  color: #56aaff !important;
}

.ac-url-text {
  font-size: 100% !important;
  color: #555555 !important;
}

.ac-url-text[selected="true"] {
  color: #666666 !important;
}
.autocomplete-richlistbox {
  background: #1a1a1a !important;
}
.autocomplete-richlistitem[selected="true"] {
  background: #000000 !important;
}
tooltip {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

This code also makes some of the tooltips black.

Tip: Pause a command line program

This trick is known by many but it can't hurt to mention it once more. I sometimes find myself in the middle of running a program in the command line but would like to check on something before I continue. The easiest way to pause a program in the command line is to hit Control+Z. To restart the command simply type fg. Do not close the terminal window or restart your computer because the paused program will close.

Ubuntu hardy upgrade status: Buggy but working

I ran into a few problems during the upgrade but all of them were fixable.

Partial Upgrade fix: Downgrade non-ubuntu packages to their ubuntu versions if an ubuntu version exists. My system refused to complete the upgrade (and I had to upgrade it through aptitude) because of a few package conflicts (mostly from the schmidtke repository).

Numpad Fix: My computers numpad stopped working after upgrading. Somehow an acceptability option had been turned on. To fix this go to System > Preferences > Keyboard and go to the mouse keys tab and uncheck the checkbox.

Remove custom G15 drivers: A while back I had installed the G15 drivers based on a tutorial posted on the ubuntu wiki. These drivers should now be uninstalled as Ubuntu Hardy comes with its own drivers.

Everything appears to be working fine now.

'Pause' command in linux

Windows comes with a very useful pause command. Linux does not. This can be problematic when running programs in the terminal from the GUI. If a program runs in a terminal but did not originated in the terminal (i.e. you double click on a file in nautilus and select run in terminal) the terminal window closes immediately when the program finishes. This makes it impossible to read the output from the terminal.

This function can be added to your ~/.bashrc file:

function pause(){
   test $*  read -p "$*" || read -p "Press enter to continue..."
}

I found this code on www.cyberciti.biz but edited it to allow for no arguments.

Tip: Faster Ubuntu upgrade

I am currently upgrading to Ubuntu 8.04 and so far so good. For the past releases I have upgraded from the standard server but that was very slow (8 hour download).

Fix: Use another server.

My current download is almost complete and my download speed is currently at 164kb/s (my max, thanks AT). To change the download server, simply open System > Administration > Software Sources and select download from other. Pick a random server in your country and hope for the best (the pick the best server button does not find the least bogged down server, it finds the closest server). The Ubuntu teem should make this happen automatically. The System Updater should find the mirror with the greatest download speed and use that server for its upgrade.

Imageshack: Media hosting for the web

I have seen imageshack used a lot but have never tried it myself until now.

Problem

Bloggers image hosting is limited (100mb) and does not work with lightbox.

Solution

Imageshack works great with blogger and lightbox. It allows for easy posting of small thumbnails that link to the bigger image. Normally the thumbnail would link to a web page containing the full version of the image but this is not compatible with lightbox (lightbox needs the actual image). The fix is very easy: Simply change the image link to the thumbnail link but remove the .th from in front of the extension.

My ~~main~~ complaint is that the thumbnails are too small. I could get around this by using the full image and scaling it down with css but this would wast some of my 300mb per image per hour bandwidth (not really a problem now but may become problematic with more readers).

Edit: My main complaint is that they loose images. Imageshack (along with pretty much every other media hosting site) is great for forum posts, but not for semi-permanent blogs.