public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I move running proces to background & out of screen?
@ 2011-03-01 18:56 Jarry
  2011-03-01 19:06 ` Edward Martinez
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Jarry @ 2011-03-01 18:56 UTC (permalink / raw
  To: gentoo-user

Hi,
is there any way to move running (already started) process
to background, and disconnect it from screen/terminal
so that I could log off (without terminating the process)?

Sometimes I start updating my server, but it keeps running
for long time, and I would like to log out but I can not.

I know, I could have started it with:
nohup emerge -uv gcc &

But I forgot to do it that way, and now I'm sitting, watching
messages scrolling in my shell. So is there any way to do
this nohup-trick on running process?

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
@ 2011-03-01 19:06 ` Edward Martinez
  2011-03-01 19:07 ` Helmut Jarausch
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 21+ messages in thread
From: Edward Martinez @ 2011-03-01 19:06 UTC (permalink / raw
  To: gentoo-user

On 03/01/11 10:56, Jarry wrote:
> Hi,
> is there any way to move running (already started) process
> to background, and disconnect it from screen/terminal
> so that I could log off (without terminating the process)?
>
> Sometimes I start updating my server, but it keeps running
> for long time, and I would like to log out but I can not.
>
> I know, I could have started it with:
> nohup emerge -uv gcc &
>
> But I forgot to do it that way, and now I'm sitting, watching
> messages scrolling in my shell. So is there any way to do
> this nohup-trick on running process?
>
> Jarry
    Hi,

   If i can remember correctly I think the command would be :

     bg

    but i don't know the whole syntax.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
  2011-03-01 19:06 ` Edward Martinez
