linux

My New Raspberry Pi

Last week I finally received my Raspberry Pi model B, and replaced my old HTPC with it. All I can say is I love it! Raspbmc has been able to play every video I've thrown at it without a glitch, including 1080p H.264 .mkvs and SD DivX/Xvid .avis. And the CPU temperature keeps well below 60℃!

The only issue so far are the sticky keys on the Microsoft Wireless Keyboard 2000, which makes typing really difficult. UPDATE: keyboard/mouse replaced by TV remote with HDMI CEC.

DIY NOOK Simple Touch with GlowLight

Tired of bedtime debates when you want to read your Nook and your significant other wants to sleep? Not willing to pay extra for the NOOK Simple Touch™ with GlowLight™? Or maybe living outside the US? Here's a solution!

B&N Nook Simple Touch + USB OTG cable + USB LED lamp= DIY Nook Simple Touch with GlowLight! :D
Just need:

  • rooted B&N Nook Simple Touch
  • USB OTG cable
  • USB LED lamp

And follow (any/some/all/a mix of) these instructions:

Enjoy! And no more complaints at bed, hopefully...

Konsole RPMs with Tab Cloning (KDE pre-4.9.0 git snapshot)

UPDATE (2012-06-13): updated konsole 4.9 beta RPMs are now available at kde-redhat's unstable repo.

If you regularly use SSH and Konsole, you may have noticed a missing "feature" after updating to KDE 4.8.0 (released on January 25, 2012): new tabs now always use the default profile instead of "cloning" the profile of the active tab. I mean, in pre-KDE-4.8 Konsole, you could run ssh://user@host:port in Krunner (that's the Alt+F2 menu), or konsole -e ssh -p port user@host, or even kioclient exec ssh://user@host:port and pressing Ctrl+Shift+T would open a new SSH tab. Add public key authentication and/or SSH connection multiplexing, and you got an automagically logged in remote session on each new tab for free!

I really missed this, so I submitted this bug report (with a couple of quick and dirty patches).

Turns out this feature was actually more like a "bug". In fact, the executed command was "remembered" by the current active Konsole profile. That's cool with SSH, but could lead to some nasty side effects, such as re-running a shell script for each new tab. Several bug reports showed this was really confusing and counterintuitive. In fact, this bug report is exactly the opposite of mine!

A proper fix has already been commited for KDE 4.9, which is scheduled for release on August 2012. But that's too much time lost just logging in again and again! (Ok, I could use SSHMenu or Remmina, but I love my konsoles :-D). So I set up a Yum repo with Konsole RPMs based on the excellent packages by the KDE Packaging Project for Fedora/RHEL and a snapshot of sources from Konsole's main git repo.

DISCLAIMER: This Konsole version includes tab cloning... but may also carry countless creepy horrible bugs and kitten-killing diseases!!!

  1. Install the kde-redhat Yum repo
  2. Download and install the .repo file into /etc/yum.repos.d/:

    # wget http://www.maxiberta.com.ar/repo/fedora-kde4.9.repo
    # mv fedora-kde4.9.repo /etc/yum.repos.d/

  3. You may need to enable the testing repos from both kde-redhat and konsole
  4. Install/update the bleeding edge version of Konsole:

    # yum install konsole

  5. Optionally associate a keyboard shortcut with the new "File -> Clone Tab" menu entry
  6. Enjoy all your free time saved from logging in through SSH again and again!

UbuntuOne Packages for Fedora

Installing UbuntuOne RPMs on Fedora

UPDATE (2012-11-01): updated and rebuilt for Fedora 18!
UPDATE (2012-06-21): updated and rebuilt for Fedora 17!

Yum Setup

  1. Download and install the .repo file into /etc/yum.repos.d/:
    # wget http://www.maxiberta.com.ar/repo/fedora-ubuntuone.repo
    # mv fedora-ubuntuone.repo /etc/yum.repos.d/
  2. Install the ubuntuone-client package and all of its dependencies:
    # yum install ubuntuone-client

UbuntuOne Client Setup

  1. Connect to UbuntuOne services and authenticate:
    $ u1sdtool --connect
  2. A popup window will appear where you can register a new user or use an existing account.
  3. The Gnome Keyring will ask you to enter you passphrase in order to securely store your UbuntuOne credentials

The UbuntuOne Sync Daemon will run automatically every time you log in.

That's all! Your ~/"Ubuntu One" directory is now synchronized with your UbuntuOne cloud storage :-D

UbuntuOne Client Usage

With the u1sdtool command you can:
  • check the status of the UbuntuOne client:
    $ u1sdtool --status
    State: QUEUE_MANAGER
        connection: With User With Network
        description: processing the commands pool
        is_connected: True
        is_error: False
        is_online: True
        queues: IDLE
    
  • list available shared folders:
    $ u1sdtool --list-shares
    Shares list:
     id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx name=Shared accepted=True subscribed=False access_level=Modify from=someone
    
  • subscribe to shared folders:
    $ u1sdtool --subscribe-share=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Troubleshooting

  • If something goes wrong, try restarting everything:
    $ u1sdtool --quit
    $ ps ax | grep ubuntu # there should be no ubuntu processes running 
    $ u1sdtool --start
    
  • You can also take a look at the logs, located at "~/.cache/sso" and "~/.cache/ubuntuone/log/".
  • Getting the following error while logging in?
    an exception representing an authentication failure
    Check that your date, time and timezone are ok.
  • Check the official Ubuntu One Server Status Dashboard
  • Check the official Ubuntu One FAQ
  • Check the official Ubuntu One Common Bugs, Troubleshooting and Debugging Tips
Subscribe to RSS - linux