Scrollback / Terminal History in screen or byobu

This is another case of “should have read the manual”, but there are ways to see previous output in both screen and byobu.

In screen: ctrl + a + [
In byobu: F7

These key combinations cause screen/byobu to enter copy mode, where you can navigate using vi keys, can set marks for copying using return and the like.

This should have been blindingly obvious, but I guess years ago I got used to using screen without scrollback. There more you know… the more it seems that you don’t know anything at all.

My Phone Won’t Load SMS Conversations

I posted this on Google+, but I’m not sure it’s quite the right venue for troubleshoorint queries.

I have an #android #troubleshooting query. I have an HTC Desire HD through 3 in the UK. When I go to open messages using the stock message application, it gives a “loading” spinner but never shows the messages. Inbox and notifications of new messages work fine, but I can’t load conversations. Example attached.

I found a thread from January with what appears to be the same issue, but the suggested solution is “wipe and re-import your messages”, which I’d prefer not to do (

Any thoughts?

Loading image

Plex Media Server Warning ‘Not Found’ Errors (Fixed)

The media browser on my LG TV has been acting up recently. Instead of listing the categories set up in Plex it pops up a dialog saying “Warning: Not Found”. It does this despite being able to see the Plex Media Server (going to ‘bowse sources’ or similar brings up the server’s name but selecting it gives the same error).

Fortunately Dunhillsmoker on the Plex forums had a solution:

  1. Stop plex service – sudo service plexmediaserver stop
  2. In Plex Plugins directory remove System and Framework bundle directories:
    • mv /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/System.bundle/ ~/plex
    • mv /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/Framework.bundle/ ~/plex
    • (note, depending on permissions you may need ot be root to do this)

    • Start plex service again: sudo service plexmediaserver start
    • This sorted the problem for me.

Adding Workspaces / Virtual Desktops in Cinnamon

Mousing to the “hot corner” in Cinnamon gives an overview of current workspaces, à la expose. Unfortunately a careless click can close one of those workspaces, as I found out last night. Equally, you may feel that the default 2 workspaces is too few and wish to expand upon that. Now, I think the numvber of workspaces should increase automatically*, but it’s nice to control such things. Unfortunately there is no “control panel” option to control the number of virtual desktops, and right clicking the workspace changer widget in the toolbar doesn’t seem to have any useful effect.

However, hit Ctrl+Alt+Down and there should be a ‘+’ icon on the right hand side which will add as many workspaces as you require.

Update: Apparently the hot-corner expose has the plus to add workspaces too. I guess I just didn’t see it there! Cheers James.

Project Euler Problem 25 Pitfalls

Project Euler problem 25 is reasonably straighforward. It asks you to find the first term in the Fibonacci sequence with more than 1000 digits. In ones like these, not reading the question properly is more likely to be your downfall than anything else. So:

  • Give the number of the first term which has 1000 digits, not the 1000-digit number itself
  • Make sure your Fibonacci number generator gives you the sequence correctly: ie F(1)=1 and F(2)=1. If you have F(1)=1 and F(2)=2, you’ll be off by one!
  • Lastly, and this only really applies to my own thickness… If the comment for your Fibonacci number generator says “returns nth Fibonacci number”, make sure it returns the nth Fibonacci number and not a Fibonacci number less than n.
  • If you’re getting a number greater than 5000 you’re off, recheck. Good luck!

Lenny to Squeeze Upgrade Problems
saved my server. It wasn’t booting after an upgrade to Debian Squeeze, despite following the upgrade instructions. Connecting to the serial console showed there were problems with finding root (grub error while parsing number, error 23) which was at md1.

Changing the first line to root (hd0,0) and adding initrd /boot/initrd.img-2.6.32-5-amd64 allowed the system to boot normally. I’m not sure why grub-setup didn’t add the initrd line, but I can forgive that as it’s working now.

Remember to update grub’s config once you have it booting.

Virtual Multiblog and .htaccess


I had problems with permalinks and Virtual Multiblog (yet another linky), basically that for every wordpress instance I added I would have to add another set of permalink-related Apache Rewrite rules to prevent individual entries 404-ing. This was fragile and prone to failure. Fortunately, there is a Proper Way To Do It:

RewriteEngine On
RewriteCond %{REQUESTURI} (/blog|/news)?/
RewriteCond %{REQUEST
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . %1/index.php [L]


From the readme. Lovely.

ScribeFire’s Arrow Keys Don’t Work

This post is composed within ScribeFire, the blogging extension thing for Frirefox (et al). And I can’t edit posts easily because using the arrow keys causes a blank javascript:; to fire. Bloody useless. Searching for solutions gets a lot of complaints (eg this chap), but not much at the root of the matter.

A workaround is to edit in plain mode. Solution to be posted if I find one.

Update: Turns out trying to post a video to a tumblr blog froze up ScribeFire real good. This doesn’t help with the original problem, it’s just more fuel for the (Scribe)Fire.

Update 2: Arrow keys work in rich text editor when I install ScribeFire as an addon for my Portable Firefox install (for Windows, arrow key troubles are under Linux). There are certainly a few issues raised on the posting for the last release, dated November 2011 (!)

[Solved] Could not create java implementation loader / No JRE Found

After installing LibreOffice Portable (from here), I tried to install the Google Docs Sync extension, ooo2gd. However, installation failed with the error message “Could not create java implementation loader”. There are many posts about this, most of which suggest either

  1. disabling, then re-enabling “Use a Java runtime environment” on the Tools > Options > LibreOffice > Java menu page
  2. Deleting a user profile

That didn’t work in my case because that menu page had no JRE listed, in spite of me installing the latest JRE from (at time of writing JRE 7). What sorted it was installing the last version, which is confusingly also called the latest, recommended version (Version 6 Update 27 at time of writing). I got it from here: After installing it appeared in the JRE list on the Java options page in LibreOffice and oo2gd installed correctly.