Author

Topic: How can automate cgminer starting in screen on linuxcoin restart (Read 1897 times)

full member
Activity: 177
Merit: 101
There is no lxsession directory for ubuntu, so it does not work.
sr. member
Activity: 348
Merit: 251
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
sr. member
Activity: 252
Merit: 250
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 ).
sr. member
Activity: 348
Merit: 251
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.
Jump to: