mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-12-23, 21:50   #1
mincerafter42
 
Dec 2019

3 Posts
Default Trying to move to Linux Mint

Hello, I'm trying to move prime95 from Windows 7 to Linux Mint. I want to keep all the needed files for prime95 to continue the same process after the transfer. It will still be on the same physical computer when this is done. What is the pest way to do this, or would it be better to just cancel the process on Windows 7 and re-install prime95 on Linux Mint? Sorry if this is in the wrong forum section or if there's a really obvious answer I haven't found.
mincerafter42 is offline   Reply With Quote
Old 2019-12-23, 22:15   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2·4,909 Posts
Default

Preserve your worktodo.txt file and any files that start with p f or m that have a bunch of numbers after them. Keeping the whole Prime95 folder would be good. You will need to change the program file to the mprime file (see https://www.mersenne.org/download/ for the most recent version.) Others may have more detailed tips later.
Uncwilly is offline   Reply With Quote
Old 2019-12-23, 22:18   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

5·11·137 Posts
Default

Just save the entire folder. Then load mprime (the Linux 64-bit version of prime95) into the folder once you've installed Linux. Run "./mprime -m", choose Test/Continue menu choice.

Others can tell you how to set things up so that mprime runs automatically at boot up.
Prime95 is online now   Reply With Quote
Old 2020-01-03, 04:08   #4
mincerafter42
 
Dec 2019

3 Posts
Default

When I choose "Test/Continue", it says "Another mprime is running" and shows the menu again. Is that good? I haven't seen any progress updates where I'm told how much is completed like in the Windows version yet. I hope it's working.
mincerafter42 is offline   Reply With Quote
Old 2020-01-03, 04:36   #5
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

376110 Posts
Default

Some useful commands are pidof mprime and top --- press q to quit it. You can kill it with command killall mprime -- which is safe to do. Then run ./mprime -m again for the menu instance and choose "test/continue".

Do you wish have mprime start automatically when the computer boots? If so do you want to be able to see the progress?
paulunderwood is offline   Reply With Quote
Old 2020-01-03, 04:40   #6
mincerafter42
 
Dec 2019

3 Posts
Default

I do want mprime to run when the computer boots. I want to be able to see the progress if I open the window, but have the window hidden when it's not open like in Windows. Is that possible?
mincerafter42 is offline   Reply With Quote
Old 2020-01-03, 05:34   #7
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,761 Posts
Default

Quote:
Originally Posted by mincerafter42 View Post
I do want mprime to run when the computer boots. I want to be able to see the progress if I open the window, but have the window hidden when it's not open like in Windows. Is that possible?
Yes. See this post which can be done by editing your crontab with crontab -e (with nano). Paste this line as the last into the edit:

Code:
@reboot screen -S mprime -d -m -L /home/me/sb/mprime -d
making the change to your directory structure. To save from nano do ctrl+x (for exit) then y (for yes to save) and enter.

The after you reboot the machine you can see what is happening at any time by opening a terminal and running the command screen -r mprime

(I could go into how you create an alias in your .bashrc file so that you could just type in moma or whatever which runs screen -r mprime )

Last fiddled with by paulunderwood on 2020-01-03 at 05:35
paulunderwood is offline   Reply With Quote
Old 2020-01-17, 01:21   #8
ZFR
 
ZFR's Avatar
 
Feb 2008
Bray, Ireland

9B16 Posts
Default

Quote:
Originally Posted by mincerafter42 View Post
I do want mprime to run when the computer boots. I want to be able to see the progress if I open the window, but have the window hidden when it's not open like in Windows. Is that possible?

Sorry for the bump, but to make it more "Windows-like" you can even add the shortcut to your panel launcher and move it to the right side of your panel.
This way you won't have to bother remembering Ctrl+A, Ctrl+D, nor the shortcut itself, and could simply open it by double clicking and close it by closing the window while it continues running in the background.

Now, if only there was a more "Minty" 2^p-1 icon...
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	148
Size:	749.2 KB
ID:	21628  

Last fiddled with by ZFR on 2020-01-17 at 01:29
ZFR is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Subsystem for Linux v2 gets real Linux kernel tServo Software 0 2019-05-07 16:59
how do I execute mprime in linux mint? diacad Information & Answers 5 2017-10-15 02:04
Stockfish game: "Move 8 poll", not "move 3.14159 discussion" MooMoo2 Other Chess Games 5 2016-10-22 01:55
Scottish game: "Move 6 poll", not "move -1 discussion" MooMoo2 Other Chess Games 0 2016-10-11 16:30
Stockfish game: "Move 5 poll", not "move 0 discussion" MooMoo2 Other Chess Games 0 2016-10-05 15:50

All times are UTC. The time now is 18:34.


Sun Aug 1 18:34:34 UTC 2021 up 9 days, 13:03, 0 users, load averages: 2.55, 2.07, 2.32

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.