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 19

post #181 of 214
Thread Starter 
Quote:
Originally Posted by FearMeansControl View Post
hey GoG, good to see this back in action.. I took a look at the code, but won't be able to run it until after work(ahem.. i'm now rocking Vista on one of the 3D machines).

on the whole, looks good. I might suggest one change in config.c, however. Maybe instead of the menacing "YOU MUST PROVIDE INPUT FOR EVERYTHING!", we just check for null string and complain if the user failed to enter their username..

as for the package checker, it was just a shell script, so we could embed it in system calls and if statements.. but I'd still like to change it to check for the actual executables as opposed to their installation directories.
Awesome, I like your idea. Right now I'm just trying to get it to work. Once I get it figured out I'll see if I can add that.

And for your checker, do you plan on working on it at all?
Edited by GodofGrunts - 1/26/09 at 6:37pm
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 #182 of 214
Quote:
Originally Posted by GodofGrunts View Post
Awesome, I like your idea. Right now I'm just trying to get it to work. Once I get it figured out I'll see if I can add that.

And for your checker, do you plan on working on it at all?
i can work on the checker, but it's going to be a few days. I'm up to my neck in converting AS 2.0 to AS 3.0 at work right now (a little late in the uptake? lol) and i'm just starting a new semester. What I had up previously was working, so we can continue with that for now. I'll try to knock out the updates to the package checker, it'll be done on either wednesday night or the weekend.

EDIT: The attachment I'm putting up is unstable, its just a way for me to shuttle the installer to a few different VM's for testing..
Edited by FearMeansControl - 1/27/09 at 7:45am
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 #183 of 214
ok, so i decided that my time in Quantum Mech. would be better spent working on the package checker, so here we go..
  • Proof of Concept in checking for binaries as opposed to install directories
  • Implementation for Adept, Apt-Get, and RPM. The others are still checked via install directories, I will ammend those in the coming days
  • Main.C is now aware of what package manager the computer is running.

You'll see in main that I added two new functions.. one calls the bash script and reads in its output and the other cleans up the file generated by the bash script (the command to remove the installConfig file is currently commented out for debugging purposes). The included a.out was compiled to run in 32-bit mode, as the VM's on my macbook pro are all 32 bit.

