tar vcf <nom destination> <à archiver>/
screen -S <nom de la session> ./<nom du script>.sh
renommer un screen: screen -r pour récupérer le screen suivi de ctrl A puis :sessionname <nom de la session>
kill un screen: ctrl-A suivi de K
sudo -s -- <<EOF
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get autoremove -y
apt-get autoclean -y
apt-get clean
EOF
Installation librairies 32bit:
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.
The following components need to be available on your system:
* OpenAL
* GL (likely provided by your 3rd-party GPU driver, or by the X11 driver-package)
Again, please note that all of these need to be available in their 32bit variant. For 64bit Linux installs, there’s usually a way to install 32bit packages (either by using multiarch support or by installing separately-named packages).
For Ubuntu (16.04 64bit), to satisfy all install requirements, do this:
$ sudo dpkg --add-architecture i386
$ sudo apt update
$ sudo apt install lib32stdc++6
$ sudo apt install libopenal1:i386
Respectively, for 32 bit installs, you can omit the add-architecture step and the :i386 postfixes.
When in doubt, use ldd to find out which libraries you are missing:
$ ldd nwmain-linux
linux-gate.so.1 => (0xf77d8000)
libGL.so.1 => not found
libopenal.so.1 => /usr/lib/i386-linux-gnu/libopenal.so.1 (0xf14bf000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf14ba000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf1343000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf12ee000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf12d0000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf12b3000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf10fd000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf10f4000)
/lib/ld-linux.so.2 (0xf77d9000)
Samba.
Ajouter un utilisateur: sudo useradd john
Lui donner un accès Linux:
sudo passwd john
Lui donner un mot de passe samba: sudo smbpasswd -a john
Il faut donc d’abord créer un utilisateur UNIX et ensuite ajouter cet utilisateur à la liste des utilisateurs Samba, Samba ne reconnaissant pas la liste des utilisateurs de la machine.