Tech stuff and info dump

Firefox 3.6.3: make new tabs open at the far right, at the end of the list of tabs

May 13th, 2010

When I uo Ubuntu 10.04, I also ended up with Firefox 3.6.3. This was all fine and dandy apart from one thing: when I right-clicked a link and selected ‘New Tab’, the new tab would come into being right next to the current tab, not at the end of my (usually long) list of tabs. Because I often open multiple tabs at once and prefer to read them left-to-right, I wanted to change this behaviour back to what it was in earlier versions of Firefox.

Here’s how it can be done….

In the window where URLs normally go, type the following:

about:config

Unless you’ve already done this and have unticked the button that says ‘Show this warning next time’, A page will lode with the title ‘Here there be dragons!’ and a warning message.

about-config

Click the button that says ‘I’ll be careful, I promise!’ to get to a page with a zillion options.

You can search via keyword by typing a word into the ‘Filter’ box. For example, if you type ‘tab’ in the Filter box, one of the items that appears in the ‘Preference Name’ column is

browser.tabs.insertRelatedAfterCurrent

Right click on this option and click ‘toggle’ to change the value from ‘true’ to ‘false’ if you want a newly opened tab to appear at the end of your list of tabs.

Mozilla has a handy page with information about some of the preferences that appear in about:config and links to pages that cover other about:config options.


Filed under: Customisation,Firefox
Tags: ,
May 13th, 2010 00:54:12

Ubuntu linux: using dmesg to find bootup messages

May 12th, 2010

To view your bootup messages, open a terminal (Applications -> Accessories -> Terminal in Ubuntu 10.04 etc.) and type:

dmesg

There can be a lot of information, so I like to use less to navigate through the message:

dmesg | less

(Use the spacebar to advance the text and ‘q’ to quit.)

If you want to save all the information to a file so that you can send it to someone or post it online, you can type:

dmesg > whatever_you_want_to_call_the_file

If you’ve just opened a terminal, you’re probably in your home directory; that’s where the file will appear.

(Make sure you don’t use the name of an existing file. If you want to check what other files are in your current directory, type ls on the command line.)


Filed under: Command line,Logs
Tags:
May 12th, 2010 12:33:11

Ubuntu linux: where to find error logs, messages, bootup messages, etc. and how to read them

May 12th, 2010

Various logs can be found here:

/var/log

They can be read by opening a terminal (Applications -> Accessories -> Terminal in Ubuntu 10.04, etc.) and typing:

cd /var/log
less name_of_logfile

(Use the space bar to go to the next page; type ‘q’ to quit.)

Most of the files in /var/log can also be viewed using Ubuntu’s Log File Viewer. In 10.04, this is found by navigating to System -> Administration -> Log File Viewer from the taskbar. There is a menu listing the available logs on the left-hand side of the Log File Viewer; click on the name of a file to view it.


Filed under: Command line,Logs
Tags:
May 12th, 2010 12:21:16

Firefox 3.6.3: Disable third party cookies

May 11th, 2010

Woo! New version of Firefox came with Ubuntu 10.4!

I couldn’t immediately figure out how to opt out of receiving third-party cookies, but got there in the end. Here’s where the tickbox is hidden….

Navigate to Edit -> Preferences and select the Privacy tab.

Under the ‘History’ heading, there is a line that starts “Firefox will:” and a drop-down menu. Select “Use custom settings for history” from the drop-down menu.

This will cause some new options to appear, including “Accept third party cookies”. Untick this box and click “Close”.


Filed under: Customisation
May 11th, 2010 12:32:26

Ubuntu 10.04: installing java and the CGoban 3/KGS client

May 10th, 2010

Now to get KGS working on the 10.04 machine….

First, java is needed:

sudo apt-get install openjdk-6-jre

A quick check of java -version tells me I’ve just installed

java version “1.6.0_18”
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

Then, I downloaded cgoban.jnlp from the KGS CGoban Download page by clicking the link entitled “CGoban for Java Web Start”.

I put this file on my desktop.

Run cgoban.jnlp by typing

javaws cgoban.jnlp

from the command line or double-clicking or right-clicking the file and choosing “Open with OpenJDK Java 6 Web Start”.

This causes a file called CGoban_3.desktop to appear on the desktop and opens CGoban 3 (which provides an option for connecting to KGS). The first time this runs, a security warning about digital signatures pops up; I ticked the “Always trust content from this publisher” box and clicked “Run”.

After this, CGoban and KGS can be accessed by double-clicking CGoban_3.desktop (or by right-clicking and selecting ‘Open’).

Doing this gave me an warning message:

Untrusted application launcher

The application launcher “CGoban_3.desktop” has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.

The only option was to ‘Cancel’ the launch.

To allow this to run, right-click CGoban_3.desktop and choose “Properties”. In the “CGoban 3 Properties” pop-up, choose the “Permissions” tab and click the box near the bottom that says “Execute: Allow executing file as program”. (This caused the file to display on my desktop as “CGoban 3” with a KGS go stone logo.)

Double-clicking (or right-clicking and choosing “Open”) now opens CGoban and allows one to connect to KGS.

The cgoban.jnlp file can now be deleted or moved elsewhere.

Note: I get a significant delay between clicking the icon and the CGoban main menu appearing – long enough that I tend to think I haven’t clicked properly or that something is broken. It is a muuuuuch longer delay than the unnoticeable pause I get between clicking and menu coming up in Ubuntu 8.04 with Java 1.5.0_22.


Filed under: cgoban/KGS client,Installation,Ubuntu 10.04
May 10th, 2010 16:49:01

Ubuntu 10.04: turn off automatic screen lock/disable re-login after computer has been idle

