View Single Post
  #7 (permalink)  
Old October 1, 2007, 10:32 AM
pscout pscout is offline
Fallen Folder
Join Date: Mar 2007
Location: folding in GTA
Posts: 375
Default My Ubuntu (7.04) setup notes

My Ubuntu (7.04) setup notes

My crib sheet for setting up a new ubuntu:

1. install ubuntu 7.04 at stock or known stable oc speeds. I usually install all the updates available before I continue and this will need a reboot. While it is downloading/installing, I often do some of the customizations below that don't require software installs (except for changing dhcp-static of course which will interrupt downloads).

2. add the userid you created to the root group. Doing this will let you move/delete any files including the fah files using the gui file manager without being blocked by permissions.
- system->administration->users and groups, click on manage groups, select root and click on properties.
I select both my id (pete) and root ... not sure if i need to add root here (security exposure?) but it has been working for me

3. i don't like to use dhcp so i setup a static ip for my network ( point it to my gateway (192.168.02.) and point my dns at my gateway. Your network hardware/preferences may be different. It is best to avoid dhcp with the current beta SMP clients.

4. i like my dedicated folding rigs to login automatically so
- system->admin->login window-> security , select the 'enable automatic login' and select your id (pete for me) from the drop down list.

5. after any ubuntu updates in 1 are done and rebooted, time to setup sharing which i use as a shortcut to setup folding and will use later for fahmon monitoring and debugging etc.
system->administration->shared folders
The first time you go down this path you will be prompted to download and install sharing software ... since my main rig is wxp, i leave samba selected and deselect nfs.
Once it downloads and install samba then you can continue ( no reboot necessary)
add your home folder and deselect 'read only' checkbox so you can copy to this from another machine - leave read only if you prefer since it is good enuf for fahmon.
I also select general properties and change the domainname to 'WORKGROUP' since this is my default domain on my WXP rigs. If you WXP home then i expect the default MSHOME is good for you.

now open a terminal window: applications->accessories->terminal
in the terminal window type : 'sudo smbpasswd -a pete' <- use your userid not mine!
and then you will have to enter your password once for the sudo override to authenticate you, and then twice more for the smbpasswd command.

You should now be able to share files with all your other rigs. For convenience i use the same userid and password on all my wxp and linux installs. From my wxp rig i can access all the files in each rigs home directory without being prompted for password. To access my wxp rigs from a linux rig, i will still be prompted for a password, but i usually do all my inter-rig file moves from my wxp main rig. There is probably a way to avoid the pw prompt going from linux to wxp but i have not bothered to find out how.

6. to install software monitoring for the hardware, in a terminal window type the following:
(don't bother with this step if running linux under vmware - use windows monitoring instead)

- 'sudo apt-get install lm sensors' ... you can also do this via synaptic software manger under system, admin but command line is faster for me.
just follow all its prompts and change the last question's answer about updating your system with the generated output from no to yes.
- then in a terminal window type 'sudo sensor-detect'
after this runs, you will need to reboot before the gkrellm display application can access them for display.
- terminal window ... 'sudo apt-get install gkrellm' to install the display app.
- once gkrellm is installed you can launch it from applications->system tools and you can play with it to set up the display and monitored components the way you like it.

7. now to install folding. since the linux client (not the cores) is a 32 bit app, you need to install ia32-libs on any ubuntu level after 6.10 since it is not installed by default with the os.
- terminal window: 'sudo apt-get install ia32-libs' and hit enter to all the prompts. Alternatively install via gui with synaptic software manger if you prefer ... i find a command line easier/faster even for a lousy typist like me.

- for the rest of the folding install you will download the current linux 64 bit client for smp from, downloads.

My shortcut here is I just copy the folding directory from another linux smp rig, delete the copied log files, work directory, queue.dat and machinedependant.dat files and i am ready to fold. I usually update the client.cfg directly with gedit and set local=0 so that my wu count in the logs is correct.

- i don't like the directory names used in the faq so i set up a pete/folding directory (and sometimes a folding2 directory for 2 instances).

I do set up a 'fold' shortcut to launch it with any switches as per the faq ... i use './fah6 -forceasm -verbosity 9 -smp'
I also setup a fold-pause shortcut when i want to run the client to finish the current wu and then stop so i can reconfigure, etc etc without needing to save any wu in progress. shortcut = './fah6 -forceasm -verbosity 9 -smp -pause'
You can create these shortcuts with gedit then use 'chmod +x ./fold' to make them executable.

8. start folding!

9. If installing under vwmare, you can copy the vm you just created above and give it another name. If you take this approach, get the vm/linux/fah setup the way you like it, then stop the vm and make a copy of the whole vm-xxx directory in the Virtual Machines folder. You can leave it here for another instance on a quad, or copy it to another rig you are going to install vmware on.

I will put some more notes together on how i configure my vm template to minimize the work on setting up a cloned vm for folding.

Last edited by pscout; October 1, 2007 at 10:48 AM.
Reply With Quote