Live data from Hacker News

Sharing your SSH commandline

codelathe.com

1–10 of 15 posts

Re: Sharing your SSH commandline

#5
post #3

I've been wondering if it might be interesting to see webcasts of just smart people coding some project from start to finish, say one hour webcast per day.

I would love that! I would also like to hear their justification of why they do some things in certain ways.

Re: Sharing your SSH commandline

#8
post #2

I love screen. Still don't know half of what it can do.

http://www.delorie.com/gnu/docs/screen/screen_toc.html

Screen is the sort of program where it's really good to skim through its manual now and then. There's tons of stuff in there that most people don't know it can do.

The scroll/copy and paste functionality functionality (under M-[ and M-], where meta is C-a or ` or whatever) is really handy, you can change settings interactively via the : prompt, and you can also interact with the running screen session(s) via scripts.

Also, from my screenrc, a statusbar (looks like this http://shenani.gen.nz/~scott/screen-statusbar.png):

  # Set up my status line at the bottom of every frame
  caption always "%{gb}  %{ck}%m-%d %C %{gb}  %{gb}%?%-Lw%?%{ck}%n*%f %t%?(%u)%?%{gb}%?%+Lw%?"

Re: Sharing your SSH commandline

#9

Is there a way to do this without having to sudo on one or both ends?

You don't need to use sudo at all. I just tried it without, it worked fine. (On OpenBSD, but that shouldn't matter.) Logging doesn't have anything to do with sharing sessions, either, though it is quite useful for other stuff.

The multiuser section of the manual is here (http://www.delorie.com/gnu/docs/screen/screen_25.html), and there are a couple commands for changing user permissions.

Post reply on HN