mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   Linux kernel.shmmax value (https://www.mersenneforum.org/showthread.php?t=16887)

pinhodecarlos 2012-06-09 11:22

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

Dubslow 2012-06-09 12:41

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.)

pinhodecarlos 2012-06-09 12:55

Primo: [url]http://www.ellipsa.eu/public/primo/primo.html[/url]

Thank you. I'll check what you said later one.


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

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