Monday, March 29, 2010

Gnome: Mail notification

If you have the habit of checking your mail (specially Gmail) too often, then you should try mail-notification. It will notify if you have a mail on your desktop panel. You can set it up to show all your mail accounts on your desktop.

Saturday, March 13, 2010

SSH: Login Without Password


Just have this in mind:

If you want to login from machine F to machine T through SSH, the "public key" of F should be in "authorized_keys2" file in T.

You need to have static IP/host-name on both machines for this to work

In machine F:

To create a public key for F, use the command: ssh-keygen -t rsa.
When prompted for paraphrase just click enter.

The created public key will be ~/.ssh/id_rsa.pub.

In machine T:

Copy the contents of this (id_rsa.pub) file to ~/.ssh/authorized_keys2 file in machine T.
If the folder .ssh does not exist, create it.
If the file authorized_keys2 does not exist, create it.

That's it!


Sunday, January 24, 2010

Keyjnote: Great PDF presentation tool

If you use Adobe Reader to present your pdf, then you should try KeyJnote/Impression. It is a python script for adding eye candy to your presentation.

If you are interested check out a few youtube videos to see what it can do.

You can install it through your package manager. Search for "keyjnote".

After installation just type:

keyjnote pdf_file_name.pdf

During the presentation try pressing the following:
1) Enter - spotlight
2) Tab - slide arrangement
3) b - black screen
4) w - white screen
5) t - timer
6) z - zoom (where your mouse points)
7) q - quit

There are more commands on their website.

Using a simple .info script you can add more slide transition features.

Name your script as "pdf_file_name.pdf.info". Add the following for each slide in your pdf.

PageProps = {
1: {
'title': "slide1",
'transition': PagePeel,
},
2: {
'title': "slide2",
}
.......
}




Ubuntu: Synaptic without password

WARNING: It is not good practice to avoid entering passwords for applications. If you feel lazy (like me) do this, but only on your laptop. Do not use this on desktops, specially servers.

To use synaptic package manager without having to enter password you just need to add a line to /etc/sudoers file. Add the following line at the end of the file.

username ALL=NOPASSWD: /usr/sbin/synaptic

"username" - is your username on the machine.

You can do the same to run any other application without having to enter your password.

e.g. You can add the following line to make application gshutdown work without password
username ALL=NOPASSWD: /usr/bin/gshutdown



Thursday, January 14, 2010

Python: Add segment name to a .pdb file

Some times it is easier to view .pdb files with segment names in viewers like VMD.

Here is a python script you can use to add segment IDs to a .pdb file.

add_segid.py - Download