User Tools

Site Tools


пакет_screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
пакет_screen [2014/09/09 14:15]
val [FreeBSD]
пакет_screen [2023/12/26 13:47] (current)
val [Пакет screen]
Line 2: Line 2:
  
   * [[http://​hlabs.spb.ru/​development/​screen|Возможности Screen]]   * [[http://​hlabs.spb.ru/​development/​screen|Возможности Screen]]
 +  * [[https://​youtu.be/​YXSC7KeIq3E|Видео урок]] 
 +  * [[http://​www.dayid.org/​comp/​tm.html|tmux & screen cheat-sheet]] 
 +  * [[https://​unix.stackexchange.com/​questions/​200637/​save-all-the-terminal-output-to-a-file|Save all the terminal output to a file]]
 ===== Установка ===== ===== Установка =====
  
Line 14: Line 16:
 ===== Публикация сессий ===== ===== Публикация сессий =====
 <​code>​ <​code>​
-screen -S buildworld+$ cat .screenrc 
 +</​code><​code>​ 
 +hardstatus on 
 +hardstatus alwayslastline 
 +hardstatus string "​%w"​ 
 +</​code><​code>​ 
 +screen -S longtask -t longtask
 Ctrl-a d Ctrl-a d
  
-screen -list +screen -list
- +
-# screen -R buildworld+
  
-screen ​-d -r buildworld+screen -r longtask
  
-screen -x switch +screen --r longtask
-Ctrl-a k+
 </​code>​ </​code>​
  
Line 32: Line 37:
  
 <​code>​ <​code>​
-# usermod -s /​usr/​bin/​screen user1+user1$ cat .screenrc 
 +</​code><​code>​ 
 +#shell /bin/bash 
 +#shell /bin/csh 
 +</​code><​code>​ 
 +user1$ chsh 
 +... 
 +  или 
 +root# usermod -s /​usr/​bin/​screen user1
   или   или
-# pw usermod user1 -s /​usr/​local/​bin/​screen+root# pw usermod user1 -s /​usr/​local/​bin/​screen
 </​code>​ </​code>​
  
Line 41: Line 54:
   * [[http://​wiki.networksecuritytoolkit.org/​nstwiki/​index.php/​HowTo_Share_A_Terminal_Session_Using_Screen|HowTo Share A Terminal Session Using Screen]]   * [[http://​wiki.networksecuritytoolkit.org/​nstwiki/​index.php/​HowTo_Share_A_Terminal_Session_Using_Screen|HowTo Share A Terminal Session Using Screen]]
  
-==== Ubuntu ​====+==== FreeBSD ​==== 
 + 
 +  * [[https://​lists.freebsd.org/​pipermail/​freebsd-stable/​2014-June/​078914.html|Не работает с ошибкой:​ seteuid: Operation not permitted]]
  
 <​code>​ <​code>​
-su - user1+ls -l /​tmp/​screens/​S-user1/
  
-$ cat .screenrc+# screen -x user1/ 
 +</​code>​ 
 + 
 +==== Ubuntu ==== 
 +<​code>​ 
 +user1$ cat .screenrc
 </​code><​code>​ </​code><​code>​
-shell /bin/bash+...
 multiuser on multiuser on
 acladd root acladd root
 </​code><​code>​ </​code><​code>​
-$ exit+user1$ exit 
 +</​code><​code>​ 
 +# ls -l /​var/​run/​screen/​S-user1/​
  
 # screen -x user1/ # screen -x user1/
- 
-# ls /​var/​run/​screen/​S-user1/​ 
 </​code>​ </​code>​
  
 ===== Подключение к терминальному устройству ===== ===== Подключение к терминальному устройству =====
 <​code>​ <​code>​
-# screen ​ /​dev/​tty.usbmodemfa2321 115200+linux# screen ​ /​dev/​tty.usbmodemfa2321 115200 
 + 
 +macosx# screen ​ /​dev/​tty.PL2303* 9600 
 Ctrl-a k Ctrl-a k
 </​code>​ </​code>​
пакет_screen.1410257712.txt.gz · Last modified: 2014/09/09 14:15 by val