@ 2011-03-01 19:07 ` Helmut Jarausch
  2011-03-01 19:12 ` Michael Orlitzky
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 21+ messages in thread
From: Helmut Jarausch @ 2011-03-01 19:07 UTC (permalink / raw
  To: gentoo-user

On 03/01/2011 07:56:40 PM, Jarry wrote:
> Hi,
> is there any way to move running (already started) process
> to background, and disconnect it from screen/terminal
> so that I could log off (without terminating the process)?
> 
> Sometimes I start updating my server, but it keeps running
> for long time, and I would like to log out but I can not.
> 
> I know, I could have started it with:
> nohup emerge -uv gcc &
> 
> But I forgot to do it that way, and now I'm sitting, watching
> messages scrolling in my shell. So is there any way to do
> this nohup-trick on running process?
> 

You might have a look at
http://www.quantprinciple.com/invest/index.php/docs/tipsandtricks/unix/jobcontrol/

Helmut.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
  2011-03-01 19:06 ` Edward Martinez
  2011-03-01 19:07 ` Helmut Jarausch
@ 2011-03-01 19:12 ` Michael Orlitzky
  2011-03-01 21:07   ` Neil Bothwick
  2011-03-02  6:21   ` Stroller
  2011-03-01 19:22 ` [gentoo-user] " Nikos Chantziaras
  2011-03-01 20:21 ` [gentoo-user] " Alex Schuster
  4 siblings, 2 replies; 21+ messages in thread
From: Michael Orlitzky @ 2011-03-01 19:12 UTC (permalink / raw
  To: gentoo-user

On 03/01/11 13:56, Jarry wrote:
> Hi,
> is there any way to move running (already started) process
> to background, and disconnect it from screen/terminal
> so that I could log off (without terminating the process)?
> 
> Sometimes I start updating my server, but it keeps running
> for long time, and I would like to log out but I can not.
> 
> I know, I could have started it with:
> nohup emerge -uv gcc &
> 
> But I forgot to do it that way, and now I'm sitting, watching
> messages scrolling in my shell. So is there any way to do
> this nohup-trick on running process?
> 
> Jarry

See,


http://blog.nelhage.com/2011/01/reptyr-attach-a-running-process-to-a-new-terminal/

Combine with GNU Screen to achieve what you want.

(I'll do an ebuild for reptyr in the next week or so if nobody beats me
to it.)



^ permalink raw reply	[flat|nested] 21+ messages in thread

* [gentoo-user] Re: How can I move running proces to background & out of screen?
  2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
                   ` (2 preceding siblings ...)
  2011-03-01 19:12 ` Michael Orlitzky
@ 2011-03-01 19:22 ` Nikos Chantziaras
  2011-03-01 20:21 ` [gentoo-user] " Alex Schuster
  4 siblings, 0 replies; 21+ messages in thread
From: Nikos Chantziaras @ 2011-03-01 19:22 UTC (permalink / raw
  To: gentoo-user

On 03/01/2011 08:56 PM, Jarry wrote:
> Hi,
> is there any way to move running (already started) process
> to background, and disconnect it from screen/terminal
> so that I could log off (without terminating the process)?

The cleanest way to do this is not with job control but with a tool like 
"screen".  Install it (app-misc/screen) and start programs with it.  You 
also start a shell in screen.  For example:

   screen su - USERNAME

Now you can press CTRL+A, D to detach the screen.  The programs in it 
will continue running in the background.  To re-attach, type "screen -r".

You can read the docs of this tool to learn about all nifty stuff you 
can do with it, like opening more screen windows from the same screen 
session and switch between them.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
                   ` (3 preceding siblings ...)
  2011-03-01 19:22 ` [gentoo-user] " Nikos Chantziaras
@ 2011-03-01 20:21 ` Alex Schuster
  2011-03-02 19:02   ` Daniel Heemann
  4 siblings, 1 reply; 21+ messages in thread
From: Alex Schuster @ 2011-03-01 20:21 UTC (permalink / raw
  To: gentoo-user

Jarry writes:

> is there any way to move running (already started) process
> to background, and disconnect it from screen/terminal
> so that I could log off (without terminating the process)?

Ctrl-Z
bg

But I really suggest using screen for this. Then you can detach the shell 
with Ctrl-A D, and re-attach later with screen -DR.

	Wonko



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 19:12 ` Michael Orlitzky
@ 2011-03-01 21:07   ` Neil Bothwick
  2011-03-01 21:19     ` Michael Orlitzky
  2011-03-02  6:21   ` Stroller
  1 sibling, 1 reply; 21+ messages in thread
From: Neil Bothwick @ 2011-03-01 21:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

On Tue, 01 Mar 2011 14:12:31 -0500, Michael Orlitzky wrote:

> (I'll do an ebuild for reptyr in the next week or so if nobody beats me
> to it.)

It looks like somebody already has :)

% eix reptyr
* app-misc/reptyr [1]
     Available versions:  (~)9999
     Description:         Reparent a running program to a new terminal

[1] "foo-overlay" layman/foo-overlay


-- 
Neil Bothwick

New sig wanted good price paid.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 21:07   ` Neil Bothwick
@ 2011-03-01 21:19     ` Michael Orlitzky
  0 siblings, 0 replies; 21+ messages in thread
From: Michael Orlitzky @ 2011-03-01 21:19 UTC (permalink / raw
  To: gentoo-user

On 03/01/11 16:07, Neil Bothwick wrote:
> On Tue, 01 Mar 2011 14:12:31 -0500, Michael Orlitzky wrote:
> 
>> (I'll do an ebuild for reptyr in the next week or so if nobody beats me
>> to it.)
> 
> It looks like somebody already has :)
> 
> % eix reptyr
> * app-misc/reptyr [1]
>      Available versions:  (~)9999
>      Description:         Reparent a running program to a new terminal
> 
> [1] "foo-overlay" layman/foo-overlay
> 
> 

(Does anyone commit to portage any more?)

I didn't realize there was no release tagged. I'll ask the author if he
would tag a version epsilon>0 so that it's easier to keyword.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 19:12 ` Michael Orlitzky
  2011-03-01 21:07   ` Neil Bothwick
@ 2011-03-02  6:21   ` Stroller
  2011-03-02 20:44     ` Volker Armin Hemmann
  1 sibling, 1 reply; 21+ messages in thread
From: Stroller @ 2011-03-02  6:21 UTC (permalink / raw
  To: gentoo-user


On 1/3/2011, at 7:12pm, Michael Orlitzky wrote:
> ...
> Combine with GNU Screen to achieve what you want.

Not screen. 

He's never used screen before, therefore he has no reason not to use tmux.

$ eix -I tmux
[I] app-misc/tmux
     Available versions:  1.2 1.3 ~1.4 **9999 {debug vim-syntax}
     Installed versions:  1.3(18:51:19 10/08/10)(vim-syntax)
     Homepage:            http://tmux.sourceforge.net
     Description:         Terminal multiplexer
$ 

tmux is better that screen in a variety of ways. Many of those ways are minor, however all together and in total they're significant enough. You may want to stay with screen if you have a highly-customised .screenrc and use many other machines on which you're unable to install tmux, but screen should not be recommended over tmux without a very good reason. 

Stroller.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-01 20:21 ` [gentoo-user] " Alex Schuster
@ 2011-03-02 19:02   ` Daniel Heemann
  2011-03-02 19:55     ` Alex Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Daniel Heemann @ 2011-03-02 19:02 UTC (permalink / raw
  To: gentoo-user

On Tuesday 01 March 2011 21:21:32 Alex Schuster wrote:
> Jarry writes:
> > is there any way to move running (already started) process
> > to background, and disconnect it from screen/terminal
> > so that I could log off (without terminating the process)?
> 
> Ctrl-Z
> bg

I think to be able to detach from the terminal w/o terminating the process you 
also need 'disown'.

Regards



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02 19:02   ` Daniel Heemann
@ 2011-03-02 19:55     ` Alex Schuster
  2011-03-02 22:50       ` Dale
  0 siblings, 1 reply; 21+ messages in thread
From: Alex Schuster @ 2011-03-02 19:55 UTC (permalink / raw
  To: gentoo-user

Daniel Heemann writes:

> On Tuesday 01 March 2011 21:21:32 Alex Schuster wrote:
> > Jarry writes:
> > > is there any way to move running (already started) process
> > > to background, and disconnect it from screen/terminal
> > > so that I could log off (without terminating the process)?
> > 
> > Ctrl-Z
> > bg
> 
> I think to be able to detach from the terminal w/o terminating the
> process you also need 'disown'.

You are right. I was not sure myself, so I did test this, but only with a 
'sleep 60' command. It was still running when I closed the shell, so I 
thought this would work. But now I learnt this is not true for emerge. Does 
anyone know why?

I agree with Stroller, tmux seems like the way to go. I do not use it (yet), 
because I already know screen, but it is on my to do list, after some 
postings here.

	Wonko



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02  6:21   ` Stroller
@ 2011-03-02 20:44     ` Volker Armin Hemmann
  2011-03-02 20:54       ` Alex Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Volker Armin Hemmann @ 2011-03-02 20:44 UTC (permalink / raw
  To: gentoo-user

On Wednesday 02 March 2011 06:21:13 Stroller wrote:
> On 1/3/2011, at 7:12pm, Michael Orlitzky wrote:
> > ...
> > Combine with GNU Screen to achieve what you want.
> 
> Not screen.
> 
> He's never used screen before, therefore he has no reason not to use tmux.
> 
> $ eix -I tmux
> [I] app-misc/tmux
>      Available versions:  1.2 1.3 ~1.4 **9999 {debug vim-syntax}
>      Installed versions:  1.3(18:51:19 10/08/10)(vim-syntax)
>      Homepage:            http://tmux.sourceforge.net
>      Description:         Terminal multiplexer
> $
> 
> tmux is better that screen in a variety of ways. Many of those ways are
> minor, however all together and in total they're significant enough. You
> may want to stay with screen if you have a highly-customised .screenrc and
> use many other machines on which you're unable to install tmux, but screen
> should not be recommended over tmux without a very good reason.
> 
> Stroller.

please elaborate



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02 20:44     ` Volker Armin Hemmann
@ 2011-03-02 20:54       ` Alex Schuster
  0 siblings, 0 replies; 21+ messages in thread
From: Alex Schuster @ 2011-03-02 20:54 UTC (permalink / raw
  To: gentoo-user

Am 02.03.2011 21:44, schrieb Volker Armin Hemmann:

> On Wednesday 02 March 2011 06:21:13 Stroller wrote:

>> tmux is better that screen in a variety of ways. Many of those ways are
>> minor, however all together and in total they're significant enough. You
>> may want to stay with screen if you have a highly-customised .screenrc and
>> use many other machines on which you're unable to install tmux, but screen
>> should not be recommended over tmux without a very good reason.
>>
>> Stroller.
> 
> please elaborate

He already did:
http://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg107371.html

I really have to give tmux a try.

	Wonko



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02 19:55     ` Alex Schuster
@ 2011-03-02 22:50       ` Dale
  2011-03-02 23:01         ` Alex Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2011-03-02 22:50 UTC (permalink / raw
  To: gentoo-user

Alex Schuster wrote:
>
> You are right. I was not sure myself, so I did test this, but only with a
> 'sleep 60' command. It was still running when I closed the shell, so I
> thought this would work. But now I learnt this is not true for emerge. Does
> anyone know why?
>
> I agree with Stroller, tmux seems like the way to go. I do not use it (yet),
> because I already know screen, but it is on my to do list, after some
> postings here.
>
> 	Wonko
>
>    

Do share.  I use screen here to but plan to look into tmux.  Right now, 
I have no clue what it even is.  I'm going to install it when I finish 
the current download.

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02 22:50       ` Dale
@ 2011-03-02 23:01         ` Alex Schuster
  2011-03-03  0:48           ` Dale
  0 siblings, 1 reply; 21+ messages in thread
From: Alex Schuster @ 2011-03-02 23:01 UTC (permalink / raw
  To: gentoo-user

Dale writes:

> Alex Schuster wrote:

>> I agree with Stroller, tmux seems like the way to go. I do not use it (yet),
>> because I already know screen, but it is on my to do list, after some
>> postings here.

> Do share.  I use screen here to but plan to look into tmux.  Right now, 
> I have no clue what it even is.  I'm going to install it when I finish 
> the current download.

See Stroller's comprehensive posting:
http://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg107371.html

	Wonko



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] How can I move running proces to background & out of screen?
  2011-03-02 23:01         ` Alex Schuster
@ 2011-03-03  0:48           ` Dale
  2011-03-04  5:15             ` [gentoo-user] tmux first impression Walter Dnes
  0 siblings, 1 reply; 21+ messages in thread
From: Dale @ 2011-03-03  0:48 UTC (permalink / raw
  To: gentoo-user

Alex Schuster wrote:
>
> See Stroller's comprehensive posting:
> http://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg107371.html
>
> 	Wonko
>
>    

I read that but still would love to here of someone else's experience.  
 From that link tho, it sounds . . . interesting.

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 21+ messages in thread

* [gentoo-user] tmux first impression
  2011-03-03  0:48           ` Dale
@ 2011-03-04  5:15             ` Walter Dnes
  2011-03-04  5:53               ` Dale
  0 siblings, 1 reply; 21+ messages in thread
From: Walter Dnes @ 2011-03-04  5:15 UTC (permalink / raw
  To: gentoo-user

On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote

> I read that but still would love to here of someone else's experience.  
>  From that link tho, it sounds . . . interesting.

  I emerged tmux a couple of hours ago and have been playing around with
it.  It looks like fun.  I have a 24" LCD monitor.  I prefer console text
mode for non-graphic stuff (e.g. email).  Here's what I've done so
far...
1) grep 1280 /var/log/Xorg.0.log
   This gives me a list of 1280xwhatever modes that my monitor supports.
In my case, it's 1280x720 and 1280x960 and 1280x1024. 

2) I entered the line

CONSOLEFONT="lat1-14"

in /etc/conf.d/consolefont

3) and also "video=1280x720" in the "append" line of /etc/lilo.conf

4) I entered the line

set -g prefix C-a

in ~/.tmux.conf because every site on the web that reviewed it said that
was the way to go.  Apparently, the developer uses {CONTROL-B} as the
default hotkey to avoid colliding with {CONTROL-A} which screen uses.
But everyone agrees that {CONTROL-B} is badly placed on the keyboard.

5) Then I rebooted

  The text console mode is now 1280 pixels x 720 pixels as per the
