Title: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to? Post by: glub0x on May 02, 2013, 01:23:20 PM 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 Title: Re: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to? Post by: dellech on May 02, 2013, 09:09:35 PM 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 ... Title: Re: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to? Post by: glub0x on May 03, 2013, 03:24:38 PM 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. humm i'll give it a try even if my first attempt to use screen was a failure.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 ... 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? Title: Re: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to? Post by: dellech on May 03, 2013, 05:45:59 PM 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 Title: Re: [UBUNTU] i open cgminer on startup, now i'd like to see it via ssh, how to? Post by: crazyates on May 07, 2013, 01:03:22 AM 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.
|