Archive for the 'Edgy' Category

Finally Fixed My Feisty Freezes

I went back to Edgy.

Sorry for the misleading title.  I just couldn’t get anywhere with Feisty, and I’d had enough.
Down-grading was an issue-and-a-half too; a week full of frustration.

I went for my Ubuntu Edgy CD, but after installing was unable to log into a GNOME session, the screen froze before anything had loaded. I tried the same thing with my Xubuntu Edgy CD and was able to log into a XFCE session, but not a GNOME one.

After squeezing my home folder into some backup space, I re-installed this time starting with the /home folder fresh. This time there was no problem getting into GNOME so I assumed there was some configuration issue.

After copying back most of my /home folder, save any .gnome, .gnome2, etc folders, I proceeded to re-install all the programs I need, only to find the same freeze on starting a GNOME session.

Rather than re-installing (I was getting pretty hot around the collar), I worked my way through each configuration file; finally resting on my ALSA sound configuration file; .asoundrc.

I don’t know what’s wrong with it, as it hasn’t changed since I got my sound card working a while back. I do miss surround sound, but for now I’m just happy to have a working, non-freezing PC.

Step two of the conversion to Ubuntu

I bought and assembled my parent’s new PC yesterday. I got them a 19in widescreen LCD, which looks gorgeous. I want one!

This was the first time I’ve installed Ubuntu onto a completely fresh machine, no Windows here. Almost flawless setup, except for my bungling of the partitions, and it took next to no time.

Downloading updates over ADSL was not so quick.

Now all I need to do is identify and install any packages that they may need. First important thing is to setup the ability to browse a Windows network, as that is how they will be getting their old data off their old PC. I’ve never done that before, so I will need to work on that. SAMBA I guess??

The only other thing I need to consider is their printer, a problem which I have never had, seeing as I almost never print things out (only PDF printing).

I’ve already installed all the necessary codecs and things to play .mp3’s, .avi’s and DVD’s. Other than that Ubuntu seemed pretty complete for applications. I don’t want to install too much, so I can give my parents a demo of how Synaptic works.

I also think I’ll install some different window managers to give my parents the choice. With the release of XFCE 4.4.0, I think I’ll install xfwm at least (love that native transparency).

I recently went through some RSS feeds checking out some new Beryl features, which look rad. I think my dad was quite interested in Beryl, so I might include that too.

And I also am thinking of putting Metisse on there as well. I’m hoping to give the Mandriva 2007 One Live CD a go today.

Hopefully I’ll have everything just working by the time I take it over, for a seamless transition from Windows to Ubuntu.




Finally getting the latest version of Beryl

I was getting tired of having to wait until I could update to the latest version of Beryl, since it was announced on the 26th of December.

Turns out I had little bit extra in the line for the Beryl repository, which was keeping me from getting any updates. Perhaps it changed after the Beryl site was taken down?

If you’ve been following this post, you may have the same problem. Or you may be smarter than me and decided to act on this a lot earlier.

Anyway, long story short; the correct repository to get the latest version of Beryl is

deb http://ubuntu.beryl-project.org/ edgy main

