Archive

Archive for the ‘Folding’ Category

Folding 0.5.2 “User Friendly” Release

November 25th, 2007 6 comments

Update: 0.5.2.1 has been released to fix a small regression in this version.  Please consider downloading the latest version of folding instead. 

I’ve been very happy with all the recent feedback I’ve had on the folding project. I’ve been getting a lot of emails regarding use and feedback, and I really appreciate it. Based on much of this feedback I’m release version 0.5.2, which has some updates that I hope you’ll enjoy. I am still surprised at how popular this little application has become. I began this as a tutorial on this site months ago and its continued to improve and expand beyond what I ever expected. Thanks again for all the feedback and if you’re not currently running the folding @ home client consider giving this project a try.

Folding 0.5.2 Updates

  • -r, –rename function now allows the user to change the username and team information post installation.
  • -i, –install now asks to update username and team information at install time.
  • installation path updated to conform to standards. now installs to /var/lib/folding
  • installation now builds an optional system cron job which stops the service at 8:00am and restarts at 5:00pm. This may be useful for those that only want folding to run “after hours”. (I would appreciate feedback on this new feature. More information available in the README file.)

As usual, if you are already running the folding client there is no real need to update. If you are interested in the renaming function and the optional system cron usage you may want to update. I don’t forsee any issues with upgrading to add this functionality, but if you do run into any bugs please report them on launchpad (https://bugs.launchpad.net/folding)

Known Issues

  • the long options (–function) all work as expected but some of the short options (-i,d,e,r,h) do not work. I’m aware of the bug, just haven’t been able to find the fix yet RESOLVED.

Downloads

Downloads are as follows, available in .tar.gz, tar.bz2 and .zip format for your convenience.

folding-0.5.2.tar.gz

folding-0.5.2.tar.bz2

folding-0.5.2.zip

Categories: Folding Tags:

Folding 0.5.1 “No-Name” Release

November 18th, 2007 4 comments

Please consider downloading the latest version of folding instead.

I spent a few hours this evening wrapping up a few fixes for folding. Based on user feedback I have made the script a bit smarter regarding testing for required components. It also adds an option to change the username and team at installation. Previously this was just part of the deployment function. Ohh, and as this has expanded far beyond what I ever expected it no longer defaults to my username and the Team Ubuntu. It’s now Anonymous and the default team unless changed by the user. I do have plans to get this packaged for inclusion with Ubuntu 8.04 for those that are interested in a packaged version.

If you’d like to join the folding program and donate unused cpu cycles to medical research take a minute and install folding. Download locations available below:

folding-0.5.1.tar.gz

folding-0.5.1.tar.bz2

folding-0.5.1.zip

To install simply extract, enter the destination folder and run:

sudo ./folding.sh – -install

Other options available within the README file.

Categories: Folding Tags:

folding-0.5 “delta” release now available

September 28th, 2007 3 comments

Please consider downloading the latest version of folding instead.

After quite a bit more work and some very helpful contributions from members of the community I am releasing folding-0.5 “delta”, the folding @ home automated installer and network deployment project. There are some nice upgrades in this release and the code is much cleaner (thanks goes to Jeff Schroeder for that contribution).

Changes in this release:

  • folding.sh now supports long and short options for local installation, network deployment, removal or help. (-i|–install, -d|–deploy, -r|–remove, -h|–help respectively).
  • uninstaller (-r|–remove) now included.
  • auto-creation of proper configuration files vs inclusion in the archive.

Items on the pending TODO:

  • menu-based machine selection for network-based deployment.
  • more defensive checks for client.cfg existence, perhaps md5um.
  • compatibility with *BSD families and Darwin/MacOSX.
  • project logo / artwork creation (volunteers?)

Folding is now on Launchpad!

  • future beta builds will be available via bzr.
  • bug reports should be submitted to launchpad.

Download:

As usual, if you have a spare machine (it doesn’t matter the speed!) please consider donating unused cpu cycles to medical research. This project will utilize unused cpu cycles on your machine for medical research, yet transparently step aside when you need those cycles again. Best used on servers or desktops, generally not preferred for laptop machines. If you are already running the folding @ home client there is no need to upgrade with this release. folding-0.5 is only needed for new deployments.

For more information please see Folding @ Home at Stanford University.

Categories: Folding Tags:

Folding v0.4.1 “shanghai” Release

September 1st, 2007 5 comments

Please consider downloading the latest version of folding instead.

After ten days of improvements, minor code fixes and a very thorough audit done by a concerned reader (Thanks Jeff) I am proud to release folding v0.4.1 codename “shanghai”.

This release does not address any major bug fixes. It should contain the same functionality, but the code has been cleaned up and improved.

As usual if you’ve already installed this application there is no need to upgrade. If you have never run the folding client on your machine please consider it. See Stanfords Protein Folding site for more details.

Downloads available below:

Folding v0.4.1 “shanghai” zip

Folding v0.4.1 “shanghai” tar

Folding v0.4.1 “shanghai” bz2

As usual, bugs may be reported in the comments section here or by emailing me directly. Full details on use of the application(s) are contained within the README file.

Categories: Folding Tags:

Folding v0.4 “Kickstart” Release

August 21st, 2007 4 comments

Please consider downloading the latest version of folding instead.

Well according to my records it has been nearly a month since I last updated my folding project. I don’t know if that means it was written well, or if I’ve been neglecting it. In any event I have updated the script based on a user submission and am releasing v0.4, aptly codenamed “Kickstart”. New in this release:

  • Instructions on how to deploy this as part of a kickstart file (often used with RHEL or Fedora).
  • The installer is now ‘aware’ of the kickstart instructions and will cleanup after itself.
  • Code Cleanup (often used to pad any changelog)
  • Cleaned up README
  • Changed naming format from FAH-* to folding.

If you have already used my folding script there is no need to update. For anyone else that would like to deploy Stanfords Folding Client you may want to check this out.

I know its too late to get into Gutsy at this point but I have been very interested in getting this packaged for Ubuntu. I would *love* to be able to ‘sudo aptitude install folding’. Can any of you package gurus email me about this? Thank You.

Downloads available here:

folding-0.4.tar.gz

folding-0.4.zip

folding-0.4.tar.bz2

Categories: Folding Tags:

Folding @ Home Automated Installer : Release v0.3

June 25th, 2007 4 comments

Please consider downloading the latest version of folding instead.

After some more user feedback I have made some additional adjustments to the Folding @ Home Automated Installer and am releasing revision 0.3. Updates in this release include:

  • General bug fixes
  • More efficient collection of finstall script
  • Execute permissions (u+x) now set within archive
  • Improved init script creation

You can download your copy below if you’d like.. and thank you again to all that are running the Folding client and contributing to Stanfords medical research.

Folding @ Home Automated Installer (gzip)

Folding @ Home Automated Installer (bz2)

Folding @ Home Automated Installer (zip)

update: if you’re already running the Folding client there is no need to upgrade. Remember, this is simply an installer and any updates don’t affect the client itself or the working process.

Categories: Folding Tags:

Folding @ Home : Deployment Script Updated v0.2

June 18th, 2007 4 comments

Please consider downloading the latest version of folding instead.

Based on some more testing and user feedback I’ve done some bug squashing in my Folding @ Home deployment script. Attached are the updated v0.2 files.

FAH-installer.tar.bz2

FAH-installer.tar.gz

FAH-installer.zip

A few things to consider:

If you want to install the Folding @ Home client on your (single) machine unpack the archive and simply run:

chmod u+x FAH-installer.sh

sudo ./FAH-installer.sh

If you want to deploy the Folding @ Home client across multiple machines in your network run:

chmod u+x FAH-deploy.sh

sudo ./FAH-deploy.sh

note: the deployment script connects as the root user. You may need to temporarily activate the root user on Ubuntu networked machines for it to work properly.

Categories: Folding Tags:

Folding @ Home Automated Installer : Initial Release v0.1

June 1st, 2007 6 comments

Please consider downloading the latest version of folding instead.

After some continued testing and expanding I think my Folding @ Home Automated Installer is ready for initial release (release early, release often, right?). I would appreciate any testing, bug reports, expanding the tested / supported distribution list, etc.

Currently, as of v0.1 it has been tested on the following distributions:

Ubuntu 7.04

RedHat Enterprise Linux 5

Oracle Enterprise Linux 4

SuSE Enterprise Linux Server 10

SuSE Linux 10.1

Fedora Core 6

Fedora 7

You can find a link to the download below. It comes in three compressed formats for your convenience. Enjoy!

Folding @ Home Automated Installer

Categories: Folding Tags:

Folding @ Home : Progress Update

May 24th, 2007 1 comment

Well my tutorial the other day on installing Folding @ Home on Ubuntu looks like it was a hit. I got some great reactions from you and I’m glad to see there are so many people interested in helping out doing this kind of research.

Since I wrote up that tutorial I got to thinking more about it and have expanded what I did a bit. I’m happy to announce that I have created a script that will automate the installation process based on the steps in the tutorial. Also, I added a deployment script that can install, configure and start the service across a network via ssh on any machine you have access to. I’m fairly proud of myself on that little bit ;) In my recent test run I got it installed, configured and running on 12 machines with zero interaction on my part. w00t, as they say ;) .

