Bitcoin Forum
July 24, 2024, 11:33:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can automate cgminer starting in screen on linuxcoin restart  (Read 1885 times)
mackminer (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



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.

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


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 (OP)
Sr. Member
****
Offline Offline

Activity: 348
Merit: 251



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

1BFf3Whvj118A5akc5fHhfLLwxYduMmq1d
Valle
Full Member
***
Offline Offline

Activity: 177
Merit: 101


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!