<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.dr13.cnrs.fr/wiki/index.php?action=history&amp;feed=atom&amp;title=Screen</id>
	<title>Screen - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dr13.cnrs.fr/wiki/index.php?action=history&amp;feed=atom&amp;title=Screen"/>
	<link rel="alternate" type="text/html" href="https://wiki.dr13.cnrs.fr/wiki/index.php?title=Screen&amp;action=history"/>
	<updated>2026-05-13T17:49:34Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://wiki.dr13.cnrs.fr/wiki/index.php?title=Screen&amp;diff=3166&amp;oldid=prev</id>
		<title>Julien.garnier : Nouvelle page : =Introduction= Screen est vraiment géniale, mais si on ne l&#039;utilise pas tous les jours, alors on perd vite ses repères. Screen sert à garder une session ouverte avec pourquoi pas ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.dr13.cnrs.fr/wiki/index.php?title=Screen&amp;diff=3166&amp;oldid=prev"/>
		<updated>2009-06-26T11:12:26Z</updated>

		<summary type="html">&lt;p&gt;Nouvelle page : =Introduction= Screen est vraiment géniale, mais si on ne l&amp;#039;utilise pas tous les jours, alors on perd vite ses repères. Screen sert à garder une session ouverte avec pourquoi pas ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introduction=&lt;br /&gt;
Screen est vraiment géniale, mais si on ne l&amp;#039;utilise pas tous les jours, alors on perd vite ses repères. Screen sert à garder une session ouverte avec pourquoi pas une application qui tourne dessus. Lorsqu&amp;#039;on quitte la fenêtre et qu&amp;#039;on y revient plus tard, notre appli tourne toujours et nous pouvons reprendre totalement la main dessus.&lt;br /&gt;
&lt;br /&gt;
Je met en garde car, j&amp;#039;en ai vu plus d&amp;#039;un faire ça, mais screen n&amp;#039;est pas un équivalent de nohup !!!&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
Comme dab :&lt;br /&gt;
 apt-get install screen&lt;br /&gt;
&lt;br /&gt;
=Utilisation=&lt;br /&gt;
Voici donc les principales commandes que j&amp;#039;utilise (c-a = Ctrl+a) :&lt;br /&gt;
&lt;br /&gt;
 c-a c   nouvelle fenêtre&lt;br /&gt;
 c-a k   fermer une fenêtre&lt;br /&gt;
 c-a p   précédente fenêtre&lt;br /&gt;
 c-a n   fenêtre suivante&lt;br /&gt;
&lt;br /&gt;
 c-a &amp;quot;    affiche toutes les fenêtres disponibles&lt;br /&gt;
 c-a [0-9] aller à la fenêtre 0-9&lt;br /&gt;
&lt;br /&gt;
 c-a S Diviser l&amp;#039;écran&lt;br /&gt;
 c-a &amp;lt;tabulation&amp;gt; passer à la fenêtre suivante&lt;br /&gt;
 c-a X Fermer la fenêtre divisée&lt;br /&gt;
 c-a q Fermer toutes les fenêtres divisées&lt;br /&gt;
 c-a M Monitorer une fenêtre&lt;br /&gt;
&lt;br /&gt;
==Muti-utilisateurs==&lt;br /&gt;
===Methode 1===&lt;br /&gt;
Sur la première machine, faire un screen avec l&amp;#039;utilisateur toto :&lt;br /&gt;
 screen&lt;br /&gt;
Puis depuis une deuxième machine, se connecter en ssh directement avec l&amp;#039;utilisateur toto puis faire :&lt;br /&gt;
 screen -x&lt;br /&gt;
Maintenant les 2 personnes peuvent interréagir directement ensemble.&amp;lt;br /&lt;br /&gt;
Il existe également des ACL pour screen.&lt;br /&gt;
&lt;br /&gt;
===Methode 2===&lt;br /&gt;
Using screen in multiuser mode requires screen to be as setuid root. If you know about the potential security implications you can enable it by issuing&lt;br /&gt;
&lt;br /&gt;
 chmod u+s `which screen`&lt;br /&gt;
 chmod 755 /var/run/screen&lt;br /&gt;
