Bitcoin Forum
February 25, 2018, 04:32:14 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How can automate cgminer starting in screen on linuxcoin restart  (Read 1809 times)
mackminer
Sr. Member
****
Offline Offline

Activity: 348
Merit: 250



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
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1519533134
Hero Member
*
Offline Offline

Posts: 1519533134

View Profile Personal Message (Offline)

Ignore
1519533134
Reply with quote  #2

1519533134
Report to moderator
1519533134
Hero Member
*
Offline Offline

Posts: 1519533134

View Profile Personal Message (Offline)

Ignore
1519533134
Reply with quote  #2

1519533134
Report to moderator
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
Sr. Member
****
Offline Offline

Activity: 348
Merit: 250



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: 100


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!