linux:debian:seedbox:screen

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
linux:debian:seedbox:screen [25/07/2022 02:14] – [log] matelinux:debian:seedbox:screen [25/05/2023 22:31] (actual) – [split] mate
Línia 4: Línia 4:
   * [[https://linuxize.com/post/how-to-use-linux-screen/]]   * [[https://linuxize.com/post/how-to-use-linux-screen/]]
   * [[https://www.gnu.org/software/screen/manual/screen.html]]   * [[https://www.gnu.org/software/screen/manual/screen.html]]
 +  * versión moderna TMUX: [[https://www.howtogeek.com/671422/how-to-use-tmux-on-linux-and-why-its-better-than-screen/]]
  
 == comando == comando
Línia 15: Línia 16:
  
 == shortcuts == shortcuts
 +(todas las letras en minúsculas excepto las negritas)
 +
   * <key>C+a</key>, <key>d</key>: deja la ejecución en segundo plano   * <key>C+a</key>, <key>d</key>: deja la ejecución en segundo plano
-  * <key>C+a</key>, <key>S+a</key>: poner nombre a la consola actual+  * <key>C+a</key>, **<key>a</key>**: poner nombre a la consola actual (A mayúscula) 
 +  * <key>C+a</key>, <key>x</key>: Proteger con la contraseña del usuario de la sesión.
   * <key>C+a</key> o <key>C+a</key>, <key>k</key>: salir de consola   * <key>C+a</key> o <key>C+a</key>, <key>k</key>: salir de consola
  
 +=== split
 +  * <key>C+a</key>, **<key>s</key>**: crear división horizontal (S en mayúscula)
 +    * crear con <key>C+a</key>, <key>c</key>
 +  * <key>C+a</key>, <key>|</key>: crear división vertical
 +  * <key>C+a</key>, **<key>x</key>** : eliminar división (X en mayúscula)
 === move === move
   * <key>C+a</key>, <key>c</key>: nueva consola virtual dentro del mismo screen   * <key>C+a</key>, <key>c</key>: nueva consola virtual dentro del mismo screen
Línia 29: Línia 38:
   * <key>C+a</key>, **<key>H</key>**: logging de la sesión (txt) <- H mayúscula!   * <key>C+a</key>, **<key>H</key>**: logging de la sesión (txt) <- H mayúscula!
  
 +=== más...
 +{{ :linux:debian:seedbox:pasted:20230525-222144.png }}
 +/via: [[http://www.pixelbeat.org/lkdb/screen.html]]
  
 == .screenrc == .screenrc
-  * fichero de configuración en ''~/.screenrc'':<code>startup_message off +fichero de configuración en ''~/.screenrc'' 
-hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %d-%m-%%c' +<code> 
-activity ''</code> +# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window 
-    * 1ª linea: evita msg informativo +#bindkey -k F1 prev 
-    * 2ª linea: barra informativa (te permite saber si estás en una screen +#bindkey -k F2 next 
-  * <code># Turn off the welcome message+ 
 +# Also for ctrl-alt right and left arrows 
 +# Note disable in window manager to allow through 
 +bindkey ^[[1;7D prev 
 +bindkey ^[[1;7C next 
 + 
 +startup_message off 
 + 
 +# Disable visual bell 
 +vbell off 
 + 
 +# Window list at the bottom. 
 +hardstatus alwayslastline 
 +hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]
 +#hardstatus string "%-w%{= BW}%50>%n %t%{-}%+w%<" 
 + 
 +# From Stephen Shirley 
 +# Don't block command output if the terminal stops responding 
 +# (like if the ssh connection times out for example). 
 +nonblock on 
 + 
 +# Allow editors etc. to restore display on exit 
 +# rather than leaving existing text in place 
 +altscreen on 
 + 
 +# Enable 256-color mode when screen is started with TERM=xterm-256color 
 +# Taken from: http://frexx.de/xterm-256-notes/ 
 +
 +# Note that TERM != "xterm-256color" within a screen window. Rather it is 
 +# "screen" or "screen-bce" 
 +#  
 +# terminfo and termcap for nice 256 color terminal 
 +# allow bold colors - necessary for some reason 
 +attrcolor b ".I" 
 +# tell screen how to set colors. AB = background, AF=foreground 
 +#termcapinfo xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' 
 + 
 +# save more scrollback 
 +defscrollback 30000 
 +</code> 
 +<code># Turn off the welcome message
 startup_message off startup_message off
  
Línia 49: Línia 101:
 hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]' hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
 </code> </code>
 +<code>startup_message off
 +hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %d-%m-%Y %c'
 +activity ''</code>
 +  * 1ª linea: evita msg informativo
 +  * 2ª linea: barra informativa (te permite saber si estás en una screen
 +
  
 == ejemplo uso rtorrent == ejemplo uso rtorrent
  • linux/debian/seedbox/screen.1658740461.txt.gz
  • Darrera modificació: 25/07/2022 02:14
  • per mate