Bitcoin Forum
December 10, 2016, 09:12:43 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: share / mirror an existing terminal window's output via ssh?  (Read 5741 times)
tictok
Newbie
*
Offline Offline

Activity: 20


View Profile
June 12, 2011, 04:48:36 PM
 #1

Not sure the best way to describe what I'm trying to achieve... hope the title of my post make sense!

I have a mac pro 'dual booting' into linux (ubuntu) and running Phoenix in a terminal window.

i want to remote monitor this machine remotely, eventually turning it into a headless miner.

I already know how SSH into the machine from a remote computer, but that obviously creates a new terminal session.

What I want to do is remotely log into the mining machine and spy on the output from the Phoenix miner (essentially being able to see the output from the terminal window running on that machine).

VNC is a possibility, but sees over kill for this. I don't want to share the screen, just see the out put form an laready running terminal window.

Does that make sense?

Any help greatly appreciated!

Thanks
tictok



1481361163
Hero Member
*
Offline Offline

Posts: 1481361163

View Profile Personal Message (Offline)

Ignore
1481361163
Reply with quote  #2

1481361163
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
tictok
Newbie
*
Offline Offline

Activity: 20


View Profile
June 12, 2011, 11:51:31 PM
 #2

okay - thought i'd post that i've figured out a solution to the above   Grin

I found this webpage that explains exactly how to do what i want.

http://www.pixelbeat.org/docs/screen/

In a nutshell, in terminal session on the host computer using the 'screen' command allows can set up a user that can then ssh into that host computer and join the shared session.

The terminal session works / is interactive on both computers (host and viewer) but can be made view or read only.

Is the user later disconnects, any processes running on the host computer keep going, and the user can reconnect at any time.

Perfect for monitoring my miner and temperature etc from another device such as my iphone, and I don't have to worry about killin gprocesses by quitting terminal on the phone.

Perfect.

Hope this helps someone!

mewantsbitcoins
Full Member
***
Offline Offline

Activity: 126


View Profile
June 13, 2011, 12:03:12 AM
 #3

Thanks for posting the solution
tictok
Newbie
*
Offline Offline

Activity: 20


View Profile
June 13, 2011, 12:08:09 AM
 #4

you're welcome,

there's some really interesting and useful stuff in here too...

http://stackoverflow.com/questions/1075947/using-gnu-screen-completely-transparently-and-automatically

It details using ssc instead of ssh when logging into remote machine to set up a 'screened' session that you can later log back into later to start any processed or screened sessions on the host form the remote machine.


Since discovering bitcoin and mining I've learnt so much new stuff.
It's probably all really simple everyday stuff to a lot of people, but my knowledge of unix, terminal commands, overclocking, flashing bios etc etc have gone from zero to 'enough for now' in just a few days...  see, bitcoin has more advantages than people give it credit for  Wink
justusranvier
Legendary
*
Offline Offline

Activity: 1400



View Profile WWW
June 13, 2011, 01:07:39 AM
 #5

Once you learn GNU Screen you'll never be able to live without it.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!