Bitcoin Forum
May 07, 2024, 04:21:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: share / mirror an existing terminal window's output via ssh?  (Read 6757 times)
tictok (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


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



The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715055717
Hero Member
*
Offline Offline

Posts: 1715055717

View Profile Personal Message (Offline)

Ignore
1715055717
Reply with quote  #2

1715055717
Report to moderator
1715055717
Hero Member
*
Offline Offline

Posts: 1715055717

View Profile Personal Message (Offline)

Ignore
1715055717
Reply with quote  #2

1715055717
Report to moderator
tictok (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


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
Merit: 100


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

Thanks for posting the solution
tictok (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


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
Merit: 1009



View Profile
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!