"video=" parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
division gives...
1280 / 8 = 160
720 / 14 = 51 plus a bit.
  So I have a 160 x 51 text console.  I fired up tmux, and split the
screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
the second is 79 x 50.  This is after allowing for the vertical dividing
line (one column) and the status bar at the bottom.  The 14-pixel high
font is quite nice.  And on a 24" monitor it's very readable.  If you
prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
/ 16 = 45 rows, or 44 working rows plus the status line.  Both text
pages are in "portrait mode", i.e. they're higher than they are wide.
Sort of like 2 facing pages of a book.  This could be useful for
editing a program in one pane, and then compile and execute in another.

  If your eyesight is better than mine, you could try "video=1280x960"
and 16-pixel high font, which will give a 160 x 60 text console.

  I like it.  One of these days, when desktop monitors hit 30", I'll set
the video to 1920x1080 and have 3 pages across. <G>

-- 
Walter Dnes <waltdnes@waltdnes.org>



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] tmux first impression
  2011-03-04  5:15             ` [gentoo-user] tmux first impression Walter Dnes
@ 2011-03-04  5:53               ` Dale
  2011-03-04 19:37                 ` Joshua Murphy
  2011-03-06 11:37                 ` [gentoo-user] " Nuno J. Silva
  0 siblings, 2 replies; 21+ messages in thread
