Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › A GUI F@H installer for Linux!
New Posts  All Forums:Forum Nav:

A GUI F@H installer for Linux! - Page 11

post #101 of 214
Ok, I attached another package. Only difference is the fah.desktop file. Should be generic enough that it'll work in both kde and gnome. It works in kde on Slackware 12.1 for me and it was working in gnome on ubuntu 7.10 but then it stopped. It worked in one folder it was in but then not the other. It make zero sense right now, as the location it extremely generic. But in gnome at least you can click on the fah-gui.pl file and select run in the dialog that pops up and the gui will start anyway.

Hopefully its just my install.

EDIT:
Also when you run the installer-script, do you get any errors at lines 22, 71, and 82? I do in Ubuntu but not Slackware.....
Edited by dangerousHobo - 7/1/08 at 6:50pm
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #102 of 214
Thread Starter 
Quote:
Originally Posted by FearMeansControl View Post
iMac at work? sounds plush


EDIT:

Here's the updated TestguiAUTO file, with comments, definitive 64-bit check, and a check for the number of processors.

If it detects a 64 bit OS, but only sees one processor, it will echo an error into the terminal and run the console client, otherwise, SMP will be allowed to run..
First off, thank you so much for putting comments in your code. It helped me a whole lot in reading it and dignosing the problem.