I’m still QAing my deployment and installation script but if any of you are interested I’d be more than happy to share it. I think the easier we can make the Folding @ Home installation, setup and use the more widely it can be adopted and the more work can get done.

Until next time…

Categories: Folding Tags:

Folding @ Home : Installation – Configuration – Automation : Ubuntu / Debian | RHEL / FC

May 23rd, 2007 24 comments

Please consider downloading the latest version of folding instead.

Automated script available here.

Before I dive into my tutorial and tell you how to setup your machine for running the Folding @ Home process I’ll take just a minute and introduce those of you unaware to what the project is.

The project is a distributed computing effort put together by Stanford University to help research protein folding and, based on that research, help in medical research for conditions such as: Alzheimer’s Disease, Huntington’s Disease, Osteogenesis Imperfecta, Parkinson’s Disease, etc. Basically, you can use your machines idle processes to help in medical research. Not a bad way to put your computer to good use!

Now to the good stuff. How do I set this up? Well there is a simple way that allows you to simply run the research application when you remember. It’ll save it’s data to your home folder (clutter things up just a bit) and stop when you stop it. This is the way I ran the program for quite a while but I found it to be a little bothersome to have to manually deal with it all the time. There were a few fixes that I found to help move it behind the scenes, but recently I really started looking into a long-term solution, which is the basis for this tutorial.