From: Dale @ 2011-03-04  5:53 UTC (permalink / raw
  To: gentoo-user

Walter Dnes wrote:
> On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote
>
>    
>> I read that but still would love to here of someone else's experience.
>>   From that link tho, it sounds . . . interesting.
>>      
>    I emerged tmux a couple of hours ago and have been playing around with
> it.  It looks like fun.  I have a 24" LCD monitor.  I prefer console text
> mode for non-graphic stuff (e.g. email).  Here's what I've done so
> far...
> 1) grep 1280 /var/log/Xorg.0.log
>     This gives me a list of 1280xwhatever modes that my monitor supports.
> In my case, it's 1280x720 and 1280x960 and 1280x1024.
>
> 2) I entered the line
>
> CONSOLEFONT="lat1-14"
>
> in /etc/conf.d/consolefont
>
> 3) and also "video=1280x720" in the "append" line of /etc/lilo.conf
>
> 4) I entered the line
>
> set -g prefix C-a
>
> in ~/.tmux.conf because every site on the web that reviewed it said that
> was the way to go.  Apparently, the developer uses {CONTROL-B} as the
> default hotkey to avoid colliding with {CONTROL-A} which screen uses.
> But everyone agrees that {CONTROL-B} is badly placed on the keyboard.
>
> 5) Then I rebooted
>
>    The text console mode is now 1280 pixels x 720 pixels as per the
> "video=" parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
> division gives...
> 1280 / 8 = 160
> 720 / 14 = 51 plus a bit.
>    So I have a 160 x 51 text console.  I fired up tmux, and split the
> screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
> the second is 79 x 50.  This is after allowing for the vertical dividing
> line (one column) and the status bar at the bottom.  The 14-pixel high
> font is quite nice.  And on a 24" monitor it's very readable.  If you
> prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
> / 16 = 45 rows, or 44 working rows plus the status line.  Both text
> pages are in "portrait mode", i.e. they're higher than they are wide.
> Sort of like 2 facing pages of a book.  This could be useful for
> editing a program in one pane, and then compile and execute in another.
>
>    If your eyesight is better than mine, you could try "video=1280x960"
> and 16-pixel high font, which will give a 160 x 60 text console.
>
>    I like it.  One of these days, when desktop monitors hit 30", I'll set
> the video to 1920x1080 and have 3 pages across.<G>
>
>    

