debian_installation_configuration
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| debian_installation_configuration [2019/01/03 20:08] – [Du vécu] serge | debian_installation_configuration [2025/10/14 01:06] (Version actuelle) – Benjamin Labomedia | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Debian Installation Configuration ====== | ====== Debian Installation Configuration ====== | ||
| - | <WRAP center round box 60%> | ||
| - | **Installation et configuration de Debian** | ||
| - | * Validé avec **Debian Stretch 9** en décembre 2018 | ||
| - | * **Bureau MATE** avec l' | ||
| - | * Validé avec **VirtualBox** avec Debian stretch 9.4 en mars 2018 | ||
| - | * Validé pour **Bumblebee Optimus Blender EEVEE** en décembre 2018 | ||
| - | </ | ||
| - | ===== Installation de Debian | + | =====Debian |
| + | 15 août 2021 | ||
| + | ====Particularités==== | ||
| + | ===Python=== | ||
| + | Plus d' | ||
| + | |||
| + | sudo pip3 install cecicela | ||
| + | mais | ||
| + | python3.9 -m pip install cecicela | ||
| + | qui installe dans .local | ||
| + | |||
| + | ===Comment installer en paralléle de python3.9 une autre version de python=== | ||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -y | ||
| + | cd / | ||
| + | ./ | ||
| + | make -j8 | ||
| + | sudo make altinstall | ||
| + | python3.7 –version | ||
| + | </ | ||
| + | ====Post install==== | ||
| + | su | ||
| + | / | ||
| + | Se déconnecter, | ||
| + | |||
| + | sudo dpkg --add-architecture i386 | ||
| + | sudo apt install mate-menu mate-desktop-environment-extras locales terminator grsync gparted geany geany-plugins ncdu git blender vlc gnome-system-tools caja-open-terminal thunderbird blender inkscape gimp audacity gdebi keepassxc geeqie simple-scan cheese guvcview openjdk-17-jdk software-properties-common | ||
| + | sudo dpkg-reconfigure locales | ||
| + | |||
| + | ====Bug Geany Plugin Markdown==== | ||
| + | Lancer geany en console pour avoir l' | ||
| + | Dans la cofiguration du plugin Markdown, définir le chemin vers ~.config/ | ||
| + | |||
| + | ====Bug Geany Underscore not displayed==== | ||
| + | * **[[https:// | ||
| + | |||
| + | " | ||
| + | * uncomment line 2 [styling] | ||
| + | * line 90 changer | ||
| + | |||
| + | ## line_height=0; | ||
| + | pour | ||
| + | line_height=0; | ||
| + | ou | ||
| + | line_height=0; | ||
| + | ===== Installation | ||
| === Téléchargement === | === Téléchargement === | ||
| Télécharger le CD netinstall: https:// | Télécharger le CD netinstall: https:// | ||
| + | |||
| + | Exemple: | ||
| + | wget -c https:// | ||
| + | Ne pas utiliser le téléchargement du navigateur | ||
| === Vérification de l' | === Vérification de l' | ||
| - | | + | |
| - | === Gravure | + | === Création de la clé USB bootable |
| * https:// | * https:// | ||
| - | | + | |
| **Ne vous gourrez pas de disque !**. Remplacer x par le bon disque ! Dans le dossier contenant l' | **Ne vous gourrez pas de disque !**. Remplacer x par le bon disque ! Dans le dossier contenant l' | ||
| - | | + | |
| - | | + | |
| === Installation en mode graphique === | === Installation en mode graphique === | ||
| - | Le bureau debian est inutile ! | + | Le bureau debian est inutile |
| - | === Configuration principale === | + | ==== Configuration principale |
| === sudo === | === sudo === | ||
| Ajout de toto à sudo: | Ajout de toto à sudo: | ||
| su | su | ||
| - | | + | |
| Se déconnecter, | Se déconnecter, | ||
| - | === mate-menu est le portage de Mint Menu sur Mate === | + | === Menu === |
| - | < | + | mate-menu est le portage de Mint Menu sur Mate |
| - | sudo apt-get install mate-menu mate-desktop-environment-extras | + | sudo apt install mate-menu mate-desktop-environment-extras |
| - | </ | + | ou |
| + | |||
| + | mate-applet-brisk-menu qui est plus simple, avec rien à configurer | ||
| + | sudo apt install mate-applet-brisk-menu mate-desktop-environment-extras | ||
| === Apparence === | === Apparence === | ||
| Ligne 49: | Ligne 96: | ||
| === Reconfiguration des locales === | === Reconfiguration des locales === | ||
| - | < | + | sudo apt install locales |
| - | sudo apt-get install locales | + | sudo dpkg-reconfigure locales |
| - | sudo dpkg-reconfigure locales | + | |
| - | </code> | + | =====Installation de Xubuntu 18.04 pour du calcul d' |
| + | //__**Ne plus utiliser Xubuntu 18.04**__// voir **[[compilation_de_oepncv_avec_cuda_sur_ubuntu]]** | ||
| - | === Diminuer la sensibilité de la souris === | + | Installer le driver Nvidia avec Pilotes Additionnels |
| - | Créer un fichier /etc/X11/xorg.conf.d/50-mouse-acceleration.conf | + | <code bash> |
| - | < | + | sudo dpkg --add-architecture i386 |
| - | Section " | + | sudo apt update |
| - | | + | sudo apt upgrade |
| - | | + | sudo apt install terminator grsync gparted geany geany-plugins ncdu git blender vlc gnome-system-tools synaptic locales python3-pip build-essential python3-mpi4py multilib dkms gcc |
| - | # set the following to 1 1 0 respectively to disable acceleration. | + | sudo -H python3 -m pip install --upgrade pip |
| - | | + | sudo -H python3 -m pip install numpy oscpy |
| - | | + | |
| - | | + | wget http://developer.download.nvidia.com/compute/ |
| - | Option " | + | sudo chmod +x cuda_10.2.89_440.33.01_linux.run |
| - | Option " | + | sudo ./ |
| - | EndSection | + | # N' |
| + | nvidia-smi | ||
| + | |||
| + | # Bonus | ||
| + | sudo -H python3 -m pip install tensorflow==1.15 | ||
| + | sudo -H python3 -m pip install stable-baselines | ||
| + | sudo -H python3 -m pip uninstall gym | ||
| + | sudo apt install python3-mpi4py | ||
| </ | </ | ||
| - | =====Sources.list===== | + | ===== Logiciels Debian Buster |
| - | Pour Debian stretch avec les backports | + | sudo dpkg --add-architecture i386 |
| - | sudo pluma /etc/apt/ | + | sudo apt-get update |
| - | <code text> | + | ===Logiciels=== |
| - | # Les dépôts officiels Debian Stretch : | + | sudo apt install filezilla terminator caja-open-terminal grsync gparted geany geany-plugins ncdu git thunderbird blender inkscape vlc gimp audacity gdebi keepassxc geeqie simple-scan gnome-system-tools locales mate_tweak |
| - | deb http:// | + | |
| - | # deb-src http:// | + | |
| - | # Debian Stretch, mises-à-jour de sécurité : | + | ===Imprimantes=== |
| - | deb http://security.debian.org/ | + | sudo apt install cups hp-ppd hplip |
| - | # deb-src http:// | + | |
| + | | ||
| - | # Debian Stretch, mises-à-jour " | + | ===System=== |
| - | deb http://deb.debian.org/debian/ stretch-updates main contrib non-free | + | sudo apt install libsdl2-dev zlib1g-dev pkg-config autoconf automake cmake dkms libtool libsdl2-2.0-0 ccache openjdk-8-jdk unzip ffmpeg libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good libncurses5: |
| - | # deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free | + | |
| - | # Debian Stretch, dépôt de rétroportages (" | + | === Python 3.7 === |
| - | deb http://deb.debian.org/debian/ stretch-backports main contrib non-free | + | sudo apt install python3-pip |
| - | # deb-src http:// | + | |
| - | </ | + | **Successfully installed** |
| + | \\ MarkupSafe-1.1.0 appdirs-1.4.3 colorama-0.4.1 jinja2-2.10 sh-1.12.14 | ||
| + | sudo pip3 install jinja2 appdirs sh colorama setuptools | ||
| + | |||
| + | **Building wheels for collected packages:** | ||
| + | \\ pyyaml, bs4, twisted, kivy, pyjnius, Kivy-Garden | ||
| + | Installing collected packages: pyyaml, soupsieve, beautifulsoup4, | ||
| + | |||
| + | **Successfully installed** | ||
| - | ===== Logiciels===== | + | Automat-0.7.0 Kivy-Garden-0.1.4 PyHamcrest-1.9.0 attrs-18.2.0 beautifulsoup4-4.7.0 bs4-0.0.1 buildozer-0.37 constantly-15.1.0 docutils-0.14 hyperlink-18.0.0 incremental-17.5.0 kivy-1.10.1 lxml-4.2.6 numpy-1.15.4 opencv-python-3.4.5.20 pexpect-4.6.0 ptyprocess-0.6.0 pygame-1.9.4 pygments-2.3.1 pyjnius-1.1.4 pyyaml-3.13 soupsieve-1.6.1 twisted-18.9.0 unidecode-1.0.23 zope.interface-4.6.0 |
| + | |||
| + | sudo pip3 install pyyaml bs4 unidecode lxml twisted numpy opencv-python kivy pygame buildozer pyjnius | ||
| + | |||
| + | === Cython === | ||
| + | sudo apt install python-pip | ||
| + | sudo pip install cython | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Pour forcer une version: | ||
| + | sudo pip install -U --force-reinstall Cython==0.28.6 | ||
| + | ===== Logiciels | ||
| | | ||
| ==== Du vécu ==== | ==== Du vécu ==== | ||
| - | sudo apt-get install filezilla terminator caja-open-terminal grsync gparted geany geany-plugins ncdu git thunderbird keepassxc gdebi simple-scan gnome-system-tools | + | sudo apt install filezilla terminator caja-open-terminal grsync gparted geany geany-plugins ncdu git thunderbird keepassxc gdebi simple-scan gnome-system-tools |
| - | sudo apt-get install firefox-esr-l10n-fr thunderbird-l10n-fr libreoffice-l10n-fr | + | sudo apt install firefox-esr-l10n-fr thunderbird-l10n-fr libreoffice-l10n-fr |
| sudo dpkg-reconfigure locales | sudo dpkg-reconfigure locales | ||
| + | sudo apt install mate_tweak | ||
| ==== Geek ==== | ==== Geek ==== | ||
| - | < | + | |
| - | sudo apt-get install autoconf automake build-essential cmake libav-tools python3-dev python3-setuptools dkms python-dev python-setuptools python-pip python3-pip python-freenect | + | |
| - | </ | + | |
| ==== Python ==== | ==== Python ==== | ||
| ===Python 2.7=== | ===Python 2.7=== | ||
| - | sudo apt-get install python-pip python-dev | + | sudo apt install python-pip python-dev |
| sudo pip install twisted numpy opencv-python | sudo pip install twisted numpy opencv-python | ||
| | | ||
| Ligne 112: | Ligne 184: | ||
| | | ||
| ==== Audio video graphisme ==== | ==== Audio video graphisme ==== | ||
| - | < | + | |
| ==== Pure Data ==== | ==== Pure Data ==== | ||
| - | < | + | sudo apt install pd-osc pd-zexy |
| puis définir les paths\\ | puis définir les paths\\ | ||
| Ligne 123: | Ligne 195: | ||
| ==== Arduino ==== | ==== Arduino ==== | ||
| - | < | + | sudo apt install arduino |
| - | sudo apt-get install arduino | + | sudo usermod |
| - | sudo usermod -a -G dialout Nom_Utilisateur | + | |
| - | </ | + | |
| Se déconnecter et reconnecter. | Se déconnecter et reconnecter. | ||
| - | ====Kivy et Buildozer==== | + | =====Sources.list===== |
| - | * [[kivy_installation|Installation de Kivy]] | + | ====Debian stretch avec les backports==== |
| - | | + | |
| + | <code text> | ||
| + | # Les dépôts officiels Debian Stretch : | ||
| + | deb http:// | ||
| + | # deb-src http:// | ||
| - | ===== Carte graphique ===== | + | # Debian Stretch, mises-à-jour de sécurité : |
| - | ==== Blender 2.80 EEVEE ==== | + | deb http:// |
| - | * https://forums.bunsenlabs.org/viewtopic.php? | + | # deb-src http://security.debian.org/ stretch/ |
| - | ==== Drivers Nvidia ==== | + | |
| - | === Ressources === | + | # Debian Stretch, mises-à-jour " |
| - | | + | deb http://deb.debian.org/debian/ stretch-updates main contrib non-free |
| - | + | # deb-src http://deb.debian.org/ | |
| - | === Installation des drivers Nvidia === | + | |
| - | * https://wiki.debian.org/ | + | |
| - | Les versions ci-dessous sont des résumé du wiki ci-dessus. | + | |
| - | === Désinstallation des drivers Nvidia === | + | # Debian Stretch, dépôt de rétroportages (" |
| - | < | + | deb http:// |
| - | sudo apt-get remove | + | # deb-src http://deb.debian.org/ |
| - | sudo rm /etc/X11/xorg.conf | + | |
| </ | </ | ||
| - | ==== Bumblebee Pour un portable optimus ==== | + | Buster |
| - | + | <code text> | |
| - | * https://wiki.debian.org/ | + | deb http://ftp.fr.debian.org/ |
| - | + | #deb-src http:// | |
| - | < | + | |
| - | + | deb http:// | |
| - | < | + | #deb-src http:// |
| - | sudo adduser $USER bumblebee | + | |
| - | sudo nano /etc/bumblebee/ | + | deb http://ftp.de.debian.org/ |
| - | TurnCardOffAtExit=true | + | #deb-src http:// |
| </ | </ | ||
| - | | + | ===== Carte graphique ===== |
| + | === Désinstallation des drivers Nvidia === | ||
| + | sudo apt-get remove --purge nvidia-* | ||
| + | sudo rm /etc/X11/xorg.conf | ||
| + | ===== Bumblebee Pour un portable optimus ===== | ||
| < | < | ||
| + | sudo dpkg --add-architecture i386 | ||
| + | sudo apt-get update | ||
| sudo nano / | sudo nano / | ||
| - | # disable card on boot with bbswitch | ||
| - | bbswitch load_state=0 | ||
| - | </ | ||
| - | ====Résumé qui a permis d' | + | # Déchargement du module nouveau |
| - | < | + | |
| sudo modprobe -r nouveau | sudo modprobe -r nouveau | ||
| + | # Déchargement du module de changement de carte graphique à chaud sous GNU/Linux | ||
| sudo modprobe -r vga_switcheroo | sudo modprobe -r vga_switcheroo | ||
| - | sudo apt-get install gcc make linux-headers-amd64 | + | |
| - | sudo apt-get install dkms bbswitch-dkms | + | sudo apt install gcc make linux-headers-amd64 |
| + | sudo apt install libelf-dev bumblebee-nvidia primus primus-libs: | ||
| + | sudo apt install | ||
| sudo modprobe bbswitch load_state=0 | sudo modprobe bbswitch load_state=0 | ||
| cat / | cat / | ||
| su -c 'echo " | su -c 'echo " | ||
| - | sudo apt-get install nvidia-kernel-dkms nvidia-xconfig nvidia-settings | + | nano / |
| - | sudo apt-get install nvidia-vdpau-driver vdpau-va-driver mesa-utils | + | sudo / |
| - | sudo apt-get install | + | sudo nano /etc/bumblebee/ |
| - | sudo apt-get install libcuda1 | + | |
| cat / | cat / | ||
| sudo service bumblebeed restart | sudo service bumblebeed restart | ||
| - | + | lsmod | grep -i ' | |
| - | # Droits | + | |
| - | sudo adduser $USER bumblebee | + | |
| sudo usermod -aG bumblebee $USER | sudo usermod -aG bumblebee $USER | ||
| - | |||
| - | # Détection de la carte nvidia | ||
| lspci -v | egrep -i ' | lspci -v | egrep -i ' | ||
| lspci -nn | egrep -i " | lspci -nn | egrep -i " | ||
| - | |||
| - | # Driver nouveau utilisé ? | ||
| lsmod | grep -i ' | lsmod | grep -i ' | ||
| + | optirun glxgears -info | ||
| + | sudo modprobe -r nouveau | ||
| + | optirun glxgears -info | ||
| + | glxgears -info | ||
| + | optirun glxgears -info | ||
| + | </ | ||
| + | ===Test=== | ||
| + | optirun firefox | ||
| + | ou, dans les sources de Blender 2.80 Beta | ||
| + | optirun blender | ||
| + | CUDA est bien actif | ||
| - | # test | + | ===== VirtualBox Buster 10===== |
| - | glxgears -info # 73 | + | |
| - | optirun glxgears | + | |
| - | optirun | + | |
| - | # Run blender | + | ====Debian Bookworms 12 ==== |
| - | optirun | + | |
| - | </code> | + | sudo apt install virtualbox virtualbox-guest-additions-iso |
| - | ===== VirtualBox ===== | + | |
| + | ===GuestAdditions=== | ||
| + | Le paquet VirtualBox GuestAdditions est dans les dépots. Ne pas définir | ||
| + | Dans le menu (Ctrl + C), Périphériques, | ||
| + | |||
| + | ===Extensions=== | ||
| + | wget https:// | ||
| + | |||
| + | Fichiers, Paramètres, | ||
| + | |||
| + | ===Partage=== | ||
| + | Dans l' | ||
| + | sudo usermod -aG vboxusers nom-utilisateur | ||
| + | |||
| + | * Périphériques --> Dissiers partagés --> Réglages des dossiers partagés | ||
| + | * Ajouter un dossier partagé avec l' | ||
| + | * Chemin du dossier: / | ||
| + | * Eteindre, redémarrer. | ||
| + | * data est monté sur le bureau | ||
| + | |||
| + | Pour ajouter un périphérique USB voir https:// | ||
| + | =====VirtualBox | ||
| ====Logiciels installés sur session de base==== | ====Logiciels installés sur session de base==== | ||
| < | < | ||
| su | su | ||
| adduser toto sudo | adduser toto sudo | ||
| - | apt-get install mate-menu mate-desktop-environment-extras locales | + | apt install mate-menu mate-desktop-environment-extras locales |
| dpkg-reconfigure locales | dpkg-reconfigure locales | ||
| </ | </ | ||
| Ligne 241: | Ligne 338: | ||
| ===Installer=== | ===Installer=== | ||
| < | < | ||
| - | sudo apt-get install autoconf automake build-essential cmake caja-open-terminal libav-tools geany geany-plugins ncdu git python-pip python-dev python3-pip python3-dev dkms | + | sudo apt install autoconf automake build-essential cmake caja-open-terminal libav-tools geany geany-plugins ncdu git python-pip python-dev python3-pip python3-dev dkms |
| </ | </ | ||
| Ligne 250: | Ligne 347: | ||
| Périphériques --> Insérer l' | Périphériques --> Insérer l' | ||
| Ouvrir le CD sur le bureau: | Ouvrir le CD sur le bureau: | ||
| - | < | + | sudo apt install gcc make perl |
| + | | ||
| ===Partage=== | ===Partage=== | ||
| Dans l' | Dans l' | ||
| - | | + | sudo usermod -aG vboxsf |
| - | * sudo adduser $USER vboxsf | + | |
| * Périphériques --> Dissiers partagés --> Réglages des dossiers partagés | * Périphériques --> Dissiers partagés --> Réglages des dossiers partagés | ||
| * Ajouter un dossier partagé avec l' | * Ajouter un dossier partagé avec l' | ||
| Ligne 271: | Ligne 369: | ||
| Puis agrandir la partition dans le système hôte avec gparted. | Puis agrandir la partition dans le système hôte avec gparted. | ||
| - | {{tag>sb linux}} | + | =====Des trucs parfois utiles===== |
| + | === Diminuer la sensibilité de la souris === | ||
| + | Créer un fichier / | ||
| + | < | ||
| + | Section " | ||
| + | Identifier "My Mouse" | ||
| + | MatchIsPointer " | ||
| + | # set the following to 1 1 0 respectively to disable acceleration. | ||
| + | Option " | ||
| + | Option " | ||
| + | Option " | ||
| + | Option " | ||
| + | Option " | ||
| + | EndSection | ||
| + | </ | ||
| + | |||
| + | {{tag> linux sb }} | ||
debian_installation_configuration.1546546085.txt.gz · Dernière modification : de serge
