L ‘ installation via dpkg ou gdebi se termine , mais viber ne se lance pas
« chown: cannot access ‘/root/Documents/ViberDownloads’: No such file or directory
1 verifier les dependances
ldd viber libstdc++.so.6: version `GLIBCXX_3.4.20′ not found
G..LIBCXX.. means « gnu libc++ », which we know as libstdc++, a gcc library.
GLIBCXX_3.4.20 is an object from the gcc-4.9.x libstdc++.so.6.0.20
The trick is to find a libstdc++-4.9.x
qemu-nbd —help
Usage: qemu-nbd [OPTIONS] FILE
QEMU Disk Network Block Device Server
-h, —help display this help and exit
-V, —version output version information and exit
Connection properties:
-p, —port=PORT port to listen on (default `10809’)
-b, —bind=IFACE interface to bind to (default `0.0.0.0’)
-k, —socket=PATH path to the unix socket
(default ‘/var/lock/qemu-nbd-DEVICE’)
-e, —shared=NUM device can be shared by NUM clients (default ‘1’)
-t, —persistent don’t exit on the last connection
-v, —verbose display extra debugging information
Exposing part of the image:
-o, —offset=OFFSET offset into the image
-P, —partition=NUM only expose partition NUM
Kernel NBD client support:
-c, —connect=DEV connect FILE to the local NBD device DEV
-d, —disconnect disconnect the specified device
Block device options:
-f, —format=FORMAT set image format (raw, qcow2, …)
-r, —read-only export read-only
-s, —snapshot use FILE as an external snapshot, create a temporary
file with backing_file=FILE, redirect the write to
the temporary one
-l, —load-snapshot=SNAPSHOT_PARAM
load an internal snapshot inside FILE and export it
as an read-only device, SNAPSHOT_PARAM format is
‘snapshot.id=[ID],snapshot.name=[NAME]’, or
‘[ID_OR_NAME]’
-n, —nocache disable host cache
—cache=MODE set cache mode (none, writeback, …)
—aio=MODE set AIO mode (native or threads)
—discard=MODE set discard mode (ignore, unmap)
—detect-zeroes=MODE set detect-zeroes mode (off, on, unmap)
1 telechargement du paquet
cd ~
curl -Lo dropbox-linux-x86_64.tar.gz https://www.dropbox.com/download?plat=lnx.x86_64
sudo mkdir -p /opt/dropbox sudo tar xzfv dropbox-linux-x86_64.tar.gz –strip 1 -C /opt/dropbox
2 lancement du client dropbox
/opt/dropbox/dropboxd
se connecter au compte en ligne puis quitter
Ctrl-C
3 Mise en place du script de demarrage automatique
telechargement du script dans /etc/init.d
cd ~
sudo curl -o /etc/init.d/dropbox https://gist.githubusercontent.com/thisismitch/d0133d91452585ae2adc/raw/699e7909bdae922201b8069fde3011bbf2062048/dropbox
sudo chmod +x /etc/init.d/dropbox
4 creation du fichier dropbox avec ajout du compte systeme
sudo nano /etc/default/dropbox
DROPBOX_USERS= »compte1″
5 Demarrage du service dropbox et configuration du demarrage automatique
sudo service dropbox start
sudo update-rc.d dropbox defaults
AJOUT COMPTE SUPPLEMENTAIRE
lancement du client dropbox
/opt/dropbox/dropboxd
ajout du compte systeme dans le fichier dropbox
sudo nano /etc/default/dropbox
DROPBOX_USERS= »compte1 compte2″
sudo service dropbox restart
DECONNEXION D’UN COMPTE
sudo service dropbox stop
suppression du dossier dropbox
sudo rm -r ~/compte2/Dropbox
TermRecord permet d’enregistrer la séquence terminal dans un fichier html
installation python et pip (Pip est un système de gestion de paquets utilisé pour installer et gérer des librairies écrites en Python. Pip empêche les installations partielles en annonçant toutes les exigences avant l’installation)