Open AniketBhadane opened 7 years ago
The problem was due to
* soft memlock 262144 * hard memlock 262144
On the black screen, I pressed Ctrl+Alt+F1, then
sudo vi /etc/security/limits.conf
removed the two lines, saved and rebooted.
Ubuntu rebooted normally.
Why do those 2 lines cause problem? Also alongwith the black screen, I was getting low graphics message.
I found the same issue with those wildcarded memlock lines (Ubuntu 16.04.3 LTS) - I worked around it by substituting the wildcard with the username of the user running the miner.
Please link to the documentation whrer you copied the settings from.
I saw the memlock settings documented in the default config.txt.
i make it: https://github.com/nowheel/xmr-stak-cpu-installer it's a xmr-stak-cpu installer for ubuntu 16.04/16.10, i don't make services for autostart but i configure it via crontab, try it, it's simple to use, please if you want to use it, read documentation, and, don't forget to buy me a beer.
I've had the same problem, I actually ended out doing a clean reinstall only to figure output was the memlock settings. Seema like this setting is excessive, I only have 64MB ram on my laptop
I'm trying to setup xmr-stak-cpu as a startup background service on Ubuntu 16.04, but Ubuntu is not booting completely. Should I use systemd in Ubuntu 16.04 or rc.local? Here's what I did:
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
cd xmr-stak-cpu-master
sudo cmake .
sudo make install
cd bin
changed config.txt settings.
sudo sysctl -w vm.nr_hugepages=128
sudo gedit /etc/security/limits.conf
added:
Ran Successfully. Now I want to add it as a startup background service:
cd /etc/init.d
sudo gedit
typed:
saved file as miner
sudo update-rc.d miner defaults
sudo chmod +x miner
Rebooted machine
On rebooting, I'm getting following message on black screen:
/dev/sda1: clean, 432945/30269440 files, 4146215/121076480 blocks
https://i.stack.imgur.com/coTvz.png
And nothing happens after that. The miner is running in the background, I can see it on supportxmr dashboard. But on Ubuntu, only the above black screen is displayed with the above message.
How do I solve this? Is there any alternative way? How do you guys do it?