Linux

GUI scripting in bash

This week's techmail is GUI scripting in bash which takes a look at a few options for GUIfying your bash scripts: Zenity (for GNOME) and kdialog for KDE. My favourite is Zenity since I use GNOME, and it doesn't require all this whacky DBUS stuff (although I suppose maybe using DBUS makes kdialog more powerful, but I've never noticed a real lack in Zenity). It's a nice way to turn a shell ...

Read More

Linux

Tips and tricks for working on the command line

This week's TechMail is Tips and tricks for working on the command line which points out a few simple things you can do on the CLI to make life easier for yourself, such as renaming files or dealing with history, and some lesser-known character sequences you can use.

Funny thing is this tip has generated quite a few comments already on the site. Unfortunately, most people are talking about Windows and MS PowerShell (whatever ...

Read More

Linux

Zsh tab completion with subversion 1.5

This has ticked me off for a bit, and I finally decided to find out why. Tab completion in zsh was returning the following every time I tried to use it, after upgrading to subversion 1.5:

_arguments:comparguments:303: invalid argument: ARG

Looks like the reason is that the subversion developers changed "arg" to "ARG". So when I googled I found this helpful post:

ZSH Tab Completion Fix for Subversion 1.5 which basically points to this Read More


Linux

Try command-line looping for added efficiency

Last week's TechMail was Try command-line looping for added efficiency which discusses using loops in the shell to iterate over a number of items while using particular commands (i.e. for loops in the shell). Extremely useful stuff if you've ever needed to repeat something without wanting to hit the up arrow to change one thing in the previous command.

Read More

Linux

Using vi key bindings in bash and zsh

Been busy redoing my office this week and was busy with Mandriva release stuff last week so I forgot to put up the new TechMails. Last week's techmail was Using vi key bindings in bash and zsh, which looks at using, you guessed it, vi keybindings instead of the default emacs-style bindings. Personally, I like the vi keybindings better but I've been so used to the emacs style ones that I often ...

Read More

Linux

zsh history

Saw a few others on Planet Mandriva doing this so I figured what the heck, I'd do the same. I don' t use bash tho, I use zsh and on one box I have the extended history saved (timestamps), and the other I don't. Also keep in mind that I do a lot of stuff via sudo (so for instance, urpmi wouldn't show up because it's being called from sudo), and a lot ...

Read More

Linux

Secure temporary files in Linux

This week's TechMail is Secure temporary files in Linux which discusses how to properly secure temporary files, using things like loopback filesystems, separate partitions for /tmp and using appropriate mount flags. It's pretty simplistic stuff, but can make a huge difference on the security of your system.

Read More