Debian [[gnulinux|GNU/Linux]] is the Operating System I use at home since 2001 and at work from 2001 to 2004.
Official website: http://www.debian.org/
===== Package management =====
There are several front-ends:
* command line with apt (cf. [[http://www.debian.org/doc/manuals/apt-howto/| APT HOWTO]])
* text menu with aptitude (or command line)
* [[http://www.argon.org/~roderick/apt-pinning.html| Using APT with more than 2 sources]]
* [[http://www.pthree.org/2007/08/12/aptitude-vs-apt-get/| aptitude vs apt-get]], 12/08/2007
* cleanup: [[http://www.debian-administration.org/articles/134| Removing unnecessary packages with deborphan]]:
deborphan | sudo xargs apt-get remove -y
===== Documentation =====
* [[https://formation-debian.viarezo.fr/|Formation Debian GNU/Linux]] par Alexis de Lattre, sans aucun doute la meilleure ressource en français (seul problème : dernière mise à jour : 2013)
==== Comment savoir dans quel paquet une commande se trouve ? ====
Exemple : last
$ which last
/usr/bin/last
$ dpkg -S /usr/bin/last
wtmpdb: /usr/bin/last
La commande last se trouve dans le paquet wtmpdb.
==== Comment obtenir la liste des packages installés? ====
dpkg --get-selections | grep " install$"
==== ifconfig deprecated in Buster ====
Replaced by
ip addr
[[https://linoxide.com/linux-how-to/install-missing-ifconfig-command-on-debian/|source]]
==== Find third-party software ====
> The aptitude command might help you to find any 3rd party software package currently installed on your Debian system.
sudo aptitude search '~i(!~ODebian)'
[[https://linuxconfig.org/how-to-upgrade-debian-9-stretch-to-debian-10-buster|source]]
==== Problème de son pour un utilisateur ====
Il arrive qu'un utilisateur ne puisse pas faire fonctionner le son (alors que pour les autres utilisateurs, il n'y a pas de problème). Il y a plusieurs choses à vérifier :
* l'utilisateur est-il dans le groupe //audio// ? Pour vérifier :
groups user
* si ce n'est pas le cas, l'ajouter, puis rebooter :
sudo adduser user audio
* vérifier que le son n'est pas sur //mute// dans alsamixer (s'il y a "MM" sous le potentiomètre, appuyer sur la touche M pour qu'il ne soit plus en sourdine)
alsamixer
* pavucontrol : vérifier que la sourdine (mute) n'est pas activée ; c'est un outil graphique qu'on peut lancer de la ligne de commande :
pavucontrol &
==== importer un keyring ====
Lors de l'ajout d'un dépôt autre que Debian, il faut importer la clé pour vérifier les paquets
Quand j'utilise :
curl https://packages.site.com/keys/site.asc | apt-key add -
J'ai la réponse suivante :
apt-key: command not found
Apparemment, apt-key n'est plus ut
Voici comment faire.
Download the relevant key
wget -O - https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc > ~/teamviewer.key
Verify the type of file
file ~/teamviewer.key
It should be PGP public key block Public-Key (old)
Create a keyring
gpg --no-default-keyring --keyring ./teamviewer_keyring.gpg --import teamviewer.key
This file is still not a valid key that can be added to /etc/apt/trusted.gpg.d/ since it's a keyring, but from the keyring we can extract the key with
gpg --no-default-keyring --keyring ./teamviewer_keyring.gpg --export > ./teamviewer.gpg
This file is the key you want to move to the trusted key folder
sudo mv ./teamviewer.gpg /etc/apt/trusted.gpg.d/
[[https://askubuntu.com/a/1300076|source]]
==== Faire de la place sur le disque ====
Si on a une notification de manque de place sur le disque, voir sur quelle partition :
df -h
Si c'est /var/, voir si c'est /var/cache/:
cd /var/
sudo du -sch *
Si oui, essayer ceci :
sudo apt clean
===== Links =====
* [[http://meetings-archive.debian.net/pub/debian-meetings/2007/fosdem/| Présentations Debian au FOSDEM 2007]] (en anglais)
===== Installing =====
* [[debian:buster|Debian 10 buster]]
* [[https://www.linuxquestions.org/questions/debian-26/how-to-provide-non-free-firmware-files-to-the-debian-jessie-installer-4175542680/|How to provide non-free firmware files to the Debian Installer]]: this is for Jessie, I suppose it is very similar with more recent versions
===== Backports =====
Ajouter 2 lignes dans /etc/apt/sources.list :
sudo vi /etc/apt/sources.list
Les 2 lignes à ajouter sont les suivantes (retirer les commentaires # si nécessaire) :
deb http://deb.debian.org/debian bullseye-backports main #contrib non-free
#deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
Ensuite, faire une mise à jour :
sudo apt update
sudo apt ugrade
Installer un paquet ("package-name") dans backports :
sudo apt -t bullseye-backports install package-name
Sources :
* https://backports.debian.org/Instructions/
* [[https://www.how2shout.com/linux/how-to-install-and-use-backports-in-debian-11-bullseye/|How to install and use Backports in Debian 11 Bullseye]]