mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-02-10, 15:32   #1
Salamander89
 
Nov 2009

3 Posts
Default How to install mprime on Ubuntu Server

Hello,

I'm using Ubuntu 9.1 (server edition) on my computer. My problem is that I don't know how to install mprime on a server-version of Ubuntu. Please note that I've only the commandline for installation. I've no graphical interface on my OS.

Thanks for any help.
Salamander89 is offline   Reply With Quote
Old 2010-02-10, 16:52   #2
pegaso56
 
pegaso56's Avatar
 
Oct 2006
Rosario, Argentina

43 Posts
Default

Hi, there is no graphical instalation in linux.Assuming you can access the server as root, all you have to do is make a folder (eg. /mprime259, unzip all the files, and in the command line type "./mprime -m", begin with option 1 of the menu and follow instructions.
Anyway , if you are not root, you can run mprime in your home folder as well!!
Good luck
Carlos
pegaso56 is offline   Reply With Quote
Old 2011-06-01, 20:00   #3
ciic
 
ciic's Avatar
 
May 2011
FR Germany - Berlin

2·7 Posts
Default Console Install MPrime Ubuntu Server 11.04

Install and autostart MPrime on Ubuntu 11.04 Natty Server with crontab 'bootup script'

After some years I tried again to launch MPrime using the autostart bootup start-script by Gareth Randall, Sun, 12 Nov 2000, originally posted on a mailing list archive, here: http://www.mail-archive.com/mersenne.../msg05245.html , as I did in former years.

Since I run Ubuntu Natty 11.04 on my AMD Fusion E-350 computer, Upstart (http://upstart.ubuntu.com/getting-started.html) has replaced the former /etc/init.d method. So I got the error message:
Quote:
su: must be run from a terminal
when using the startup script by Gareth Randall, see above.

Here's the steps I followed to achieve the installation and bootup / autostart of MPrime on my Ubuntu Natty 11.04 driven PC:
----------------------------------------------------------

0) On the terminal I created the folder /gimps:
Code:
master_and_commander@1stcomputer:~$ mkdir  /home/master_and_commander/gimps
1)
Quote:
### Hints:
# path of mprime-binary in Ubuntu then is: /home/master_and_commander/gimps/
###
Downloaded and extracted mprime266-linux64.tar.gz (or whatever the appropriate version you prefer) from www.mersenne.org to the ~/gimps folder.

1st the 64bit variant:
Code:
master_and_commander@1stcomputer:~$ cd /home/u1/gimps
master_and_commander@1stcomputer:~/gimps$ wget ftp://mersenne.org/gimps/mprime266-linux64.tar.gz
--2011-06-01 21:40:46--  ftp://mersenne.org/gimps/mprime266-linux64.tar.gz
           => »mprime266-linux64.tar.gz«
resolving hostname mersenne.org... 71.6.220.162
Link to mersenne.org|71.6.220.162|:21... connected.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD (1) /gimps ... fertig.
==> SIZE mprime266-linux64.tar.gz ... 4019958
==> PASV ... fertig.    ==> RETR mprime266-linux64.tar.gz ... done.

    [                                                                <=>                                ] 4.019.958    372K/s   in 14s     

2011-06-01 21:41:04 (271 KB/s) - »mprime266-linux64.tar.gz« saved [4019958]

master_and_commander@1stcomputer:~/gimps$ tar xzvf mprime266-linux64.tar.gz
license.txt
mprime
readme.txt
stress.txt
undoc.txt
whatsnew.txt
master_and_commander@1stcomputer:~/gimps$
2nd the 32bit variant:
Code:
master_and_commander@1stcomputer:~$ cd /home/u1/gimps
master_and_commander@1stcomputer:~/gimps$ wget ftp://mersenne.org/gimps/mprime266.tar.gz
--2011-06-01 21:40:46--  ftp://mersenne.org/gimps/mprime266.tar.gz
           => »mprime266.tar.gz«
