Rechercher dans ce blog

mercredi 3 mars 2021

apfs-fuse basic commands

apfs-fuse -o uid=1000,gid=1000,allow_other  /dev/sdd2 /media/homeapfs/

Unmount a drive

As root:

umount <mount-directory>

As user:

fusermount -u <mount-directory>

LVM How-To Basic

Lister les volumes
sudo lvscan
Info sur les volumes
sudo lvdisplay

activer volume group
sudo vgchange -ay/n vgubuntu

monter le volume
sudo mount /dev/vgubuntu/root /mnt
ou via filemanager

SAMSUNG M2070W Activer Scanner linux Ubuntu 20.04

L'installation par défaut du pilote ne fonctionne pas. Pour corriger il faut créer des liens symboliques manuellement après l'installation.

Pour faire découvrir le scanner en réseau utiliser la commande :

smfpnetdiscovery

qui devrait retourner quelque chose comme

Network socket://192.168.0.105 "Samsung M2070 Series" "Samsung M2070 Series on 192.168.0.105" "MFG:Samsung;CMD:SPL,URF,FWV,PIC,EXT,SPDS;MDL:M2070 Series;CLS:PRINTER;CID:SA_SPLV3_BW;MODE:SCN,SPL3,R000105,SCP;"
network ipp://192.168.0.105 "Samsung M2070 Series" "Samsung M2070 Series on 192.168.0.105" "MFG:Samsung;CMD:SPL,URF,FWV,PIC,EXT,SPDS;MDL:M2070 Series;CLS:PRINTER;CID:SA_SPLV3_BW;MODE:SCN,SPL3,R000105,SCP;"


installer le pilote

puis création des liens symboliques

sudo ln -s /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1.0.1
sudo ln -s /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1.0.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1
sudo ln -s /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1 /usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so


ajouter "smfp" dans /etc/sane.d/dll.conf

tous les autres backends peuvent être commentés

chmod 644 smfp-samsung.conf

ajouter

<model vendor="samsung" id="m2070w" modelstring="M2070 Series"/>

dans smfp.samsung.conf

scanimage -L

pour debugger scanimage -L

export SANE_DEBUG_DLL=255 && scanimage -L &> debug.txt

qui retourne quelque chose comme

[23:41:10.277791] [sanei_debug] Setting debug level of dll to 255.
[23:41:10.277967] [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.29
[23:41:10.277998] [dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[23:41:10.278067] [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[23:41:10.278108] [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[23:41:10.278183] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hplip
[23:41:10.278241] [dll] sane_init/read_config: reading dll.d/hplip
[23:41:10.278297] [dll] add_backend: adding backend `hpaio'
[23:41:10.278350] [dll] sane_init/read_dlld: done.
[23:41:10.278395] [dll] sane_init/read_config: reading dll.conf
[23:41:10.278475] [dll] add_backend: adding backend `smfp'
[23:41:10.278541] [dll] sane_get_devices
[23:41:10.278571] [dll] load: searching backend `smfp' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane:/usr/lib64/sane'
[23:41:10.278604] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1'
[23:41:10.278652] [dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1'
[23:41:10.283749] [dll] init: initializing backend `smfp'
[23:41:10.286285] [dll] init: backend `smfp' is version 1.0.1
[23:41:11.664860] [dll] load: searching backend `hpaio' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane:/usr/lib64/sane'
[23:41:11.664928] [dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[23:41:11.664979] [dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[23:41:11.670235] [dll] init: initializing backend `hpaio'
[23:41:11.671274] [dll] init: backend `hpaio' is version 1.0.0
[23:41:13.112936] [dll] sane_get_devices: found 1 devices
device `smfp:net;192.168.0.105' is a Samsung M2070 Series on 192.168.0.105 Scanner
[23:41:13.112971] [dll] sane_exit: exiting
[23:41:13.112984] [dll] sane_exit: calling backend `smfp's exit function
[23:41:13.113309] [dll] sane_exit: calling backend `hpaio's exit function
[23:41:13.113755] [dll] sane_exit: finished