May 10th, 2010

Navigate to:

System -> Preferences -> Screensaver

to open the Screensaver Preferences" dialog box.

Uncheck "Lock screen when screensaver is active" at the bottom of the dialog box.


Filed under: Customisation,Ubuntu 10.04
May 10th, 2010 16:19:30

How to tell which version of java is running in linux (Ubuntu)

May 10th, 2010

Command line

To find out which version of java is installed, type

java -version

in a terminal window. This will give something like this:

java version “1.5.0”
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

Browser

You can also visit www.java.com’s Verify Java Version page. On this page, there is a pleasingly big red button that you can click which will tell you what version of java is installed.

Pressing the pleasingly big red button will tell you something like this:

Your Java version is 1.5.0_22

Of course, if one isn’t running the latest and greatest version, this page tells you to install the most up-to-date version, but I usually prefer to wait until there is an official Ubuntu update.


Filed under: Command line,General,java
May 10th, 2010 12:12:07

Ubuntu 10.04 – getting xmms to work again

May 09th, 2010

Well, yet again xmms isn’t working. Oh, life is hard when one loves deprecated software!

Now, to make matters worse, some of xmms’ dependencies have been deprecated as well.

Out of sheer perversity, I decided to install all the old schtuff to see if I could get xmms to work.

(I don’t necessarily recommend doing this in general, mind you – I usually try to avoid installing random deprecated things which may have security holes, conflict with everything else installed or generally cause annoyances. However, it was late and I was in a mood. Since installation, Since installation, I’ve had a closer look and I don’t think that adding these deprecated packages should cause any problems for a clean installation of 10.04, but it is possible that they could cause conflicts with other packages one might choose to install. For me, it is definitely worth the risk!)

Here’s what I did to get xmms working:

Went to:

Downloaded and installed:

  • libglib1.2ldbl_1.2.10-19build1_i386.deb

Went to:

Downloaded and installed (in this order):

  • libgtk1.2-common_1.2.10-18.1build2_all.deb
  • libgtk1.2_1.2.10-18.1build2_i386.deb

Went to:

Downloaded and installed:

  • xmms_1.2.10+20070601-1build2_i386.deb

Amazingly, this seemed to work!

…Mostly. I’m now getting some terrible moments where the track repeats until I move the mouse. It sounds rather like a CD does when it gets caught on and plays the same hyper short bit of a track over and over again until someone with Fonz power hits it. There was certainly no such bad behaviour a couple days ago when I was happily xmms-ing away on Jaunty.

Just for kicks, I tried Audacity and, interestingly enough, it seems to be plagued with the same skippy repeaty problem.

I don’t think this skipping is a problem with xmms; I think it’s a problem with something else. If this happens, closing and re-opening xmms sometimes works. If other applications are running that involve audio, try closing them. On one occasion, I had to restart the computer, but after that xmms worked fine.

Not sure what’s going on. Audio is a black art. I’m going to bed.


Filed under: Fixes,Ubuntu 10.04,xmms
May 09th, 2010 03:11:02

Ubuntu 10.04 – Move close/maximise/minimise buttons to the right-hand corner of the window (GNOME desktop environment)

May 09th, 2010

Now that I’ve moved the close button to the right of the maximise and minimise buttons, I want to move all three buttons to the right-hand side of the window.

On the computer I don’t care about messing up, I’m trying ubuntu-tweak which I saw mentioned on the Ubuntu forums.

Here’s what worked for me.

I went to http://ubuntu-tweak.com/ and clicked the big button on the left hand side of the page to download and install the latest version of ubuntu-tweak (version 0.5.4.1). Ubuntu automagically gave me the option to install; it was quite a painless procedure.

Once installed, I could access ubuntu-tweak by navigating to:

Applications -> System Tools -> Ubuntu Tweak.

To move the close/maximise/minimise buttons to the right-hand side of the window in a GNOME desktop environment, find:

Desktop -> Window Manager Settings

on the tree view on the left. Click on:

Window Manager Settings.

There, right at the top, in all its glory, sits

Window Titlebar Button Layout

and the choice of “Place”. Click the radiobutton to select

Right

and viola! Life is a better place in which to live. I feel so much better now.

(This seems to sort out the position of the close button in relation to the maximise/minimise buttons as well, so the previous post is unnecessary.)

Note: I’ve never used ubuntu-tweak before so can’t make any guarantees about its safety, reliability, compatibility, etc. As stated before, I’m trying it out on a computer that I’m happy to mess around with.


Filed under: Customisation,GNOME,Ubuntu 10.04
May 09th, 2010 00:52:54

Ubuntu 10.04 – changing the order of the maximise/minimise/close buttons

May 07th, 2010

Well, I’ve finally started the process of migrating my computers to Ubuntu 10.04. This means several rounds of fixing things. Might as well post it all here as I’ll be doing this at least three more times. >+:Sigh:+< One of the things I wanted to do was put the close button on the right of the maximise and minimise buttons, as they were situated in previous versions of Ubuntu. Note: follow the instructions in the above post to move the buttons to the right hand side of the window and change the order of the buttons so that the close button is on the right of the maximise/minimise buttons. Follow the instructions below to leave the buttons on the left-hand side of the window but to put the close button to the right of the other two.

This site had instructions for changing the order of the buttons:

  • Open the configuration editor (press Alt+F2 and type gconf-editor)
  • In the left-hand tree, find app -> metacity -> general and double-click on the field called button_layout.
  • Change the value field to menu:minimize,maximize,close to move the close button to the right of the minimise and maximise buttons.

Thank you, Codigo Manso!


Filed under: Customisation,GNOME,Ubuntu 10.04
May 07th, 2010 18:52:43