Re: [Nolug] screen commands - odd

From: Petri Laihonen <pietu_at_weblizards.net>
Date: Wed, 23 Apr 2008 16:46:20 -0500
Message-ID: <480FAE2C.2060000@weblizards.net>

I was using standard Konsole in KDE.

And yes, I already like screen. (Thanks for all suggesting it)
I'm sure I will never ever learn or even need most of the functions
within, and eventually I discover methods to go around these "first-day"
shortcomings.

For the latest challenge, One that quickly comes to mind is to mount
some folders from remote server via sshfs when launching screen. On my
home network, sshfs seems to be 2-3 times faster to transfer files than
fish. Fish is still useful though....

My main target has already been achieved, and that was to use one
command to open all my needed SSH connections with tunneling etc....

Petri

Scott Harney wrote:
> That problem is just due to whatever terminal you are using and it's
> limitation.
>
> For the second issue, you can launch multiple "windows" within screen.
> so you can ssh to multiple places within one screen "session" C-a C
> "creates" a new window and C-a left and C-a right navigate within
> them. Just leave one on your local machine or ssh back in to the
> machine you are on.
>
> My home dir at this location is an NFS share so this is kinda not an
> issue for me. The point is, there are many ways to do what you want
> and screen is a really powerful tool. start working with it and see
> what you can do.
>
>
>
> On Wed, Apr 23, 2008 at 3:28 PM, Petri Laihonen <pietu@weblizards.net
> <mailto:pietu@weblizards.net>> wrote:
>
> yep, did not work with multiple pages of "selected" text.
>
> first, by marking the beginning and the end via [enter], this
> copies the
> selection into the buffere.
> second, by marking the beginning, selecting couple of pages, then on
> console right-click copy, does not get anything. However, if I choose
> right-click "set selection end", I will get part of the currently
> visible screen to the clipboard and can paste that into the GUI
> text editor.
>
> Petri
>
> Petri Laihonen wrote:
> > Scott Harney wrote:
> >
> >> Select text with mouse and cut and paste as your normally would
> from a
> >> terminal.
> >>
> > This would probably not work with multiple pages of text (scrolled
> > text), but will check
> >
> >> The cat>/tmp/file with the cut and paste works to. you just
> open the
> >> file in your external GUI editor after the cut and paste.
> >>
> >> I normally use vi within screen so that's really not an issue
> for me.
> >>
> > This would require one of the screens to be on your local computer.
> > Otherwise there would not be need for copy/paste as one could
> just cat
> > or grep > file.txt, and then retrieve it from the server.
> >
> > petri
> >
> >
> >>
> >> On Wed, Apr 23, 2008 at 2:58 PM, Petri Laihonen
> <pietu@weblizards.net <mailto:pietu@weblizards.net>
> >> <mailto:pietu@weblizards.net <mailto:pietu@weblizards.net>>> wrote:
> >>
> >> I tried that as instructed on one of the tutorial websites,
> but it
> >> only
> >> pasted back to the screen.
> >> I need to paste to a text editor or somewhere outside of
> the screen.
> >>
> >> Petri
> >>
> >> Scott Harney wrote:
> >> > paste is ctrl-A ] (control A right-square-bracket). I
> do this
> >> a lot:
> >> >
> >> > cat >> /tmp/xxxx
> >> > C-a ]
> >> > C-d
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Apr 23, 2008 at 1:45 PM, Petri Laihonen
> >> <pietu@weblizards.net <mailto:pietu@weblizards.net>
> <mailto:pietu@weblizards.net <mailto:pietu@weblizards.net>>
> >> > <mailto:pietu@weblizards.net
> <mailto:pietu@weblizards.net> <mailto:pietu@weblizards.net
> <mailto:pietu@weblizards.net>>>> wrote:
> >> >
> >> > Hmm.... I'm learning.....
> >> > I was checking some tutorials and seem to be able to
> do most
> >> of that
> >> > stuff..... there were however couple of things I was
> unable
> >> to do
> >> > even
> >> > with the tutorials.
> >> >
> >> > For example Copy / Paste:
> >> > I seem to be able to copy text from the screen.
> However, when
> >> > opening a
> >> > text editor and trying to paste the text. That does not
> >> work. The text
> >> > is in some sort of buffer in screen, but how do I get
> the text
> >> > from that
> >> > buffer to another program?
> >> >
> >> > Split screen: (no more problem...... By pasting the
> >> instructions
> >> > here,
> >> > I discovered additional characters which were not really
> >> readable
> >> > on the
> >> > browser)
> >> >
> >> > Petri
> >> >
> >> >
> >> >
> >> > B. Estrade wrote:
> >> > > On Wed, Apr 23, 2008 at 11:26:51AM -0500, Dustin
> Puryear
> >> wrote:
> >> > >
> >> > >> This is really all you need to know:
> >> > >>
> >> > >> 1. Control-a : command mode, start with this always
> >> > >>
> >> > >> 2. control-a c : create
> >> > >>
> >> > >> 3. control-a control-a : switch to previous window
> (toggle)
> >> > >>
> >> > >> 4. control-a ": show all my available windows
> >> > >>
> >> > >> 5. control-a A: name the current window with a title
> >> (e.g., "my
> >> > log view")
> >> > >>
> >> > >> 6. control-a K: kill this window (e.g., it hangs)
> >> > >>
> >> > >> 7. control-a d: detach and go home for the day
> >> > >>
> >> > >> Put this in your ~/.screenrc before starting screen:
> >> > >>
> >> > >> hardstatus on
> >> > >> hardstatus alwayslastline
> >> > >> hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w
> %=%{..G} %H
> >> > %{..Y} %m/%d
> >> > >> %C%a "
> >> > >>
> >> > >
> >> > > What do those do?
> >> > >
> >> > >
> >> > >> --
> >> > >> Dustin Puryear
> >> > >> President and Sr. Consultant
> >> > >> Puryear Information Technology, LLC
> >> > >> 225-706-8414 x112
> >> > >> http://www.puryear-it.com
> >> > >>
> >> > >> Author, "Best Practices for Managing Linux and
> UNIX Servers"
> >> > >>
> http://www.puryear-it.com/pubs/linux-unix-best-practices/
> >> > >>
> >> > >>
> >> > >> Petri Laihonen wrote:
> >> > >>
> >> > >>> I have now managed to get my SSH tunnels etc up
> and running
> >> > when I start
> >> > >>> "screen"..... It was necessary to set up
> ssh-agent in order
> >> > to do the
> >> > >>> passwordless logins. So I learned that too.
> >> > >>>
> >> > >>> However, screen seems to be very difficult to
> use, or I
> >> do not
> >> > >>> understand the instructions......most likely
> both......
> >> > >>> I have not yet figured out how to interpret the
> >> > instructions...... There
> >> > >>> seem to be no legend....
> >> > >>>
> >> > >>> For instance,
> >> > >>> *C-a C-b* (break)
> >> > >>>
> >> > >>> Send a break to window.
> >> > >>> *C-a B* (pow_break)
> >> > >>> Reopen the terminal line and send a break.
> >> > >>> *C-a C-d* (detach)
> >> > >>> Detach
> >> > >>> /screen/ from this terminal.
> >> > >>> *C-a D D* (pow_detach)
> >> > >>> Detach and logout.
> >> > >>>
> >> > >>> ETC.....
> >> > >>>
> >> > >>> I have yet to figure out what is "*C-a*"?
> >> > >>> I suspected it was a "ctrl" +something else, but that
> >> does not
> >> > seem to
> >> > >>> work.
> >> > >>>
> >> > >>> Also, I have not yet found a way to scroll the
> windows
> >> since
> >> > the normal
> >> > >>> scrollbar does not work anymore.
> >> > >>>
> >> > >>> Someone please throw me a bone? :-)
> >> > >>>
> >> > >>> Petri
> >> > >>>
> >> > >>>
> >> > >>>
> >> > >>>
> >> > >>> ___________________
> >> > >>> Nolug mailing list
> >> > >>> nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>
> >> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>>
> >> > >>>
> >> > >> ___________________
> >> > >> Nolug mailing list
> >> > >> nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>
> >> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>>
> >> > >>
> >> > > ___________________
> >> > > Nolug mailing list
> >> > > nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>
> >> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>>
> >> > >
> >> > >
> >> > ___________________
> >> > Nolug mailing list
> >> > nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>
> >> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>>
> >> >
> >> >
> >> ___________________
> >> Nolug mailing list
> >> nolug@nolug.org <mailto:nolug@nolug.org>
> <mailto:nolug@nolug.org <mailto:nolug@nolug.org>>
> >>
> >>
> >>
> > ___________________
> > Nolug mailing list
> > nolug@nolug.org <mailto:nolug@nolug.org>
> >
> >
> ___________________
> Nolug mailing list
> nolug@nolug.org <mailto:nolug@nolug.org>
>
>
___________________
Nolug mailing list
nolug@nolug.org
Received on 04/23/08

This archive was generated by hypermail 2.2.0 : 12/19/08 EST