Flytta knapparna “maximera”, “minimera” och “stäng” från vänster till höger

I Ubunti 10.04 valde man att flytta knapparna i fönstrena från höger till vänster. Varför man valde detta kan alltid diskuteras men det var tydligen för att underlätta då vi i västvärlden läser från vänster till höger. Då man tyvärr är van vid att hitta knapparna uppe till höger så blir man förvirrad varje gång som man skall klicka på dem. Då jag använder windows på jobbet 8 timmar om dagen och där sitter de till höger så lär man nog inte i första taget vänja sig att hitta knapprna till vänster.

Jag har därför valt att flytta tillbaka knapparna till höger. Det finns två sätt att göra det på och det är via det grafiska gränssnittet eller via kommandoraden. Jag tycker det är enklara att göra det via kommandoraden.

  1. Öppna ett terminalfönster (shell).
  2. Skriv ut de aktuella inställningarna.
    ~$ gconftool-2 --get "/apps/metacity/general/button_layout"
    close,minimize,maximize:
    
  3. Ändra nu inställningarna så knapparna flyttas från vänster till höger. Jag lägger även till en meny-knapp till vänster.
    ~$ gconftool-2 --set "/apps/metacity/general/button_layout" --type string "menu:minimize,maximize,close"
    

Uppgradera Grub Legacy till 2.0

Har kört Linux på min privata laptop i några år. Skall man vara riktigt petig så är det Ubuntu som är den distribution som jag använder. Har hela tiden följt med på uppgraderingarna som skett och jag måste säga att det har fungerat väldigt bra att uppgradera. Som bootloader används Grub som uppgraderas till version 2.0 i och med version 9.10 i Ubuntu. Ubuntu har dock valt att inte uppgradera booloadern automatiskt vid uppgradering av operativsystem utan detta måste göras manuellt. Bestämde mig idag för at göra uppgraderingen av Grub från version .097 till 2.0. Detta var busenkelt att göra för det vara bara att följa instruktionerna i Upgrading to GRUB 2 From GRUB

Today I enabled 2-step verification in Google Apps

Today I enabled 2-step verification in Google Apps. This means that if you want to you can use 2 factor authentication when logging in to Google Apps services such as GMail. You can’t force your users to use 2-step verification, they must opt-in themselves.

Anyway, I did opt-in with my account and downloaded the Google Authenticator to my Android that is used for generating codes. It all work well and now I’m using 2-factor authentication for my Google account.

When you want to opt-in for 2-factor authentication you can follow this step by step instruction that is available at Google.

Added a second monitor to my laptop with Ubuntu

I decided to move my 21″ monitor from my desktop computer to my laptop that runs Ubuntu. Since I have a DVI interface on my monitor and a HDMI interface on my laptop I had to buy a adapter. I bought one at Clas Olson and it worked perfectly.

Ok, now I had to switch my primary monitor so my external monitor holds the panels instead of the built in monitor that is the default monitor. After a quick google I found this perfect blog post that describes the problem and has a nice solution. Kudos to you Andrew.

First we have to create a shell script.

#!/bin/bash
# Author: Andrew Martin
# Credit: http://ubuntuforums.org/showthread.php?t=1309247
echo "Enter the primary display from the following:" # prompt for the display
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1 # query connected monitors
read choice # read the users's choice of monitor
xrandr --output $choice --primary # set the primary monitor

Save it with the name monitor-switcher.sh.
Make the script executable with ‘chmod +x monitor-switcher.sh. Now it’s time to run the script.

~$ ./monitor-switcher.sh
Enter the primary display from the following:
LVDS
DFP1
DFP1

As you can see I choose the DFP1 as my primary monitor.

Done. 🙂

I bought a new router today

Ok, I had problems with my old router so I decided to buy a new one. Didn’t I have warranty left on my old router? I couldn’t remember when I bought it so I had to search for my invoice. I know I bought it in an on-line store but didn’t remember which one and when. I found the invoice in my mailbox and it was InWarehouse and I bought it the 10th of June 2008. I had read on D-Link’s homepage that the warranty time was 2 years. ahhhhh, I missed the warranty time with 2 days…….. Ok, no good to cry over that so I bought a new one today.

The new router, also a DIR-655, is installed and seems to work perfectly. Before I installed the new one I saved my configuration from the old router so I just had to restore it on the new router. Do you think it worked? Of course not. Don’t ask me why, probably because the old firmware version was 1.30 and the new one was 1.31. Thank you D-Link! 😉 Since the old router still worked a could easily have it side by side.

