mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2012-06-09, 11:22   #1
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3·17·97 Posts
Default Linux kernel.shmmax value

Hi all,

I need help. I installed virtualbox and ubuntu.
I want to run Primo but when I try to run it I get a message to change kernel.shmmax value. The problem is that when I run the following command replacing SIZE with the value indicated in the Primo status line I get the message that the file is read-only.

sudo sh -c 'echo SIZE > /proc/sys/kernel/shmmax'

As stated on Primo readme.txt file this modification will last until I reboot Linux but it is possible to set a permanent modification. I made a google search and I got the answer but I am afraid on messing linux. Also I don't understand why I don't have administrator rights when I installed ubuntu it was only asked for one login setting.

I'm a windows guy so my doubt can be stupid. So what's the easiest way to edit the file and add the right kernel.shmmax value on the /etc/sysctl.conf file?

Thank you.

Carlos

Last fiddled with by pinhodecarlos on 2012-06-09 at 11:24
pinhodecarlos is offline   Reply With Quote
Old 2012-06-09, 12:41   #2
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

1C3516 Posts
Default

The sudo password should be your own account's password if it's the only one. (You sure you're typing it right?)

Would you care to show a link for the solution? To edit a file should be as simple as
"sudo gedit FILE" which is "sudo gedit /etc/sysctl.conf", except you're saying sudo isn't working. Try installing GMP-ECM:
"sudo apt-get install ecm"
You can always undo that with
"sudo apt-get remove ecm". Either way, that should be a good test of sudo.

Actually, as an aside, when I ran "sudo echo 3 > /proc/sys/vm/drop_caches", I get "Permission denied", but that's the only place I've ever ran into sudo issues. You can alternately try "sudo su" which will launch a new shell as root and do the "echo..." in that shell; alternately, you could put the "echo..." in a script file; I can post more details if you want that.

Regardless, "sudo gedit /etc/sysctl.conf" should give you god powers on that file, and it sounds like that's the most permanent solution.

(Edit: I don't know anything about primo or this kernel.shmmax value.)

Last fiddled with by Dubslow on 2012-06-09 at 12:42
Dubslow is offline   Reply With Quote
Old 2012-06-09, 12:55   #3
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

3·17·97 Posts
Default

Primo: http://www.ellipsa.eu/public/primo/primo.html

Thank you. I'll check what you said later one.
pinhodecarlos is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Kernel memory leaking' Intel processor design flaw forces Linux, Windows redesign M344587487 Science & Technology 42 2018-11-17 13:07
8 GByte on 32-Bit Linux Kernel with PAE + mprime? joblack Hardware 6 2009-07-09 23:18
Problem on Linux with fresh kernel T.Rex Software 3 2006-08-05 09:15
kernel 2.6.2 question Sideshow Bob Linux 4 2004-04-17 03:59
'Kernel too old' for prime 22.9 on linux 2.0.38 Graffiti73 Software 7 2002-09-15 18:39

All times are UTC. The time now is 07:57.


Sat Jul 17 07:57:44 UTC 2021 up 50 days, 5:45, 1 user, load averages: 1.06, 1.30, 1.31

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.