mersenneforum.org Running octoproth program in Linux
 Register FAQ Search Today's Posts Mark Forums Read

 2007-09-17, 23:02 #1 jasong     "Jason Goatcher" Mar 2005 3×7×167 Posts Running octoproth program in Linux Make sure Wine isn't already installed. Go to a bash prompt and type 'wine --help', if it doesn't complain, you've got Wine installed. Unfortunately, it may be an old version. If you discover it's an old version, you need to uninstall it and reinstall the new one. You're on your own for that, at least as far as me being able to help you is concerned. Install Wine. Type 'winecfg' in a bash prompt right after you install Wine. You'll get a window that reminds you of Micosoft Windows. You can mess around in it if you want, there's not much to see. Close the window. If you haven't already, transfer the octoproth program to a directory on the Linux computer. You'll want the directory set up the same way you would on a Windows computer, but don't try to run anything by clicking on it, you'll just get an error. Go back to the bash prompt. Navigate to the directory with the octoproth stuff in it. If you have more than one processor on the computer, you'll probably want to have a specific directory to put individual octoproth directories into. One for each core. Type in 'wine cmd'. This gets you a DOS prompt. It doesn't look the way I'm used to DOS prompts looking, but it behaves similarly. Now simply type in the name of the batch file you want to run and voila, it runs like a champ. From now on, whenever you want to run the program, you just go to a bash prompt, navigate to the correct directory, type in 'wine cmd,' then type in the name of the batch file. Although, if the batch file has already been run, you may have to delete some lines at the beginning to prevent duplicating work. Last fiddled with by jasong on 2007-09-17 at 23:03
 2007-09-18, 04:35 #2 ValerieVonck     Mar 2004 Belgium 7×112 Posts Jasong, Thank you for investigating! But I have told you that I will try to compile it for linux. Hopefully this week I can try to do it! Regards Cedric
2007-09-20, 16:05   #3
ValerieVonck

Mar 2004
Belgium

7·112 Posts

As requested, I tried to compile octo for the Linux platform:

This is for the i686 architecture, Pentium4 cpu's:
Attached Files
 octoLinuxP4.tar.gz (63.9 KB, 446 views)

2007-09-20, 16:09   #4
ValerieVonck

Mar 2004
Belgium

7·112 Posts

This is for the AMD platform (not smp)
Attached Files
 octoLinuxAMD.tar.gz (64.1 KB, 450 views)

2007-09-21, 01:14   #5
jasong

"Jason Goatcher"
Mar 2005

3·7·167 Posts

Quote:
 Originally Posted by CedricVonck As requested, I tried to compile octo for the Linux platform: This is for the i686 architecture, Pentium4 cpu's:
I thought I already posted this, but I get the following error when trying to open the archive(Core2 quad-core, Ubuntu Feisty Fawn 7.04):
Code:
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors

 2007-09-21, 07:40 #6 ValerieVonck     Mar 2004 Belgium 7×112 Posts Jason, Do a gzip -d octoLinux.tar.gz then tar -xvf octoLinux.tar
 2007-09-21, 10:18 #7 Xyzzy     Aug 2002 2×7×13×47 Posts Or: Code: tar -xzvf octoLinux.tar.gz
 2007-09-22, 04:50 #8 jasong     "Jason Goatcher" Mar 2005 3·7·167 Posts Xyzzy: Your command didn't seem to work. Perhaps if the 'z' had come first? If there's a Linux class at UCA(the local college, er, one of them), I'm going to sign up. There probably isn't, but one can hope. Btw, it seems to work fine, I'm going to reserve 20 numbers in the appropriate thread(which is normal for me, I like to have at least 10 non-started numbers per core, if I see a core has less than ten numbers left, then I reserve enough to get it back to 20, as well as "topping off" any other cores involved in the project.) Last fiddled with by jasong on 2007-09-22 at 04:58
2007-09-22, 11:31   #9
Xyzzy

Aug 2002

205528 Posts

Quote:
 Xyzzy: Your command didn't seem to work. Perhaps if the 'z' had come first?
Works fine here:

Code:
m@p4:~$ls -l total 4 drwxr-xr-x 5 m m 4096 2007-09-22 07:25 Desktop m@p4:~$ mkdir a

m@p4:~$cd a m@p4:~/a$ touch 1 2 3

m@p4:~/a$ls -l total 0 -rw-r--r-- 1 m m 0 2007-09-22 07:27 1 -rw-r--r-- 1 m m 0 2007-09-22 07:27 2 -rw-r--r-- 1 m m 0 2007-09-22 07:27 3 m@p4:~/a$ cd ..

m@p4:~$tar -cvf a.tar a/ a/ a/2 a/1 a/3 m@p4:~$ gzip a.tar

m@p4:~$rm -rf a/ m@p4:~$ ls -l
total 8
-rw-r--r-- 1 m m  149 2007-09-22 07:27 a.tar.gz
drwxr-xr-x 5 m m 4096 2007-09-22 07:25 Desktop

m@p4:~$tar -xzvf a.tar.gz a/ a/2 a/1 a/3 m@p4:~$ cd a

m@p4:~/a\$ ls -l
total 0
-rw-r--r-- 1 m m 0 2007-09-22 07:27 1
-rw-r--r-- 1 m m 0 2007-09-22 07:27 2
-rw-r--r-- 1 m m 0 2007-09-22 07:27 3

 2007-12-27, 02:44 #10 jasong     "Jason Goatcher" Mar 2005 3·7·167 Posts Well, I thought I was going to be running stuff tonight. Apparently, my solution to this problem last time was to run the Windows version. Anyway, it never got fixed. Btw, I chose the P4 version, even though it's technically Core 2 architecture. I'm wondering if I should try the AMD version just for the hell of it. Yeah, I think I will. Edit: AMD works, and like a rocket compared to my Pentium-D. I'm wondering if the filenames could be off or something. Anyway, it's great the way it is, although improvements are ALWAYS welcome. :) Last fiddled with by jasong on 2007-12-27 at 02:48

 Similar Threads Thread Thread Starter Forum Replies Last Post roger Octoproth Search 2 2007-11-17 12:57 jasong Information & Answers 4 2007-10-06 21:08 Unregistered Information & Answers 1 2007-09-08 17:59 linux newbie Software 4 2006-03-21 16:13 Unregistered Hardware 23 2004-04-03 12:45

All times are UTC. The time now is 06:02.

Fri Feb 3 06:02:47 UTC 2023 up 169 days, 3:31, 1 user, load averages: 0.86, 0.96, 0.97