In addition to finishing up the check file, I can port the x86/x64 check to C++, but something has dawned on me as well. While Linux SMP will not run with a 32-bit OS, that does not imply with certainty that the CPU being used is not single core (Celeren 4xx, Athlon 64, Later P4's, etc), so I humbly suggest that in addition to checking for 64 bit, we also check for processor count.. thoughts?
Edited by FearMeansControl - 1/27/09 at 9:01am
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 #184 of 214
Thread Starter 
Quote:
Originally Posted by FearMeansControl View Post
i can work on the checker, but it's going to be a few days. I'm up to my neck in converting AS 2.0 to AS 3.0 at work right now (a little late in the uptake? lol) and i'm just starting a new semester. What I had up previously was working, so we can continue with that for now. I'll try to knock out the updates to the package checker, it'll be done on either wednesday night or the weekend.

EDIT: The attachment I'm putting up is unstable, its just a way for me to shuttle the installer to a few different VM's for testing..
I'm going to be honest with you. I have no idea what AS stands for...

Quote:
Originally Posted by FearMeansControl View Post
ok, so i decided that my time in Quantum Mech. would be better spent working on the package checker, so here we go..
  • Proof of Concept in checking for binaries as opposed to install directories
  • Implementation for Adept, Apt-Get, and RPM. The others are still checked via install directories, I will ammend those in the coming days
  • Main.C is now aware of what package manager the computer is running.

You'll see in main that I added two new functions.. one calls the bash script and reads in its output and the other cleans up the file generated by the bash script (the command to remove the installConfig file is currently commented out for debugging purposes). The included a.out was compiled to run in 32-bit mode, as the VM's on my macbook pro are all 32 bit.
Wow! This is wonderful! Its so brilliantly simple! Thanks a million!

A few questions.

1. Is installConfig supposed to be unzipped with a 1 in it? It came out like that on mine.
2. Is adding the ".out" necessary or it it just common practice or what?
3. Could you explain what
Code:
while (installerFile >> packageResult)
does?

Quote:
Originally Posted by FearMeansControl View Post
In addition to finishing up the check file, I can port the x86/x64 check to C++, but something has dawned on me as well. While Linux SMP will not run with a 32-bit OS, that does not imply with certainty that the CPU being used is not single core (Celeren 4xx, Athlon 64, Later P4's, etc), so I humbly suggest that in addition to checking for 64 bit, we also check for processor count.. thoughts?
We realized this bug earlier around 50 or 60 posts back. I mean to look into this but haven't gotten around to it. The system manager knows how many cores there are so I'm sure its not that big of a deal to figure out.

Also, I'd like to make it so it's just one executable as opposed to two executables and this is one of the problems we need to figure out before that can happen. Something like make a new function. Here's the pseudo code for it.

Code:
If ( core >= 2 and uname -m != i686 )
then 
run smp 
else 
run 32 bit

Edited by GodofGrunts - 1/27/09 at 10:22pm
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 #185 of 214
Um, I would suggest you check that uname -m is x86_64, not that it is not i686. Otherwise you'll get the one lunatic out there who tries to run this on an Itanium or something and can't figure out why it won't work.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #186 of 214
Thread Starter 
Look what I found!

Code:
cat /proc/cpuinfo | grep processor | wc -l


Edited by GodofGrunts - 1/27/09 at 10:40pm
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 #187 of 214
Thread Starter 
Quote:
Originally Posted by error10 View Post
Um, I would suggest you check that uname -m is x86_64, not that it is not i686. Otherwise you'll get the one lunatic out there who tries to run this on an Itanium or something and can't figure out why it won't work.
Ah, good point. Thanks error10. Oh man! I just realised that we haven't even asked for your input! Wow, I feel dumb
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 #188 of 214
Quote:
Originally Posted by GodofGrunts View Post
I'm going to be honest with you. I have no idea what AS stands for...

1. Is installConfig supposed to be unzipped with a 1 in it? It came out like that on mine.
2. Is adding the ".out" necessary or it it just common practice or what?
3. Could you explain what
Code:
while (installerFile >> packageResult)
does?
AS = ActionScript. I've got a love/hate with it..

-installConfig in final form won't be created when the end user unzips.. I put in a function to delete the file when the app is done with it, but commented it out so i could make sure the bash script worked.
-the .out isn't necessary, a.out is just the standard name that most command line compilers give their output.
-And that while loop is me trying to remember how to read in from a file in c++.. It's been about four years since i've had to deal with the language. i forgot to mention that when i uploaded (it needs to be fixed).

the processor info sounds right to me, i've used proc/cpuinfo before without problem
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 #189 of 214
You guys are doing Great work! keep it up
Meh
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 DFI P45 t2rs-plus 560 ti  4gb 1066 ocz 
Hard DriveOptical DriveOSMonitor
250gb seagate samsung Windows 7 x64 Dell 24" 
PowerCase
Be! quiet 630w modular NZXT beta evo 
  hide details  
Reply
Meh
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 DFI P45 t2rs-plus 560 ti  4gb 1066 ocz 
Hard DriveOptical DriveOSMonitor
250gb seagate samsung Windows 7 x64 Dell 24" 
PowerCase
Be! quiet 630w modular NZXT beta evo 
  hide details  
Reply
post #190 of 214
Thread Starter 
Quote:
Originally Posted by FearMeansControl View Post
AS = ActionScript. I've got a love/hate with it..
Ah, I got you.

Quote:
Originally Posted by FearMeansControl View Post
-installConfig in final form won't be created when the end user unzips.. I put in a function to delete the file when the app is done with it, but commented it out so i could make sure the bash script worked.
So as of right now, it is created from the unzip then?
Quote:
Originally Posted by FearMeansControl View Post
-the .out isn't necessary, a.out is just the standard name that most command line compilers give their output.
Ah, I was using
Code:
g++ -o OCN... main.c
Quote:
Originally Posted by FearMeansControl View Post
-And that while loop is me trying to remember how to read in from a file in c++.. It's been about four years since i've had to deal with the language. i forgot to mention that when i uploaded (it needs to be fixed).
Oh, It's okay.
Quote:
Originally Posted by FearMeansControl View Post
the processor info sounds right to me, i've used proc/cpuinfo before without problem
Cool. I'll work on adding it in.
Quote:
Originally Posted by Dawlish7 View Post
You guys are doing Great work! keep it up
Thanks!

EDIT: I wish dH would show up :-/ I think his cpu-z like program already can find the number of cores and stuff.
Edited by GodofGrunts - 1/28/09 at 8:53am
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
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!