Bitcoin Forum
May 28, 2017, 08:36:09 PM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How can automate cgminer starting in screen on linuxcoin restart  (Read 1733 times)
mackminer
Sr. Member
****
Offline Offline

Activity: 338



View Profile
October 23, 2011, 01:34:37 PM
 #1

Hello,
I am regularly rebooting my rigs at the moment due to issues I'm running into while tweaking my cards for max performance.

I'm using cgminer and I would like if it could be automated to start rather than me having to do it manually. At the moment upon logon I have to start screen. Then export DISPLAY=:0 and then enter the cgminer folder and run the starting line with all arguments etc. It's getting annoying now and I would like something quicker.

Can anyone point me in the right direction?

Thanks.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
POLONIEX TRADING SIGNALS
+50% Profit and more via TELEGRAM
ALTCOINTRADER.CO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252


View Profile
October 23, 2011, 04:50:37 PM
 #2

Add this line to /etc/xdg/lxsession/LXDE/autostart:

Code:
@lxterminal --command=screen

and create .screenrc in the home directory:

Code:
startup_message off
screen -t MINER 0 sudo /path/to/your/cgminer and parameters

(you can drop the sudo, I don't remember why I put it there, but I must have had a reason Smiley ).
mackminer
Sr. Member
****
Offline Offline

Activity: 338



View Profile
October 23, 2011, 06:07:42 PM
 #3

Add this line to /etc/xdg/lxsession/LXDE/autostart:

Code:
@lxterminal --command=screen

and create .screenrc in the home directory:

Code:
startup_message off
screen -t MINER 0 sudo /path/to/your/cgminer and parameters

(you can drop the sudo, I don't remember why I put it there, but I must have had a reason Smiley ).

Excellent - I've just added that to my system. Won't be able to test for a few days but thanks!  Smiley

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
Valle
Full Member
***
Offline Offline

Activity: 159


View Profile
April 15, 2013, 07:25:07 AM
 #4

There is no lxsession directory for ubuntu, so it does not work.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!