Skip to navigation

Archive for the 'Noobs' Category

Running X apps (like zenity) from crontab (solving “cannot open display” problem)

Friday, January 2nd, 2009

I’ve written a small script that checks whether I have queued mail and that displays a notification icon via “zenity –notification” in case I do. I wanted to run it using ~/.crontab but it wouldn’t run. First, I got error messages from the cron daemon that looked like this:
(zenity:22981): Gtk-WARNING **: cannot open display:
Sure, I […]

How to add a custom welcome message to your Xubuntu or Ubuntu login screen

Friday, November 28th, 2008

I like the graphical login screen on my laptop to display my e-mail address. In case I lose the laptop and an honest person finds it, they should at least have the possibility to return it.
In the latest versions of Ubuntu or Xubuntu, you can change the welcome message via the settings menu for “Login […]

R: Logical operators: Beware of the difference between “&&” and “&”

Friday, September 12th, 2008

There’s a tricky bit about R’s logical operators, and though it’s described in the help pages that you get when you type, for example,
?”&”
I still fall from it from time to time. (I think it has to do with my rudimentary knowledge and usage of “&&” for if-statements in bash shell scripts.
Below I just go […]

Screenshots with ImageMagick’s “import”

Monday, April 14th, 2008

For quick-and-dirty screenshots ImageMagick’s import command is unbeatable.
sudo aptitude install imagemagick
ImageMagick is worth getting for a lot of other reasons, too, just see man convert or man mogrify after installing.
Here are the most important options for import
import pic.jpg
This changes the cursor to a crosshair — draw around the region you want a screenshot of; […]

Quickly configure exim (MTA) on Gutsy

Monday, April 14th, 2008

sudo dpkg-reconfigure exim4-config
This will give you a graphical interface and guide you through each step to get the basic setup.