44 private links
$ sudo pacman -S paprefs
$ paprefs
Choose the Simultaneous Output tab.
$ pulseaudio -k
Et le tour est joué, on utilise le périphérique virtuel ainsi créé.
Une distribution minimaliste basée sur Debian
c'est vraiment une distribution minimaliste, donc légère (plus légère qu'une debian standard).
- ça reste une debian (donc bidouillable comme n'importe quelle debian)
- si on veut (mais pas d'obligation), il peut installer et configurer tout un tas de packages/logiciels/services avec beaucoup de facilité.
On a à la fois la bidouillabilité et l'installation de services prêts à l'emploi.
Par exemple, cochez juste "NextCloud" dans leur installeur (dietpi-software) et quelques minutes plus tard vous n'avez plus qu'à ouvrir votre navigateur et vous connecter à NextCloud.
Derrière il va :
- automatiquement aller télécharger la dernière version de NextCloud du site officiel.
- vous donner le choix du serveur web à utiliser (Apache, nginx, lighttpd)
- installer tous les modules php nécessaires à NextCloud.
- configurer php et ces modules.
- configurer le serveur web (y compris les mod_* nécessaires à NextCloud)
- installer et configurer mariadb
- donner le login/mot de passe de mariadb à NextCloud et lui demander d'aller créer ses tables.
- installer php-fpm et le configurer dans le serveur web pour avoir de meilleures performances.
- etc.
Et comme elle est en prime adossée aux dépôts Debian, tous les paquets dont vous avez besoin sont à portée de apt.
On notera aussi :
- les intelligentes adaptations pour les SBC (comme l'usage de log2ram et de tmpfs pour éviter de tuer les microSD, l'adaptation de cron pour limiter les réveils inutiles, etc.)
- la faible consommation de RAM (160 Mo avec un bureau graphique, 80 Mo pour un système en ligne de commande).
Le point de vue de quelqu'un qui a été contraint de revenir à Windows...
On ne sait jamais, si j'ai besoin un jour...
Strawberry, un fork de Clementine, à tester
cat bigfile.txt | parallel --pipe grep 'pattern'
À noter aussi que :
pbzip2 est l'équivalent parallel de bzip2 et pigz celui de gzip
Une collection de commandes UNIX avec une courte explication
Encore un article à lire plus tard
Un bon tuto sur Rsync
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS=/screen lower quality, smaller size.
-dPDFSETTINGS=/ebook for better quality, but slightly larger pdfs.
-dPDFSETTINGS=/prepress output similar to Acrobat Distiller "Prepress Optimized" setting
-dPDFSETTINGS=/printer selects output similar to the Acrobat Distiller "Print Optimized" setting
-dPDFSETTINGS=/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output fileUn petit condensé de bash, toujours pratique !
for file in *.JPG; do convert $file -resize x1024 lr-$file; done
x1024 pour une hauteur de 1024 pixels
800 pour une largeur de 800 pixels
Cool ;-)
Outils Linux
Un lecteur de RSS et Podcasts en client lourd... Pourquoi pas.
Command Editing Shortcuts
Ctrl + a – go to the start of the command line
Ctrl + e – go to the end of the command line
Ctrl + k – delete from cursor to the end of the command line
Ctrl + u – delete from cursor to the start of the command line
Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
Ctrl + xx – move between start of command line and current cursor position (and back again)
Alt + b – move backward one word (or go to start of word the cursor is currently on)
Alt + f – move forward one word (or go to end of word the cursor is currently on)
Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word)
Alt + c – capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word)
Alt + u – make uppercase from cursor to end of word
Alt + l – make lowercase from cursor to end of word
Alt + t – swap current word with previous
Ctrl + f – move forward one character
Ctrl + b – move backward one character
Ctrl + d – delete character under the cursor
Ctrl + h – delete character before the cursor
Ctrl + t – swap character under cursor with the previous one
Command Recall Shortcuts
Ctrl + r – search the history backwards
Ctrl + g – escape from history searching mode
Ctrl + p – previous command in history (i.e. walk back through the command history)
Ctrl + n – next command in history (i.e. walk forward through the command history)
Alt + . – use the last word of the previous command
Command Control Shortcuts
Ctrl + l – clear the screen
Ctrl + s – stops the output to the screen (for long running verbose command)
Ctrl + q – allow output to the screen (if previously stopped using command above)
Ctrl + c – terminate the command
Ctrl + z – suspend/stop the command
Bash Bang (!) Commands
Bash also has some handy features that use the ! (bang) to allow you to do some funky stuff with bash commands.
!! – run last command
!blah – run the most recent command that starts with ‘blah’ (e.g. !ls)
!blah:p – print out the command that !blah would run (also adds it as the latest command in the command history)
!$ – the last word of the previous command (same as Alt + .)
!$:p – print out the word that !$ would substitute
! – the previous command except for the last word (e.g. if you type ‘find some_file.txt /‘, then ! would give you ‘find some_file.txt‘)
!:p – print out what ! would substitute