{"id":503,"date":"2009-08-31T12:09:51","date_gmt":"2009-08-31T11:09:51","guid":{"rendered":"http:\/\/sickel.net\/blogg\/?page_id=503"},"modified":"2009-08-31T12:16:29","modified_gmt":"2009-08-31T11:16:29","slug":"foldinghome-debian-startup","status":"publish","type":"page","link":"http:\/\/sickel.net\/blogg\/?page_id=503","title":{"rendered":"Folding@home debian startup"},"content":{"rendered":"<p>This init script makes &#8216;the foldinator utilities&#8217; start up automatically on boot. It is tested on <a href=\"http:\/\/debian.org\">debian<\/a>, but should also work on other linux-distros especially the debian-derived, such as ubuntu, kubuntu etc. and probably *BSD as well.\tIt is based on the standard init scripts in debian.<\/p>\n<p>Define the system user fah, the user must have a valid shell, but do not need a password.<\/p>\n<pre>adduser --system --home \/var\/cache\/fah --shell \/bin\/bash <\/pre>\n<p>any more restricted or restrictable shell will also probably work.<\/p>\n<p>Download the linux binaries from <a href=\"http:\/\/folding.stanford.edu\/download.html\">folding@home.<\/a>. Put the executable (presently FAH502-Linux.exe or FAH504-Linux.exe) in fah&#8217;s home directory  and make it executable.<\/p>\n<pre>chmod +x \/var\/cache\/fah <\/pre>\n<p>Download the <a href=\"\/fah\/fah\">init script<\/a>, save it as \/etc\/init.d\/fah and make it executable<\/p>\n<p>Make links from \/etc\/rc.d\/:<\/p>\n<pre>ln -s \/etc\/init.d\/fah \/etc\/rc2.d\/S90fah<\/pre>\n<p>To start up the first time, the utilit must be run interactively. As root:<\/p>\n<pre>cd \/var\/cache\/fah\r\nsu fah -c .\/FAH502-Linux.exe\r\n\t <\/pre>\n<p>(or whatever is the current version) answer the questions that comes up. Remember, if you do not join a group now, the points will not ever be transfered to the group, even if you join one later on.<\/p>\n<p>kill the foldinator:<\/p>\n<pre>killall FAH502-Linux.exe<\/pre>\n<p>Start the foldinator:<\/p>\n<pre>\/etc\/init.d\/fah start<\/pre>\n<p>Check that it runs:<\/p>\n<pre>ps -u fah<\/pre>\n<p>or<\/p>\n<pre>top<\/pre>\n<p>The latter shall (normally) show the folder as one of the highest entry when sorted by cpu-usage <\/p>\n<p>If you for some reason wants to use another directory or user name, the line(s)<\/p>\n<pre>export DIRECTORY=\/var\/cache\/fah\r\nUSER=fah\r\n<\/pre>\n<p> in the starup-script should be adjusted accordingly<\/p>\n<p>Disclaimer: It works just fine for me, but I cannot guarantee it will not reformat your cpu, fry your hdd or detune your guitar. Use on own risk<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This init script makes &#8216;the foldinator utilities&#8217; start up automatically on boot. It is tested on debian, but should also work on other linux-distros especially the debian-derived, such as ubuntu, kubuntu etc. and probably *BSD as well. It is based &hellip; <a href=\"http:\/\/sickel.net\/blogg\/?page_id=503\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":508,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-503","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/PnVtD-87","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/pages\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503"}],"version-history":[{"count":5,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions"}],"predecessor-version":[{"id":511,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions\/511"}],"up":[{"embeddable":true,"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/pages\/508"}],"wp:attachment":[{"href":"http:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}