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 [2018/03/22 09:17] – [Test titre 4égal] serge | debian_installation_configuration [2022/09/25 13:16] (Version actuelle) – [Bug Geany Underscore not displayed] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ===== Debian Installation Configuration ===== | + | ====== Debian Installation Configuration |
- | ====== Test titre 6égal ====== | + | =====Debian 11 Bullseye===== |
- | ===== Test titre 5égal ===== | + | 15 août 2021 |
- | ==== Test titre 4égal | + | ====Particularités==== |
- | === Test titre 3égal | + | ===Python=== |
- | == Test titre 2égal == | + | Plus d' |
- | = Test titre 1égal = | + | |
+ | sudo pip3 install cecicela | ||
+ | mais | ||
+ | python3.9 -m pip install cecicela | ||
+ | qui installe dans .local | ||
- | **Installation et configuration | + | ===Comment installer en paralléle |
+ | | ||
- | * Validé avec **Debian stretch 9.2** en octobre 2017 | + | <code bash> |
- | * Bureau MATE avec l' | + | 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 |
- | * Validé avec VirtualBox avec **Debian stretch 9.4** en mars 2018 | + | 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 | ||
- | ===== Installation de Debian Stretch 9.2 en octobre 2017 ===== | + | ====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 | + | 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' | ||
- | '' | + | sha512sum image.iso |
- | === Gravure | + | === Création de la clé USB bootable |
* https:// | * https:// | ||
- | '' | + | sudo fdisk -l |
**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' | ||
- | '' | + | umount |
- | '' | + | sudo dd if=image.iso of=/dev/sdx bs=4M && sync |
=== 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: | ||
- | '' | + | |
- | '' | + | / |
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 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 === | ||
Dans Apparence, sélectionner le theme Menta et les icones MATE-Faenza. | Dans Apparence, sélectionner le theme Menta et les icones MATE-Faenza. | ||
- | == Reconfiguration des locales == | + | === Reconfiguration des locales === |
+ | sudo apt install locales | ||
+ | sudo dpkg-reconfigure locales | ||
- | '' | + | =====Installation de Xubuntu 18.04 pour du calcul d'IA===== |
- | '' | + | //__**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 |
+ | <code bash> | ||
+ | sudo dpkg --add-architecture i386 | ||
+ | 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 | ||
+ | sudo -H python3 -m pip install --upgrade pip | ||
+ | sudo -H python3 -m pip install numpy oscpy | ||
- | Créer un fichier | + | wget http://developer.download.nvidia.com/compute/ |
+ | sudo chmod +x cuda_10.2.89_440.33.01_linux.run | ||
+ | sudo ./cuda_10.2.89_440.33.01_linux.run | ||
+ | # N' | ||
+ | nvidia-smi | ||
- | < | + | # Bonus |
- | Section " | + | sudo -H python3 -m pip install tensorflow==1.15 |
- | Identifier "My Mouse" | + | sudo -H python3 -m pip install stable-baselines |
- | MatchIsPointer " | + | sudo -H python3 -m pip uninstall gym |
- | # set the following to 1 1 0 respectively to disable acceleration. | + | sudo apt install python3-mpi4py |
- | | + | |
- | Option " | + | |
- | Option " | + | |
- | Option " | + | |
- | | + | |
- | EndSection | + | |
</ | </ | ||
- | ==== Installation de logiciels supplémentaires | + | ===== Logiciels Debian Buster |
+ | sudo dpkg --add-architecture i386 | ||
+ | sudo apt-get update | ||
- | === Drivers Nvidia | + | ===Logiciels=== |
+ | 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 | ||
- | Les drivers propriétaires améliorent l' | + | ===Imprimantes=== |
+ | sudo apt install cups hp-ppd hplip | ||
+ | |||
+ | http:// | ||
- | == Ressources | + | ===System=== |
+ | 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: | ||
- | | + | === Python 3.7 === |
+ | sudo apt install python3-pip | ||
+ | |||
+ | **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, | ||
- | == Installation des drivers Nvidia == | + | **Successfully installed** |
- | * https:// | + | 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 |
- | Les versions ci-dessous sont des résumé du wiki ci-dessus. | + | 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 | ||
- | == Désinstallation des drivers Nvidia == | + | https:// |
- | '' | + | Pour forcer une version: |
- | '' | + | sudo pip install |
+ | ===== Logiciels Debian Stretch ===== | ||
+ | |||
+ | ==== Du vécu ==== | ||
+ | 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 install firefox-esr-l10n-fr thunderbird-l10n-fr libreoffice-l10n-fr | ||
+ | sudo dpkg-reconfigure locales | ||
+ | sudo apt install mate_tweak | ||
+ | ==== Geek ==== | ||
+ | sudo apt install autoconf automake build-essential cmake libav-tools python3-dev python3-setuptools dkms python-dev python-setuptools python-pip python3-pip python-freenect | ||
- | === Bumblebee Pour un portable optimus | + | ==== Python |
+ | ===Python 2.7=== | ||
+ | sudo apt install python-pip python-dev | ||
+ | sudo pip install twisted numpy opencv-python | ||
+ | |||
+ | ===Python 3=== | ||
+ | sudo pip3 install twisted numpy opencv-python | ||
+ | sudo pip3 install python3-numpy pyserial python3-opencv | ||
+ | |||
+ | ==== Audio video graphisme ==== | ||
+ | sudo apt install geeqie blender cheese guvcview inkscape ncdu vlc gimp audacity | ||
- | Pour faire tourner le Blender Game Engine, il est inutile d' | + | ==== Pure Data ==== |
+ | sudo apt install pd-osc pd-zexy | ||
- | * https:// | + | puis définir les paths\\ |
- | * https:// | + | voir [[https:// |
- | '' | + | L'import de mrpeach ne marche pas, et c'est inutile. |
- | === Logiciel en vrac === | + | ==== Arduino |
+ | sudo apt install arduino | ||
+ | sudo usermod -a -G dialout Nom_Utilisateur | ||
- | == Système == | + | Se déconnecter et reconnecter. |
- | Avec quelques trucs pratiques: | + | =====Sources.list===== |
+ | ====Debian stretch avec les backports==== | ||
+ | sudo pluma / | ||
- | < | + | < |
- | sudo apt-get install autoconf automake filezilla terminator build-essential cmake caja-open-terminal libav-tools grsync gparted geany geany-plugins ncdu git python3-pip python3-dev dkms | + | # Les dépôts officiels Debian Stretch : |
- | </code> | + | deb http:// |
- | ou système seul | + | # deb-src http:// |
- | < | + | # Debian Stretch, mises-à-jour de sécurité : |
- | sudo apt-get install autoconf automake build-essential cmake caja-open-terminal libav-tools git python3-pip python3-dev dkms | + | deb http:// |
- | </code> | + | # deb-src http:// |
- | == Audio video graphisme == | + | # Debian Stretch, mises-à-jour " |
+ | deb http:// | ||
+ | # deb-src http:// | ||
- | < | + | # Debian Stretch, dépôt de rétroportages (" |
- | sudo apt-get install geeqie blender cheese guvcview inkscape ncdu vlc gimp audacity | + | deb http:// |
+ | # deb-src http:// | ||
</ | </ | ||
- | == Python 3.5 == | + | Buster |
- | + | < | |
- | < | + | deb http:// |
- | sudo apt-get install python3-pip python3-dev | + | #deb-src http:// |
- | sudo pip3 install python3-numpy pyserial python3-opencv | + | |
- | sudo pip3 install twisted irc service_identity | + | deb http:// |
+ | #deb-src http:// | ||
+ | |||
+ | deb http:// | ||
+ | #deb-src http:// | ||
</ | </ | ||
- | == Pure Data == | + | ===== Carte graphique ===== |
+ | === Désinstallation des drivers Nvidia === | ||
+ | sudo apt-get remove --purge nvidia-* | ||
+ | sudo rm / | ||
- | '' | + | ===== Bumblebee Pour un portable optimus ===== |
+ | < | ||
+ | sudo dpkg --add-architecture i386 | ||
+ | sudo apt-get update | ||
+ | sudo nano / | ||
- | puis définir les paths | + | # Déchargement du module nouveau |
+ | sudo modprobe -r nouveau | ||
+ | # Déchargement du module de changement de carte graphique à chaud sous GNU/Linux | ||
+ | sudo modprobe -r vga_switcheroo | ||
- | voir Installation_et_configuration_de_Pure_Data_sur_Linux# | + | sudo apt install gcc make linux-headers-amd64 dkms bbswitch-dkms |
+ | sudo apt install libelf-dev bumblebee-nvidia primus primus-libs: | ||
+ | sudo apt install gcc make linux-headers-amd64 dkms bbswitch-dkms libelf-dev bumblebee-nvidia primus primus-libs: | ||
+ | sudo modprobe bbswitch load_state=0 | ||
+ | cat / | ||
+ | su -c 'echo " | ||
+ | nano / | ||
+ | sudo / | ||
+ | sudo nano / | ||
+ | cat / | ||
+ | sudo service bumblebeed restart | ||
+ | lsmod | grep -i ' | ||
+ | sudo usermod -aG bumblebee $USER | ||
+ | lspci -v | egrep -i ' | ||
+ | lspci -nn | egrep -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 | ||
- | L' | + | ===== VirtualBox Buster 10===== |
+ | * **https:// | ||
- | == Création | + | ====Debian Buster 10==== |
- | '' | + | sudo apt install virtualbox virtualbox-guest-additions-iso |
- | '' | + | |
+ | ===GuestAdditions=== | ||
+ | Le paquet VirtualBox GuestAdditions est dans les dépots. Ne pas définir le cdrom dans le stockage CD de la configuration. | ||
+ | Dans le menu (Ctrl + C), Périphériques, | ||
- | Se déconnecter et reconnecter. | + | ===Extensions=== |
+ | wget https:// | ||
- | ==== pd-extended ==== | + | Fichiers, Paramètres, |
- | '' | + | ===Partage=== |
+ | Dans l'hôte: | ||
+ | sudo usermod | ||
+ | |||
+ | * Périphériques | ||
+ | * Ajouter un dossier partagé avec l'icône à droite | ||
+ | * Chemin du dossier: / | ||
+ | * Eteindre, redémarrer. | ||
+ | * data est monté sur le bureau | ||
+ | =====VirtualBox Stretch 9===== | ||
+ | ====Logiciels installés sur session de base==== | ||
+ | < | ||
+ | su | ||
+ | adduser toto sudo | ||
+ | apt install mate-menu mate-desktop-environment-extras locales | ||
+ | dpkg-reconfigure locales | ||
+ | </ | ||
- | === Configuration des path === | + | Se déconnecter, |
- | [[https:// | + | |
- | === mrpeach est inutile pour osc === | + | ===Sources.list=== |
+ | < | ||
+ | sudo pluma / | ||
+ | </ | ||
+ | Remplacer tout par: | ||
+ | < | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
- | ==== VirtualBox ==== | + | deb http:// |
+ | deb-src http:// | ||
- | * commenter la ligne cdrom de /etc/fstab pour qu'il n'y ait plus de montage auto du cdrom | + | deb http://security.debian.org/ |
- | * apt-get install dkms | + | deb-src http:// |
- | * sudo adduser $USER vboxsf | + | </ |
- | * Pour buildozer, il faut que le dossier des sources soit dans le home, pas sur un dossier partagé (pb de symlink). | + | Enregister, fermer, recharger: |
- | * Resize | + | < |
+ | sudo apt-get update | ||
+ | </ | ||
- | '' | + | ===Installer=== |
+ | < | ||
+ | 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 | ||
+ | </ | ||
- | Puis agrandir la partition dans le système virtuet avec gparted | + | ====GuestAdditions==== |
+ | * https:// | ||
- | ==== Twisted ==== | + | Récupération de la barre de menu de machine hôte: Ctrl droit + C\\ |
+ | Périphériques --> Insérer l' | ||
+ | Ouvrir le CD sur le bureau: | ||
+ | sudo apt install gcc make perl | ||
+ | sudo sh autorun.sh | ||
- | '' | + | ===Partage=== |
+ | Dans l'hôte: | ||
+ | sudo usermod -aG vboxsf nom-utilisateur | ||
+ | |||
+ | * Périphériques --> Dissiers partagés --> Réglages des dossiers partagés | ||
+ | * Ajouter un dossier partagé avec l'icône à droite | ||
+ | * Chemin du dossier: / | ||
+ | * Eteindre, redémarrer. | ||
+ | * sf_projets est monté sur la bureau | ||
- | ==== Kivy ==== | + | ===Buildozer=== |
+ | Il faut que le dossier des sources soit dans le home, pas sur un dossier partagé (pb de symlink). | ||
- | Pour python2.7, | + | ===Resize de la taille du system |
- | '' | + | < |
- | '' | + | |
- | Pour python3, sur debian stretch 9.4 en mars 2018 | + | Puis agrandir la partition dans le système hôte avec gparted. |
- | '' | + | =====Des trucs parfois utiles===== |
- | '' | + | === Diminuer la sensibilité de la souris === |
- | + | Créer un fichier / | |
- | ==== Buildozer | + | < |
- | + | Section " | |
- | Pour python 3.5 | + | |
- | + | | |
- | * [[Kivy_Buildozer_pour_créer_une_application_Android_avec_un_script_python|Kivy Buildozer pour créer une application Android avec un script python]] | + | # set the following to 1 1 0 respectively to disable acceleration. |
- | + | | |
- | Pour python 2.7 | + | |
- | + | Option " | |
- | * [[Kivy_Buildozer_avec_python_2.7|Kivy Buildozer avec python | + | Option " |
+ | Option " | ||
+ | EndSection | ||
+ | </ | ||
- | {{tag>pages_personnelles}} | + | {{tag> |
debian_installation_configuration.txt · Dernière modification : 2022/09/25 13:16 de serge