<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6864437</id><updated>2008-12-10T20:10:06.473-06:00</updated><title type='text'>kfx</title><subtitle type='html'>One of the sweetest fruits of victory, after sleep and looting, must be the chance to ignore no-parking signs.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kurt.madleet.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://kurt.madleet.net/feeds/posts/default/-/gsoc'/><link rel='alternate' type='text/html' href='http://kurt.madleet.net/search/label/gsoc'/><author><name>kfx</name><uri>http://www.blogger.com/profile/03283631837799442796</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6864437.post-1934716462131947291</id><published>2008-06-10T10:20:00.039-05:00</published><updated>2008-07-21T11:25:57.781-05:00</updated><app:edited xmlns:app='http://purl.org/atom/app#'>2008-07-21T11:25:57.781-05:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='gsoc'/><category scheme='http://www.blogger.com/atom/ns#' term='slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='fossology'/><title type='text'>Installing FOSSology on Slackware</title><content type='html'>Updated: Now with more packages!  Slackbuilds etc are available at http://karmaflux.googlepages.com/fossology&lt;br /&gt;&lt;br /&gt;Amazingly, developing a FOSSology agent seems to require an installation of FOSSology with which to test it. Installation of FOSSology goes smoothest on Debian, because (as with so many other projects) that's the distro the developers use.  I'm way more comfortable with Slackware, so I decided to get it up and running on my home turf.  Later on, I plan to provide regular slackware packages, which should obviate most of the work.  For now, here's how I set up a Slackware-based server for FOSSology:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Install Slackware.  This step is left as an exercise for the reader.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install &lt;a href="http://upx.sf.net"&gt;UPX&lt;/a&gt;.  Yeah, I've never heard of it either.    I just downloaded the binary and threw it in /usr/local/bin.  Watch this space for a package and a SlackBuild.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Update:&lt;/i&gt;Don't use the binary distribution from UPX.  The following garbage is from README.SRC in the source distribution:&lt;blockquote&gt; The precompiled UPX versions are linked against the NRV compression&lt;br /&gt;  library instead of the UCL library. Using the same compression algorithms,&lt;br /&gt;  NRV achieves a better compression ratio. NRV is not publicly&lt;br /&gt;  available, though, and probably never will be.&lt;br /&gt;  While you may be disappointed that you don't have access to the&lt;br /&gt;  latest state-of-the-art compression technology this is actually&lt;br /&gt;  a safe guard for all of us. The UPX source code release makes&lt;br /&gt;  it very easy for any evil-minded person to do all sort of bad&lt;br /&gt;  things. By not providing the very best compression ratio it is much&lt;br /&gt;  more difficult to create fake or otherwise disguised UPX versions (or&lt;br /&gt;  similar trojans), as any end user will notice when the compression&lt;br /&gt;  has gotten worse with a new "version" or "product".&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;They're not releasing source as a &lt;i&gt;security measure&lt;/i&gt;?  Sounds like a load to me.  While the binary version works fine, I've built Slackware packages that use the open source software.  You'll want both &lt;a href="http://karmaflux.googlepages.com/upx-3.03-i686-1kfx.tgz"&gt;my UPX Slackware package&lt;/a&gt; and the the open-source compression library it uses, &lt;a href="http://karmaflux.googlepages.com/ucl-1.03-i686-1kfx.tgz"&gt;UCL&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Unrar can be found at &lt;a href="http://www.linuxpackages.net/pkg_details.php?id=12335"&gt;linuxpackages.net&lt;/a&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://repository.slacky.eu/slackware-12.1/libraries/libextractor/0.5.20b/"&gt;libextractor&lt;/a&gt; and &lt;a href="http://repository.slacky.eu/slackware-12.1/utilities/cabextract/"&gt;cabextract&lt;/a&gt; can be found packaged at &lt;a href="http://www.slacky.eu"&gt;slacky.eu&lt;/a&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install Sleuthkit.  I've packaged it for Slackware; you can find it &lt;a href="http://karmaflux.googlepages.com/sleuthkit-2.52-i686-1kfx.tgz"&gt;here&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install PostgreSQL.  All of the pre-made packages I've seen are crazy in one way or another.  I used the SlackBuild from &lt;a href="http://slackbuilds.org/repository/12.1/system/postgresql/"&gt;slackbuilds.org&lt;/a&gt;.  If you're lazy, the package is available &lt;a href="http://karmaflux.googlepages.com/postgresql-8.3.3-i486-1_SBo.tgz"&gt;here&lt;/a&gt;. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;The Slackware PHP package is compiled without support for PostgreSQL.  This presents predictable problems.  I've compiled a version of PHP with postgresql support enabled and posted the package &lt;a href="http://karmaflux.googlepages.com/php-5.2.5-i486-1_kfx.tgz"&gt;here&lt;/a&gt;.  You can just download it and use upgradepkg to replace the stock PHP build.  The only difference between stock Slackware PHP and this one is the line &lt;i&gt;--with-pgsql=shared,/usr&lt;/i&gt; inserted into the configure command.  &lt;i&gt;I seriously recommend you use my package instead of compiling it yourself,&lt;/i&gt; unless there are other patches and tweaks you need.  PHP takes roughly ten thousand years to compile.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Download FOSSology.  Latest version should be available &lt;a href="https://sourceforge.net/project/showfiles.php?group_id=212412"&gt;here&lt;/a&gt;.  At the time of this writing, the latest version is 0.8.0, so that's what I'll be describing here.  I moved it to /usr/src and untarred it.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Follow the instructions in the README file.  Most of this is tweaks to config files.  Here's how I do it:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;As root, run:&lt;pre&gt;  groupadd fossy&lt;br /&gt;  useradd -c FOSSology -d /srv/fossology -g fossy -s /bin/false fossy&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Make the suggested changes to postgresql.conf.  Note with the package I made there's no site-wide conf file in /etc.  The file you want is /var/lib/pgsql/data/postgresql.conf.  I happen to have &lt;a href="http://karmaflux.googlepages.com/postgresql.conf"&gt;a copy&lt;/a&gt; handy. All the suggested changes are made in this copy.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;As root, run:&lt;pre&gt;su postgres -c "psql -f /usr/src/fossology-0.8.0/setup/fossologyinit.sql"&lt;/pre&gt;  This is, of course, assuming you unpacked the file to /usr/src.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Restart the database by running as root: &lt;pre&gt;/etc/rc.d/rc.postgresql restart&lt;/pre&gt; Then make sure it's working. Run: &lt;pre&gt;psql -d fossology -U fossy&lt;/pre&gt;  If you don't get any errors, you're good.  Type &lt;pre&gt;\q&lt;/pre&gt; to exit psql.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Assuming you have a stock /etc/httpd/php.ini, you can just grab &lt;a href="http://karmaflux.googlepages.com/php.ini"&gt;this&lt;/a&gt;, which has all the suggested changes already made.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Ditto for /etc/httpd/httpd.conf.  Find the altered version &lt;a href="http://karmaflux.googlepages.com/httpd.conf"&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Build FOSSology and begin the installation process.  As root, run: &lt;pre&gt;make &amp;&amp; make install&lt;/pre&gt; and kick back while it compiles.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;As root, run: &lt;pre&gt;/usr/src/fossology-0.8.0/install.sh -f&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Grab &lt;a href="http://karmaflux.googlepages.com/scheduler.conf"&gt;my scheduler.conf&lt;/a&gt;, which is set up to use one host (localhost) and one processor. Put it in /usr/local/share/fossology/agents.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;The other files mentioned in the README actually are fine -- the only thing you might need to change is the password on the fossy database, if you changed it from the default "fossy."  In that case, edit /usr/local/share/fossology/dbconnect/fossology, and make the obvious change.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;As root, run: &lt;pre&gt;/usr/src/fossology-0.8.0/install.sh -f&lt;/pre&gt; Yes, again.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;For good measure, run /usr/src/fossology-0.8.0/check.sh.  This will do a last scan to make sure everything's set up.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;li&gt;Grab my &lt;a href="http://karmaflux.googlepages.com/rc.fossology"&gt;rc.fossology&lt;/a&gt; file, throw it in /etc/rc.d/, and start FOSSology by running, as root:&lt;pre&gt;/etc/rc.d/rc.fossology start&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;To start on system boot, put the following stanzas in /etc/rc.d/rc.local:&lt;pre&gt;&lt;br /&gt;#Start postgresql.&lt;br /&gt;if [ -x /etc/rc.d/rc.postgresql ]; then&lt;br /&gt;  . /etc/rc.d/rc.postgresql start&lt;br /&gt;fi&lt;br /&gt;#Start the FOSSology scheduler.&lt;br /&gt;if [ -x /etc/rc.d/rc.fossology ]; then&lt;br /&gt;  . /etc/rc.d/rc.fossology start&lt;br /&gt;fi&lt;/pre&gt;&lt;br /&gt;This makes sure postgresql is running before you start fossology.&lt;/li&gt; &lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Once all that's done, you'll need to restart apache:&lt;pre&gt;/etc/rc.d/rc.httpd restart&lt;/pre&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;That's it!   Open a browser, and enter &lt;b&gt;http://servername/repo&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;This is where you need to keep an eye out for php errors -- they usually indicate permissions problems.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Log in with the username &lt;b&gt;Default User&lt;/b&gt; and no password. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;Click Admin, then Initialize.  Follow the on-screen instructions, and have at it! See &lt;a href="http://fossology.org/user_documentation"&gt;the User Documentation&lt;/a&gt; to get started.&lt;br /&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://kurt.madleet.net/feeds/1934716462131947291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6864437&amp;postID=1934716462131947291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6864437/posts/default/1934716462131947291?v=2'/><link rel='self' type='application/atom+xml' href='http://kurt.madleet.net/feeds/posts/default/1934716462131947291'/><link rel='alternate' type='text/html' href='http://kurt.madleet.net/2008/06/installing-fossology-on-slackware.html' title='Installing FOSSology on Slackware'/><author><name>kfx</name><uri>http://www.blogger.com/profile/03283631837799442796</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6864437.post-8943467218191105834</id><published>2008-04-26T21:07:00.002-05:00</published><updated>2008-04-28T10:06:07.362-05:00</updated><app:edited xmlns:app='http://purl.org/atom/app#'>2008-04-28T10:06:07.362-05:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='olpc'/><category scheme='http://www.blogger.com/atom/ns#' term='gsoc'/><category scheme='http://www.blogger.com/atom/ns#' term='internet'/><title type='text'>Hi!  I'm a Google SoC student for 2008!</title><content type='html'>Well, I got accepted to GSoC, which is pretty damn exciting. You can see my abstract &lt;a href="http://code.google.com/soc/2008/osuosl/appinfo.html?csaid=BC30B2B9A0E1DDBA"&gt;here&lt;/a&gt;. It took me a while to bandy up the nerve to apply, but I did, and then I got picked. It's kind of mindblowing to me. Anyway, I'll be working with my mentor Jeff Sheltren at the &lt;a href='http://osuosl.org/'&gt;Oregon State University Open Source Lab&lt;/a&gt;, and I'm severely stoked about it.</content><link rel='replies' type='application/atom+xml' href='http://kurt.madleet.net/feeds/8943467218191105834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6864437&amp;postID=8943467218191105834' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6864437/posts/default/8943467218191105834?v=2'/><link rel='self' type='application/atom+xml' href='http://kurt.madleet.net/feeds/posts/default/8943467218191105834'/><link rel='alternate' type='text/html' href='http://kurt.madleet.net/2008/04/you-know-there-was-man-that-lived-here.html' title='Hi!  I&apos;m a Google SoC student for 2008!'/><author><name>kfx</name><uri>http://www.blogger.com/profile/03283631837799442796</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry></feed>