Tuesday, February 24, 2009

Coming up!

Coming up more posts on Plone and re-setting your lost Ubuntu user password.
Keep watching this page for more technical news!

Watch out the latest and greatest Ubuntu release in April! Ubuntu Jaunty release date is Thursday 23rd April 2009!

Sunday, February 15, 2009

How to run gnome scripts as root?

You probably are already aware of $HOME/.gnome2/nautilus-scripts/ directory..
You could copy any script here with executable permissions and this will enable the "Scripts" label on the right-click menu and the scripts available will be listed in the sub-menu.
Say, you have a script that needs elevated* privileges, but do not want to open up a terminal to type in the password, but want to open up the fancy dialog that blocks everything and just allows you to type in the "sudo" password.
You could use the 'gksudo' command to accomplish this task
My Scripts menu features a script "Terminal (as root)", which allows me to open a terminal with elevated privileges.

#!/bin/sh
gksu gnome-terminal
exit 0

There you go...now you will also be able to launch the UI dialog that allows you to type-in the sudo password as shown in the image here





WARNING: Running applications with elevated privileges is risky. You better know what you are doing.

Saturday, February 14, 2009

Command line updates to Ubuntu DEB packages

Ubuntu Desktop provides Synaptic which automatically informs you of the available updates, weekly/daily based on your choices (daily, every two days, weekly or every two weeks)
But, with the Ubuntu server distribution you do not have a GUI and what to do to check the available updates automatically?

Here are the commands.


sudo apt-get update


will update the meta-data of all the packages that are "known" i.e known to the package repositories added to your /etc/apt/sources.list

sudo apt-get upgrade

will download and install any updates that available to the currently installed packages.
However, this will need a user intervention that asks your approval to go ahead and install the packages
It is recommended you download and install the available fixes regularly to ensure your system is free of any know vulnerabilities.