resolving hostname mersenne.org... 71.6.220.162
Link to mersenne.org|71.6.220.162|:21... connected.
  
...   

2011-06-01 21:41:04 (271 KB/s) - »mprime266.tar.gz« saved [4019958]

master_and_commander@1stcomputer:~/gimps$ tar xzvf ftp://mersenne.org/gimps/mprime266.tar.gz
license.txt
mprime
readme.txt
stress.txt
undoc.txt
whatsnew.txt
master_and_commander@1stcomputer:~/gimps$
2) In the terminal changed to this directory and run the ./mprime -m from xterm to set up the preferences by the MPrime menu:
Code:
master_and_commander@1stcomputer:~$ cd  ~/gimps 
master_and_commander@1stcomputer:~/gimps$ ./mprime -m
[Main thread May 30 15:17] Mersenne number primality test program version 26.6
[Main thread May 30 15:17:38] Optimizing for CPU architecture: AMD K8, L2 cache size: 512 KB
         Main Menu

     1.  Test/Primenet
     2.  Test/Worker threads
     3.  Test/Status
     4.  Test/Continue
     5.  Test/Exit
     6.  Advanced/Test
     7.  Advanced/Time
     8.  Advanced/P-1
     9.  Advanced/ECM
    10.  Advanced/Manual Communication
    11.  Advanced/Unreserve Exponent
    12.  Advanced/Quit Gimps
    13.  Options/CPU
    14.  Options/Preferences
    15.  Options/Torture Test
    16.  Options/Benchmark
    17.  Help/About
    18.  Help/About PrimeNet Server
Your choice:
3) Now I used cron to have MPrime autorun in the background at start up boottime.
Code:
master_and_commander@1stcomputer:~$ sudo echo "@reboot cd ~/gimps ; ./mprime & " | crontab -
[sudo] password for master_and_commander: 
master_and_commander@1stcomputer:~$
Quote:
### Hints:
# Autostart on bootup as user: 'master_and_commander'
# Only 1 instance of MPrime with 2 workers (1 per core for the dual-core CPU)
###
4) You can edit the MPrime settings by hand / editor. These are my files customed to work with my AMD Fusion 'Zacate' E-350 platform:
Quote:
CPU Information:
AMD E-350 Processor
CPU speed: 1569.06 MHz, 2 cores
CPU features: Prefetch, MMX, SSE, SSE2
L1 cache size: 32 KB
L2 cache size: 512 KB
RAM:
2GB of DDR3-1066 DDR-SDRAM (8.525 GB/s CPU/GPU shared bandwidth)
~/gimps/local.txt
Quote:
OldCpuSpeed=1569
NewCpuSpeedCount=0
NewCpuSpeed=0
Memory=512 during 7:30-23:30 else 768
ComputerGUID=*******
ComputerID=*******
WorkerThreads=2
ThreadsPerTest=1
Pid=0
SrvrUID=*******
SrvrComputerName=*******
SrvrPO1=0
SrvrPO2=1
SrvrPO3=6
SrvrPO4=512
SrvrPO5=768
SrvrPO6=450
SrvrPO7=1410
SrvrPO8=1
SrvrPO9=2
SrvrP00=2
LastEndDatesSent=*******
RollingHash=*******
RollingStartTime=0
RollingCompleteTime=*******
RollingAverage=1000

[Worker #1]
Affinity=0

[Worker #2]
Affinity=1
~/gimps/prime.txt
Quote:
V24OptionsConverted=1
WGUID_version=2
StressTester=0
UsePrimenet=1
DialUp=1
V5UserID=*******
AskedAboutMemory=1
WorkPreference=0
OutputIterations=10000
ResultsFileIterations=999999999
DiskWriteTime=15
NetworkRetryTime=15
NetworkRetryTime2=15
DaysOfWork=6
DaysBetweenCheckins=1
NumBackupFiles=3
SilentVictory=0
AMPM=2
TimingOutput=3
TimeStamp=2
CumulativeTiming=1
BootDelay=180
StaggerStarts=30
SequentialWorkToDo=0
InterimFiles=10000
GmpEcmHook=1
MaxLoad=4.0
MinLoad=3.1
PauseTime=3
UnreserveDays=61

[PrimeNet]
Debug=0
ProxyHost=
For further information on my customisations see the
~/gimps/undoc.txt
Quote:
This file lists the undocumented features available in the program.
These features may change or be discontinued at any time. Their use is
totally unsupported.
enjoy =)

-----------
See also these postings:
* Re: How Do I Install Mprime?Install and autostart MPrime on Ubuntu 11.04 Natty with crontab 'bootup script'
* MPrime Daemon start-up script , in the ubuntu forums, from December 11th, 2005
* [SOLVED] crontabs job , in the ubuntu forums.
ciic is offline   Reply With Quote
Old 2011-07-28, 15:51   #4
ciic
 
ciic's Avatar
 
May 2011
FR Germany - Berlin

2×7 Posts
Default

Quote:
Originally Posted by ciic View Post
Install and autostart MPrime on Ubuntu 11.04 Natty Server with crontab 'bootup script'

After some years I tried again to launch MPrime using the autostart bootup start-script by Gareth Randall, Sun, 12 Nov 2000, originally posted on a mailing list archive, here: http://www.mail-archive.com/mersenne.../msg05245.html , as I did in former years.

Since I run Ubuntu Natty 11.04 on my AMD Fusion E-350 computer, Upstart (http://upstart.ubuntu.com/getting-started.html) has replaced the former /etc/init.d method. So I got the error message:
when using the startup script by Gareth Randall, see above.

Here's the steps I followed to achieve the installation and bootup / autostart of MPrime on my Ubuntu Natty 11.04 driven PC:
----------------------------------------------------------

0) On the terminal I created the folder /gimps:
Code:
master_and_commander@1stcomputer:~$ mkdir  /home/master_and_commander/gimps
1) Downloaded and extracted mprime266-linux64.tar.gz (or whatever the appropriate version you prefer) from www.mersenne.org to the ~/gimps folder.

1st the 64bit variant:
Code:
master_and_commander@1stcomputer:~$ cd /home/u1/gimps
master_and_commander@1stcomputer:~/gimps$ wget ftp://mersenne.org/gimps/mprime266-linux64.tar.gz
--2011-06-01 21:40:46--  ftp://mersenne.org/gimps/mprime266-linux64.tar.gz
           => »mprime266-linux64.tar.gz«
resolving hostname mersenne.org... 71.6.220.162
Link to mersenne.org|71.6.220.162|:21... connected.
Anmelden als anonymous ... Angemeldet!
==> SYST ... fertig.    ==> PWD ... fertig.
==> TYPE I ... fertig.  ==> CWD (1) /gimps ... fertig.
==> SIZE mprime266-linux64.tar.gz ... 4019958
==> PASV ... fertig.    ==> RETR mprime266-linux64.tar.gz ... done.

    [                                                                <=>                                ] 4.019.958    372K/s   in 14s     

2011-06-01 21:41:04 (271 KB/s) - »mprime266-linux64.tar.gz« saved [4019958]

master_and_commander@1stcomputer:~/gimps$ tar xzvf mprime266-linux64.tar.gz
license.txt
mprime
readme.txt
stress.txt
undoc.txt
whatsnew.txt
master_and_commander@1stcomputer:~/gimps$
2nd the 32bit variant:
Code:
master_and_commander@1stcomputer:~$ cd /home/u1/gimps
master_and_commander@1stcomputer:~/gimps$ wget ftp://mersenne.org/gimps/mprime266.tar.gz
--2011-06-01 21:40:46--  ftp://mersenne.org/gimps/mprime266.tar.gz
           => »mprime266.tar.gz«
resolving hostname mersenne.org... 71.6.220.162
Link to mersenne.org|71.6.220.162|:21... connected.
  
...   

2011-06-01 21:41:04 (271 KB/s) - »mprime266.tar.gz« saved [4019958]