I installed it too.  It seems a lot like screen to me and screen seems 
to do what I need.  I did hit ctrl a several times tho.  lol  I was 
wondering what would happen if you started tmux then started a screen 
session inside it.

My 22" LCD monitor is 1920x1080.  Since my glasses are sort of old, I 
would rather have a slightly smaller screen.  I need new glasses for 
sure.  Anyway, I got everything set up for this size now.

I may play with tmux some more tho.  I do like the little status thingy 
at the bottom.  I had that on screen on my old rig but forgot to copy it 
over to my new rig.

Thanks for the post and the tips.

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] tmux first impression
  2011-03-04  5:53               ` Dale
@ 2011-03-04 19:37                 ` Joshua Murphy
  2011-03-06 11:37                 ` [gentoo-user] " Nuno J. Silva
  1 sibling, 0 replies; 21+ messages in thread
From: Joshua Murphy @ 2011-03-04 19:37 UTC (permalink / raw
  To: gentoo-user

On Fri, Mar 4, 2011 at 12:53 AM, Dale <rdalek1967@gmail.com> wrote:
> Walter Dnes wrote:
>>
>> On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote
>>
>>
>>>
>>> I read that but still would love to here of someone else's experience.
>>>  From that link tho, it sounds . . . interesting.
>>>
>>
>>   I emerged tmux a couple of hours ago and have been playing around with
>> it.  It looks like fun.  I have a 24" LCD monitor.  I prefer console text
>> mode for non-graphic stuff (e.g. email).  Here's what I've done so
>> far...
>> 1) grep 1280 /var/log/Xorg.0.log
>>    This gives me a list of 1280xwhatever modes that my monitor supports.
>> In my case, it's 1280x720 and 1280x960 and 1280x1024.
>>
>> 2) I entered the line
>>
>> CONSOLEFONT="lat1-14"
>>
>> in /etc/conf.d/consolefont
>>
>> 3) and also "video=1280x720" in the "append" line of /etc/lilo.conf
>>
>> 4) I entered the line
>>
>> set -g prefix C-a
>>
>> in ~/.tmux.conf because every site on the web that reviewed it said that
>> was the way to go.  Apparently, the developer uses {CONTROL-B} as the
>> default hotkey to avoid colliding with {CONTROL-A} which screen uses.
>> But everyone agrees that {CONTROL-B} is badly placed on the keyboard.
>>
>> 5) Then I rebooted
>>
>>   The text console mode is now 1280 pixels x 720 pixels as per the
>> "video=" parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
>> division gives...
>> 1280 / 8 = 160
>> 720 / 14 = 51 plus a bit.
>>   So I have a 160 x 51 text console.  I fired up tmux, and split the
>> screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
>> the second is 79 x 50.  This is after allowing for the vertical dividing
>> line (one column) and the status bar at the bottom.  The 14-pixel high
>> font is quite nice.  And on a 24" monitor it's very readable.  If you
>> prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
>> / 16 = 45 rows, or 44 working rows plus the status line.  Both text
>> pages are in "portrait mode", i.e. they're higher than they are wide.
>> Sort of like 2 facing pages of a book.  This could be useful for
>> editing a program in one pane, and then compile and execute in another.
>>
>>   If your eyesight is better than mine, you could try "video=1280x960"
>> and 16-pixel high font, which will give a 160 x 60 text console.
>>
>>   I like it.  One of these days, when desktop monitors hit 30", I'll set
>> the video to 1920x1080 and have 3 pages across.<G>
>>
>>
>
> I installed it too.  It seems a lot like screen to me and screen seems to do
> what I need.  I did hit ctrl a several times tho.  lol  I was wondering what
> would happen if you started tmux then started a screen session inside it.
>
> My 22" LCD monitor is 1920x1080.  Since my glasses are sort of old, I would
> rather have a slightly smaller screen.  I need new glasses for sure.
>  Anyway, I got everything set up for this size now.
>
> I may play with tmux some more tho.  I do like the little status thingy at
> the bottom.  I had that on screen on my old rig but forgot to copy it over
> to my new rig.
>
> Thanks for the post and the tips.
>
> Dale
>
> :-)  :-)

I've just taken a day to play with it, if only a little, yesterday and
I have to say, I do like it so far, but I'll have to put some work
into mapping keys to match what I'm used to from using both screen and
ratpoison together. The lack of <escape key>+space to jump to the next
by default was the biggest catch for me so far, and I also generally
use <key>+w for a rapid reminder of what's where when I'm hopping
through larger numbers of terminals, a habit that slows me down a lot
when I walk face first into a selection menu rather than just a quick
flash of information, so it's a habit that would need to change. I
don't often use the split, even screen's horizontal, as it doesn't do
much good for me on a little 9in screen.

In the end, it's very promising, has a lot of great information that'd
take a fair amount of configuring to get from screen (And as much as I
don't like the binding for that menu, I do like the feature), but
would require me either breaking habits or working around them with
the configuration quite a bit. I think, were it not for ratpoison
taking screen's shortcut keys wholesale with only a few additions, I'd
be a lot quicker to pick up tmux. As it is, I suspect I'm as stuck on
my habits as a heavy windows user is theirs. Screen on it's default of
control+a, ratpoison on a straight windows key tap.

-- 
Poison [BLX]
Joshua M. Murphy



^ permalink raw reply	[flat|nested] 21+ messages in thread

* [gentoo-user] Re: tmux first impression
  2011-03-04  5:53               ` Dale
  2011-03-04 19:37                 ` Joshua Murphy
@ 2011-03-06 11:37                 ` Nuno J. Silva
  2011-03-06 11:58                   ` Dale
  1 sibling, 1 reply; 21+ messages in thread
From: Nuno J. Silva @ 2011-03-06 11:37 UTC (permalink / raw
  To: gentoo-user

Dale <rdalek1967@gmail.com> writes:

> Walter Dnes wrote:
>> 4) I entered the line
>>
>> set -g prefix C-a
>>
>> in ~/.tmux.conf because every site on the web that reviewed it said that
>> was the way to go.  Apparently, the developer uses {CONTROL-B} as the
>> default hotkey to avoid colliding with {CONTROL-A} which screen uses.
>> But everyone agrees that {CONTROL-B} is badly placed on the keyboard.
>
> I installed it too.  It seems a lot like screen to me and screen seems
> to do what I need.  I did hit ctrl a several times tho.  lol  I was
> wondering what would happen if you started tmux then started a screen
> session inside it.

Maybe tmux has something like screen, a combination to send a C-a (or
any other prefix combination you set) to the running terminal.

I'd set something else -- although C-a is easy to type (at least here,
control in home row), it's used in some applications, like anything that
uses readline (if in Emacs mode; it seems readline also has a vi mode)
and Emacs itself.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [gentoo-user] Re: tmux first impression
  2011-03-06 11:37                 ` [gentoo-user] " Nuno J. Silva
