Linux ease of use

Moderators: Site Moderators, FAHC Science Team

Post Reply
silas_the_monk
Posts: 11
Joined: Sat Oct 18, 2008 9:49 pm
Hardware configuration: 1. EEE PC (Linux)
2. HP Windows Vista
Contact:

Linux ease of use

Post by silas_the_monk »

I have downloaded the Linux version and been running it actively for a few weeks now. I want to start using this machine more actively now and so I want to change a few things.

1.) There is a core running. How do I make the following changes without upsetting anything.
2.) I want to move the files out of the /tmp directory into my home directory.
3.) I want the process to run automatically when I start. I can think of /etc/r.* or .bash_profile but I am not sure what will work best.
I certainly don't want to start running it as root.
shatteredsilicon
Posts: 87
Joined: Tue Jul 08, 2008 2:27 pm
Hardware configuration: 1x Q6600 @ 3.2GHz, 4GB DDR3-1333
1x Phenom X4 9950 @ 2.6GHz, 4GB DDR2-1066
3x GeForce 9800GX2
1x GeForce 8800GT
CentOS 5 x86-64, WINE 1.x with CUDA wrappers

Re: Linux ease of use

Post by shatteredsilicon »

2) Why are they in the temp directory? You could just move mpiexec, fah6 and client.cfg over. Start the client with -oneunit to make it finish the current WU and then exit. That way you won't throw away the unit that's current'y running. Once that's done, just move the mentioned 3 files to the new directory and run as normal.

Run it from /etc/rc.local or use one of the many available init scripts if they work the way you like. To make it not run as root, you can create a fah user/group and run the client under that UID (make sure you chown all the fah files to that user first, of course). You can do that with something like this in rc.local:

pushd /path/to/fah
su -m fah -c "nice -n 19 /path/to/fah/fah6 2>&1 > /path/to/fah/fah6/stdout.log &"
popd
Image
1x Q6600 @ 3.2GHz, 4GB DDR3-1333
1x Phenom X4 9950 @ 2.6GHz, 4GB DDR2-1066
3x GeForce 9800GX2
1x GeForce 8800GT
CentOS 5 x86-64, WINE 1.x with CUDA wrappers
Ivoshiee
Site Moderator
Posts: 822
Joined: Sun Dec 02, 2007 12:05 am
Location: Estonia

Re: Linux ease of use

Post by Ivoshiee »

Post Reply