Posts Tagged ‘Linux’

Search history in bash

Thursday, October 13th, 2005

This is another quick tip: to search typed history at a bash prompt, hit control-r and start typing a command you used previously. It doesn’t have to start with what is typed, as it returns matches which contain the searched text.

Hit control-r again (while searching), and it will jump back further in history and search with the same text.

Hitting enter when bash finds something will run the command while hitting the arrow keys will allow you to move around and edit the command. The escape key will also exit the search and place the historical command on your command line. To cancel the search entirely, use control-c and you’ll be returned to a clean prompt (although the matching string will be presented above where you’re typing).

Super-useful inputrc

Thursday, October 13th, 2005

You either want to place the following in ~/.inputrc or /etc/inputrc… I’ve found that while ~/.inputrc works sometimes, it doesn’t on all systems.


"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
set completion-ignore-case On

All lines except the last enable nice readline & bash cursor movement (control + arrow keys and what not) while the last line turns on case insensitivity for tab-completion, enabling you to have folders and files of mixed case characters while not having to type the capital letters. (You can have a directory called “Documents” and tab-complete by tying “doc<tab>

I’ve been enjoying the above for a while now, and I think it really should be the default settings for distributions.

Note: This works for Linux, Mac OS X, and *BSD. It might work for people using Bash on Windows, but you’re on your own there. (:

On creating an icon monster…

Thursday, September 15th, 2005

I fully agree with Tuomas regarding the over-use of icons everywhere.

You can, in fact, set GTK+ (and thus, GNOME) applications to not display button icons. At first it may seem a little weird (as you may not be used to it), but not having icons in the dialog buttons will probably grow on you over a short time.

Here’s what you type in a terminal (or in the run dialog entry form if you hit alt-f2 or select “Run Application…” from your main menu) to turn off the button images:

echo gtk-button-images=0 >> ~/.gtkrc-2.0

(For those who may not know, it simply appends the text “gtk-button-images=0” inside a GTK+ configuration file in your home directory, which tells GTK+ to turn off button images.)

Of course, this doesn’t change everything, but it does allow you to have cleaner looking buttons on dialogs and such.

Update: Jakub has a good comment on Tuomas’ blog: “Not only will cleansing the icon noise help with usability, it will also help with artwork maintainability.” (excerpt)

Nice little Linux-powered photo/media device

Thursday, February 24th, 2005

Linuxdevices.com has the scoop on a nice little device called the Giga Vu Pro, a media transfer and storage device. It will handle all of your JPEGs and raw photos, play audio and video, and will let you play DOOM on the go. Most importantly, it has an open SDK to encourage developers to write software for the little thing. It comes in 40 and 60 gig flavors and looks pretty nifty (although it currently has a high price tag).

Update: It looks like Hubert beat me to it.

Adobe interested in Linux?

Wednesday, November 3rd, 2004

It appears that Adobe, the makers of Photoshop and Illustrator (among other things), seem to be interested in Linux. Also, it looks like they are seriously considering releasing things as Open Source, too.

Just an educated guess: Adobe will probably open source some groundwork for making their apps work nicer on Linux. The list will most likely involve changes in things like the Linux kernel, GTK+, GNOME, font rendering, and in the X server.

After (and/or while) their changes have propogated, they may work on porting and releasing key apps according to some strategy. I’m not sure if that will include the heavy hitters of Adobe Creative Suite, but it would be nice. I’m guessing their first app will probably be a revised Adobe Reader (for the desktop and for Linux-based hand-helds) and then they will follow with their server stuff. Maybe after that time (or during it?) we may see other user-facing apps, like the suite.

Of course, this is all just a total guess and I really don’t know anything more than what CNet says.

Macromedia software on Linux?

Thursday, March 4th, 2004

It looks like Macromedia is considering porting to Linux. ‘Bout time.

I wonder what they plan on using to port their software. I hope it’s a real port, and not something like CorelDRAW for Linux (which was a buggy product that ran under Wine, then was discontinued).

Hopefully Adobe will do a nice port of their Creative Suite soon.

Attack of the worms

Wednesday, March 3rd, 2004

Have you been wondering why you have been getting a lot more worms in your email? So have I. It seems a battle of worm writers is afoot.

Most anti-virus and email filtering software isn’t catching these (yet), so it’s very annoying. At least all the machines I use either run Linux (Fedora) or Mac OS X, so nothing bad COULD happen, even if I did click on the files to launch them (like someone who doesn’t like better).