Foreverrising Blog

June 4, 2011

Starting your BitCoin miner on startup (Ubuntu 10.10)

Filed under: Software — Tags: , , , — foreverrising @ 11:14 pm

I actually don’t have my miner start automatically on system startup. I did at one point but (I’m no expert) I didn’t have too much time to get the miner instance to launch in it’s own window. The PC would boot, and start mining, but I would kill the process just so I could have a visual on the activity.

What I did was this:

1. Configure your user to automatically log in with no password in Ubuntu. This will allow you to remotely reboot your machine without having to login at the keyboard. If you wish to do this, DO NOT RUN YOUR BITCOIN CLIENT FROM THE SAME MACHINE! Run it on a shitty machine that would be a waste to mine on!

Open: System> Administration> Login Screen Settings.
Select the radio button “Log in as x automatically.” You will also need to remove your password.

Open: System> Preferences> Passwords and Encryption Keys.
Under the Passwords tab (default), right-click on each of the password folders and select “Change Password.” Enter the old password and leave the new password blank. Repeat for default keyring and login keyring (the ‘folders’). Reboot and make sure there is no passwords to get logged into the desktop and online.

2. Create a shell script to mine
Open: Terminal.
Then confirm to create the file.
Paste this and fill in the correct flags:

cd /[path to your miner python file]/
python -d [X] yada yada yada

Close and save the changes. Type
to confirm that it starts the miner.
Then type
chmod +x

3. Add the script to your startup applications
Open: System> Preferences> Startup Applications
Click Add

Name: Bitcoin Miner
Command: /home/USER/
Comment: Added miner script to startup


If all is well you will have a desktop behaving slowly. Open system monitor to show you that the process Python is running, then check your online stats.

I’ll post the crontab script to restart the phoenix miner if anyone wants it.

Me: 1PpEc6snjyKqy6CH7wkd6c2Wh9LTfNgCVD (If you’re feeling generous).


Create a free website or blog at