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 [19/09/2019 08:28] matelinux:debian:seedbox:screen [25/05/2023 22:31] (actual) – [split] mate
Línia 1: Línia 1:
 = configuración/uso screen = configuración/uso screen
-== resumen +== install & help 
-  * fichero de configuración en ''~/.screenrc'':<code>startup_message off+  * <code bash>sudo apt install screen</code> 
 +  * [[https://linuxize.com/post/how-to-use-linux-screen/]] 
 +  * [[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 
 +  * ''screeen -ls'': lista sesiones 
 +  * ''screen -r [<sesion>]'' : retornar a última sesión o a sesión específica 
 +  * ''screen -S <nombre>'': añade <nombre> a la sesión (descriptivo) 
 +  * ''screen -d'': cerrar sesión 
 +  * ''screen -U'': UTF-8 (zsh + agnoster) 
 +  * ''screen -dmS <nombre> <comando>'': lanza en background 
 +  * ''screen -x -r <sesion>'': acceso compartido a sessión attached 
 + 
 +== 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>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 
 + 
 +=== 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 
 +  * <key>C+a</key>, <key>c</key>: nueva consola virtual dentro del mismo screen 
 +  * <key>C+a</key>, <key>p</key> o <key>n</key>: ir a siguiente y anterior consola 
 +  * <key>C+a</key>, <num>: ir a <num> número de consola 
 +  * <key>C+a</key>, <key>"</key>: mostrar lista de consolas abiertas 
 + 
 +=== log 
 +  * <key>C+a</key>, <key>h</key>: captura de pantalla (txt) 
 +  * <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 
 +fichero de configuración en ''~/.screenrc'' 
 +<code> 
 +# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window 
 +#bindkey -k F1 prev 
 +#bindkey -k F2 next 
 + 
 +# 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 fromhttp://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 
 + 
 +# Disable visual bell 
 +vbell off 
 + 
 +# Set scrollback buffer to 10000 
 +defscrollback 10000 
 + 
 +# Customize the status line 
 +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}]' 
 +</code> 
 +<code>startup_message off
 hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %d-%m-%Y %c' hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %d-%m-%Y %c'
 activity ''</code> activity ''</code>
-    * 1ª linea: evita msg informativo +  * 1ª linea: evita msg informativo 
-    * 2ª linea: barra informativa (te permite saber si estás en una screen +  * 2ª linea: barra informativa (te permite saber si estás en una screen 
-  * teclas: + 
-    * Ctrl+a d : ejecución en segundo planto + 
-    * Ctrl+a : nueva consola virtual +== ejemplo uso rtorrent
-    * Ctrl+a n,a : ir a siguiente y anterior consola +
-    * Ctrl+a <n> : ir a <n> número de consola +
-    * Ctrl+a w : mostrar lista de consolas abiertas +
-    * Ctrl+a May+a : poner nombre a la consola actual +
-    * Ctrl+d : salir de consola (también Ctrl+a k) +
-  * ''screen -r'' : mostrará si hay sesiones virtuales y te podrás "reenganchar" +
-    * ''screen -r xxxx'' +
-  * ''screen -d'': cerrar sesión +
-== uso+
   * ''screen -q -S rtorrent'' -> abre sesión rtorrent   * ''screen -q -S rtorrent'' -> abre sesión rtorrent
     * si se produce un error -> ''Cannot open your terminal '/dev/pts/1' - please check.'' corregir con ''chmod 777 /dev/pts/1''     * si se produce un error -> ''Cannot open your terminal '/dev/pts/1' - please check.'' corregir con ''chmod 777 /dev/pts/1''
  • linux/debian/seedbox/screen.1568906924.txt.gz
  • Darrera modificació: 19/09/2019 08:28
  • per mate