shoes – A cross-platform Windowing Applikit

Posted on in Categories GNU/Open source, Linux, Linux desktop, Open source coding, OpenBSD, OS X, package management, programming, RedHat/Fedora Linux, Ubuntu Linux, Windows, windows vista last updated August 16, 2008

Shoes is a very informal graphics and windowing toolkit. It’s for making regular old apps that run on Windows, Mac OS X and Linux. It’s a blend of my favorite things from the Web, some Ruby style, and a sprinkling of cross-platform widgets. Shoes uses Ruby as its interface language.

FreeBSD portupgrade /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in open_db: database file error

Posted on in Categories FreeBSD, Howto, Troubleshooting, UNIX last updated June 22, 2008

The portupgrade command is used to upgrade installed packages via ports or packages. This is one of the tool you need to use under FreeBSD. However, recently, it give me out following error on FreeBSD r6.2-p10-amd64 bit:

missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in `open_db’: database file error

The solution is pretty simple tp fix this error, enter:
# rm -f /usr/ports/INDEX*.db /var/db/pkg/pkgdb.db
# pkgdb -fu
# rm -rf /usr/ports
# portsnap fetch && portsnap extract && portsnap update

Next find out current portupgrade version:
# pkg_info | grep portupgrade
Sample output:

portupgrade-2.4.3_2,2 FreeBSD ports/packages administration and management tool s

# pkg_delete portupgrade-2.4.3_2,2
# cd /usr/ports/ports-mgmt/portupgrade && make clean && make install clean
# portupgrade -a

See /usr/ports/UPDATING file for more information.

Download of the day: e tool to extract rpm, rar, zip and other formats under Linux

Posted on in Categories Download of the day, Linux last updated July 10, 2007

Sure you can use unzip, unrar, and other tools to extract files under Linux. e is little tool that can extract almost any archive in Linux so you do not need to remember which tool and what command lines are necessary.

You need ruby lanaguage installed on your computer to use this tiny tool. Apart from Ruby, e uses the linux tool file to determine what kind of archive it is dealing with. This tool should be available on any proper Linux installation. Once e knows the archive type, the appropriate extraction tool is executed.

You can read more about this tool, installation and other notes at Martin Ankerl blog.

See also