mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Octoproth Search (https://www.mersenneforum.org/forumdisplay.php?f=63)
-   -   Running octoproth program in Linux (https://www.mersenneforum.org/showthread.php?t=9304)

jasong 2007-09-17 23:02

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.

ValerieVonck 2007-09-18 04:35

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

ValerieVonck 2007-09-20 16:05

1 Attachment(s)
As requested, I tried to compile octo for the Linux platform:

This is for the i686 architecture, Pentium4 cpu's:

ValerieVonck 2007-09-20 16:09

1 Attachment(s)
This is for the AMD platform (not smp)

jasong 2007-09-21 01:14

[QUOTE=CedricVonck;114739]As requested, I tried to compile octo for the Linux platform:

This is for the i686 architecture, Pentium4 cpu's:[/QUOTE]
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: Skipping to next header
tar: Error exit delayed from previous errors[/code]

ValerieVonck 2007-09-21 07:40

Jason,

Do a

gzip -d octoLinux.tar.gz

then

tar -xvf octoLinux.tar

Xyzzy 2007-09-21 10:18

Or:

[code]tar -xzvf octoLinux.tar.gz[/code]

jasong 2007-09-22 04:50

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.)

Xyzzy 2007-09-22 11:31

[quote]Xyzzy: Your command didn't seem to work. Perhaps if the 'z' had come first?[/quote]
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[/code]

jasong 2007-12-27 02:44

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. :)


All times are UTC. The time now is 03:58.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.