&lt;br /&gt;
We need to configure screen to use multiuser mode and change privileges for the guest. Put the following commands into ~/.screenrc. You can also use them in a screen session after pressing CTRL-a :&lt;br /&gt;
 multiuser on&lt;br /&gt;
 aclchg snoopy -x &amp;quot;?&amp;quot;    #Revoke permission to execute any screen command&lt;br /&gt;
 aclchg snoopy +x &amp;quot;wall&amp;quot; #Allow writing simple messages in the terminal status line&lt;br /&gt;
 aclumask snoopy-wx      #Default permissions to windows&lt;br /&gt;
 acladd snoopy           #Enable user snoopy to access screen session&lt;br /&gt;
&lt;br /&gt;
Start screen :&lt;br /&gt;
 user@localhost $ screen&lt;br /&gt;
&lt;br /&gt;
 user@localhost $ screen -ls&lt;br /&gt;
 There is a screen on:&lt;br /&gt;
        11521.pts-4.hostname      (Multi, attached)&lt;br /&gt;
 1 Socket in /var/run/screen/S-user.&lt;br /&gt;
&lt;br /&gt;
Now the guest can attach to the screen :&lt;br /&gt;
 screen -r user/11521&lt;br /&gt;
&lt;br /&gt;
===ACL===&lt;br /&gt;
Pour autoriser toto a voir la session sans pour autant pouvoir agir :&lt;br /&gt;
 aclchg toto -w &amp;quot;#?&amp;quot;&lt;br /&gt;
Par défaut, les permissions sont &amp;quot;rwx&amp;quot;. Voici d&amp;#039;autres exemples très compréhensibles :&lt;br /&gt;
 aclchg toto -wx &amp;quot;#?&amp;quot;&lt;br /&gt;
 aclchg toto +x &amp;quot;detatch,wall,colon&amp;quot;&lt;br /&gt;
La dernière commande n&amp;#039;autorise que certaines options à être exécutées. Wall permet de passer des messages sur tous les écrans connectés.&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
==.screenrc==&lt;br /&gt;
Copiez ceci dans un fichier &amp;quot;.screenrc&amp;quot; dans votre home (~/.screenrc) :&lt;br /&gt;
{{config|.screenrc|&amp;lt;pre&amp;gt;&lt;br /&gt;
# Screenrc configuration&lt;br /&gt;
# ~/.screenrc&lt;br /&gt;
&lt;br /&gt;
# Disable Startup message&lt;br /&gt;
startup_message off &lt;br /&gt;
deflogin on&lt;br /&gt;
&lt;br /&gt;
# Scrollback&lt;br /&gt;
defscrollback 10240&lt;br /&gt;
&lt;br /&gt;
# Disable flash screen&lt;br /&gt;
vbell off &lt;br /&gt;
&lt;br /&gt;
# Binding keys&lt;br /&gt;
bind ^k&lt;br /&gt;
bind ^\&lt;br /&gt;
bind \\ quit&lt;br /&gt;
bind K kill&lt;br /&gt;
bind I login on&lt;br /&gt;
bind O login off &lt;br /&gt;
bind } history&lt;br /&gt;
bindkey &amp;quot;^?&amp;quot; stuff &amp;quot;^H&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# An alternative hardstatus to display a bar at the bottom listing the&lt;br /&gt;
# windownames and highlighting the current windowname in blue. (This is only&lt;br /&gt;
# enabled if there is no hardstatus setting for your terminal)&lt;br /&gt;
hardstatus on&lt;br /&gt;
hardstatus alwayslastline&lt;br /&gt;
hardstatus string &amp;quot;%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} Load: %l %{..Y} %m/%d %C%a &amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Vertical Split&lt;br /&gt;
split&lt;br /&gt;
split -v&lt;br /&gt;
focus bottom&lt;br /&gt;
split -v&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Julien.garnier</name></author>
		
	</entry>
</feed>