Bitcoin Forum
May 11, 2024, 02:27:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to autostart miner in linux?  (Read 1086 times)
monsanto (OP)
Legendary
*
Offline Offline

Activity: 1241
Merit: 1005


..like bright metal on a sullen ground.


View Profile
November 11, 2016, 03:58:42 AM
 #1

I'm trying to have my miner start from a script on start up on a linux 14.04 system (I haven't been using linux very long).  I'm trying to use /etc/rc.local to run it, but nothing happens.  I think maybe because rc.local tries to run the script before everything is booted up?  I tried using "sleep" in the script to give it more time, but that didn't work either.  Any idea how to get this to work?  Huh
1715394466
Hero Member
*
Offline Offline

Posts: 1715394466

View Profile Personal Message (Offline)

Ignore
1715394466
Reply with quote  #2

1715394466
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715394466
Hero Member
*
Offline Offline

Posts: 1715394466

View Profile Personal Message (Offline)

Ignore
1715394466
Reply with quote  #2

1715394466
Report to moderator
john1010
Hero Member
*****
Offline Offline

Activity: 2086
Merit: 562


View Profile WWW
November 11, 2016, 06:38:28 AM
 #2

It's too complicated of setting up auto start in linux.. Windows is a user fiendly for miners especially win10 x64

Run
type : shell:startup
copy the file or program you want to start on startup
grizscom
Sr. Member
****
Offline Offline

Activity: 245
Merit: 256


View Profile WWW
November 11, 2016, 06:42:48 AM
 #3

I am use the XUbuntu 14.04 with auto-login.

I create file at: ~/.config/autostart/start-miner.sh.desktop

it is contains:
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=miner
Comment=miner
Exec=/home/user/start-miner.sh
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false



http://ethereumpool.co/ - Stable, fair & transparent Ethereum mining pool
jk_14
Legendary
*
Offline Offline

Activity: 1292
Merit: 1000


View Profile
November 11, 2016, 07:54:18 PM
 #4

I'm trying to have my miner start from a script on start up on a linux 14.04 system (I haven't been using linux very long).  I'm trying to use /etc/rc.local to run it, but nothing happens.  I think maybe because rc.local tries to run the script before everything is booted up?  I tried using "sleep" in the script to give it more time, but that didn't work either.  Any idea how to get this to work?  Huh


it's very easy Smiley

go to /etc/init.d
copy some file to a new filename and implement inside what you want

then go to: /etc/rc2.d, /etc/rc3.d and /etc/rc5.d
add symbolic link to your script:
ln -s ../init.d/yourscript S06yourscript

then reboot


P.S. you can see how to do it - in KopiemTu:
https://bitcointalk.org/index.php?topic=520998.0
QuintLeo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1030


View Profile
November 11, 2016, 11:26:42 PM
 #5

It's very easy to set up autostart AFTER Xwindows is running if you use the XFCE desktop.
XFCE has a specific menu to control auto-starting stuff.

I'm no longer legendary just in my own mind!
Like something I said? Donations gratefully accepted. LYLnTKvLefz9izJFUvEGQEZzSkz34b3N6U (Litecoin)
1GYbjMTPdCuV7dci3iCUiaRrcNuaiQrVYY (Bitcoin)
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!