master_and_commander@1stcomputer:~/gimps$ tar xzvf ftp://mersenne.org/gimps/mprime266.tar.gz
license.txt
mprime
readme.txt
stress.txt
undoc.txt
whatsnew.txt
master_and_commander@1stcomputer:~/gimps$
2) In the terminal changed to this directory and run the ./mprime -m from xterm to set up the preferences by the MPrime menu:
Code:
master_and_commander@1stcomputer:~$ cd  ~/gimps 
master_and_commander@1stcomputer:~/gimps$ ./mprime -m
[Main thread May 30 15:17] Mersenne number primality test program version 26.6
[Main thread May 30 15:17:38] Optimizing for CPU architecture: AMD K8, L2 cache size: 512 KB
         Main Menu

     1.  Test/Primenet
     2.  Test/Worker threads
     3.  Test/Status
     4.  Test/Continue
     5.  Test/Exit
     6.  Advanced/Test
     7.  Advanced/Time
     8.  Advanced/P-1
     9.  Advanced/ECM
    10.  Advanced/Manual Communication
    11.  Advanced/Unreserve Exponent
    12.  Advanced/Quit Gimps
    13.  Options/CPU
    14.  Options/Preferences
    15.  Options/Torture Test
    16.  Options/Benchmark
    17.  Help/About
    18.  Help/About PrimeNet Server
Your choice:
3) Now I used cron to have MPrime autorun in the background at start up boottime. See
https://help.ubuntu.com/community/CronHowto
Code:
master_and_commander@1stcomputer:~$ cd gimps
master_and_commander@1stcomputer:~/gimps$ crontab -e

Select an editor. To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.tiny

Choose 1-3 [2]: _
Accept [2] with <RETURN>.
You will see the editor "nano" displaying the content of your crontab file:
Code:
 GNU nano 2.2.6 Datei: /tmp/crontab.2smR8O/crontab



[ read one line ]
^G Help ^O save ^R Open file^Y Page up^K Snipp^C Cursor
^X Close ^J .. ^W Were is^V Page down ^U Snipp r^T Syntax
Here, directly, type in the following line, save with <Strg-O> and close the editor with <Strg-X>
Code:
@reboot /home/master_and_commander/gimps/mprime &
Hints:
"@reboot" at every bootup ..
do " /home/master_and_commander/gimps/mprime &", that is in the bash shell, start mprime program-code " /home/master_and_commander/gimps/mprime" ..
and run it in the bachground ("&") , tht is without any output at stdout (=terminal window).

Otherwise try this command-line:
Code:
master_and_commander@1stcomputer:~$ echo "@reboot /home/master_und_commander/gimps/mprime & " | crontab -
[sudo] password for master_and_commander:
master_and_commander@1stcomputer:~$
4) You can edit the MPrime settings by hand / editor. These are my files customed to work with my AMD Fusion 'Zacate' E-350 platform:
~/gimps/local.txt
~/gimps/prime.txt
For further information on my customisations see the
~/gimps/undoc.txt
enjoy =)

-----------
See also these postings:
* Re: How Do I Install Mprime?Install and autostart MPrime on Ubuntu 11.04 Natty with crontab 'bootup script'
* MPrime Daemon start-up script , in the ubuntu forums, from December 11th, 2005
* [SOLVED] crontabs job , in the ubuntu forums.
enjoy =)
ciic is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Install GMP-ECM onto my Ubuntu Machines EdH EdH 12 2019-04-16 09:28
How I Install GMP onto my Ubuntu Machines EdH EdH 0 2018-02-21 23:48
how to install on ubuntu? yeah Information & Answers 2 2011-03-02 17:43
Ubuntu Server Crashes when running mprime 257 roemer2201 Software 9 2008-12-05 18:47
How do I get my ubuntu install past minimal install? jasong Linux 2 2006-12-07 00:38

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


Wed Oct 4 02:13:22 UTC 2023 up 20 days, 23:55, 0 users, load averages: 1.03, 0.88, 0.87

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