mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2013-10-18, 02:13   #1
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

2×33×23 Posts
Default Ubuntu

I decided to give Ubuntu 64-bit a try on my Athlon 64 x2. I have MPRIME in a folder. I can't seem to get it started. It must run in a window. I cannot find a way to a command prompt. Any suggestions for this old dumb butt?
storm5510 is offline   Reply With Quote
Old 2013-10-18, 02:31   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

52×131 Posts
Default

Open a terminal (maybe by Ubuntu's search for "terminal") and "cd" (change directory) to the directory. Like this:

Code:
cd ~/mprime
(Linux is case-sensitive and "~" is short for your home directory.)

Check mprime is executable with "ls" (list file(s)):

Code:
ls -l mprime
If neccessary, make it executable (change mode):

Code:
chmod u+x mprime
To run mprime:

Code:
./mprime -m
"./" is short for "look in this directory"

This thread has some ways to start mprime on boot

Last fiddled with by paulunderwood on 2013-10-18 at 02:39
paulunderwood is online now   Reply With Quote
Old 2013-10-18, 02:52   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

2×33×23 Posts
Default

"Open a terminal". I understand what you mean. I can't find a way to do that. Help docs don't mention that specificly. Pretty sorry for a guy that taught MS-DOS. :-|
storm5510 is offline   Reply With Quote
Old 2013-10-18, 02:54   #4
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

2·3·977 Posts
Default

You can open a Terminal window by pressing Ctrl+Alt+T or going to Applications -> Accessories -> Terminal.

Last fiddled with by CRGreathouse on 2013-10-18 at 02:54
CRGreathouse is offline   Reply With Quote
Old 2013-10-18, 03:34   #5
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

23328 Posts
Default

Got into folder. Entering "mprime" returns "command not found".
storm5510 is offline   Reply With Quote
Old 2013-10-18, 04:27   #6
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

26AF16 Posts
Default

I'm not at all a Linux expert, but the "./" (dot-front slash) preceding the program name is necessary. The "-m" starts mprime in menu mode for configuration, if I remember correctly. It's been a while since I had an Ubuntu machine to mess with.
kladner is offline   Reply With Quote
Old 2013-10-18, 05:51   #7
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

2×33×23 Posts
Smile

Now running! ./mprime loads the menus. ./mprime -d starts the process. I have much to learn about Linux. I found a complete listing of Bash Terminal commands. I will learn it in small bits. Wiindows 8 x64 was not an option. I have 7 Pro 32-bit on the other partition. If this works, and it is, I won't be searching for 7 x64. Thank you to all who helped. :-)
storm5510 is offline   Reply With Quote
Old 2013-10-18, 14:49   #8
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

3×3,301 Posts
Default

Good to hear it's running!

Oh, yeah- love your Blackbeard avatar. :)

Last fiddled with by kladner on 2013-10-18 at 15:02
kladner is offline   Reply With Quote
Old 2013-11-06, 19:06   #9
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

13×71 Posts
Default

Glad I found this thread so that I wouldn't have to start from scratch.

I'm trying to compare my laptop's DC performance in Prime95 on Vista x64, to how fast it works with mprime on Zorin OS 6.4 x64. (Zorin is a Ubuntu derivative; I'm using a Live CD but with the mprime archive extracted to a USB thumb drive.)

I managed to change the directory to the correct thumb drive. I tried everything in this thread, but when I type "./mprime -m" in the terminal, it comes back with "Permission denied".

What can I try next? Very much (but not 100%) a Linux noob.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-11-06, 19:32   #10
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

52×131 Posts
Default

You need to change the permissions on the file "mprime". In Linux there are 3 permissions of "read", "write" and "execute" for each of "user", "group" and "all". So if you don't have permission, you need to run:

Code:
chmod u+x mprime
If however you do not own the file, you might first have to do:

Code:
sudo chown rodrigo:rodrigo mprime
(or whatever the account is.) If you have any problem run "ls -l" on the directory and post the results here

I am running Slax, usb thumbdrive distro. Simply download, unzip to a formatted thumbdrive, run the program on the thumbdrive to make thumbdrive's master boot record active, and boot it by pressing your motherboard's magic "select drive to boot" key when you power up. (On older computers you might have to go into BIOS and arrange the list of bootable media.)

Last fiddled with by paulunderwood on 2013-11-06 at 19:50
paulunderwood is online now   Reply With Quote
Old 2013-11-06, 21:10   #11
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22·5·7·23 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
You need to change the permissions on the file "mprime". In Linux there are 3 permissions of "read", "write" and "execute" for each of "user", "group" and "all". So if you don't have permission, you need to run:

Code:
chmod u+x mprime
If however you do not own the file, you might first have to do:

Code:
sudo chown rodrigo:rodrigo mprime
(or whatever the account is.) If you have any problem run "ls -l" on the directory and post the results here

I am running Slax, usb thumbdrive distro. Simply download, unzip to a formatted thumbdrive, run the program on the thumbdrive to make thumbdrive's master boot record active, and boot it by pressing your motherboard's magic "select drive to boot" key when you power up. (On older computers you might have to go into BIOS and arrange the list of bootable media.)
Is this the same isssue, that I've been fixing via gui, by right-click>permissions and checking the entry for "Allow executing file as program?" For me, when I copy a program from elsewhere, it says I own it and it's in my group, but it won't run until I check the box. If I compile the program, this box is checked.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu saddies ET_ GPU Computing 12 2013-05-14 14:30
New laptop with ubuntu pinhodecarlos Linux 30 2013-04-12 09:23
Upgrading Ubuntu from 9.04 to 11.04 ET_ Linux 9 2012-03-05 20:04
how to install on ubuntu? yeah Information & Answers 2 2011-03-02 17:43
Ubuntu 9.10 henryzz Linux 11 2010-01-29 21:31

All times are UTC. The time now is 08:45.

Wed Jul 8 08:45:19 UTC 2020 up 105 days, 6:18, 0 users, load averages: 2.01, 1.74, 1.75

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.