Bitcoin Forum
March 29, 2024, 07:50:32 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ubuntu autostart upon login?  (Read 2104 times)
alexdrans (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
June 07, 2011, 10:12:15 PM
 #1

I am trying to figure out how to get my miners to autostart once Ubuntu logs in. Every time I restart, I need to open up AMDOverdriveCtrl for each card and then open up terminals for each of my miners.

Is there any way I can put this together in a single script so that it opens new miners in separate windows, as well as opens up AMDOverdriveCtrl?

Edit; I'll tip what I can for a good solution!
1711698632
Hero Member
*
Offline Offline

Posts: 1711698632

View Profile Personal Message (Offline)

Ignore
1711698632
Reply with quote  #2

1711698632
Report to moderator
1711698632
Hero Member
*
Offline Offline

Posts: 1711698632

View Profile Personal Message (Offline)

Ignore
1711698632
Reply with quote  #2

1711698632
Report to moderator
1711698632
Hero Member
*
Offline Offline

Posts: 1711698632

View Profile Personal Message (Offline)

Ignore
1711698632
Reply with quote  #2

1711698632
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711698632
Hero Member
*
Offline Offline

Posts: 1711698632

View Profile Personal Message (Offline)

Ignore
1711698632
Reply with quote  #2

1711698632
Report to moderator
alexdrans (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
June 07, 2011, 10:25:03 PM
 #2

Going to give this a little bump before I head off to bed. Surely someone must know whether it's possible to do this Smiley
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 07, 2011, 11:34:10 PM
 #3

Tell me what you run in each of your terminals and I'll write you a script and tell you how to install it.

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
alexdrans (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
June 08, 2011, 07:06:10 AM
 #4

AMDOverdriveCtrl -i 0
(new terminal)
AMDOverdriveCtrl -i 3
(new terminal)
cd poclbm
./gpu1.sh
(new terminal)
cd poclbm
./gpu2.sh


Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 08, 2011, 12:16:47 PM
 #5

AMDOverdriveCtrl -i 0
(new terminal)
AMDOverdriveCtrl -i 3
(new terminal)
cd poclbm
./gpu1.sh
(new terminal)
cd poclbm
./gpu2.sh

Sorry, need the full paths to each of the commands above.  When you're in the directory type `pwd` to see where you are.
You can also use "whereis AMDOverdriveCtrl", etc, to find the full paths.

The issue is that the startup script will start in a different directory from where you are, so we need absolute paths for each command.  Also, you're not going to get any output from these commands.  Or do you want this to just run at login in the three terminals?

I can do either.  At system startup, or at your login.

Finally, give me a 'uname -a' so I know what version of linux you're running.

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
alexdrans (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
June 08, 2011, 06:41:35 PM
 #6

AMDOverdriveCtrl -i 0
(new terminal)
AMDOverdriveCtrl -i 3
(new terminal)
cd poclbm
./gpu1.sh
(new terminal)
cd poclbm
./gpu2.sh

Sorry, need the full paths to each of the commands above.  When you're in the directory type `pwd` to see where you are.
You can also use "whereis AMDOverdriveCtrl", etc, to find the full paths.

The issue is that the startup script will start in a different directory from where you are, so we need absolute paths for each command.  Also, you're not going to get any output from these commands.  Or do you want this to just run at login in the three terminals?

I can do either.  At system startup, or at your login.

Finally, give me a 'uname -a' so I know what version of linux you're running.

Ah, sorry about that. There's actually 4 terminals that need to be opened, one for each of the AMDOverdriveCtrl instances, and one for each of the miners.

The 'poclbm' directory is located at /home/alex/poclbm with gpu1.sh and gpu2.sh inside.

The output of whereis AMDOverdriveCtrl gives me AMDOverdriveCtrl: /usr/bin/AMDOverdriveCtrl /usr/share/AMDOverdriveCtrl
but I can just access this from typing AMDOverdriveCtrl -i  0(or 3) from anywhere in the terminal.

System startup or login, aren't they the same thing? There's only one user account on here that's automatically logged in when Ubuntu loads up.

Thanks for your help with this by the way!
alexdrans (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
June 09, 2011, 09:12:22 PM
 #7

AMDOverdriveCtrl -i 0
(new terminal)
AMDOverdriveCtrl -i 3
(new terminal)
cd poclbm
./gpu1.sh
(new terminal)
cd poclbm
./gpu2.sh

Sorry, need the full paths to each of the commands above.  When you're in the directory type `pwd` to see where you are.
You can also use "whereis AMDOverdriveCtrl", etc, to find the full paths.

The issue is that the startup script will start in a different directory from where you are, so we need absolute paths for each command.  Also, you're not going to get any output from these commands.  Or do you want this to just run at login in the three terminals?

I can do either.  At system startup, or at your login.

Finally, give me a 'uname -a' so I know what version of linux you're running.

Just reminding you that the thread is here and bumping Smiley
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 09, 2011, 09:54:21 PM
 #8

Okay:

Go here and read this quick tutorial of how to run commands at login under Ubuntu:
http://www.thegeekstuff.com/2009/07/ubuntu-open-applications-automatically-during-system-startup/

On the window where they have "Add Startup Program", add four different ones, with these parameters:

Name:  AMDOverdriveCtrl Dev 0
Command:  gnome-terminal -e /usr/bin/AMDOverdriveCtrl -i 0
Comment:  Whatever you want

Name:  AMDOverdriveCtrl Dev 3
Command:  gnome-terminal -e /usr/bin/AMDOverdriveCtrl -i 3
Comment:  Whatever you want

Name:  poclbm GPU 1
Command:  gnome-terminal -e /home/alex/poclbm/gpu1.sh
Comment:  Whatever you want

Name:  poclbm GPU 2
Command:  gnome-terminal -e /home/alex/poclbm/gpu2.sh
Comment:  Whatever you want

Then log out, and log back in to test.

If this works and you're happy, please consider helping me out a bit with whatever seems appropriate, 1 BTC would be awesome:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
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!