Not that which I had previously (deb http://ubuntu.beryl-project.org/ edgy main-edgy)

Edit: If you also want to ensure that the packages are authentic, you’ll need the updated GPG key

wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

With the new version of Beryl you get a nicer and more organised settings manager, and some new plugins/toys.

Kayee likes the snow and water effects.

Beryl Snow Effect

Beryl Water Effect following the Mouse Pointer

And the 3D desktop effect (as in the windows are 3D off the desktop) is great too.

Beryl 3D Desktop Effect

But seeing as I am just wrapping up watching the entire Stargate series, I just love the ‘beam-up’ animation!

Sadly it doesn’t lend itself to screenshots :(

(I had a similar problem with the sidekick animation when I first installed Beryl)




Using Custom Actions in Thunar to Resize JPEG Pictures

So this is a follow on from my last post, where I used a simple bash script that will resize JPEG pictures into 1024×768 resolution (or whatever resolution you wish).

I want to customise this a little more, and incorporate it into Thunar’s Custom Actions. People do similiar things for Nautilus.

The first thing to do is create a folder for the script. I decided to put it in the configuration folder for Thunar, under a freshly made scripts folder.

When mousepad opens, just paste in the script. Don’t forget to set the script to executable.

mkdir ~/.config/Thunar/scripts
mousepad ~/.config/Thunar/scripts/resize1024×768 &
chmod +x ~/.config/Thunar/scripts/resize1024×768

Next fire up Thunar, and choose the Configure Custom Actions item from the Edit menu.

Custom Actions in Thunar

From there choose to add a new custom action.

Add Custom Action to Thunar

When the next dialog appears, fill out the Name and Description fields to your liking.

Naming the Custom Action

Next step is to enter in the command to use for this custom action. Obviously we want to run our script, but in addition we also need to specify a command parameter that Thunar uses when executing the custom action.

For this action I decided to use the parameter %N, which passes the selected filename(s) (without the path). This way I can convert one file, or multiple files.

/home/liam/.config/Thunar/scripts/resize1024×768 %N

Set the Custom Action Command

The last thing is to set the Appearance Conditions, which specify when Thunar will display the custom action. Remembering Linux is case-sensitive, the string I used was

*.JPG;*.jpg;*.JPEG;*.jpeg;

Custom Action - Appearance Conditions

Once that’s done, you can close the dialog, and right-click the nearest jpeg picture and resize it!

Resizing a JPEG file using the Custom Action

You can find other useful scripts on the page dedicated to Thunar custom action.

After even further digging in the Ubuntu forums, I found someone who made a Zenity script to resize their pictures. So that’s next in line to do. It looks really quite nice!




Creating a Picture Resize Script

Facing the daunting task of resizing my recent photos to put on Flickr, I decided there must be a script out there to automate the process. I recall encountering one or two in the Ubuntu Forums.

Sure enough the information was there.

#!/bin/sh
# author: Bas Wenneker
# email: sabmann [ta] gmail [tod] com
# Use this script to batch resize all images in a folder.
# First open the folder and then use the script.
for file in `ls -l`
do
name=`echo $file | cut -f1 -d.`
convert -geometry 640×480 -quality 65 $file ${name}_640×480.jpg
done

The script is very straightforward, if you know a bit of bash dash (kudos: drone) scripting. I only know very little, but I think I’ve got this one down.

It simply loops through each file in the folder and removes the extension from the filename. It then uses the convert function to convert the file into a jpg of resolution 640×480 and quality 65, while renaming the file to include ‘_640×480′ at the end.

In the same thread on the Forums, some extra alterations were made to put the resized files in a sub folder, and to remove the EXIF information from the picture (if they are photos from your camera)

 

#!/bin/sh
# author: Bas Wenneker
# email: sabmann [ta] gmail [tod] com
# Use this script to batch resize all images in a folder.
# First open the folder and then use the script.
mkdir ./thumbnails
for file in `ls -l`
do
name=`echo $file | cut -f1 -d.`
convert -strip -geometry 800×600 -quality 80 $file ./thumbnails/${name}_800×600.jpg
done

I quite liked the ability to put the resized images in a subfolder (thumbnails), but not the removal of the EXIF information (-strip).

Another thing that I wasn’t interested in was that the script was a batch resize, which attempts to convert all the files in the folder, including videos. After chunking my computer up for some time on a large .AVI file, I decided that I would want this to be a once per file thing.

After changing these things and the changing the resolution/quality to what I wanted, I came up with this version of this script

 

#!/bin/sh
mkdir ./1024×768
for file
do
name=`echo $file | cut -f1 -d.`
convert -geometry 1024×768 -quality 100 $file ./1024×768/${name}_1024×768.jpg
done

I saved the script in a location, which will matter more later, and then applied execution permissions to it.

chmod +x resize1024×768

Once this was done I could run the script with the name of the photo as an argument (I guess you could call it that)

resize1024×768 img_0001.jpg

And hey presto, the photo is resized and placed in a sub folder 1024×768.

However this was only the starting point. The script was for designed to be accessed by Nautilus and the context (right-click) menu. I don’t have or want Nautilus, so …

While I could run the script straight from a bash prompt, I’d rather use it in conjunction with the Custom Actions in Thunar.

Stay tuned for that …

Next Page »


My Photos

James getting dragged up the hill

Another insane run

img_0104

Insane run

More Photos

How many times has this site been visited?

  • 135,007 apparently

Site Stats