Hey, you should download a code checker. The 64-bit part's syntax was a little out of whack and I had to go in and fix it. It wasn't really that big of a deal (and I know you aren't using a 64-bit so there is no way you can check it) but they help out a whole lot. I use Geany (but I think it is GNOME only). I've attached the corrected version if you want to take a look.

Quote:
Originally Posted by dangerousHobo View Post
Ok, I attached another package. Only difference is the fah.desktop file. Should be generic enough that it'll work in both kde and gnome. It works in kde on Slackware 12.1 for me and it was working in gnome on ubuntu 7.10 but then it stopped. It worked in one folder it was in but then not the other. It make zero sense right now, as the location it extremely generic. But in gnome at least you can click on the fah-gui.pl file and select run in the dialog that pops up and the gui will start anyway.

Hopefully its just my install.

EDIT:
Also when you run the installer-script, do you get any errors at lines 22, 71, and 82? I do in Ubuntu but not Slackware.....
Well, I don't have an internet connection in Arkansas for my laptop (not even a wireless connection I can piggy back off of to download FAH) so nothing in your code worked for me; however, lines 22, 71, and 82 are all "fi" statements. And I'm not sure why Ubuntu doesn't like them... Also take a look at the attached picture. I figured out why the installer button wasn't working last time. One, you have it under your user name. I'm not sure how we can fix this. Maybe use $USER instead? Second you have to folders location in the home directory. I have my folders always download to the Desktop. Again I'm not sure how to fix this. I think most Linux n00bs will have it download to the Desktop though if I had to guess.

@dangerousHobo && FMC
I figured out how to run a md5sum check. I wrote it in the car on the way to Arkansas and didn't have fah6, mpiexec, or FAH504-Linux.exe to make a true hash check. I've attached a sample coding on how it is supposed to work and I'll download the appropriate files and make a real checker. This isn't included in the code, but I will run:
Code:
 
md5sum fah6 > md5sumfah6.txt
md5sum mpiexec > md5summpiexec.txt
...
python md5sumcheck.py
to execute the code.


Here is the plan: I'd like to compile everything before next Monday so we can have a Beta released before the end of this weekend. I need a few more things done though:

@dangerousHobo && FMC
We need to convene. dangerousHobo (your user name really messes with my typing ) has suggested AIM. He and I have exchanged AIM S/N via private messages so I'll PM FMC mine as well. Nothing to big, but we do need a name for our program (lol) and it'll probably make our development time increase significantly.

@dangerousHobo
Could you include one more button for me that reads "Let [the name of our program] decide what is best for me." I want to attach the TestguiAUTO script to it (although I think I'm going to rename it to a more appropriate title), and maybe some text at the bottom that includes our user names and the site?

@FMC
Since you last program was a success (well if it works, which it seems like it does from the code), do you think you'd be up to the challenge of writing a script (in any language although python and bash are the easiest for me to debug) that detects what type of package manager the user is running and (for right now) just assign numeral values to it? Eventually I'd like to run libs.sh in conjunction with that script so it won't run 5+ update checks for the 32-bit libraries required by the 64-bit versions.
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #103 of 214
Quote:
Originally Posted by GodofGrunts View Post
First off, thank you so much for putting comments in your code. It helped me a whole lot in reading it and dignosing the problem.

Hey, you should download a code checker. The 64-bit part's syntax was a little out of whack and I had to go in and fix it. It wasn't really that big of a deal (and I know you aren't using a 64-bit so there is no way you can check it) but they help out a whole lot. I use Geany (but I think it is GNOME only). I've attached the corrected version if you want to take a look.
oops! back in my... shudder... C++ days, I was using Visual Studio, and that was fantastic as far as telling me how inferior i am at picking up on little nuances.. I'll check out Geany if i can convert my KDE install of Sabayon to Gnome (I thought they included KDE4, which I havent played with.. i was upset to see the snail-like KDE3 though..)

Quote:
@dangerousHobo && FMC
I figured out how to run a md5sum check. I wrote it in the car on the way to Arkansas and didn't have fah6, mpiexec, or FAH504-Linux.exe to make a true hash check. I've attached a sample coding on how it is supposed to work and I'll download the appropriate files and make a real checker. This isn't included in the code, but I will run:
Code:
 
md5sum fah6 > md5sumfah6.txt
md5sum mpiexec > md5summpiexec.txt
...
python md5sumcheck.py
to execute the code.
Cool! I never bothered to use or create a checksum, this should be neat

Quote:
@FMC
Since you last program was a success (well if it works, which it seems like it does from the code), do you think you'd be up to the challenge of writing a script (in any language although python and bash are the easiest for me to debug) that detects what type of package manager the user is running and (for right now) just assign numeral values to it? Eventually I'd like to run libs.sh in conjunction with that script so it won't run 5+ update checks for the 32-bit libraries required by the 64-bit versions.
I'll hop to it and see what I come up with..

by the way, this should prove that this project is my first foray into Python, but is there a way to declare variables? In C++ or Java you've got your:

Code:
int variableName;
int initializedVariable = 0;
You can laugh at me now

P.M's going to the both of you containing AIM address
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
post #104 of 214
Quote:
Originally Posted by GodofGrunts View Post

Well, I don't have an internet connection in Arkansas for my laptop (not even a wireless connection I can piggy back off of to download FAH) so nothing in your code worked for me; however, lines 22, 71, and 82 are all "fi" statements. And I'm not sure why Ubuntu doesn't like them... Also take a look at the attached picture. I figured out why the installer button wasn't working last time. One, you have it under your user name. I'm not sure how we can fix this. Maybe use $USER instead? Second you have to folders location in the home directory. I have my folders always download to the Desktop. Again I'm not sure how to fix this. I think most Linux n00bs will have it download to the Desktop though if I had to guess.
Since I'm using wget to download the file it downloading it to that current directory.

As for the path in the shortcut. That was my mistake. Once it stopped working I was tried a bunch of different things. Gnome seems to want the path in the file to be a complete path and not relative. I was trying $PWD and it didn't matter. So I think Gnome users will just have to click on the fah-gui.pl file and select run in the pop up window.

$PWD is really the best option to use as it wouldn't matter then where the user saved the package to.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #105 of 214
To start with i'm totaly new to Linux. I have no idea what i'm doing ;D
I've been sat here the last 3 hours trying to get SMP working with Ubuntu 7.0.4 within VMware 6.0.4.9.

I followed several guides etc but they were a bit outdated combined with my total lack of knowledge I failed over and over again ;[ Untill I found this, it installed it perfectly it seems and it is running right now BUT I wanted to run two instances of SMP, what would be the best way for me to do this? When I used the installer it installed to a folder automaticaly, called folding which I had created earlier.. Could I just rename that folder then create another called folding and install again with a different machine ID? Or does it create that folder itself anyway?

Sorry for my noobish questions ;]

post #106 of 214
Thread Starter 
All you'd need to do is rename the "folding" folder to something else. The installer will create another "folding" folder automatically for you. And thanks for the reply in the testing! I'm glad it worked out for you!

Do me a favor though, will you take a screen shot of the system monitor and post it here? You seem to know how (from the picture) but if you don't here is how, open up the system monitor (System > Administration > System Monitor) Click the "Resources" tab. Now go to Applications > Accessories > Take Screenshot.
Edited by GodofGrunts - 7/3/08 at 2:51pm
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #107 of 214
Quote:
Originally Posted by GeforceGTS View Post
lol @ "HALP!" Glad to see you found some use.. ironically, I was thinking about bringing this up once we beta-fied the beast..

GoG, I've got a package manager detector going, but am having no joy with "if, else-if" statements in my bash script.. can it be that i'm only allowed to do "if, else"?

P.S: I've got Apt, RPM, and Portage accounted for... I think everything that has dpkg is running apt as well, so i left that out, as well as leaving yum out since it just gets a bunch of RPM's.. Any thoughts on others to include?
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
post #108 of 214
Thanks alot for making the installer, It would of taken me forever otherwise.

The screenie you wanted ;]



Now i've just got to figure out how to get FahMon working, sick of checking the log files already D;
post #109 of 214
Quote:
Originally Posted by FearMeansControl View Post
lol @ "HALP!" Glad to see you found some use.. ironically, I was thinking about bringing this up once we beta-fied the beast..

GoG, I've got a package manager detector going, but am having no joy with "if, else-if" statements in my bash script.. can it be that i'm only allowed to do "if, else"?

P.S: I've got Apt, RPM, and Portage accounted for... I think everything that has dpkg is running apt as well, so i left that out, as well as leaving yum out since it just gets a bunch of RPM's.. Any thoughts on others to include?
Arch?
    
CPUMotherboardGraphicsRAM
i5 3570K P8Z77-M XFX 7870 1150/1400 2 x 4g Corsair Vengeance LP 1600MHz 
Hard DriveOptical DriveOSMonitor
Callisto Deluxe 40GB & 1TB Sammy Spinpoint F1 &... Nec ND3540A W7 RTM ACER V243HLbmd 
KeyboardPowerCaseMouse
Microsoft Curve 2000 PC P&C Silencer 750w Antec 300 MX518 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5 3570K P8Z77-M XFX 7870 1150/1400 2 x 4g Corsair Vengeance LP 1600MHz 
Hard DriveOptical DriveOSMonitor
Callisto Deluxe 40GB & 1TB Sammy Spinpoint F1 &... Nec ND3540A W7 RTM ACER V243HLbmd 
KeyboardPowerCaseMouse
Microsoft Curve 2000 PC P&C Silencer 750w Antec 300 MX518 
  hide details  
Reply
post #110 of 214
Quote:
Originally Posted by GeforceGTS View Post
Now i've just got to figure out how to get FahMon working, sick of checking the log files already D;
Thats a little more difficult...

How's your time per %?

Quote:
Originally Posted by biatchi View Post
Arch?
knew i was forgetting something (especially in a fairly pro Arch forum)... +rep

.. putting a check for Pacman in now
Edited by FearMeansControl - 7/3/08 at 5:37pm
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
Jesus PC v5.3
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-950 Gigabyte X58A-UD3R 5850 GSkill 1600 MHz 4x4GB 
Hard DriveOptical DriveOSMonitor
3x1200.12 500GB RAID 0, 2x2TB Deskstar RAID 1 Samsung Writemaster SATA Gentoo, Windows 7 x64 3x 21.5" Samsungs 
PowerCaseMouse
Thermaltake 750W RocketPwn G500 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Overclock.net Folding@Home Team
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › A GUI F@H installer for Linux!