Overview:

  1. This tutorial will create a dedicated system user on your machine to run the process and store the data. Data will be stored in a subfolder of /var/ (can be changed, if you prefer).
  2. This system user will not be assigned a login, password or shell for security reasons.
  3. I will outline installation, setup and automation of starting, stopping and checking status of the application.
  4. The application will be handled with an init service for automagically starting at boot and allowing you to stop or start the service on demand.

A few notes on the tutorial syntax. Lines prefixed with the ‘sudo’ command are specific for Ubuntu / Debian based machines. If you’d like to run this setup on a RHEL / FC based machine simply ‘su -’ to root to run those commands. Also, near the end I have labeled [Ubuntu / Debian] or [RHEL / FC] for the distribution specific commands.

First on the list is to create a dedicated user to run this process. This is done for a few reasons. For one, some people have concerns that the Folding @ Home process may not be completely secure. While there have been no reported security vulnerabilities in its history, it is a valid concern and one that is addressed here. The Folding @ Home process runs ‘work units’ on your machine and reports back to the main servers at Stanford. One of the best ways to ensure security during this communication is to create a limited system user to handle the work. Even if the service was somehow compromised the affected user would have no access to anything, therefore effectively stopping the threat.

sudo useradd -d /var/folding -r folding

The syntax of this, if you’re not familiar tells the new system user, folding, to use /var/folding as its home folder as opposed to the standard /home/ area.

Second (unless I can figure out the right syntax for the above command), you’ll need to manually create the folder.

sudo mkdir /var/folding

After the folder is created you will also want to make sure that it is owned strictly by the new user.

sudo chown folding.folding /var/folding

Now that you have the user set up, the home folder created and ownerships set properly you will want to download the ‘finstall’ script. This is a third party script that helps automate the whole process. In my testing it has been really solid and can be used on Linux, WINE, BSD or OS X based machines (w00t!).

With this next command we’ll pull down an installer script that will set everything up for us. You’ll want to be in your newly created /var/folding at this point (cd /var/folding/)

sudo wget -c http://www.vendomar.ee/~ivo/finstall

Once this download has finished you’ll need to add the execute permission on the file. This is done simply with:

sudo chmod +x finstall

Ok, now we’re about half way there.

Now we’re ready to run finstall but remembering that we want it installed, owned and run by our new user we’ll want to install it as them first. We’ll need to temporarily switch to that user now.

sudo -i

su - folding

This will land you in a limited shell, if it can even be considered a shell, but you can still run the installer. Use the following command to launch the installer and follow the prompts.

/bin/bash ./finstall

Now, as I mentioned, this installer is very comprehensive and will ask you quite a bit to get things setup initially. It will download the actual Folding @ Home program, allow you to verify the checksum (it’s always nice to verify that we’re installing what we think we’re installing!), and also add a FAQ where you can find out more information.

The questions that it might ask you are as follows, and appended with my suggested answers. (Depending on your system you may not see all / each question listed here.)

Do you want to read finstall FAQ (yes/no?): n (I've read it a few times now, this one is up to you)

Is this the correct MD5SUM value of FAH504-Linux.exe (yes/no?): y (double check if you like here.)

Do you want to use any of these 3rd party FAH utilities (y/n)?: y

Do you want to use automatic MachineID changing (y/n)?: y

Do you want to use it for this client and for all remaining configureless clients as well (y/n)?: y

It will also ask you for a name. The name is optional, or you can use an alias / name of your choice. You can use this page to see if the name is available. The only reason the name might be important is if you want to compare your finished work units vs a friend.

It will also ask you for a (optional) team to join. Might I suggest you join the Ubuntu Folding @ Home Team? Show your Ubuntu pride and save the world with the rest of the Ubuntu crew. To join the Ubuntu Folding @ Home Team use the number 45104.

After the questions about the name and team it prompts for a few more options. The defaults are safely used here.

Ok, once this installer finishes asking you how to set things up you’re *almost* there! Just a few more quick commands and we’re ready to set-and-forget.

You can now type ‘exit’ and ‘exit’ to leave the prompt you are in as the new folding user. The only thing left to do is create the startup script and make sure it runs as the new user.

sudo cp foldingathome/folding /etc/init.d/

sudo update-rc.d folding defaults [Ubuntu / Debian]

chkconfig folding on [RHEL/FC]

sudo chmod 4775 foldingathome/folding

Ok. You’re ready to go now. There is a copy of the start / stop script in your init folder. The update (or chkconfig) has set this script to automagically start on multi-user runlevels and SUID permissions have been set on the script so that it will *always* run as, and with permissions of, your new limited system user.

To go ahead and start the service type:

sudo /etc/init.d/folding start [Ubuntu / Debian]

service folding start [RHEL/FC]

To stop the service type:

sudo /etc/init.d/folding stop [Ubuntu / Debian]

service folding stop [RHEL/FC]

Remember, this will now auto-start at boot so you can safely just ignore it from here on out. No more config, manually starting, remembering to start the service, etc. You’re done.

update: A few people have been wondering how to remove this after it has been installed. This can be done in just a few commands:

sudo /etc/init.d/folding stop [Ubuntu / Debian]

service folding stop [RHEL/FC]

sudo rm /etc/init.d/folding

sudo update-rc.d folding remove [Ubuntu / Debian]

service folding off [RHEL/FC]

sudo userdel -r folding

sudo rm -rf /var/folding

done.

sources: Folding @ Home, Ubuntu F@H Community Docs, Finstall Script, FAH Wiki.

Categories: Folding Tags: