mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2006-08-08, 11:27   #1
Unregistered
 

10000011101112 Posts
Default mprime under Ubuntu?

hi,
I'm new, and I've just installed mprime under Ubuntu(Linux).
Has mprime a GUI?
Now it work, but I can't view any results.Under WIN XP I can view somethimg in a dialog box...
Someone know how can I have the same result in Linux?
Thanks.
Best Regards.
  Reply With Quote
Old 2006-08-08, 16:22   #2
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

1110101012 Posts
Default

No GUI -- just text.

You need to start mprime with the -d option. The -d tells mprime to display results as it is running. There is also a -m option, which tells mprime to start with a menu.
PhilF is offline   Reply With Quote
Old 2007-10-21, 12:35   #3
mhnaras
 
Oct 2007

3 Posts
Default

Quote:
Originally Posted by PhilF View Post
No GUI -- just text.

You need to start mprime with the -d option. The -d tells mprime to display results as it is running. There is also a -m option, which tells mprime to start with a menu.
i am a noob, can you explain it?
i go to a console and type

mprime -d
or
mprime -m

and nothing happens
mhnaras is offline   Reply With Quote
Old 2007-11-21, 14:58   #4
M0CZY
 
M0CZY's Avatar
 
May 2005
Brutal Police State, UK

5×23 Posts
Default Running mprime under Ubuntu 7.04 Linux

I got my factoring assignment running OK under Linux.
I am using mprime2414 and Ubuntu 7.04.
I run it as ./mprime -m or -d
Question 1.
If I close the terminal window, how do I get information about mprime to
start displaying again?
If I type in ./mprime -m again it just tells me that mprime is already running.
Question 2.
When you stop Prime 95 under Windows it creates an up-to-date savefile,
but stopping mprime under Linux doesn't update the savefile, is that right?

I'm afraid that I have much to learn about Linux!
M0CZY is offline   Reply With Quote
Old 2007-11-22, 19:40   #5
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

11·13·23 Posts
Default

I don't run mprime and from the lack of response to your first question I wonder if there is a way to restore progress status to a terminal after the terminal has been closed.

You can get mprime's process identification number -- called "pid" -- in various ways: from "top" (q to quit) or "ps aux | grep mprime" or "pidof mprime" etc. You could try then try "fg xxxx" where xxxx is the pid.

If the above fails, you can kill mprime by "killall mprime" (kills all mprime programs) or with "kill xxxx" where xxxx is mprime's pid, or with "top" abd by pressing "k" (for kill) and then entering the pid. Having stopped mprime, you can restart it in a terminal.

I guess mprime will write a save file when killed by the operating system.

Last fiddled with by paulunderwood on 2007-11-22 at 19:48
paulunderwood is online now   Reply With Quote
Old 2007-11-22, 20:23   #6
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

756110 Posts
Default

Use "nohup" or "screen".

Or just redirect the output to a file (run mprime from a cron job) and you can "tail" the file any time you want.

Search the forum for "cron" for examples.
Xyzzy is offline   Reply With Quote
Old 2007-11-23, 21:42   #7
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

141518 Posts
Default

If I'm running LLR (which I understand is functionally similar to mprime on Linux) on a Ubuntu 7.10 system at startup using the "sessions" tool (System>Preferences>Sessions), is it possible to view the output for it (it appears to be running in the background), or is my only option to redirect its output to a file?
mdettweiler is offline   Reply With Quote
Old 2007-11-23, 22:12   #8
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

CD916 Posts
Default

Try adding to the session manager the command:

Code:
xterm -e "tail -f ~/llr/lresults.txt"
Change to suit your llr location.

"~" is short hand for you home directory.

Use could equally use "gnome-terminal" instead of "xterm".

I can't see how to get The Matrix effect of iteration progress

Last fiddled with by paulunderwood on 2007-11-23 at 22:24
paulunderwood is online now   Reply With Quote
Old 2007-11-23, 23:03   #9
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Try adding to the session manager the command:

Code:
xterm -e "tail -f ~/llr/lresults.txt"
Change to suit your llr location.

"~" is short hand for you home directory.

Use could equally use "gnome-terminal" instead of "xterm".

I can't see how to get The Matrix effect of iteration progress
I already knew I can view progress by looking at the lresults.txt file, actually what I was looking for was the % done (iterations done, to put it another way) for each individual candidate. I see what you mean, though--that would be kind of hard to do. Okay, I guess I'll just have to run llr with the -d option, and redirect its output to a file--and then, as you suggested, use the tail command to view the output. Thanks!
mdettweiler is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mprime not being recognized on ubuntu 16.04 Yoshi24517 Software 15 2018-04-07 10:57
How to install mprime on Ubuntu Server Salamander89 Software 3 2011-07-28 15:51
How Do I Make Mprime Work In Ubuntu?? hesdeadjim Software 4 2010-01-01 19:03
How to Run mprime on Ubuntu Jaunty as daemon? Unregistered Information & Answers 1 2009-08-01 02:02
Ubuntu Server Crashes when running mprime 257 roemer2201 Software 9 2008-12-05 18:47

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

Wed Jul 15 10:03:48 UTC 2020 up 112 days, 7:36, 0 users, load averages: 1.62, 1.31, 1.27

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.