Archive for April, 2010

May 2 – Front Range on Track Kickoff

This Sunday evening at Avogadro’s Number, Adam Bowen will be presenting information about a vision for connecting Fort Collins with the rest of the Front Range via passenger train.  This event is free to the public.

BLUEGRASS MUSIC: Mike Finders, Paul Kiteck, Mark Leslie, Jan Peterson and Darrin Goodman will be performing between 5:00 and 7:00 pm, and I believe that Adam’s presentation will take place somewhere in the middle.

You’re Invited! May 2 Front Range on Track Kickoff

Free Pizza!  Bluegrass music!
Entertaining and Informative presentation by Adam Bowen!
and the good company of lots of other people who want to see passenger rail connecting our front range communities once again.  What better way to spend your evening?

Invite your friends and, yes, definitely forward this information to others who may already be dreaming of the day when they have an alternative to driving their car every time they want to go to Denver, Boulder or even to the next town.

When:  Sunday, May 2, 5 – 7 pm
Where:  Avogadro’s Number, 605 S. Mason St in Fort Collins

See you there!
Front Range on Track (FRONT) Board and Friends

www.frontrangeontrack.org
Our mission is to work for the re-establishment of passenger rail through city and town centers of Rocky Mountain Front Range communities to provide the necessary cost-effective transportation backbone to support the advancement of short and long-term regional economic prosperity and community vitality.

Making Life Easier With Scripts For Nautilus

In my previous post, I talked about how you can use Nautilus and the nautilus-image-converter as tools for resizing and rotating your images.  Although PCManFM is my preferred file manager, and I often use Thunar if I am bulk renaming files, I keep coming back to Nautilus for file management, network file browsing, image resizing/rotation, and for the ability to use custom scripts that help make life a little bit easier.  It is the latter that I wish to mention here.

Add Music Easily to the MoC Player Using Nautilus

The Nautilus script that I use most frequently is specific to the MoC (Music on Console) music player.  Credit for this one goes to Tyler “-z-” Mulligan. I’ve written in the past about the MoC Player, and of all of the music players that I’ve tried in the past, this one is by far my favorite.  So how does the script work?  Download Tyler’s script and save it in your ~/.gnome2/nautilus-scripts folder.  Change the permissions so that the file is executable.

$ chmod +x mocp.sh

Open up an instance of MoCp (the MoC player), open up Nautilus, and navigate to your music.  You can select individual files or large selections of files, then right click on the file(s), hover over the Scripts item, then select mocp.sh from the list.  This will add the file(s) to your MoCp playlist.  It’s an efficient way of loading music into your player, and is especially nice when you are looking to pick and choose only a song or two from various albums.

Mount and Unmount ISO Images Using Nautilus

Other scripts that I use on occasion are for mounting and unmounting an ISO file. Although there are other methods listed here and here, and likely even more here, I have had good luck with the mount.sh and unmount.sh files that were posted by Lori Kaufman on the Help Desk Geek website.

Save the mount.sh and unmount.sh files to your ~/.gnome2/nautilus-scripts folder, and change the permissions so that the files are executable.

$ chmod +x *.sh

Using Nautilus, navigate to your ISO file, right-click on it, then select “Scripts” from the menu; then select mount.sh to mount the file, or unmount.sh to unmount an already mounted file.

Check out Lori’s article for more screenshots and instructions.

Note to Self: Here are some other Nautilus scripts that I have not yet explored, but will put on the backburner for later.

Bulk Resizing & Rotating Images In Linux Using Nautilus

Although I’ve been meaning to share this information with you for some time, it was a comment in this post that recently prompted me to get busy writing.  Someone asked the question, why use Nautilus in OpenBox?  Gnome is the desktop manager that I use at work, and Nautilus is the file manager that I use most often on that machine; however, all of my personal machines run either OpenBox or Pekwm, and I wanted to still be able to use the scripts and features that I have grown to love that are available for Nautilus.

How to bulk resize images with Nautilus:

