To content | To menu | To search

Tag - hardware

Entries feed


Protect your eyes from screen's blue light

''Protéger vos yeux de la lumière bleue des écrans'

apt install redshift-gtk
man redshift [1]


[1] You need to set a config file with your GPS coord, and red levels for day and night.


Configure CUPS

Configurer CUPS

http://localhost:631 [1] [2]


[1] I never remember this one… its the IPP Internet Printing Protocol port number : grep ipp /etc/services

[2] To modify configurations you need to enter your user or root password ; the user needs to be in the lpadmin group


Mount an iPod

Monter un iPod

modprobe hfs
mount -t hfsplus /dev/sdb3 /media/ipod/


Restore lost files from disc, cdrom or camera with photorec

Récupérer des fichiers supprimés de tout support avec photorec

photorec /dev/sdc [1]


[1] Follow terminal's instructions

Test and restore lost partitions with testdisk

Vérifier et restaurer des partitions perdues avec testdisk

testdisk /dev/sdc [1]


[1] Follow terminal's instructions…


Control and monitor status of SMART Disks

Contrôle et surveille l'état d'un disque SMART (température, heures de fonctionnement, journaux d'erreurs…)

  • Health status : smartctl -H /dev/sdc [1]
  • Recent errors : smartctl -l error /dev/sdc
  • All info : smartctl -a /dev/sdac
  • Start SMART tests : smartctl -t short /dev/sdc


[1] As root ; You may have to add -d <name-of-drive> for "Maxtor USB" drives…


Test storage with fat filesystem for bad blocks

Vérifier l'existence de blocs défectueux sur un disque dur de stockage avec système de fichiers fat16 / fat32.

sudo fsck.vfat -t -w /dev/sdb1

  • t : mark bad blocks to avoid them
  • w : actually write things down


List the blocks which are reserved as bad in the filesystem (ext)

Lister les blocs inutilisables que le système de fichier ext2 / ext3 / ext4 n'utilisera plus

dumpe2fs -b /dev/sdb1


Test storage with ext filesystem for bad blocks

Vérifier l'existence de blocs défectueux sur un disque dur de stockage avec système de fichiers ext2 / ext3 / ext4.

e2fsck -k -c -v /dev/sdb1 [1]

  • k : keep track of bad blocks
  • c : use external badblock command to find new ones
  • v : verbose, to follow this slow process


[1] As root


Test RAM reading speed

Tester la vitesse de lecture de la mémoire RAM

hdparm -T /dev/sda [1]

Timing cached reads: 14480 MB in 2.00 seconds = 7257.39 MB/sec

man hdparm

Perform timings of cache reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indica‐ tion of the throughput of the processor, cache, and memory of the system under test.


[1] This command requires root priviledges


Set mouse/pointer acceleration in Xorg

Spécifier l'accélération de la souris / du pointeur dans Xorg

xset m 4 1 [1] [2]


[1] According to the man page of xset, the parameters of the m (mouse) argument are acceleration and threshold

[2] xinput can be used to set different parameters to different pointers


Mount Bluetooth peripherals (such as Android 7 phones)

Monter un périphérique Bluetooth comme un téléphone Android 7.

  • Mount : obexfs -b MAC_address_of_peripheral /mountpoint [1]
  • Unmount : fusermount -u /mountpoint [2]


[1] MAC_address_of_peripheral, such as : 84:CF:BF:8F:46:E1

[2] Works even if you first failed by other way of unmounting


Bluetooth version

hciconfig -a