@ 2011-03-06 11:58                   ` Dale
  0 siblings, 0 replies; 21+ messages in thread
From: Dale @ 2011-03-06 11:58 UTC (permalink / raw
  To: gentoo-user

Nuno J. Silva wrote:
> Dale<rdalek1967@gmail.com>  writes:
>
>    
>> Walter Dnes wrote:
>>      
>>> 4) I entered the line
>>>
>>> set -g prefix C-a
>>>
>>> in ~/.tmux.conf because every site on the web that reviewed it said that
>>> was the way to go.  Apparently, the developer uses {CONTROL-B} as the
>>> default hotkey to avoid colliding with {CONTROL-A} which screen uses.
>>> But everyone agrees that {CONTROL-B} is badly placed on the keyboard.
>>>        
>> I installed it too.  It seems a lot like screen to me and screen seems
>> to do what I need.  I did hit ctrl a several times tho.  lol  I was
>> wondering what would happen if you started tmux then started a screen
>> session inside it.
>>      
> Maybe tmux has something like screen, a combination to send a C-a (or
> any other prefix combination you set) to the running terminal.
>
> I'd set something else -- although C-a is easy to type (at least here,
> control in home row), it's used in some applications, like anything that
> uses readline (if in Emacs mode; it seems readline also has a vi mode)
> and Emacs itself.
>
>    

It can be changed to the same as screen.  I don't want to change it 
since I also have screen installed here as well.  I'm just so used to 
screen that I was doing it the same way in tmux.  Old habits are hard to 
break sometimes, especially use old fuddies.  lol

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-03-06 12:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 18:56 [gentoo-user] How can I move running proces to background & out of screen? Jarry
2011-03-01 19:06 ` Edward Martinez
2011-03-01 19:07 ` Helmut Jarausch
2011-03-01 19:12 ` Michael Orlitzky
2011-03-01 21:07   ` Neil Bothwick
2011-03-01 21:19     ` Michael Orlitzky
2011-03-02  6:21   ` Stroller
2011-03-02 20:44     ` Volker Armin Hemmann
2011-03-02 20:54       ` Alex Schuster
2011-03-01 19:22 ` [gentoo-user] " Nikos Chantziaras
2011-03-01 20:21 ` [gentoo-user] " Alex Schuster
2011-03-02 19:02   ` Daniel Heemann
2011-03-02 19:55     ` Alex Schuster
2011-03-02 22:50       ` Dale
2011-03-02 23:01         ` Alex Schuster
2011-03-03  0:48           ` Dale
2011-03-04  5:15             ` [gentoo-user] tmux first impression Walter Dnes
2011-03-04  5:53               ` Dale
2011-03-04 19:37                 ` Joshua Murphy
2011-03-06 11:37                 ` [gentoo-user] " Nuno J. Silva
2011-03-06 11:58                   ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox