{"id":200,"date":"2018-09-27T16:53:15","date_gmt":"2018-09-27T14:53:15","guid":{"rendered":"http:\/\/192.168.1.202\/wordpress\/?page_id=200"},"modified":"2020-11-28T18:03:28","modified_gmt":"2020-11-28T17:03:28","slug":"commandes-linux","status":"publish","type":"page","link":"https:\/\/myrdil.com\/?page_id=200","title":{"rendered":"Commandes Linux"},"content":{"rendered":"<p>tar vcf &lt;nom destination&gt; &lt;\u00e0 archiver&gt;\/<\/p>\n<p>screen -S &lt;nom de la session&gt; .\/&lt;nom du script&gt;.sh<br \/>\nrenommer un screen: screen -r pour r\u00e9cup\u00e9rer le screen suivi de ctrl A puis :sessionname &lt;nom de la session&gt;<br \/>\nkill un screen: ctrl-A suivi de K<\/p>\n<pre><code>sudo -s -- &lt;&lt;EOF\r\napt-get update\r\napt-get upgrade -y\r\napt-get dist-upgrade -y\r\napt-get autoremove -y\r\napt-get autoclean -y\r\napt-get clean\r\nEOF<\/code><\/pre>\n<p>Installation librairies 32bit:<\/p>\n<p><code>NWN:EE 1.74 should run on any recent Linux distribution, but will likely require some 32bit packages installed. These instructions are on a best-effort basis. You will likely have to adapt them to the Linux distribution of your choice.<\/code><\/p>\n<p><code>The following components need to be available on your system:<\/code><\/p>\n<p><code>* OpenAL<\/code><br \/>\n<code>* GL (likely provided by your 3rd-party GPU driver, or by the X11 driver-package)<\/code><\/p>\n<p><code>Again, please note that all of these need to be available in their 32bit variant. For 64bit Linux installs, there\u00e2\u20ac\u2122s usually a way to install 32bit packages (either by using multiarch support or by installing separately-named packages).<\/code><\/p>\n<p><code>For Ubuntu (16.04 64bit), to satisfy all install requirements, do this:<\/code><\/p>\n<p><code>$ sudo dpkg --add-architecture i386<\/code><br \/>\n<code>$ sudo apt update<\/code><br \/>\n<code>$ sudo apt install lib32stdc++6<\/code><br \/>\n<code>$ sudo apt install libopenal1:i386<\/code><\/p>\n<p><code>Respectively, for 32 bit installs, you can omit the add-architecture step and the :i386 postfixes.<\/code><\/p>\n<p><code>When in doubt, use ldd to find out which libraries you are missing:<\/code><\/p>\n<p><code>$ ldd nwmain-linux<\/code><br \/>\n<code>linux-gate.so.1 =&gt; (0xf77d8000)<\/code><br \/>\n<code>libGL.so.1 =&gt; not found<\/code><br \/>\n<code>libopenal.so.1 =&gt; \/usr\/lib\/i386-linux-gnu\/libopenal.so.1 (0xf14bf000)<\/code><br \/>\n<code>libdl.so.2 =&gt; \/lib\/i386-linux-gnu\/libdl.so.2 (0xf14ba000)<\/code><br \/>\n<code>libstdc++.so.6 =&gt; \/usr\/lib32\/libstdc++.so.6 (0xf1343000)<\/code><br \/>\n<code>libm.so.6 =&gt; \/lib\/i386-linux-gnu\/libm.so.6 (0xf12ee000)<\/code><br \/>\n<code>libgcc_s.so.1 =&gt; \/lib\/i386-linux-gnu\/libgcc_s.so.1 (0xf12d0000)<\/code><br \/>\n<code>libpthread.so.0 =&gt; \/lib\/i386-linux-gnu\/libpthread.so.0 (0xf12b3000)<\/code><br \/>\n<code>libc.so.6 =&gt; \/lib\/i386-linux-gnu\/libc.so.6 (0xf10fd000)<\/code><br \/>\n<code>librt.so.1 =&gt; \/lib\/i386-linux-gnu\/librt.so.1 (0xf10f4000)<\/code><br \/>\n<code>\/lib\/ld-linux.so.2 (0xf77d9000)<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Samba.<br \/>\nAjouter un utilisateur: <code>sudo useradd john<br \/>\n<\/code>Lui donner un acc\u00e8s Linux: <code>sudo passwd john<\/code><br \/>\nLui donner un mot de passe samba: <code>sudo smbpasswd -a john<\/code><br \/>\nIl faut donc d&#8217;abord cr\u00e9er un utilisateur UNIX et ensuite ajouter cet utilisateur \u00e0 la liste des utilisateurs Samba, Samba ne reconnaissant pas la liste des utilisateurs de la machine.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ConnectiveDocSignExtentionInstalled\" data-extension-version=\"1.0.4\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>tar vcf &lt;nom destination&gt; &lt;\u00e0 archiver&gt;\/ screen -S &lt;nom de la session&gt; .\/&lt;nom du script&gt;.sh renommer un screen: screen -r pour r\u00e9cup\u00e9rer le screen suivi de ctrl A puis :sessionname &lt;nom de la session&gt; kill un screen: ctrl-A suivi de &hellip; <a href=\"https:\/\/myrdil.com\/?page_id=200\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-200","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/pages\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200"}],"version-history":[{"count":0,"href":"https:\/\/myrdil.com\/index.php?rest_route=\/wp\/v2\/pages\/200\/revisions"}],"wp:attachment":[{"href":"https:\/\/myrdil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}