Pavol Rusnak #cypherpunk #hacker #openhw #privacy #bitcoin #newmediaart

openSUSE 11.0 Countdown

It all started with my mail to opensuse mailing list:

“I found out that Ubuntu has nice way to promote their new release - small banner which informs how many days are left before new version is out. See http://www.ubuntu.com/getubuntu/countdown for details. This banner also links to information page about distribution features and mainly to beta releases which can attract more testers. I think it would be nice if openSUSE had something similar. I would created it by myself but unfortunately I don’t have time right now.”

The same day I received beautiful design from Billy Juliani, added some PHP magic into it and together we created countdown buttons for openSUSE 11.0. The result can be seen here: http://en.opensuse.org/Countdown

command-not-found for openSUSE

During Hackweek I implemented project command-not-found for openSUSE.

Background: Debian and Ubuntu use patched bash, that allows to write handler, which is executed before “command not found” is written. That provides us a way we can help user in solving the problem. You can look at the picture to get the idea:

cnf

In first example, user types “epihpany” instead of “epiphany” and handler suggests correct spelling. After this user tries running epiphany, but it is not installed, so handler shows list of packages that provide this program. In the third example, user runs program that is not found, but package providing it is installed (meaning that program is not in user’s path - probably intended to be run only by root).

Package command-not-found and patched bash are available in BuildService or you can download packages directly from repository. Please test the packages and let me know if you have any ideas or in case you have found a bug.

Ah, I almost forgot :) You have to add these 3 lines to /etc/bash.bashrc.local or ~/.bashrc:

if [ -f /etc/bash_command_not_found ]; then
  . /etc/bash_command_not_found
fi

Handler for zsh can be installed in similar fashion. Read README in command-not-found package.