When I told Erica later today that we bought the TV, my NAS and her computer at the same time she said it could not have been in June because she remembered it was in autumn some time. When looking at the invoice a second time it was 06-10-2008, 6th of October 2008. Great, I still have warrant left so now I have two routers 🙂

Updated my phone to Android 1.6

Today I updated my ADP1 to Android 1.6. I flashed the device using an updated recovery image (read more). The process is simple, this is  how I did it.

First we need to download the radio image and the recovery image from HTC.  After the files are downloaded it’s time start the update. This is a two step process, first we will install the radio image and then the recovery image.

Install the radio image:

  1. Connect the phone to the computer and mount the sdcard.
  2. Copy the the radio image to the root folder of the sdcard.
  3. Rename the file to update.zip.
  4. Unmount the phone.
  5. Turn of the phone by holding down the red “Power” (hang up button) … then confirming with “OK”.
  6. Reboot the phone by holding down the Home button (House symbol) and and at the same time pressing the Power button.
  7. Wait for the triangel. Then hold down alt-key and and press L.
  8. Press alt+S
  9. The update process will now start. The following text will be displayed on the screen:
    Android system recovery utility
    E:Can’t open /cache/recovery/command

    Home+Back – reboot system now
    Alt+L – toggle log t ext display
    Alt+S – apply sdcard:update.zip
    Alt+W – wipe data/factory reset

    Installing from sdcard…
    Finding update package…
    Opening update package…
    Verifying update package…
    Installing update…
    formatting BOOT:…
    Extracting radio image…
    Formatting SYSTEM:…
    Copying files…
    Writing BOOT:…
    Deleting files…
    Installation complete.

    Press Home+Back to reboot.

  10. Now press Home and the Back buttons and the phone will reboot. Be patient here because it will reboot a couple of times.
  11. The radio image is now installed and it’s time to install the recovery image.

Install the recovery image:

  1. Connect the phone to the computer and mount the sdcard.
  2. Copy the the recovery image to the root folder of the sdcard.
  3. Rename the file to update.zip.
  4. Unmount the phone.
  5. Turn of the phone by holding down the red “Power” (hang up button) … then confirming with “OK”.
  6. Reboot the phone by holding down the Home button (House symbol) and and at the same time pressing the Power button.
  7. Wait for the triangel. Then hold down alt-key and and press L.
  8. Press alt+S.
  9. The update process will now start. The following text will be displayed on the screen:
    Android system recovery utility
    E:Can’t open /cache/recovery/command

    Home+Back – reboot system now
    Alt+L – toggle log t ext display
    Alt+S – apply sdcard:update.zip
    Alt+W – wipe data/factory reset

    Installing from sdcard…
    Finding update package…
    Opening update package…
    Verifying update package…
    Installing update…
    formatting BOOT:…
    Extracting radio image…
    Formatting SYSTEM:…
    Copying files…
    Deleting files…
    Deleting files…
    Deleting files…
    Deleting files…
    Deleting files…
    Deleting files…
    Deleting files…
    Deleting files…
    Writing BOOT:…
    Installation complete.
    Install from sdcard complete.

    Press Home+Back to reboot

  10. Press Home+Back to reboot. At this point the image will be written to the phone. Now press Home and the Back buttons and the phone will reboot, at this point the image will be written to the phone. Be patient here because it will reboot a couple of times.

That was it. The Donut is now installed. 🙂

I’m now using my Google Apps account on Android

When I bought my Android phone 6 months ago I wasn’t able to use my Google Apps account for my own domain (merikan.com). The only account that worked was my GMail account, so I have been using this until today. I wasn’t so eager to switch since i have all my IM friends connected to my GMail account but now I have changed this so it was time to do a change on my phone to.

I didn’t want to reset my phone to make that change so I did a little googling on the subject. I found this blog post that put me in the right direction. All I had to do was to run the setup wizard and to be able to run that I install the Any Cut application from the Market. Add a short cut to Setup Wizard (I had two and it was the second one 😉 ). I ran the setup wizard and that was it. I’m now using my Google Apps account on my Android phone.

Still have problem with Anroid Market since it can’t connect with this new account. When I run it it says: “No downloads from Android Market”. If you know how to fix this, help is appreciated.