Bitcoin Forum
June 24, 2024, 05:45:37 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to?  (Read 4056 times)
glub0x (OP)
Legendary
*
Offline Offline

Activity: 892
Merit: 1013



View Profile
May 02, 2013, 01:23:20 PM
Last edit: May 02, 2013, 01:52:44 PM by glub0x
 #1

Hello, on startup my little miner open cgminer and start working all alone.
so basicaly a shell window is open with cgminer. if i plug my screen, i can quickly check if everything is allright.
Now i would like to be  able to see the cgminer program from ssh.
I'd like a kind of ALT+TAB for the terminal.

Is it possible ?

thanks a lot

The cost of mediation increases transaction costs, limiting the
minimum practical transaction size and cutting off the possibility for small casual transactions

Satoshi Nakamoto : https://bitcoin.org/bitcoin.pdf
dellech
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
May 02, 2013, 09:09:35 PM
 #2

check out screen - that is a "text mode window manager" ... read the man page, it should be possible to start screen and immediately load your miner.

something like "screen -S mine ./miner.sh" opens a window named "mine" and starts the script "miner.sh" ...  you should now be able to ssh and attach to the session with "screen -x mine"

"Ctrl-a d" detaches the session - your shell script continues to run ...
glub0x (OP)
Legendary
*
Offline Offline

Activity: 892
Merit: 1013



View Profile
May 03, 2013, 03:24:38 PM
 #3

check out screen - that is a "text mode window manager" ... read the man page, it should be possible to start screen and immediately load your miner.

something like "screen -S mine ./miner.sh" opens a window named "mine" and starts the script "miner.sh" ...  you should now be able to ssh and attach to the session with "screen -x mine"

"Ctrl-a d" detaches the session - your shell script continues to run ...
humm i'll give it a try even if my first attempt to use screen was a failure.
From now when i start my session i use gnome-terminal x -sh "my command" or something like that. no way to switch when using this?

The cost of mediation increases transaction costs, limiting the
minimum practical transaction size and cutting off the possibility for small casual transactions

Satoshi Nakamoto : https://bitcoin.org/bitcoin.pdf
dellech
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
May 03, 2013, 05:45:59 PM
 #4

I fear that gnome-terminal can not be attached to  - only possibility I see for that is desktop sharing but then you access the whole X session over ssh ...

I use screen for all my miners, starting it manually .... on one machine I did it automatically in LXDE

gnome-terminal x -screen -S miner sh "my command" should do the trick
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
May 07, 2013, 01:03:22 AM
 #5

Check out Byobu. You can't have it start CGMiner on startup in a single command like you can with screen, but it's dead simple to use.

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
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!