This is a feature that I use regularly in Nautilus.  Sure, there are likley other ways to bulk resize images, possibly with Imagemagic or some other cli tool, but the method that I am about to describe is fast and easy, and it works well for me.  First, make sure that you have installed Nautilus.

$ sudo apt-get install nautilus

Then install the nautilus-image-converter package.  If you have opened Nautilus, make sure that you close the application before installing the image converter package.

$ sudo apt-get install nautilus-image-converter

If you are a Gnome user, you may have to restart Gnome in order for the settings to take effect; if unsure, just log out and log back in. If not a Debian user and you wish to use the nautilus-image-converter application, you can find packages for other Linux distributions here:
http://www.bitron.ch/software/nautilus-image-converter.php

Open Nautilus and navigate to an image or selection of images.  Right-click on the image(s) and you will see that there are two new options listed near the bottom of your menu.  Resize Images / Rotate Images

Click on the Resize Images option.  If you have selected multiple images, this tool will bulk resize all of the images for you. Various resizing options are available to you:

  • Resize using a list of predetermined sizes
  • Scale images based on percentage of reduction
  • Specify a custom sizing scheme
  • Make a copy of the original file, resize it, and append “.resized” or some other custom wording at the end of your file names
  • Resize in place, meaning that you will be resizing your original file

If you are resizing a mass of high resolution images, go get yourself a cup of coffee and some breakfast because it’ll take a while, but far less time than if you had to resize each image individually with your favorite image editing tool.

Rotating Images With Nautilus

Of course, there are many tools that will allow you to rotate an image, and I will often times use alternate tools for image rotation (such as GPicview), but the nautilus-image-converter is a great choice if you wish to bulk rotate images, or if you have a need to maintain the integrity of your original image file and create a rotate copy.  As described above, using Nautilus, select the image or images that you wish to rotate.  Right-click on the image(s), select the Rotate Images option, and specify your desired options.  The choices are:

  • Select a preset angle (90ᵒ clockwise/counter-clockwise, or 180ᵒ)
  • Custom Angle (degrees clockwise)
  • Create a copy of the original file, rotate the copy, then append something to the file name, such as “.resized”
  • Rotate in place, which will rotate the original file

Problems/Issues for OpenBox Users

Nautilus has a tendency to take over your desktop if you are an OpenBox user.  If you are unsure of what I am saying, just launch Nautilus and you will see what I am talking about.  Your desktop wallpaper image will likely change or go away, and you will loose the ability to right-click on your desktop and obtain the beautiful menu that you are so accustomed to seeing.  Urukrama has written a very detailed guide to using OpenBox (much of which also applies to Pekwm) and he explains how to prevent Nautilus from taking over your desktop settings.

For a single-use (non-permanent) way to launch Nautilus in a way that it won’t take over your desktop settings, use:

$ nautilus --browser --no-desktop

Alternately, to make this setting more permanent (this is what I do…), type the following command into your terminal:

$ gconftool-2 --set /apps/nautilus/preferences/show_desktop --type bool False

Summary

As I stated before, there is usually more than one way to accomplish a particular task, and it’s likely that there are some lengthy and complex commands that will allow you to bulk resize images via cli, and perhaps there are some other GUI tools available.  The “best” method to accomplish a task is really a matter of individual opinion; the method that I have described is what I have found works the best for me.  If you have a bulk-image-resize procedure that works well for you, I’d love to learn about it, so please share it with us in the comments.

Return top

-==[ Hilltop_Yodeler ]==-

Welcome to HilltopYodeler, a place where we'll do some hollerin' about Linux, OSS/FOSS, CSS/XHTML, pickin', paddlin', tinkering, snow, rock, bicycles, and other stuff that we're freaky for. Much of what will be discussed here will be related to Ubuntu Linux, Debian Linux, Crunchbang (#!) Linux, Damn Small Linux, OpenBox, PekWM, and Gnome. Grab your coffee... pick up your piolet... tuck in your whiskey nipper... have paddle in hand... grease your boards... bend some wires... plug into your lappie, mow down some sushi... and get your fool-freak yodel on!