Pour arrêter que la suggestion de la mise à jour PRO des packages n'apparaisse :
sudo pro config set apt_news=false
Blog dans lequel je note comme aide-mémoire les trucs et astuces que j'ai utilisés pour configurer selon mes besoins mes machines sous Linux Ubuntu Raspbian Macosx Windows.
Pour arrêter que la suggestion de la mise à jour PRO des packages n'apparaisse :
sudo pro config set apt_news=false
sudo systemctl set-default multi-user
gnome-session-quit
sudo systemctl set-default graphical
sudo systemctl start gdm3
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>
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
apt-mark will change whether a package has been marked as being
automatically installed.
When you request that a package is installed, and as a result other
packages are installed to satisfy its dependencies, the dependencies
are marked as being automatically installed. Once these automatically
installed packages are no longer depended on by any manually installed
packages, they will be removed by e.g. apt-get or aptitude.
auto
auto is used to mark a package as being automatically installed,
which will cause the package to be removed when no more manually
installed packages depend on this package.
manual
manual is used to mark a package as being manually installed, which
will prevent the package from being automatically removed if no
other packages depend on it.
hold
hold is used to mark a package as held back, which will prevent the
package from being automatically installed, upgraded or removed.
The command is only a wrapper around dpkg --set-selections and the
state is therefore maintained by dpkg(1) and not affected by the
--file option.
unhold
unhold is used to cancel a previously set hold on a package to
allow all actions again.
showauto
showauto is used to print a list of automatically installed
packages with each package on a new line. All automatically
installed packages will be listed if no package is given. If
packages are given only those which are automatically installed
will be shown.
showmanual
showmanual can be used in the same way as showauto except that it
will print a list of manually installed packages instead.
showhold
showhold is used to print a list of packages on hold in the same
way as for the other show commands.
memmap linux kernel parameters are:
mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
Amount of memory to be used when the kernel is not able
to see the whole system memory or for test.
[IA-32] Use together with memmap= to avoid physical
address space collisions. Without memmap= PCI devices
could be placed at addresses belonging to unused RAM.
mem=nopentium [BUGS=IA-32] Disable usage of 4MB pages for kernel
memory.
memmap=exactmap [KNL,IA-32] Enable setting of an exact
E820 memory map, as specified by the user.
Such memmap=exactmap lines can be constructed based on
BIOS output or other requirements. See the memmap=nn@ss
option description.
memmap=nn[KMG]@ss[KMG]
[KNL] Force usage of a specific region of memory
Region of memory to be used, from ss to ss+nn.
memmap=nn[KMG]#ss[KMG]
[KNL,ACPI] Mark specific memory as ACPI data.
Region of memory to be used, from ss to ss+nn.
memmap=nn[KMG]$ss[KMG]
[KNL,ACPI] Mark specific memory as reserved.
Region of memory to be used, from ss to ss+nn.
When passing via grub you need to escape the $:
ie: memmap 128M\$1024M
Without the escaping, memmap doesn't behave correctly.
In /etc/default/grub you need to escape \ too.
So option as to be writed this way: memmap 128M\\\$512M
Several memmap options could be used as the same time.
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
modprobe -r psmouse
modprobe psmouse proto=imps
touchpad.conf under /etc/modprobe.d/, and put the following line in it:options psmouse proto=imps
To configure dovecot to use SSL, you can edit the file /etc/dovecot/dovecot.conf and amend following lines:
Si on génère des certificats selon la méthode ci-dessous, alors remplacer ssl-cert-snakeoil.pem ssl-cert-snakeoil.key par les server.crt server.key
Whether you are getting a certificate from a CA or generating your own self-signed certificate, the first step is to generate a key.
If the certificate will be used by service daemons, such as Apache, Postfix, Dovecot, etc, a key without a passphrase is often appropriate. Not having a passphrase allows the services to start without manual intervention, usually the preferred way to start a daemon.
This section will cover generating a key with a passphrase, and one without. The non-passphrase key will then be used to generate a certificate that can be used with various service daemons.
![]() |
|
|
Running your secure service without a passphrase is convenient because you will not need to enter the passphrase every time you start your secure service. But it is insecure and a compromise of the key means a compromise of the server as well. |
To generate the keys for the Certificate Signing Request (CSR) run the following command from a terminal prompt:
openssl genrsa -des3 -out server.key 1024
%%%
Generating RSA private key,
1024 bit long modulus .....................++++++ .................++++++
unable to write 'random state' e is 65537 (0x10001)
Enter pass phrase for server.key:
You can now enter your passphrase. For best security, it should at least contain eight characters. The minimum length when specifying -des3 is four characters. It should include numbers and/or punctuation and not be a word in a dictionary. Also remember that your passphrase is case-sensitive.
Re-type the passphrase to verify. Once you have re-typed it correctly, the server key is generated and stored in theserver.key file.
Now create the insecure key, the one without a passphrase, and shuffle the key names:
openssl rsa -in server.key -out server.key.insecure
mv server.key server.key.secure
mv server.key.insecure server.key
The insecure key is now named server.key, and you can use this file to generate the CSR without passphrase.
To create the CSR, run the following command at a terminal prompt:
openssl req -new -key server.key -out server.csr
It will prompt you enter the passphrase. If you enter the correct passphrase, it will prompt you to enter Company Name, Site Name, Email Id, etc. Once you enter all these details, your CSR will be created and it will be stored in the server.csr file.
You can now submit this CSR file to a CA for processing. The CA will use this CSR file and issue the certificate. On the other hand, you can create self-signed certificate using this CSR.
To create the self-signed certificate, run the following command at a terminal prompt:
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
The above command will prompt you to enter the passphrase. Once you enter the correct passphrase, your certificate will be created and it will be stored in the server.crt file.
![]() |
|
|
If your secure server is to be used in a production environment, you probably need a CA-signed certificate. It is not recommended to use self-signed certificate. |
You can install the key file server.key and certificate file server.crt, or the certificate file issued by your CA, by running following commands at a terminal prompt:
sudo cp server.crt /etc/ssl/certs
sudo cp server.key /etc/ssl/private
Now simply configure any applications, with the ability to use public-key cryptography, to use the certificate and key files. For example, Apache can provide HTTPS, Dovecot can provide IMAPS and POP3S, etc.