<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Archives des wsl - La programmation sur le web</title>
	<atom:link href="https://programmation.surleweb-france.fr/tag/wsl/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmation.surleweb-france.fr/tag/wsl/</link>
	<description>La programmation gratuite pour tous</description>
	<lastBuildDate>Sun, 28 Aug 2022 15:01:20 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2023/08/cropped-19518430-icone-de-programmation-pour-votre-site-web-mobile-presentation-et-conception-de-logo-gratuit-vectoriel.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Archives des wsl - La programmation sur le web</title>
	<link>https://programmation.surleweb-france.fr/tag/wsl/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">176210735</site>	<item>
		<title>Windows, une interface graphique pour Linux</title>
		<link>https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/</link>
					<comments>https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/#respond</comments>
		
		<dc:creator><![CDATA[Zigomato]]></dc:creator>
		<pubDate>Sun, 28 Aug 2022 15:01:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wsl]]></category>
		<guid isPermaLink="false">https://programmation.surleweb-france.fr/?p=1483</guid>

					<description><![CDATA[<p>Voici comment mettre en place une interface graphique pour son WSL, Windows Subsystem Linux</p>
<p class="continue-reading-button"> <a class="continue-reading-link" href="https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/">Continuer la lecture<i class="crycon-right-dir"></i></a></p>
<p>L’article <a href="https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/">Windows, une interface graphique pour Linux</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Depuis maintenant plusieurs années, <a href="https://docs.microsoft.com/fr-fr/windows/wsl/about" target="_blank" rel="noreferrer noopener">WSL pour Windows Subsystem Linux</a> permet d&rsquo;avoir une distribution Linux sur son poste Windows.</p>



<p>Mes pc sont quasiment tous sur Windows mais très fréquemment, j&rsquo;ai besoin d&rsquo;outils seulement disponibles sur Linux (principalement Ubuntu) ou bien les choses que je cherche à faire son plus simple dessus.</p>



<p>WSL a été pour moi une grande nouvelle. Plus besoin de passer par un autre poste pour faire deux ou trois tests. Maintenant, tout est accessible depuis Windows. Enfin, tout si je n&rsquo;ai seulement besoin de Ubuntu en ligne de commande.</p>



<p>Nous allons voir comment obtenir une interface graphique de WSL.</p>



<h2 class="wp-block-heading">Installation de WSL</h2>



<p>J&rsquo;imagine que si tu souhaites avoir une interface graphique, cela signifie que tu as déjà l&rsquo;installation qui a été faite et que ton système Linux est accessible en ligne de commande, sinon, je t&rsquo;invite à suivre l&rsquo;<a href="https://lecrabeinfo.net/installer-wsl-windows-subsystem-for-linux-sur-windows-10.html" target="_blank" rel="noreferrer noopener">installation sur cette page</a>.</p>



<h2 class="wp-block-heading">Mise à jour de WSL</h2>



<p>Une fois ton installation finalisée avec un utilisateur et son mot de passe. Commences par une petite mise à jour : </p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get update &amp;&amp; Sudo apt-get full-upgrade -y</pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="900" height="395" src="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-11.png?resize=900%2C395&#038;ssl=1" alt="" class="wp-image-1484" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-11.png?w=914&amp;ssl=1 914w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-11.png?resize=300%2C132&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-11.png?resize=768%2C337&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-11.png?resize=150%2C66&amp;ssl=1 150w" sizes="(max-width: 900px) 100vw, 900px" /><figcaption>Mise à jour en cours</figcaption></figure>
</div>


<h2 class="wp-block-heading">Installer un serveur X</h2>



<p>Commencer par installer un logiciel comme VcXsrv (ou similaire), tu peux le trouver ici en <a href="https://sourceforge.net/projects/vcxsrv/" target="_blank" rel="noreferrer noopener">téléchargement</a>.</p>



<p>Une fois installer, ouvrir l&rsquo;outil, tu auras le choix entre plusieurs fenêtrages :</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" decoding="async" width="498" height="392" src="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-12.png?resize=498%2C392&#038;ssl=1" alt="" class="wp-image-1485" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-12.png?w=498&amp;ssl=1 498w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-12.png?resize=300%2C236&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-12.png?resize=150%2C118&amp;ssl=1 150w" sizes="(max-width: 498px) 100vw, 498px" /></figure>
</div>


<p><strong>Multiple windows</strong> permettra de voir le système LInux dans différentes fenêtre, <strong>One large windows</strong>, dans une grande.</p>



<p>Une fois le serveur lancé, un beau fond noir, oui, pour l&rsquo;instant, nous n&rsquo;avons pas encore d&rsquo;interface à afficher.</p>



<h3 class="wp-block-heading">Quelle version de WSL ?</h3>



<p>En fonction de votre système Windows, il se peut qu&rsquo;un ajout doit être fait.</p>



<p>Dans le Powershell, vérifies ta version WSL : </p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">wsl -l -v</pre>



<p>Pour ma part, je suis en version 1 :</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" decoding="async" width="287" height="72" src="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-13.png?resize=287%2C72&#038;ssl=1" alt="" class="wp-image-1486" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-13.png?w=287&amp;ssl=1 287w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-13.png?resize=150%2C38&amp;ssl=1 150w" sizes="(max-width: 287px) 100vw, 287px" /></figure>
</div>


<p>Tu peux tenter une mise à jour de la version en faisant (modifies le nom de la distribution en fonction de la tienne) :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">wsl --set-version Ubuntu 2</pre>



<p>Malheureusement, mon PC ne me le permet pas. Nous allons modifier un fichier dans WSL.</p>



<p>Modifies le fichier <strong>/etc/bash.bashrc</strong> en ajoutant à la fin : </p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">export DISPLAY=:0</pre>



<p>Puis redémarres WSL.</p>



<h2 class="wp-block-heading">Test de l&rsquo;affichage</h2>



<p>Nous allons tester le fonctionnement de notre serveur. Assures toi que ton serveur a bien été lancé et qu&rsquo;il a un beau fond noir</p>



<p>Commences par installer sur WSL cet éditeur :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get install vim-gtk</pre>



<p>Puis dans wsl, tapes :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">gvim</pre>



<p>A présent, tu dois avoir l&rsquo;éditeur qui s&rsquo;est lancé dans ta fenêtre de ton serveur :</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="900" height="551" src="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?resize=900%2C551&#038;ssl=1" alt="" class="wp-image-1487" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?w=1016&amp;ssl=1 1016w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?resize=300%2C184&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?resize=768%2C470&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?resize=150%2C92&amp;ssl=1 150w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-14.png?resize=327%2C201&amp;ssl=1 327w" sizes="auto, (max-width: 900px) 100vw, 900px" /></figure>
</div>


<h2 class="wp-block-heading">Installation d&rsquo;une interface graphique</h2>



<p>Bon, un fond noir, ce n&rsquo;est pas top, on va installer une interface graphique, on va reprendre celle de gnome.</p>



<p>Dans WSL, faites un petit :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get install xfec4</pre>



<p>Une fois l&rsquo;installation finie (cela peut prendre beaucoup de temps), toujours dans WSL, tapes :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">xfec4-session</pre>



<p>Tu devrais obtenir ceci :</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="900" height="506" src="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?resize=900%2C506&#038;ssl=1" alt="" class="wp-image-1492" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?resize=1024%2C576&amp;ssl=1 1024w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?resize=150%2C84&amp;ssl=1 150w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/08/image-15.png?w=1366&amp;ssl=1 1366w" sizes="auto, (max-width: 900px) 100vw, 900px" /></figure>
</div>


<h2 class="wp-block-heading">Conclusion</h2>



<p>Te voilà avec un petit système sous linux disposant d&rsquo;une interface graphique.</p>
<p>L’article <a href="https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/">Windows, une interface graphique pour Linux</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmation.surleweb-france.fr/windows-une-interface-graphique-pour-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1483</post-id>	</item>
	</channel>
</rss>
