Archive for the 'ubuntu' Category

Download Album to Picasa (Picasaweb) in Ubuntu Firefox

If you want to download an album from a shared album on picasaweb and use the “Download to Picasa” button you normally get the following error message:

Firefox doesn’t know how to open this address, because the protocol (picasa) isn’t associated with any program.

1. Solution: DownThemAll

  1. Install the DownThemAll extension
  2. Restart firefox
  3. Go to the picasa web album
  4. Open the RSS-Feed (to get the RSS-Icon back eg you can use the rss-icon extension)
  5. Right click in the feed and select DownThemAll

Pro: You do not need picasa, download the images to a folder you want, no need to change the configuration
Cons: You need some addons, maybe it does not work on “private” albums?

2. Solution: Use Picasa with some small fixes

  1. Open about:config (like a n ordinary url) and change the following:
    1. set network.protocol-handler.expose.picasa to false
    2. set network.protocol-handler.external.picasa to true
    3. set network.protocol-handler.app.picasa to /opt/google/picasa/3.0/bin/picasa (seems to have no impact)
  2. Open the file ~/.local/share/applications/mimeapps.list and add x-scheme-handler/picasa=picasa.desktop under [Added Associations].
  3. Now click the “Download to picasa” button in the web album you want to download.
  4. There should be a popup which asks you what program to use for this link. If there is no popup you can change this setting under Edit -> Preferences -> Applications.
  5. Click Choose and select  /opt/google/picasa/3.0/bin/picasa (important: not /usr/bin/picasa, which opens only the main picasa program and not the “Download Album” dialog. (weird, especially because /usr/bin/picasa is only a symlink to the /opt binary).

Pro: Download into picasa (if you want that), no additional extensions needed,
Cons: Some configuration needed, Picasa needed (and download to this picasa download folder)

Source:

Advertisements

Never buy a Lexmark Printer!

Christmas 🙂

One present was a AIO Lexmark X6575 Printer with WLAN, etc. The installation process seamed to be easy. I installed the printer from a Windows PC, by inserting the CD and clicking Next a few times. BTW: The program asked me if I want to install the printer per WLAN or per USB, where I clicked WLAN. The answer: Connect your printer with an USB-Cable :-O

While the printer (maybe) works fine on Windows there seems to be no way to get it running under Linux or especially under Ubuntu. The OpenPrinting Community says the Lexmarks X6575 is only a paperweight.

Even Wine does not work for the installer because the installer says I only have 4294967295 MHz of the required 800 MHz.

Installation Lexmark 6500 series with Wine under Ubuntu

Installation Lexmark 6500 series with Wine under Ubuntu

Conclusion: Never buy a Lexmark Printer if you are working with Linux/Ubuntu! If you get it as present you may install it your Windows VirtualBox-Client, share it and use it from Ubuntu.

Does anybody have an ppd-file for that printer? The printer installer in Ubuntu may works with such a driver.

add to del.icio.us : Add to Blinkslist : add to furl : Digg it : add to ma.gnolia : Stumble It! : add to simpy : seed the vine : : : TailRank : post to facebook

HowTo convert ogg to avi with mencoder

If I screencast something, than most of the time I do it with recordMyDesktop which produces .ogg-Videos. If you need to convert it so you can show it to your friend or upload it to a video hosting page like youtube or so you have to convert it into another format. I chose avi as format.

Simply fire up this command to convert your file:

mencoder out.ogg -o out.avi -oac mp3lame -ovc lavc

  • out.ogg is the .ogg-file you want to convert
  • out.avi is the .avi-file you want to create
  • mp3lame is the used audio-codec (here mp3)
  • lavc is the used video-codec (here libavcodec)

For more information you can look at the MPlayer manual page.

Create thumbnails giving attention to the orientation

There is now phatch. Use the really nice tool to create thumbnails and other batch processes instead! You can install it with
sudo apt-get install phatch

Every now and then I need to get thumbnails of my pictures. I found some solutions, that create thumbnails, but none of them gave attention to the orientation of the image. So if I wanted to resize the images to 640×480 than the landscape pictures had a correct resolution of 640x480px but the portrait pictures had something like 640×850 or even 640×480 (deforming the picture to landscape). So I wrote a script to do this job for me.

Installation

You need to install imagemagick to get the script working. (sudo apt-get install imagemagick).

I installed the script as nautilus-script.

  1. Download the thumbnail-script and modify the script to your needs (See more at the bottom)
  2. Create the folder “~/.gnome2/nautilus-scripts/” and copy the script into this folder named create_tn
  3. Make it executable
    (chmod a+x ~/.gnome2/nautilus-scripts/create_tn)
  4. Restart nautilus per killall nautilus
  5. Now you can start the script by going into the folder where your original images are and right click anywhere in the white area or on a file and select Scripts -> create_tn.

Now the script creates thumbnails of all the images of your current directory and places it into the subfolder thumbnails.

Modify the script to your needs

  • Change the resolution of the thumbnails: Change the variables long and short in line 4 and 5. eg. use long=”1024″ and short=”768″ if you want a landscape resolution of 1024×768 and portrait resolution of 768×1024.
  • Ask every time for a resolution: If you want every time another resolution just uncomment the lines 11-14. Now you can enter every time you start the script a resolution like 800×600 or 1024×768 so width x height without spaces.
  • Use a better quality: The script uses a quality of 80% for image resizing. If you need a better one you can change it in line 34 by modifying the number after “-quality”. So you can replace 80 by 60, 100 or every other integer number you want.

Script-Sourcecode

If the Download from Rapidshare does not work you can copy and save the source:

#!/bin/bash
# Define a fixed resolution
long=“110”
short=“82”
## Enter a resolution every time
## Uncomment the next lines if you want to enter the resolution
## each time manually
#resolution=`zenity –entry –text=”Resolution: (eg. 1024×768)”`
#posx=`expr index $resolution x`
#long=${resolution:0:$posx-1}
#short=${resolution:$posx}
# Filecount for progressbar
progress=0
filecount=`find -maxdepth 1 -iname “*.jpg” | wc -l`
let “inc=100/$filecount”
mkdir -p thumbnails
# Creating thumbnails
(for i in *.jpg *.JPG; do
echo “$progress”;
echo “# Resizing $i”;
width=`identify -format %w $i`
height=`identify -format %h $i`
if [ $width ge $height ]; then
size=“${long}x${short}”
else
size=“${short}x${long}”
fi
convert resize $size quality 80 $i thumbnails/$i
let “progress+=$inc”
done
) | zenity progress title “$Creating thumbnails…” percentage=0

HowTo use Mozilla Thunderbird in Nautilus’ Send To… instead of Evolution (for Attachments)

Menu Screenshot Nautilus Script SendtoIf you want to send an E-Mail quickly per Mozilla Thunderbird in Nautilus like the Send To Feature you have to write a little script. (I found a .deb for replacing Evolution with Thunderbird, but it did not work. Instead it killed the whole feature. At the end you will get a menu like the one in the screenshot on the right.

  1. Because I do not need Evolution in Nautilus I removed the nautilus-sento app. To do this execute the following: sudo apt-get remove nautilus-sendto.
  2. Create a file in ~/.gnome2/nautilus-scripts named sendto.
  3. Make it executable with chmod a+x sendto
  4. Paste the following one-liner into the file and save it
    thunderbird -compose attachment="file://$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
    Note
    : If you have Thunderbird 1.5 (or minor?) you must replace “thunderbird” with “mozilla-thunderbird”.
  5. Restart Nautilus with killall nautilus

Now you can right click on a file and select Scripts -> sendto to send a file as an attachment in Thunderbird.

For more scripts you can goto Nautilus File Manager Scripts.

Prevent Repetitive Strain Injury (RSI) / Take a timed break with standard gnome software

If you work a lot on a PC you should also take many breaks. If you are like me and forget about this very often you could use this trick to force yourself to take the break.

Keyboard Preferences RSI Go to System -> Preferences -> Keyboard. In this Keyboard Preferences dialog switch to the Typing Break tab and select the following:

  • [x] Lock screen to enforce typing break
  • Work interval lasts eg. 45 minutes
  • Break interval last e.g 3 minutes
  • [ ] Allow postponing of breaks. (disabled for me because otherwise I would postpone it everytime 😉 )

Now you have to take a break every 45 minutes for at least 3 minutes. You should stay up go to the toilet or simply move and stretch your body.

Another possibility is to archive this is to use the external tool workrave.

Burn a simple data CD in Ubuntu Feisty out-of-the-box

Today a friend of mine called me for burning a CD. The last CD I burned with GnomeBaker, which had to be installed before. Now I did not wanted to install an app first and to try what Ubuntu has to offer just out-of-the-box.

Image Hosted by ImageShack.us I inserted a blank CD and and a second later I had a icon on my desktop and nautilus popped up and showed me the blank CD-ROM. I just dragged to content to burn from the folder and dropped it on the CD-ROM-Icon. Then I just clicked the Write-to-disc-button, and after I configured the burning speed I could see the burning process.

Free Image Hosting at www.ImageShack.us
There occurred no problems and the CD worked fine. Hmm I think since Windows XP there was a simple way to accomplish this task but I always had to install my old Nero Version ;-).