Friday, December 30, 2005

Build a gentoo stage1 tarball without catalyst

I've written a script that will generate a Gentoo stage1 tarball without catalyst. It basically emerges packages.build to /tmp/stage1root (much like catalyst). But rather on relying on a stage3 tarball to generate the stage1 as catalyst does, my script will use your current system compiler, binutils, glibc, etc to build it. One could also use this within a chroot also.


For example, I downloaded the Gentoo stage3-i686-2005-r1.tar.bz2. I then untarred, mounted, then chrooted into it. From there, I upgraded my compiler to gcc 4.1, binutils to 2.16-r1, and glibc to 2.3.90 (Conrad Method 8.3) . I then use this script to generate a stage1 with the new toolchain. The resulting tarball can now be installed via the normal bootstrap.sh && emerge - e system method. All the overlay, /etc/portage, and make.conf stuff is already in the tarball. You may want to edit the make.conf to comment out the stage1 C{XX}FLAGS and uncomment the original system C{XX}FLAGS.


Anyway, I use it frequently so I figured others may find it of some use. Here is the script and ChangeLog . I'll probably be adding a non-interactive flag in the near future, so watch for the update ;)

Monday, December 05, 2005

Gtk2 enabled frontend for Nmap in Gentoo

UPDATE: My Gtk2 stuff is now in nmap stable :)
UPDATE: New development version of Nmap with my patch incorporated is available. Check out the "Official" blessing :)
UPDATE: Looks like the patch was accepted upstream and will be included in the next release of nmap. I've attached the email I received below :)

Nmap is a very powerful network scanning tool. While the command line is sufficient, the gui allows one to see all the various options at a glance. Unfortunately, the gui frontend is written in gtk1 (yuck!). So I, believing I'm not the only one who is faced with this dilemma, queried my best friend, Google. He pointed me to this article that provided a very good starting point.
Using these sources, I generated a patch and ebuild for Gentoo. I also added support for using the gksu package to launch the frontend with root privileges. This is quite hackish, so be warned.

Old and Busted
New Hotness

The Ebuild is here

Edit:
I've submitted this to the Gentoo Bugzilla and also filed a Problem Report for FreeBSD


From: Fyodor <fyodor@insecure.org>
Date: December 6, 2005 4:19:34 PM CST
To: Meethune Bhowmick <meethune@oss-institute.org>
Subject: Re: [PATCH] Build NmapFE with GTK2

On Tue, Dec 06, 2005 at 09:32:51AM -0600, Meethune Bhowmick wrote:
<snip>

Thanks, I have applied this for the next version of Nmap.The next
development version should be posted to the nmap-dev list within the
next few days (maybe today).

Cheers,
-F