dslreports logo
site
spacer

spacer
 
    All FAQs Site FAQ DSL FAQ Cable Tech About DSL Distance DSL Hurdles »»
spc

spacer




how-to block ads



Installing FAH on FreeBSD 6.1 to run as specific user in background

ON A MACHINE ALREADY BUILT TO RUN LINUX BINARIES
(read here for some info on adding this capability if you don't have it--some of this may vary though, so consult the FreeBSD docs if you have questions on it.)


1) log in as root
2) Execute following commands (I made up my own path names--path names can vary, but keep it consistent):
#./FAH502-Linux.exe -freeBSD
 
The console should be prompting for config info. Enter your username and team number, accept defaults for the rest.

When the software comes up and says it has completed '0 out of xxxx steps', hit ctrl+c. Execute the following commands:
#chown -R RegUser:RegUser FAH
 
(where RegUser is a non-root user whom you wish to run the console as)
#vi FAH.sh
 
Write the following two lines:
quote:
#!/bin/sh
su RegUser -c "cd /usr/nonports/FAH; ./FAH502-Linux.exe -freeBSD >/dev/null 2>&1 &"


(where RegUser is the same non-root user whom you wish to run the console as)

Quit VI and execute the following commands:
#./FAH.sh
 

FAH Console should now be running in the background as the user you want it to run as, and should do so at boot from now on.

Info compiled from my own experiences and data in the following links:
»fahwiki.net/index.php/CoreStatus_codes
»forum.folding-community.org/view···hp?t=835
»/faq/6031

Expand got feedback?

by JAAulde See Profile edited by sortofageek See Profile
last modified: 2007-03-23 13:17:05