=====Raccourcis===== CTRL+SHIFT+; pour afficher les raccourcis =====Création clef bootable pour installation===== https://doc.ubuntu-fr.org/etcher https://www.balena.io/etcher/ balena-etcher-electron-1.7.9-linux-x64.zip ubuntu-22.04-desktop-amd64.iso =====Configuration terminal etc===== ====Scripts==== cp -r /media/HD500GO/transfert250GO/home/bvandepo/scripts ~/ cp ~/.bashrc ~/.bashrc.original echo 'export PATH=$PATH:/home/$USER/scripts/' >>~/.bashrc ====ajout horodatage à history==== https://fr.smartworldclub.net/11702882-command-history-linux-examples-terminal echo 'export HISTTIMEFORMAT="%c"' >> ~/.bashrc ====affichage numéros des lignes dans nano==== echo "set constantshow" >> ~/.nanorc à faire aussi pour root après sudo su - =====Shortcuts organisation fenêtres===== https://support.system76.com/articles/pop-keyboard-shortcuts/ https://itsfoss.com/ubuntu-shortcuts/ https://makandracards.com/makandra-orga/505780-ubuntu-with-gnome-move-and-resize-windows-easily https://help.ubuntu.com/stable/ubuntu-help/shell-windows-states.html.en https://help.ubuntu.com/stable/ubuntu-help/shell-keyboard-shortcuts.html.en ====Wintile=== Extension Gnome: https://extensions.gnome.org/extension/1723/wintile-windows-10-window-tiling-for-gnome/ Il faut activer les extensions gnome par le navigateur: https://extensions.gnome.org/local/ me dit "Bien que l’extension d’intégration à GNOME Shell soit active, le connecteur de l’hôte natif n’est pas reconnu. Veuillez consulter le manuel d’installation du connecteur." il faut donc faire comme indiqué sur: https://wiki.gnome.org/action/show/Projects/GnomeShellIntegration/Installation?action=show&redirect=Projects%2FGnomeShellIntegrationForChrome%2FInstallation sudo apt-get install chrome-gnome-shell puis réglages sur: https://extensions.gnome.org/local/ AVEC CHROMIUM-BROWSER, ouvrir https://extensions.gnome.org/extension/1723/wintile-windows-10-window-tiling-for-gnome/ puis cliquer sur: "Cliquez ici pour installer l’extension du navigateur" puis sur Install d'après https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1741074 il faut: sudo apt install gnome-shell-extension-manager ====Installation d'un gestionnaire d'extensions Gnome pour ne pas passer par le browser==== Solution trouvée sur https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1741074 https://flathub.org/apps/details/com.mattjakeman.ExtensionManager Installation sur Ubuntu: https://flatpak.org/setup/Ubuntu sudo apt install flatpak gnome-software-plugin-flatpak flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo Redémarrer puis: flatpak install flathub com.mattjakeman.ExtensionManager flatpak run com.mattjakeman.ExtensionManager Cliquer sur Parcourir et taper wintile Paquet indiqué comme "Non supporté" (car de base ca va jusqu'à gnome v40), cliquer sur la flèche à droite , il y a un message de andre212 qui dit add"42"->metadata.json install manual in ubuntu 22.04 Cliquer sur "Non supporté" puis Installer quand même, Oui! Pour ajouter le support Gnomùe 42.0: find ~/ |grep metadata.json ./.local/share/gnome-shell/extensions/wintile@nowsci.com/metadata.json gedit ~/.local/share/gnome-shell/extensions/wintile@nowsci.com/metadata.json { "_generated": "Generated by SweetTooth, do not edit", "description": "[NOTE] When upgrading to V7, you may get an ERROR. Log out and back in and V7 will begin to work.\n\nWinTile is a hotkey driven window tiling system for GNOME that imitates the standard Win-Arrow keys of Windows 10, allowing you to maximize, maximize to sides, or 1/4 sized to corner across a single or multiple monitors using just Super+Arrow.\n\nAs of v3, WinTile also supports:\n- 2, 3, or 4 columns for standard or ultrawide monitors\n- Top/bottom half support\n- Mouse preview and snapping for placing windows\n- Toggling of 'maximize' mode, which adds/removes GNOME animations\n\nAs of v6, supports installs in GNOME 3.38+\n\nAs of v7, supports installs in GNOME 40+", "name": "WinTile: Windows 10 window tiling for GNOME", "shell-version": [ "3.28", "3.30", "3.34", "3.32", "3.36", "3.38", "40.0", "42.0" ], "url": "https://github.com/fmstrat/wintile", "uuid": "wintile@nowsci.com", "version": 7 } Reboot puis: flatpak run com.mattjakeman.ExtensionManager et cliquer sur l'icone de configuration de WinTile L'extension étant active, utiliser touche Super (Windows) plus les flêches (pas le pavé numérique) pour déplacer les fenêres: l'extension ajoute la possibilité de faire flêche haut puis gauche pour mettre dans le coin par exemple ====En cas de disparition des icones pour les extensions==== flatpak run com.mattjakeman.ExtensionManager ====Wintile==== https://www.omgubuntu.co.uk/2021/07/gnome-shell-quarter-tiling-extension-wintile https://github.com/fmstrat/wintile WinTile is of the best window tiling GNOME extensions out there. It supports all versions of Ubuntu (including Ubuntu 18.04 LTS) and it also works with GNOME 40, should you be using a distro that has it. Once you install WinTile and enable it you can drag applications windows to the corners of your screen to ‘snap’ them into place, as demoed in the gif a few sentences above. Don’t want to snap windows using the mouse? You don’t have to! WinTile also lets you snap windows using keyboard shortcuts, and rearrange/move windows you have already snapped. For example, to snap a window to the upper left corner you first focus the window then you press super + →. This snaps the windows to the left side of the screen, but full height, split-screen style. To tile it to the upper left corner you just press super + ↑. And it’s that easy. ====Autre extension à regarder==== regarder "Put Windows": https://askubuntu.com/questions/1322691/keyboard-shortcut-moving-windows-to-the-side-no-longer-work il y a également de la doc sur les commandes pour configurer gnome en ligne de commande, par exemple: To restore the default behaviour of these key bindings, issue following terminal commands, which reset the configuration to default: gsettings reset org.gnome.mutter.keybindings toggle-tiled-left gsettings reset org.gnome.mutter.keybindings toggle-tiled-right =====Réglage luminosité===== pour régler la luminosité de l'écran externe: https://github.com/F-i-f/soft-brightness pour l'installer: https://extensions.gnome.org/extension/1625/soft-brightness/ et du coup le slider qui pilotait uniquement l'écran du portable devient capable de piloter tous les écrans... =====Déterminer qui est connecté en ssh===== https://www.adminmalin.fr/lister-les-utilisateurs-connectes-ssh-console-sur-un-serveur-linux/ w who =====dcfldd===== https://installati.one/ubuntu/22.04/dcfldd/ =====transferts donnees===== sudo mkdir /media/ubuntu/HD250GO sudo mkdir /media/ubuntu/HD500GO sudo mount /dev/sdb1 /media/ubuntu/HD250GO sudo mount /dev/sda1 /media/ubuntu/HD500GO sudo mkdir /media/ubuntu/HD500GO/transfert250GO sudo rsync -av /media/ubuntu/HD250GO/ /media/ubuntu/HD500GO/transfert250GO/ --archive, -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H) --recursive, -r recurse into directories --links, -l copy symlinks as symlinks --perms, -p preserve permissions --times, -t preserve modification times --group, -g preserve group --owner, -o preserve owner (super-user only) -D same as --devices --specials --devices preserve device files (super-user only) --specials preserve special files =====Defrag ext4fs===== https://askubuntu.com/questions/221079/how-to-defrag-an-ext4-filesystem =====Logiciels à garder===== ===done=== thunderbird imprimante DCP7055 installée automatiquement bpytop java downloader 2 vlc scanner et xsane FileZilla openscad ssh server clefs ssh no password inkscape client bittorrent transmission gimp geeqie gwenview qtcreator handbrake kdenlive chitubox coppelia sim arduino+board managers (a faire quand besoin...) adblock cura ->recup fichier config ueye drivers client vnc imprimantes IUT pycharm ===En cours=== eagle 6.1 ??? ===todo=== projets nucleo affichage LED matrice photon validator asix presto ratiomaster meshmixer logfly auto-multiple-choice antlr+fsmprocess opencv texmaker + latex + beamer + texlive virtualbox google-earth energia msp430 mplab-ide realsense wine wacraft 2 + meshmixer + ratiomaster + asix presto /usr/local/MATLAB RatioMaster torbrowser =====vlc===== probleme, la video saccade après mise en pause: https://askubuntu.com/questions/1342151/why-does-the-vlc-player-has-lag-after-pause Go to Tools -> Preferences -> in the bottom left corner below "Show settings" choose "All" -> Input/Codecs -> in the Advanced section the first setting is "File caching" -> Type a value below 300 ms like 200 or 100 (whatever works for ya) Hope this helps j'ai mis le réglage dans: ~/.config/vlc/vlc-qt-interface.conf.org =====Latex et texmaker===== sudo apt install texmaker texlive-latex-extra texlive-lang-french dpkg -l |awk '/texlive/ {print $2,$3}' je n'ai pas fait: sudo apt install texlive-full Il est nécessaire de prendre 3 037 Mo dans les archives. Après cette opération, 5 506 Mo d'espace disque supplémentaires seront utilisés. ======Génération de pdf a partir de odp===== sudo apt install pdftk texlive-extra-utils pdfxup remplace pdfnup pour générer des pdf multipages =====Galère grub...===== grub affiche "error: unknown filesystem." après installation lubuntu et redémarrage... https://www.diskpart.com/articles/grub-rescue-unknown-file-system-0825.html booter sur Live CD puis: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt update sudo apt install boot-repair sudo boot-repair explications des commandes en shell grub: https://www.malekal.com/grub-utiliser-le-rescue-shell-pour-corriger-les-erreurs-de-demarrage-linux/ Quand je lance boot repair depuis le live cd ubuntu, il me dit d'activer le UEFI et d'utiliser Boot Repair 64bits... Je grave Boot-repair-cd-64bits et démarre avec en changeant dans le bios pour désactiver le support legacy BIOS: F10 Bios setup Update du bios en 1.31 du 24/02/2020 au lieu du 1.13 du 18/01/2016 Advanced->Boot Options->Boot Mode-> passer de Legacy a UEFI NATIVE without CSM Et finalement, même pas besoin du Boot repair CD.... :) =====Problème de trousseau===== https://forum-francophone-linuxmint.fr/viewtopic.php?t=11184 cd .local/share/keyrings/ bvandepo@bvandepo-HP-ZBook-14-G2:~/.local/share/keyrings$ ll total 20 drwx------ 2 bvandepo bvandepo 4096 sept. 19 21:13 ./ drwx------ 14 bvandepo bvandepo 4096 sept. 19 21:26 ../ -rw-rw-r-- 1 bvandepo bvandepo 30 sept. 19 20:07 default -rw------- 1 bvandepo bvandepo 109 sept. 19 21:13 login.keyring -rw------- 1 bvandepo bvandepo 1004 sept. 19 20:07 Trousseau_de_clés_par_défaut.keyring -rw------- 1 bvandepo bvandepo 0 sept. 19 20:10 user.keystore résolu en faisant: sudo mv ~/.local/share/keyrings ~/.local/share/keyrings.old un nouveau mot de passe sera demandé après redémarrage. =====Thunderbird===== Lancer une fois pour créer le dossier: ~/.thunderbird/ puis fermer et: mv ~/.thunderbird ~/.thunderbird.old cp -r /media/HD500GO/transfert250GO/home/bvandepo/.thunderbird ./ ====Correction de la casse==== https://addons.thunderbird.net/fr/thunderbird/addon/unicodify-text-transformer/?src=ss dans thunderbird->Outils->Modules complémentaires et thèmes->engrenage->Installer un module depuis un fichier. =====JDownloader 2===== find /media/HD500GO/transfert250GO/home/bvandepo|grep -i jdownloader ./.local/share/applications/JDownloader 2-0.desktop ./.local/share/applications/jdownloader.desktop ./.local/share/applications/JDownloader 2 Update & Rescue-0.desktop cat ".local/share/applications/jdownloader.desktop" [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=JDownloader 2 Icon=jdownloader.png Path=/home/bvandepo/applis/jd2 Exec=/home/bvandepo/applis/jd2/jre/bin/java -Dinstall4j.jvmDir=/home/bvandepo/applis/jd2/jre -Dexe4j.moduleName=/home/bvandepo/applis/jd2/JDownloader2 -Dinstall4j.launcherId=5977 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms64m -Dsun.java2d.d3d=false -Di4j.vpt=true -classpath /home/bvandepo/applis/jd2/.install4j/i4jruntime.jar:/home/bvandepo/applis/jd2/JDownloader.jar com.install4j.runtime.launcher.UnixLauncher launch 883f5673 /home/bvandepo/applis/jd2/error.log /home/bvandepo/applis/jd2/output.log org.jdownloader.update.launcher.JDLauncher StartupNotify=false StartupWMClass=JDownloader OnlyShowIn=Unity; X-UnityGenerated=true cat ".local/share/applications/JDownloader 2-0.desktop" #!/usr/bin/env xdg-open [Desktop Entry] Type=Application Name=JDownloader 2 Exec=/bin/sh "/home/bvandepo/applis/jd2/JDownloader2" Icon=/home/bvandepo/applis/jd2/.install4j/JDownloader2.png Categories=Network;Application; cp -r /media/HD500GO/transfert250GO/home/bvandepo/jd2 ~/applis/ cp /media/HD500GO/transfert250GO/home/bvandepo/.local/share/applications/jdownloader.desktop ~/.local/share/applications/ lancement: /home/bvandepo/applis/jd2/jre/bin/java -Dinstall4j.jvmDir=/home/bvandepo/applis/jd2/jre -Dexe4j.moduleName=/home/bvandepo/applis/jd2/JDownloader2 -Dinstall4j.launcherId=5977 -Dinstall4j.swt=false -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Di4jv=0 -Xms64m -Dsun.java2d.d3d=false -Di4j.vpt=true -classpath /home/bvandepo/applis/jd2/.install4j/i4jruntime.jar:/home/bvandepo/applis/jd2/JDownloader.jar com.install4j.runtime.launcher.UnixLauncher launch 883f5673 /home/bvandepo/applis/jd2/error.log /home/bvandepo/applis/jd2/output.log org.jdownloader.update.launcher.JDLauncher =====Scanner et imprimante Brother DCP-7055===== https://forum.ubuntu-fr.org/viewtopic.php?id=2061256 wget https://bitbucket.org/demonipuch/brprinter-installer/get/master.zip unzip master.zip cd demonipuch-brprinter-installer-6e4cce8c163b/ sudo bash brprinter-installer Entrez votre modèle : DCP-7055 Sélectionner le type de connectivité : [0] USB - [1] Réseau Entrez votre choix : 0 Téléchargement des pilotes de l'imprimante * Recherche des pilotes... [ OK ] * Téléchargement du paquet : dcp7055lpr-2.1.0-1.i386.deb... [ OK ] * Téléchargement du paquet : cupswrapperDCP7055-2.0.4-2.i386.deb... [ OK ] * Téléchargement du paquet : brscan4-0.4.11-1.amd64.deb... [ OK ] * Téléchargement du paquet : brscan-skey-0.3.1-2.amd64.deb... [ OK ] * Téléchargement du paquet : brother-udev-rule-type1-1.0.0-1.all.deb... [ OK ] Vérification des pré-requis * Mise à jour de la liste des paquets... [ OK ] * Recherche du paquet 'multiarch-support' sur votre système... [fail] * Installation du paquet 'multiarch-support'... [fail] * Recherche du paquet 'lib32stdc++6' sur votre système... [fail] * Installation du paquet 'lib32stdc++6'... [ OK ] * Recherche du paquet 'cups' sur votre système... [ OK ] * Recherche du paquet 'sane-utils' sur votre système... [ OK ] * Recherche du paquet 'libusb-0.1-4' sur votre système... [fail] * Installation du paquet 'libusb-0.1-4'... [ OK ] * Recherche du dossier '/usr/share/cups/model' sur votre système... [ OK ] * Recherche du dossier '/var/spool/lpd' sur votre système... [fail] * Creation du dossier '/var/spool/lpd'... [ OK ] Installation des pilotes * Installation du paquet : dcp7055lpr-2.1.0-1.i386.deb... [ OK ] * Installation du paquet : cupswrapperDCP7055-2.0.4-2.i386.deb... [ OK ] * Installation du paquet : brscan4-0.4.11-1.amd64.deb... [ OK ] * Installation du paquet : brscan-skey-0.3.1-2.amd64.deb... [ OK ] * Installation du paquet : brother-udev-rule-type1-1.0.0-1.all.deb... [ OK ] Configuration de l'imprimante * Recherche d'un fichier PPD sur votre système... [ OK ] * Ajout de l'imprimante DCP-7055... lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. [ OK ] Configuration du scanner * Copie des librairies nécessaires... cp: '/usr/lib64/sane/libsane-brother4.so.1.0.7' et './libsane-brother4.so.1.0.7' identifient le même fichier [ OK ] sudo xsane fonctionne! Pour ne pas avoir besoin de lancer xsane en sudo groups bvandepo adm cdrom sudo dip plugdev lpadmin lxd sambashare sudo adduser $USER lp rebooter puis xsane Problème car cela installe des paquets i386.... sudo apt install openscad [sudo] Mot de passe de bvandepo : Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes. Les paquets suivants contiennent des dépendances non satisfaites : cupswrapperdcp7055:i386 : Dépend: libc6:i386 (>= 2.3.4-1) mais ne sera pas installé dcp7055lpr:i386 : Dépend: libc6:i386 (>= 2.3.4-1) mais ne sera pas installé openscad : Dépend: lib3mf1 (>= 1.8.1+ds) mais ne sera pas installé Dépend: libboost-program-options1.74.0 (>= 1.74.0) mais ne sera pas installé Dépend: libglew2.2 (>= 2.2.0-4) mais ne sera pas installé Dépend: libopencsg1 mais ne sera pas installé Dépend: libqscintilla2-qt5-15 (>= 2.11.2) mais ne sera pas installé Dépend: libqt5gamepad5 (>= 5.10.1) mais ne sera pas installé Dépend: libqt5multimedia5 (>= 5.6.0~beta) mais ne sera pas installé Dépend: libspnav0 (>= 0.2.2) mais ne sera pas installé Dépend: libzip4 (>= 0.10) mais ne sera pas installé Recommande: openscad-mcad mais ne sera pas installé E: Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet (ou indiquez une solution). grep " install " /var/log/dpkg.log 2022-09-20 11:29:18 install libc6-i386:amd64 2.35-0ubuntu3.1 2022-09-20 11:29:19 install lib32gcc-s1:amd64 12.1.0-2ubuntu1~22.04 2022-09-20 11:29:19 install lib32stdc++6:amd64 12.1.0-2ubuntu1~22.04 2022-09-20 11:29:22 install libusb-0.1-4:amd64 2:0.1.12-32build3 2022-09-20 11:29:23 install dcp7055lpr:i386 2.1.0-1 2022-09-20 11:29:24 install cupswrapperdcp7055:i386 2.0.4-2 2022-09-20 11:29:26 install brscan4:amd64 0.4.11-1 2022-09-20 11:29:26 install brscan-skey:amd64 0.3.1-2 2022-09-20 11:29:26 install brother-udev-rule-type1:all 1.0.0-1 retirer les paquets i386: sudo apt remove cupswrapperdcp7055 dcp7055lpr tout marche malgré le retrait de ces paquets, mais il faut supprimer une des DCP-7055 =====Imprimante Bureau IUT ER2EN===== imprimante->ajouter une imprimante ip: 10.6.13.128 Choisir HP-LaserJet-M203-M206 =====Openscad===== =====Filezilla===== sudo apt install filezilla cp -r /media/HD500GO/transfert250GO/home/bvandepo/.config/filezilla ~/.config =====client bittorrent transmission===== sudo apt install transmission cp -r /media/HD500GO/transfert250GO/home/bvandepo/.config/transmission ~/.config transmission-gtk & =====fslint -> czkawka===== voir doc sur [[cleanup]] obsolescent sur ubuntu 22.04 d'après: https://doc.ubuntu-fr.org/fslint conseillé de remplacer par czkawka: https://qarmin.github.io/czkawka/ sudo snap install czkawka ou sinon pour l'installer: https://qarmin.github.io/czkawka/instructions/Installation.html sudo apt install flatpak libgtk-4-dev ffmpeg #flatpak install flathub com.github.qarmin.czkawka sudo add-apt-repository ppa:xtradeb/apps sudo apt-get update sudo apt-get install czkawka notice sur: https://qarmin.github.io/czkawka/instructions/Instruction.html#gui-gtk pour certains dossiers, j'obtiens l'erreur: Permission denied (os error 13)⁩ ====Version plus récente sans snap qui fonctionne==== virer l'autre version installée via snap: sudo snap remove czkawka version 5.0.2: https://github.com/qarmin/czkawka/releases/ https://qarmin.github.io/czkawka/instructions/Installation.html cd ~/applis/ wget https://github.com/qarmin/czkawka/releases/download/5.0.2/linux_czkawka_gui_alternative.AppImage chmod a+x linux_czkawka_gui_alternative.AppImage ln -s ~/applis/linux_czkawka_gui_alternative.AppImage ~/scripts/czkawka =====Recherche de doublon en console===== sudo apt install fdupes fdupes -r ./ =====Gestion PATH===== pour ajouter des dossiers au PATH (sans développer la variable PATH) echo -e "export PATH=\$PATH:/home/bvandepo/applis/\n" >> /home/bvandepo/.bashrc =====Virer mdp ssh===== Pour faire en sorte que rapid soit connus des serveurs ssh: ssh-keygen -t rsa puis copier le contenu de ~/.ssh/id_rsa.pub à la fin de ~/ssh/authorized_keys sur le serveur pour faire en sorte que rapid soit serveur sans mdp (par exemple pour montage cifs de /media/HD500GO) à faire sur rapid le serveur: mkdir -p ~/.ssh/ touch ~/.ssh/authorized_keys chmod 700 ~/.ssh/authorized_keys chmod 700 ~/.ssh à faire en tant que utilisateur normal + root via su - sur les clients ssh bvandepo@192.168.1.41 ssh-keygen -f "/root/.ssh/known_hosts" -R "192.168.1.41" ssh bvandepo@192.168.1.41 cat ~/.ssh/id_rsa.pub et copier le contenu sur rapid dans ~/.ssh/authorized_keys =====Cura===== cp /media/HD500GO/lego/cura/* ~/applis/cura cp -r /media/HD500GO/transfert250GO/home/bvandepo/.config/cura ~/config cp -r /media/HD500GO/transfert250GO/home/bvandepo/.local/share/cura ~/.local/share Impression adaptateur 3"1/2 vers 2"1/2 SSD: https://www.thingiverse.com/thing:168750 lancement: ~/applis/cura/Ultimaker-Cura-5.0.0-linux.AppImage PyInstaller/loader/pyimod03_importers.py:495: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast et une fenêtre affiche: "Could not probe OpenGL, require OpenGL 2.0 or higher. Please check your video card drivers" d'après https://community.ultimaker.com/topic/40821-ubuntu-2204-cura-5-could-not-probe-opengl-this-program-requires-opengl-20-or-higher/ il faut lancer en specifiant le driver video: MESA_LOADER_DRIVER_OVERRIDE=i965 ~/applis/cura/Ultimaker-Cura-5.0.0-linux.AppImage OK! Version 5.1.1 Problème: MESA_LOADER_DRIVER_OVERRIDE=i965 ./Ultimaker-Cura-5.1.1-linux.AppImage PyInstaller/loader/pyimod02_importers.py:499: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. (Ultimaker-Cura:159926): GLib-GIO-ERROR **: 13:55:28.992: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing' Trace/breakpoint trap (core dumped) https://github.com/Ultimaker/Cura/issues/12776 https://community.ultimaker.com/topic/40821-ubuntu-2204-cura-5-could-not-probe-opengl-this-program-requires-opengl-20-or-higher/ ---------------------------- il n'y a pas le problème avec la version 4.12 : ~/applis/cura/Ultimaker_Cura-4.12.1.AppImage & OK! =====qtcreator et sdk et git===== sudo apt install -y qtcreator qtbase5-dev qt5-qmake cmake git gitk git config --global user.email "bvandepo@laas.fr" git config --global user.name "Bertrand Vandeportaele" Ouvrir un ancien projet créé avec Qt5 puis faire import existing build et selectionner le dossier de build (pas les sources) ->Ok ca recompile et fonctionne! =====eagle===== cp -r /media/HD500GO/transfert250GO/home/bvandepo/eagle-6.1.0 ~/ cp -r /media/HD500GO/transfert250GO/home/bvandepo/eagle ~/ eagle /home/bvandepo/eagle-6.1.0/bin/eagle: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory ldd /home/bvandepo/eagle-6.1.0/bin/eagle linux-gate.so.1 (0xf7ee4000) libXrender.so.1 => not found libXrandr.so.2 => not found libXcursor.so.1 => not found libfreetype.so.6 => not found libfontconfig.so.1 => not found libXext.so.6 => not found libX11.so.6 => not found libdl.so.2 => /lib32/libdl.so.2 (0xf7ec2000) libXi.so.6 => not found libpng14.so.14 => not found libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ebb000) librt.so.1 => /lib32/librt.so.1 (0xf7eb6000) libssl.so.1.0.0 => not found libcrypto.so.1.0.0 => not found libjpeg.so.8 => not found libstdc++.so.6 => /lib32/libstdc++.so.6 (0xf7c82000) libm.so.6 => /lib32/libm.so.6 (0xf7b7a000) libgcc_s.so.1 => /lib32/libgcc_s.so.1 (0xf7b53000) libc.so.6 => /lib32/libc.so.6 (0xf7920000) /lib/ld-linux.so.2 (0xf7ee6000) libz.so.1 => not found voir install sur [[ci]] également j'avais mis de la doc sur: cd /media/HD500GO/transfert250GO/home/bvandepo/Bureau/texte/electronique gedit eagle eagle2 ma\ doc\ eagle notes\ eagle & Sinon Eagle en est à la version 8: https://www.autodesk.com/products/eagle/blog/how-to-install-autodesk-eagle-on-windows-mac-and-linux/ =====Chitubox===== mkdir ~/applis cp -r /media/bvandepo/HD4TO1/deplacederapid/reprap3/chitubox/CHITUBOX_V1.9.3 ~/applis cp -r /media/HD500GO/transfert250GO/home/bvandepo/.config/ChiTuBox ~/config/ ~/applis/CHITUBOX_V1.9.3/CHITUBOX /home/bvandepo/applis/CHITUBOX_V1.9.3/CHITUBOX: symbol lookup error: /home/bvandepo/applis/CHITUBOX_V1.9.3/CHITUBOX: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm, version Qt_5 ldd ~/applis/CHITUBOX_V1.9.3/CHITUBOX linux-vdso.so.1 (0x00007ffd7ebbb000) libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007fe423ac8000) libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fe423407000) libQt5Quick.so.5 => /lib/x86_64-linux-gnu/libQt5Quick.so.5 (0x00007fe422e8d000) libQt5X11Extras.so.5 => /lib/x86_64-linux-gnu/libQt5X11Extras.so.5 (0x00007fe422e86000) libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fe4227a8000) libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007fe42231c000) libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fe42216b000) libQt5Xml.so.5 => /lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007fe422125000) libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fe421bc6000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe421bc1000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fe421a81000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe421855000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe42176e000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe42174e000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe421526000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe42150a000) libQt5QmlModels.so.5 => /lib/x86_64-linux-gnu/libQt5QmlModels.so.5 (0x00007fe42147f000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007fe4213f6000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fe4213bb000) libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fe4212ec000) libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007fe4212da000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007fe421286000) libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007fe42126f000) libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007fe420f40000) libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007fe420d45000) libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007fe420cbc000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fe420bed000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fe420ab3000) /lib64/ld-linux-x86-64.so.2 (0x00007fe423b40000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fe420a87000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fe4209cf000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fe42099b000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fe4208d3000) libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fe4208ac000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007fe4207df000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007fe4207b0000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007fe4207aa000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007fe42079c000) libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007fe41eb7e000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fe41eb06000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fe41eb00000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fe41eaf8000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007fe41eaea000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007fe41eae3000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fe41eacd000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fe41eab5000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007fe41ea92000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007fe41ea85000) Tentative version 1.9.4 cd ~/applis/ mkdir CHITUBOX_V1.9.4 cd CHITUBOX_V1.9.4 tar xvf ~/Téléchargements/CHITUBOX_V1.9.4.tar.gz ~/applis/CHITUBOX_V1.9.4/CHITUBOX & OK! =====CoppeliaSim===== Version EDU: https://www.coppeliarobotics.com/downloads cd ~/applis mkdir coppeliasim cd coppeliasim tar -xvf /media/bvandepo/HD4TO1/copieH3TO14/softs/softs\ linux/CoppeliaSim_Edu_V4_3_0_rev12_Ubuntu20_04.tar.xz ~/applis/coppeliasim/CoppeliaSim_Edu_V4_3_0_rev12_Ubuntu20_04/coppeliaSim ===Utilisation=== File->open scene->Coppelia Tutorials->BubbleRob bouger les cylindres pour libérer le robot redundantRobot.ttt bouger la boule verte pour que le robot le suive linefollowingbubblebob https://www.coppeliarobotics.com/helpFiles/en/overviewTranslations.htm https://www.coppeliarobotics.com/coppeliaSimSpecifications.pdf https://www.coppeliarobotics.com/videos https://www.coppeliarobotics.com/resources robots parallèles: https://www.directindustry.fr/fabricant-industriel/robot-parallele-85295.html =====Arduino===== ATTENTION; il faut utiliser la version 1.8.13 pour avoir Wire.h ~/applis/arduino-1.8.13/arduino ====Autre version==== sudo apt install arduino arduino s'ajouter au groupe se délogguer/relogguer groups je suis bien dans le group dialout mais arduino plante au démarrage: "java.lang.unsatisfiedlinkerror: /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0: /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0: undefined symbol: sp_get_port_usb_vid_pid" https://bugs.launchpad.net/ubuntu/+source/arduino/+bug/1916278 le port USB de l'arduino n'apparait pas dans: ll /dev/tty* sudo apt install libserial1 sudo apt install libserialport0 ca y est le port USB de l'arduino apparait dans: ll /dev/tty* sudo apt install patchelf sudo patchelf --add-needed /usr/lib/x86_64-linux-gnu/libserialport.so.0 /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0 apt info arduino OK! Sinon autre solution non testée: Then do not use this buggy Arduino deb-package, use Ubuntu Make < https://wiki.ubuntu.com/ubuntu-make > : sudo apt autopurge arduino sudo add-apt-repository ppa:lyzardking/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make umake electronics arduino sudo usermod -a -G dialout $USER then reboot and enjoy latest and fully-functional Arduino IDE 1.8.19. ===Problème librairie Wire=== A la compilation de i2cscanner.ino, j'obtiens: /usr/share/arduino/hardware/arduino/avr/libraries/Wire/examples/i2c_scanner/i2c_scanner.ino:30:18: erreur fatale: Wire.h : Aucun fichier ou dossier de ce type Pourtant Wire.h est bien dans /usr/share/arduino/hardware/arduino/avr/libraries/Wire/ Fichier->Préférences->cocher Afficher les résultats détaillés pendant compilation et téléversement La compilation fait: /usr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/usr/share/arduino/hardware/arduino/avr/cores/arduino" "-I/usr/share/arduino/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_462122/sketch/i2c_scanner.ino.cpp" -o "/dev/null même problème avec SoftwareSerial.... /usr/share/arduino/hardware/arduino/avr/libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino:28:28: erreur fatale: SoftwareSerial.h : Aucun fichier ou dossier de ce type compilation terminée. Peut être essayer autre méthode d'installation: https://fr.linuxcapable.com/how-to-install-arduino-ide-on-ubuntu-22-04-lts/ ===Version 1.8.13 installée à la main=== cp -r /media/HD500GO/transfert250GO/home/bvandepo/Téléchargements/arduino-1.8.13 ~/applis/ mv ~/.arduino15 ~/.arduino15.old cp -r /media/HD500GO/transfert250GO/home/bvandepo/.arduino15 ~/ ~/applis/arduino-1.8.13/arduino & j'ai bien récupéré le support des cartes esp32 et esp8266 problème, arduino ne trouve pas le port /dev/ttyUSB0 sudo dmesg [ 634.289472] usb 2-1.1: new full-speed USB device number 15 using xhci_hcd [ 634.391320] usb 2-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54 [ 634.391334] usb 2-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 634.391340] usb 2-1.1: Product: USB2.0-Serial [ 634.400009] ch341 2-1.1:1.0: ch341-uart converter detected [ 634.400640] usb 2-1.1: ch341-uart converter now attached to ttyUSB0 [ 634.951019] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input31 [ 635.042103] usb 2-1.1: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1 [ 635.042749] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [ 635.042781] ch341 2-1.1:1.0: device disconnected solution sur https://askubuntu.com/questions/786367/setting-up-arduino-uno-ide-on-ubuntu sudo apt remove brltty OK! =====Configuration DNS Cloudfare===== Il faut utiliser le DNS cloudflare 1.1.1.1 1.0.0.1 en IPV4 et 2606:4700:4700::1111,2606:4700:4700::1001 en IPV6 https://doc.ubuntu-fr.org/dns Avec NetworkManager pour modifier les DNS, procéder comme suit : Clic droit sur l’icône de NetworkManager puis : cliquez sur Modification des connexions. Choisir quelle connexion est à modifier (Paramètres filaire ou Paramètres Wifi), puis cliquer sur le bouton représentant un engrenage. Cliquer sur l'onglet Paramètres IPv4. Dans Méthode sélectionner Adresse automatique uniquement (DHCP). Dans la case Serveurs DNS, entrer la ou les adresses DNS souhaitées (si plusieurs adresses, mettre une virgule entre chaque adresse). 1.1.1.1,1.0.0.1 Basculer le sélecteur Automatique sur off (comme sur l'image) faire pareil en IPV6 avec: 2606:4700:4700::1111,2606:4700:4700::1001 =====Plugins Firefox===== Avec Firefox, aller sur: https://addons.mozilla.org/fr/firefox/addon/adblock-plus/ https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies/ https://addons.mozilla.org/fr/firefox/addon/ublock-origin/ sauvegarde liste onglets: https://addons.mozilla.org/fr/firefox/addon/paste-site-list/ backer tracker de backerkit My JDownloader Browser Extension Panneau lateral firefox marque pages qui s'affiche à chaque démarrage: https://forums.mozfr.org/viewtopic.php?t=145797 Aide -> Réparer Firefox (sauvegarde 1GO de réglages anciens....) =====Mes programmes Python===== cp -r /media/HD500GO/transfert250GO/home/bvandepo/Bureau/pythonb ~/Bureau/ sudo apt install idle python3-pip python3-venv ===paquets pip=== sudo pip3 install pyglet sudo pip3 install PyOpenGL installés dans /usr/local/lib/python3.10/dist-packages/ =====Cameras Ueye===== https://fr.ids-imaging.com/ Il faut le mdp associé à mail laas pour télécharger les fichiers: https://fr.ids-imaging.com/downloads.html Camera usb 2 le UI-1550LE-C-DL -> cette camera fonctionne en UVC via /dev/video... , pas besoin de pilotes ueye... Pour les autres, Installation: tar zxvf ids-software-suite-linux-64-4.96.1-debian.tgz sudo apt install libomp5 sudo dpkg -r ueye-api sudo dpkg -i ueye-api_4.96.1.2054_amd64.deb sudo dpkg -i ueye-common_4.96.1.2054_amd64.deb sudo dpkg -i ueye-demos_4.96.1.2054_amd64.deb sudo dpkg -i ueye-dev_4.96.1.2054_amd64.deb sudo dpkg -i ueye-driver-eth_4.96.1.2054_amd64.deb sudo dpkg -i ueye-driver-usb_4.96.1.2054_amd64.deb sudo dpkg -i ueye-tools-cli_4.96.1.2054_amd64.deb sudo dpkg -i ueye-tools-qt5_4.96.1.2054_amd64.deb sudo dpkg -i ueye-interfaces-halcon_4.96.1.2054_amd64.deb sudo dpkg -i ueye-manual-en_4.96.1.2054_amd64.deb sudo dpkg -i ueye-manual-de_4.96.1.2054_amd64.deb sudo dpkg -i ueye_4.96.1.2054_amd64.deb Lancement du démon: sudo systemctl start ueyeusbdrc Arrêt du démon: sudo systemctl stop ueyeusbdrc Streamin en RTSP à tester: tar zxvf ueye-stream-2.0-64.tgz cd ueye_stream_x64 ./ueye_streamer.sh ./bin/ueye_streamer: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory LD_LIBRARY_PATH="./lib/;./lib/ffmpeg/;./lib/live555" ldd ./bin/ueye_streamer linux-vdso.so.1 (0x00007ffc2cda4000) libueye_stream.so.2 => ./lib/libueye_stream.so.2 (0x00007f3829e00000) libQtGui.so.4 => not found libQtCore.so.4 => not found libueye_api.so => /lib/x86_64-linux-gnu/libueye_api.so (0x00007f3828e23000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3828bf9000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3828b12000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f382a01a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f38288ea000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f38288e5000) libliveMedia.so.52 => ./lib/live555/libliveMedia.so.52 (0x00007f3828400000) libgroupsock.so.8 => ./lib/live555/libgroupsock.so.8 (0x00007f3828000000) libBasicUsageEnvironment.so.1 => ./lib/live555/libBasicUsageEnvironment.so.1 (0x00007f3827c00000) libUsageEnvironment.so.3 => ./lib/live555/libUsageEnvironment.so.3 (0x00007f3827800000) libavcodec.so.56 => ./lib/ffmpeg/libavcodec.so.56 (0x00007f3826200000) libavfilter.so.5 => ./lib/ffmpeg/libavfilter.so.5 (0x00007f3825e00000) libavutil.so.54 => ./lib/ffmpeg/libavutil.so.54 (0x00007f3825a00000) libswscale.so.3 => ./lib/ffmpeg/libswscale.so.3 (0x00007f3825600000) libavformat.so.56 => ./lib/ffmpeg/libavformat.so.56 (0x00007f3825200000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f38288dc000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f38288d7000) libatomic.so.1 => /lib/x86_64-linux-gnu/libatomic.so.1 (0x00007f38288cb000) libomp.so.5 => /lib/x86_64-linux-gnu/libomp.so.5 (0x00007f38287ab000) /lib64/ld-linux-x86-64.so.2 (0x00007f382a057000) libswresample.so.1 => ./lib/ffmpeg/libswresample.so.1 (0x00007f3824e00000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f382878f000) find /lib/ | grep libQt* Je n'ai pas c'est du QT4.... pas envie de l'installer.... Il y a les sources, il faudra adapter à Qt5 et recompiler... Interface python: https://pypi.org/project/pyueye/ https://en.ids-imaging.com/files/downloads/ids-software-suite/interfaces/release-notes/python-release-notes_EN.html cd ~/Bureau/pythonb/ueye python3 -m venv env source env/bin/activate pip install -U pip pip3 install pyueye python3 -m idlelib.idle from pyueye import ueye h_cam = ueye.HIDS(0) ret = ueye.is_InitCamera(h_cam, None) if ret != ueye.IS_SUCCESS: print("pas cool!") pass else: print("cool!") =====Camera USB UVC===== bonne doc ubuntu: https://doc.ubuntu-fr.org/webcam https://linuxconfig.org/how-to-test-webcam-on-ubuntu-22-04-jammy-jellyfish sudo apt install v4l-utils v4l2-ctl --list-devices UVC Camera (046d:08c5) (usb-0000:00:14.0-1.2): /dev/video2 /dev/video3 /dev/media1 HP HD Webcam: HP HD Webcam (usb-0000:00:14.0-7): /dev/video0 /dev/video1 /dev/media0 pour capturer image ou video: cheese pendant la capture, plante et dmesg: [35234.832081] uvcvideo 2-1.2:1.1: Failed to query (131) UVC probe control : -32 (exp. 26). [35234.835492] uvcvideo 2-1.2:1.1: Failed to set UVC probe control : -32 (exp. 26). [35241.125208] uvcvideo 2-1.2:1.1: Failed to set UVC probe control : -110 (exp. 26). [35246.245817] uvcvideo 2-1.2:1.1: Failed to set UVC probe control : -110 (exp. 26). [35281.573858] usb 2-1.2: reset high-speed USB device number 20 using xhci_hcd [35282.270354] uvcvideo 2-1.2:1.1: Failed to query (131) UVC probe control : -32 (exp. 26). [35282.273740] uvcvideo 2-1.2:1.1: Failed to set UVC probe control : -32 (exp. 26). [35293.975171] usb 2-1.2: reset high-speed USB device number 20 using xhci_hcd bvandepo@bvandepo-HP-ZBook-14-G2:/media/HD500GO/Downloads/Exception S01$ idem pour webcam intégrée.... problème décrit ici: https://bbs.archlinux.org/viewtopic.php?id=263649 pour m'ajouter aux groupes video et audio sudo usermod -a -G video $LOGNAME sudo usermod -a -G audio $LOGNAME autre utilitaire pour capture et réglage: sudo apt install guvcview guvcview https://forums.linuxmint.com/viewtopic.php?t=339218 sudo nano /etc/modprobe.d/uvcvideo.conf options uvcvideo quirks=0x0104 -> OK teams,guvcview et vlc fonctionnent! =====Ecran et carte graphique===== ====Réglage résolution par défaut pour ecran 4k==== xorg.conf n'est plus utilisé, remplacé par xrandr: https://askubuntu.com/questions/142822/how-can-i-change-the-default-screen-resolution ====carte graphiques==== Il y a 2 cartes: Intel Corporation HD Graphics 5500 et Advanced Micro Devices, Inc. [AMD/ATI] Opal PRO [Radeon R7 M260X] sudo apt install mesa-utils glxinfo | grep string server glx vendor string: SGI server glx version string: 1.4 client glx vendor string: Mesa Project and SGI client glx version string: 1.4 OpenGL vendor string: Intel OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2) OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5 OpenGL core profile shading language version string: 4.60 OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5 OpenGL shading language version string: 4.60 OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 lspci 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal PRO [Radeon R7 M260X] https://askubuntu.com/questions/1430514/installing-drivers-and-switching-to-dedicated-gpu-intel-hd-radeon-r7-m260x-o Bonnes explications : https://forum.ubuntu-fr.org/viewtopic.php?id=2019687 lspci -vnnk | grep -Ei -A12 "vga|3d|display" | grep -Ei "vga|3d|display|in use" 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller]) Kernel driver in use: i915 Memory at c153d000 (32-bit, non-prefetchable) [size=4K] Kernel driver in use: e1000e Kernel driver in use: snd_hda_intel 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Opal PRO [Radeon R7 M260X] [1002:6605] (prog-if 00 [VGA controller]) Kernel driver in use: radeon Par défaut, toutes les applications OpenGL utilisent la carte intégrée. La variable d'environnement "DRI_PRIME=X" permet de sélectionner le GPU à utiliser pour l'application, en remplaçant X par le numéro de la carte. C'est normalement 0 pour le GPU intégré et 1 pour la dédié. ===Infos sur la carte Intel=== glxinfo -B ou DRI_PRIME=0 glxinfo -B name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Intel (0x8086) Device: Mesa Intel(R) HD Graphics 5500 (BDW GT2) (0x1616) Version: 22.0.5 Accelerated: yes Video memory: 8703MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 OpenGL vendor string: Intel OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2) OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 DRI_PRIME=0 glxgears -info Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. GL_RENDERER = Mesa Intel(R) HD Graphics 5500 (BDW GT2) GL_VERSION = 4.6 (Compatibility Profile) Mesa 22.0.5 GL_VENDOR = Intel GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_vertex_attrib_64bit GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_indirect_parameters GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_ARB_ES3_2_compatibility GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_INTEL_shader_integer_functions2 GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation ===Infos sur la carte AMD=== DRI_PRIME=1 glxinfo -B name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: AMD (0x1002) Device: AMD OLAND (LLVM 13.0.1, DRM 2.50, 5.15.0-47-generic) (0x6605) Version: 22.0.5 Accelerated: yes Video memory: 1024MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 4.5 Max compat profile version: 4.5 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 Memory info (GL_ATI_meminfo): VBO free memory - total: 1018 MB, largest block: 1018 MB VBO free aux. memory - total: 2039 MB, largest block: 2039 MB Texture free memory - total: 1018 MB, largest block: 1018 MB Texture free aux. memory - total: 2039 MB, largest block: 2039 MB Renderbuffer free memory - total: 1018 MB, largest block: 1018 MB Renderbuffer free aux. memory - total: 2039 MB, largest block: 2039 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 1024 MB Total available memory: 3067 MB Currently available dedicated video memory: 1018 MB OpenGL vendor string: AMD OpenGL renderer string: AMD OLAND (LLVM 13.0.1, DRM 2.50, 5.15.0-47-generic) OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.0.5 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.0.5 OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 DRI_PRIME=1 glxgears -info Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. GL_RENDERER = AMD OLAND (LLVM 13.0.1, DRM 2.50, 5.15.0-47-generic) GL_VERSION = 4.5 (Compatibility Profile) Mesa 22.0.5 GL_VENDOR = AMD GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_EXT_texture_buffer_object GL_AMD_texture_texture4 GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_buffer_object GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_compatibility GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_ATI_meminfo GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_copy_image GL_NV_texture_barrier GL_ARB_draw_indirect GL_ARB_get_program_binary GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_precision GL_ARB_shader_subroutine GL_ARB_texture_compression_bptc GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_viewport_array GL_EXT_direct_state_access GL_EXT_shader_image_load_store GL_EXT_vertex_attrib_64bit GL_NV_vdpau_interop GL_AMD_multi_draw_indirect GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_query_buffer_object GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_fragment_layer_viewport GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_multi_draw_indirect GL_ARB_program_interface_query GL_ARB_robust_buffer_access_behavior GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_buffer_range GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_AMD_pinned_memory GL_ARB_bindless_texture GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_compute_variable_group_size GL_ARB_enhanced_layouts GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_query_buffer_object GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_group_vote GL_ARB_shading_language_include GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_NVX_gpu_memory_info GL_ARB_ES3_1_compatibility GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_shader_texture_image_samples GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_EXT_shader_image_load_formatted GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_shader_atomic_int64 GL_ARB_ES3_2_compatibility GL_ARB_gpu_shader_int64 GL_ARB_parallel_shader_compile GL_ARB_shader_atomic_counter_ops GL_ARB_shader_ballot GL_ARB_shader_clock GL_ARB_shader_viewport_layer_array GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_ARB_gl_spirv GL_ARB_spirv_extensions GL_EXT_window_rectangles GL_MESA_shader_integer_functions GL_ARB_polygon_offset_clamp GL_ARB_texture_filter_anisotropic GL_EXT_memory_object GL_EXT_memory_object_fd GL_KHR_parallel_shader_compile GL_NV_alpha_to_coverage_dither_control GL_EXT_EGL_image_storage GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_EGL_sync GL_EXT_demote_to_helper_invocation =====Partage disques===== sudo apt-get install cifs-utils sudo mkdir /media/HD500GOmartine sudo mkdir /media/freebox sudo mkdir /media/HD250GO sudo nano /etc/fstab ############################samba pour freebox############################ //192.168.1.254/Disque\040dur /media/freebox cifs guest,uid=1000,file_mode=0777,dir_mode=0777 0 0 //192.168.1.254/HD250GO /media/HD250GO cifs guest,uid=1000,file_mode=0777,dir_mode=0777 0 0 sshfs#martine@192.168.1.2:/media/HD500GO /media/HD500GOmartine fuse port=22,user,noatime,allow_other,_netdev,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 0 0 sudo mount /media/HD500GOmartine =====VNC client===== sudo cp -r /media/HD500GO/transfert250GO/opt/tvnjviewer-2.6.2-bin /opt sudo chmod a+x /opt/tvnjviewer-2.6.2-bin/ sudo chmod a+r /opt/tvnjviewer-2.6.2-bin/tightvnc-jviewer.jar chown bvandepo:bvandepo /opt/tvnjviewer-2.6.2-bin/tightvnc-jviewer.jar ====autre version ==== sudo cp -r /media/HD500GO/transfert250GO/opt/tvnjviewer-2.8.3-bin-gnugpl /opt sudo chmod a+rx /opt/tvnjviewer-2.8.3-bin-gnugpl/tightvnc-jviewer.jar java -jar /opt/tvnjviewer-2.8.3-bin-gnugpl/tightvnc-jviewer.jar -password=????????? IP =====PC Martine===== ====Ecran AOC FS22+==== Blocaque OSD: allumer l'écran en maintenant flêche gauche enfoncée ====Google earth ==== https://ubuntuhandbook.org/index.php/2022/04/google-earth-ubuntu-22-04/ cd ~ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main" >> /etc/apt/sources.list.d/google.list' sudo apt update sudo apt install google-earth-pro-stable ====WakeonLAN==== https://www.maketecheasier.com/enable-wake-on-lan-ubuntu/ ip a sudo ethtool enp0s25 sudo ethtool --change enp0s25 wol g sudo nano /etc/systemd/system/wol.service [Unit] Description=Enable Wake On Lan [Service] Type=oneshot ExecStart = /usr/sbin/ethtool --change enp0s25 wol g [Install] WantedBy=basic.target sudo systemctl daemon-reload sudo systemctl enable wol.service ====vnc==== sur PC martine: Paramères->Partage->Bureau distant coché cocher Activer l'ancien protocole VNC, cliquer sur les 3 points et cocher Demander un mot de passe cocher Controle à distance utiliser la partie Authentification pour avoir le login et le mot de passe (mais j'ai l'impression que le mot de passe change d'une fois sur l'autre....) https://askubuntu.com/questions/1403943/22-04-remote-desktop-sharing-authentication-password-changes-every-reboot ------------------------ Well - I can tell you how to fix this one particular way (its the only way I know how) but it will open up another can of worms for you. The issue is that in Ubuntu 22.04, all the username and passwords for your system are, by default, encrypted with your username's password. That is being stored in what is called the keyring. What is happening is that the VNC server is being loaded without the keyring being unlocked and therefore can't access the stored VNC password (as its encrypted) so it auto generates a new one each time you boot up. So, if you auto boot up with your user login, during the auto boot up, Ubuntu 22.04 doesn't automatically unlock the keyring. So to fix this, go to Utilities, Password and Keys, right click on Default Keyring, select change password. It will ask for your username password. Enter that. Then for the new password, do not enter one. Leave it blank. It will warn you that all passwords stored on your keyring will become and remain unencrypted. If you can wear that risk, accept that. Then go back to remote desktop, ensure the password you want is set, and each time you reboot, that password will then remain the same. Hope that all makes sense :) ------------------------ I found an insecure solution to the problem. The typical solution proposed on the internet for this is to set a blank password for the login keyring using the "Passwords and keys" app. This, however, is highly inscure as all the passwords on the device would be stored in plaintext. What I decided to do instead was to create a new keyring in the "Passwords and keys" app with no password and set it as the default keyring. Then I proceeded to delete the VNC password from the login keyring. Then I rebooted the computer to ensure that the new keyring is the default one. After the reboot, I reentered the VNC password in the screen sharing settings. This would store the VNC password in the new insecure keyring. Then back to "Passwords and keys" app and set the login keyring to default again. Rebooted again and now the VNC password stayed saved and the default keyring was also back to the login keyring, ensuring all future passwords saved on the device will be encrypted. So in essence, I just reduced the insecurity of saving all the passwords in plaintext to storing just the VNC password in plaintext. ------------------------ voir: https://itsfoss.com/ubuntu-keyring/ https://askubuntu.com/questions/495957/how-to-disable-the-unlock-your-keyring-popup https://askubuntu.com/questions/1403943/22-04-remote-desktop-sharing-authentication-password-changes-every-reboot https://ciksiti.com/fr/chapters/11646-how-to-enable-remote-desktop-on-ubuntu-desktop-22-04-lts-and https://linuxhint.com/enable-remote-desktop-ubuntu-access-from-windows/#b4 C'est le service gnome-remote-desktop-daemon qui fait serveur vnc: https://installati.one/ubuntu/22.04/gnome-remote-desktop/ cat /var/lib/dpkg/info/gnome-remote-desktop.list ou dpkg -L gnome-remote-desktop /usr /usr/bin /usr/bin/grdctl /usr/lib /usr/lib/systemd /usr/lib/systemd/user /usr/lib/systemd/user/gnome-remote-desktop.service /usr/libexec /usr/libexec/gnome-remote-desktop-daemon /usr/share /usr/share/doc /usr/share/doc/gnome-remote-desktop /usr/share/doc/gnome-remote-desktop/changelog.Debian.gz /usr/share/doc/gnome-remote-desktop/copyright /usr/share/glib-2.0 /usr/share/glib-2.0/schemas /usr/share/glib-2.0/schemas/org.gnome.desktop.remote-desktop.enums.xml /usr/share/glib-2.0/schemas/org.gnome.desktop.remote-desktop.gschema.xml /usr/share/gnome-remote-desktop /usr/share/gnome-remote-desktop/grd-cuda-avc-utils_30.ptx /usr/share/gnome-remote-desktop/grd-cuda-damage-utils_30.ptx à essayer pour pouvoir se connecter via vnc sans que sur le serveur il faille cliquer sur accepter la demande de connexion: https://askubuntu.com/questions/1407444/ubuntu-22-04-remote-deskop-headless extension chrome sensée permettre de se connecter même si la session est locked: https://extensions.gnome.org/extension/4338/allow-locked-remote-desktop/ ====Indexeur pour recherche==== occuper beaucoup de CPU: tracker-miner-fs-3 dus /home/martine/.cache/tracker3/files/ 5M /home/martine/.cache/tracker3/files/errors 1098M /home/martine/.cache/tracker3/files/ désactiver: https://forum.ubuntu-fr.org/viewtopic.php?id=2068141 https://forum.ubuntu-fr.org/viewtopic.php?id=2068141 Ajouter Hidden=true à la fin de sudo nano /etc/xdg/autostart/tracker-miner-fs-3.desktop mkdir -p ~/.config/autostart nano ~/.config/autostart/trackerd.desktop [Desktop Entry] Encoding=UTF-8 Name=Tracker Hidden=true suppression des fichiers: rm -rf ~/.cache/tracker3 méthode bourinne qui marche: https://stackoverflow.com/questions/72827703/how-to-disable-file-indexing-in-ubuntu-22-04-tracker3 sudo chmod -x /usr/libexec/tracker-miner-fs-3 sudo chmod -x /usr/libexec/tracker-extract-3 =====Changer les applications par défaut===== Par exemple pour mettre VLC pour lire les vidéos: https://www.numetopia.fr/changer-les-applications-par-defaut-sur-ubuntu/ =====Historique fichiers récents===== cat .local/share/recently-used.xbel https://www.pcastuces.com/pratique/astuces/3013.htm Saisissez alors la commande suivante pour supprimer le fichier d'historique des documents récents et validez : rm ~/.local/share/recently-used.xbel Saisissez ensuite la commande suivante pour récréer un fichier vide et validez. touch ~/.local/share/recently-used.xbel Enfin, saisissez la commande suivante pour rendre le fichier inaccessible : sudo chattr +i ~/.local/share/recently-used.xbel Pour réactiver les documents récents, saisissez la commande : sudo chattr -i ~/.local/share/recently-used.xbel https://astucestechnologiques.com/supprimer-et-desactiver-les-documents-recents-dans-ubuntu/ =====Choix sortie audio en console===== https://www.youtube.com/watch?v=JsXpriTLn4Y pactl list short sinks 2 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 48000Hz RUNNING 5 alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED 18 alsa_output.pci-0000_00_03.0.hdmi-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED Pour selectionner sortie audio HP intégré: pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo =====Capture d'écran===== import de image magick déconne à cause de wayland, utiliser l'outil de capture intégré: https://linuxhint.com/methods-take-screenshots-ubuntu/ ALT+PRTSC This shortcut key is used to take the screenshot of the present window only SHIFT+PRTSC This shortcut key is used to the screenshot of the selected part of the screen PRTSC This shortcut key is used to the screenshot of the entire window =====Gestion des raccourcis===== https://doc.ubuntu-fr.org/raccourci-lanceur cp /usr/share/applications/xsane.desktop ~/.local/share/applications/jd2.desktop desktop-file-validate jd2.desktop =====Edition pdf (pour incrustation signature par ex)===== sudo apt install xournal =====Editeur texte===== gedit n'indique pas l'os quand on sauve un fichier que le fichier a changé (utile pour FSMProcess) leafpad n'existe plus dans les paquets: https://doc.ubuntu-fr.org/leafpad sudo apt install featherpad =====Montage telephone MTP Huawei===== https://www.baeldung.com/linux/mounting-mtp-devices If we’re on the GNOME desktop environment, chances are we have gvfs-mtp already installed. However, if that’s not the case, we can install it from our distro’s official package repository using a package manager: sudo apt install gvfs-mtp lsusb | grep -i smartphone Bus 002 Device 012: ID 12d1:107e Huawei Technologies Co., Ltd. P10 smartphone gio mount -li | grep activation_root activation_root=google-drive://bvandeportaele@gmail.com/ activation_root=mtp://HUAWEI_BLL-L22_YCPDU17413004351/ gio mount "mtp://HUAWEI_BLL-L22_YCPDU17413004351/" gio: mtp://HUAWEI_BLL-L22_YCPDU17413004351/: L’emplacement est déjà monté ls -l /run/user/1000/gvfs dr-x------ 1 bvandepo bvandepo 0 janv. 1 1970 'mtp:host=HUAWEI_BLL-L22_YCPDU17413004351' ls -l /run/user/1000/gvfs/mtp\:host\=HUAWEI_BLL-L22_YCPDU17413004351/Carte\ SD/ ls -l /run/user/1000/gvfs/mtp\:host\=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire\ de\ stockage\ interne/ démontage: gio mount -u "mtp://HUAWEI_BLL-L22_YCPDU17413004351/" ====Tentative infructueuse de sauvegarde huawei via rsync==== mkdir /media/bvandepo/HD5TO1/sauvegarde_huawei_bertrand_2022_11_23 cd /media/bvandepo/HD5TO1/sauvegarde_huawei_bertrand_2022_11_23 rsync -av "/run/user/1000/gvfs/mtp:host=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire de stockage interne" ./ Problème de drois d'accès, j'essaie sans succès rsync --exclude .gvfs -av "/run/user/1000/gvfs/mtp:host=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire de stockage interne" ./ sudo rsync -av "/run/user/1000/gvfs/mtp:host=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire de stockage interne" ./ sudo cp -r "/run/user/1000/gvfs/mtp:host=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire de stockage interne" ./ sudo su - cd "/run/user/1000/gvfs/mtp:host=HUAWEI_BLL-L22_YCPDU17413004351/Mémoire de stockage interne$" sudo rsync --exclude .gvfs -av ./ /media/bvandepo/HD5TO1/sauvegarde_huawei_bertrand_2022_11_23 http://voidandany.free.fr/index.php/permission-denied-sur-gvfs-avec-rsnapshot-rsync/ rsync_long_args --delete --numeric-ids --delete-excluded --exclude='.gvfs' https://ubuntuforums.org/showthread.php?t=791693&page=2&p=5545440#post5545440 sudo aptitude reinstall gvfs gvfs-backends gvfs-bin gvfs-fuse libgvfscommon0 adaptée en : sudo apt reinstall gvfs gvfs-backends gvfs-fuse gvfs-common gvfs-libs gvfs-daemons NE MARCHE PAS! ====Sur portable huawei claire==== raccourci sur le bureau pour accéder au téléphone: cd ~/Desktop sudo ln -s "/run/user/1000/gvfs/mtp:host=HUAWEI_BLN-L21_6AGDU17721006477/Mémoire de stockage interne" telephone =====Teams Microsoft===== Teams: la video ne marche pas dans navigateur https://www.microsoft.com/fr-fr/microsoft-teams/download-app cd ~/Téléchargements/ sudo dpkg -i teams_1.5.00.23861_amd64.deb sudo apt install libgdk-pixbuf2.0-0 sudo apt --fix-broken install sudo dpkg -i teams_1.5.00.23861_amd64.deb Sélection du paquet teams précédemment désélectionné. (Lecture de la base de données... 293999 fichiers et répertoires déjà installés.) Préparation du dépaquetage de teams_1.5.00.23861_amd64.deb ... Dépaquetage de teams (1.5.00.23861) ... dpkg: des problèmes de dépendances empêchent la configuration de teams : teams dépend de libgdk-pixbuf2.0-0 (>= 2.22.0) ; cependant : Le paquet libgdk-pixbuf2.0-0 n'est pas installé. dpkg: erreur de traitement du paquet teams (--install) : problèmes de dépendances - laissé non configuré Traitement des actions différées (« triggers ») pour mailcap (3.70+nmu1ubuntu1) ... Traitement des actions différées (« triggers ») pour gnome-menus (3.36.0-1ubuntu3) ... Traitement des actions différées (« triggers ») pour desktop-file-utils (0.26-1ubuntu3) ... Des erreurs ont été rencontrées pendant l'exécution : teams bvandepo@bvandepo-HP-ZBook-14-G2:~/Téléchargements$ sudo apt install libgdk-pixbuf2.0-0 Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes. Les paquets suivants contiennent des dépendances non satisfaites : libgdk-pixbuf2.0-0 : Dépend: libgdk-pixbuf-xlib-2.0-0 (>= 2.40.2-2build4) mais ne sera pas installé E: Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet (ou indiquez une solution). bvandepo@bvandepo-HP-ZBook-14-G2:~/Téléchargements$ sudo apt --fix-broken install  E: L'option --fix-broken de la ligne de commande n'est pas reconnue quand elle est utilisée avec d'autres options. bvandepo@bvandepo-HP-ZBook-14-G2:~/Téléchargements$ sudo apt --fix-broken install Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Correction des dépendances... Fait Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires : chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2-minimal python2.7 python2.7-minimal Veuillez utiliser « sudo apt autoremove » pour les supprimer. Les paquets supplémentaires suivants seront installés : libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 Les NOUVEAUX paquets suivants seront installés : libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 0 mis à jour, 2 nouvellement installés, 0 à enlever et 1 non mis à jour. 1 partiellement installés ou enlevés. Il est nécessaire de prendre 45,1 ko dans les archives. Après cette opération, 129 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o Réception de :1 http://fr.archive.ubuntu.com/ubuntu jammy/main amd64 libgdk-pixbuf-xlib-2.0-0 amd64 2.40.2-2build4 [42,6 kB] Réception de :2 http://fr.archive.ubuntu.com/ubuntu jammy/universe amd64 libgdk-pixbuf2.0-0 amd64 2.40.2-2build4 [2 454 B] 45,1 ko réceptionnés en 0s (213 ko/s) Sélection du paquet libgdk-pixbuf-xlib-2.0-0:amd64 précédemment désélectionné. (Lecture de la base de données... 294398 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../libgdk-pixbuf-xlib-2.0-0_2.40.2-2build4_amd64.deb ... Dépaquetage de libgdk-pixbuf-xlib-2.0-0:amd64 (2.40.2-2build4) ... Sélection du paquet libgdk-pixbuf2.0-0:amd64 précédemment désélectionné. Préparation du dépaquetage de .../libgdk-pixbuf2.0-0_2.40.2-2build4_amd64.deb ... Dépaquetage de libgdk-pixbuf2.0-0:amd64 (2.40.2-2build4) ... Paramétrage de libgdk-pixbuf-xlib-2.0-0:amd64 (2.40.2-2build4) ... Paramétrage de libgdk-pixbuf2.0-0:amd64 (2.40.2-2build4) ... Paramétrage de teams (1.5.00.23861) ... Traitement des actions différées (« triggers ») pour libc-bin (2.35-0ubuntu3.1) ... bvandepo@bvandepo-HP-ZBook-14-G2:~/Téléchargements$ sudo dpkg -i teams_1.5.00.23861_amd64.deb (Lecture de la base de données... 294406 fichiers et répertoires déjà installés.) Préparation du dépaquetage de teams_1.5.00.23861_amd64.deb ... Dépaquetage de teams (1.5.00.23861) sur (1.5.00.23861) ... Paramétrage de teams (1.5.00.23861) ... Traitement des actions différées (« triggers ») pour mailcap (3.70+nmu1ubuntu1) ... Traitement des actions différées (« triggers ») pour gnome-menus (3.36.0-1ubuntu3) ... Traitement des actions différées (« triggers ») pour desktop-file-utils (0.26-1ubuntu3) ... ====Cheat===== En complément de man, fournit des exemples pour des commandes utiles sudo snap install cheat cheat nom_de_commande autres alternatives sur: https://ostechnix.com/3-good-alternatives-man-pages-every-linux-user-know/ =====Paquets apt et snap ===== pour lister les installations précédentes: grep -E ' install | remove ' /var/log/dpkg.log avec les anciens log zippés: zcat /var/log/dpkg.log.*.gz | cat - /var/log/dpkg.log | grep -E ' install | remove | upgrade' pour l'historique: cat /var/log/apt/history.log sudo apt install screen iotop htop bpytop gparted duf dcfldd bpytop chrome-gnome-shell chromium-browser gnome-shell-extension-manager xsane filezilla vlc vlc-bin openssh-server inkscape wakeonlan gwenview geeqie exiftool cifs-utils gimp p7zip-full unrar kdiff3 baobab speedcrunch transmission openscad qtcreator qtbase5-dev qt5-qmake cmake git gitk handbrake gtkwave arduino libserial1 wireshark idle python3-pip python3-venv xournal featherpad doxygen rar 7z nmap texmaker texlive-latex-extra texlive-lang-french Pour voir les logs: gedit /var/log/apt/term.log sudo snap install midori =====visudo===== sudo visudo bvandepo ALL=(ALL:ALL) NOPASSWD:/usr/bin/dmesg bvandepo ALL=(ALL:ALL) NOPASSWD:/usr/bin/mount bvandepo ALL=(ALL:ALL) NOPASSWD:/usr/bin/umount bvandepo ALL=(ALL:ALL) NOPASSWD:/usr/sbin/iotop =====Scripts pour connexion distante===== MAC_ADDR=e8:39:35:52:5f:ed IP_ADDR=192.168.1.59 LOGIN_USR=bvandepo #wakeonlan $MAC_ADDR wakeonlan -i 192.168.1.255 $MAC_ADDR #ping ----------------------------------- while ! ping -c1 $IP_ADDR &>/dev/null do echo "Ping Fail - `date`" done echo "Host Found - `date`" #slogin --------------------------------- #sleep 2s #slogin -Y $LOGIN_USR@$IP_ADDR #relance slogin tant qu'il retourne 255... le problème c'est que si j'était l'hote distant au lieu de faire exit , slogin retourne aussi 255.... #while [ $? -eq 255 ] #do # sleep 1s # echo "slogin Fail - `date`" # slogin -Y $LOGIN_USR@$IP_ADDR #done #echo "Exiting slogin - `date`" ; #je fais un test non pas sur le code retour de slogin mais sur la durée entre l'appel et la sortie #https://stackoverflow.com/questions/8903239/how-to-calculate-time-elapsed-in-bash-script duration=0 while [ $duration -le 3 ] do SECONDS=0 #echo "slogin Fail - `date`" slogin -Y $LOGIN_USR@$IP_ADDR duration=$SECONDS echo "slogin exit code:" {$?} ", " {$duration} " seconds after connexion at - `date`" sleep 1 done =====Gestion multiboot avec grub===== #!/bin/bash #WINDOWS_ENTRY=`grep "menuentry " /boot/grub/grub.cfg | grep --line-number Windows` #MENU_NUMBER=$(( `echo $WINDOWS_ENTRY | sed -e "s/:.*//"` - 1 )) #sudo grub-reboot $MENU_NUMBER #sudo reboot WINDOWS_TITLE=$(grep -i 'windows' /boot/grub/grub.cfg|grep "^[^#;]"|cut -d"'" -f2) sudo grub-reboot "$WINDOWS_TITLE" echo "Your computer will reboot on ${WINDOWS_TITLE} in 3 seconds, press Ctrl+C if you want to abord it" sleep 3 && sudo reboot # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${initrdfail}" = 2 ]; then set initrdfail= elif [ "${initrdfail}" = 1 ]; then set next_entry="${prev_entry}" set prev_entry= save_env prev_entry if [ "${next_entry}" ]; then set initrdfail=2 fi fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function initrdfail { if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then if [ -z "${initrdfail}" ]; then set initrdfail=1 if [ -n "${boot_once}" ]; then set prev_entry="${default}" save_env prev_entry fi fi save_env initrdfail fi; fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=fr_FR insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=hidden set timeout=0 # Fallback hidden-timeout code in case the timeout_style feature is # unavailable. elif sleep --interruptible 0 ; then set timeout=0 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; then set vt_handoff=vt.handoff=7 else set vt_handoff= fi } if [ "${recordfail}" != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if [ ${grub_platform} != pc ]; then set linux_gfx_mode=keep elif hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7b63079c-91d6-423c-9d7f-9b3467e11708' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi linux /boot/vmlinuz-5.4.0-125-generic root=UUID=7b63079c-91d6-423c-9d7f-9b3467e11708 ro quiet splash $vt_handoff initrd /boot/initrd.img-5.4.0-125-generic } submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-7b63079c-91d6-423c-9d7f-9b3467e11708' { menuentry 'Ubuntu, avec Linux 5.4.0-125-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-125-generic-advanced-7b63079c-91d6-423c-9d7f-9b3467e11708' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi echo 'Chargement de Linux 5.4.0-125-generic…' linux /boot/vmlinuz-5.4.0-125-generic root=UUID=7b63079c-91d6-423c-9d7f-9b3467e11708 ro quiet splash $vt_handoff echo 'Chargement du disque mémoire initial…' initrd /boot/initrd.img-5.4.0-125-generic } menuentry 'Ubuntu, avec Linux 5.4.0-125-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-125-generic-recovery-7b63079c-91d6-423c-9d7f-9b3467e11708' { recordfail load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi echo 'Chargement de Linux 5.4.0-125-generic…' linux /boot/vmlinuz-5.4.0-125-generic root=UUID=7b63079c-91d6-423c-9d7f-9b3467e11708 ro recovery nomodeset dis_ucode_ldr echo 'Chargement du disque mémoire initial…' initrd /boot/initrd.img-5.4.0-125-generic } menuentry 'Ubuntu, avec Linux 5.4.0-120-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-120-generic-advanced-7b63079c-91d6-423c-9d7f-9b3467e11708' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi echo 'Chargement de Linux 5.4.0-120-generic…' linux /boot/vmlinuz-5.4.0-120-generic root=UUID=7b63079c-91d6-423c-9d7f-9b3467e11708 ro quiet splash $vt_handoff echo 'Chargement du disque mémoire initial…' initrd /boot/initrd.img-5.4.0-120-generic } menuentry 'Ubuntu, avec Linux 5.4.0-120-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-120-generic-recovery-7b63079c-91d6-423c-9d7f-9b3467e11708' { recordfail load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi echo 'Chargement de Linux 5.4.0-120-generic…' linux /boot/vmlinuz-5.4.0-120-generic root=UUID=7b63079c-91d6-423c-9d7f-9b3467e11708 ro recovery nomodeset dis_ucode_ldr echo 'Chargement du disque mémoire initial…' initrd /boot/initrd.img-5.4.0-120-generic } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_linux_zfs ### ### END /etc/grub.d/10_linux_zfs ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry 'Memory test (memtest86+)' { insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi knetbsd /boot/memtest86+.elf } menuentry 'Memory test (memtest86+, serial console 115200)' { insmod part_msdos insmod ext2 set root='hd2,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 7b63079c-91d6-423c-9d7f-9b3467e11708 else search --no-floppy --fs-uuid --set=root 7b63079c-91d6-423c-9d7f-9b3467e11708 fi linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 10 (sur /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-40AE6493AE648370' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 40AE6493AE648370 else search --no-floppy --fs-uuid --set=root 40AE6493AE648370 fi parttool ${root} hidden- drivemap -s (hd0) ${root} chainloader +1 } set timeout_style=menu if [ "${timeout}" = 0 ]; then set timeout=10 fi ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/35_fwupd ### ### END /etc/grub.d/35_fwupd ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### /etc/default/grub: # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" pour avoir la doc: info -f grub -n 'Simple configuration' sudo grub-mkconfig pour régler le default sur windows de manière perenne: WINDOWS_TITLE=$(grep -i 'windows' /boot/grub/grub.cfg|grep "^[^#;]"|cut -d"'" -f2) sudo grub-set-default "$WINDOWS_TITLE" autre tentative: WINDOWS_ENTRY=`grep "menuentry " /boot/grub/grub.cfg | grep --line-number Windows` MENU_NUMBER=$(( `echo $WINDOWS_ENTRY | sed -e "s/:.*//"` - 1 )) echo "$MENU_NUMBER" # 7 sudo grub-set-default "$MENU_NUMBER" autre tentative: https://gist.github.com/chaiyujin/c08e59752c3e238ff3b1a5098322b363 cat /boot/grub/grub.cfg |grep -i windows # menuentry 'Windows 10 (sur /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-40AE6493AE648370' { GRUB_DEFAULT='osprober-chain-40AE6493AE648370' sudo update-grub autre technique qui fonctionne, se rappeler du dernier choix de boot: https://doc.ubuntu-fr.org/tutoriel/grub2_parametrage_manuel#menu_par_defaut sudo nano /etc/default/grub remplacer: GRUB_DEFAULT=0 par GRUB_SAVEDEFAULT=true GRUB_DEFAULT=saved sudo update-grub sudo reboot 0 =====cron===== sudo crontab -e @reboot /bin/bash -c 'sleep 30 && /bin/mount -a' =====icones bureau raspberry pi===== faire un fichier desktop https://raspberrypi.stackexchange.com/questions/100679/auto-execute-desktop-shortcut-problem Then open: pcmanfm go to Edit/Preferences/General, Check box for "Don't ask options on launch executable file" ====Montage réseau raspberry pi===== Montage réseau au boot même si serveur éteint: //192.168.1.254/Disque\040dur /media/freebox cifs guest,uid=1000,_netdev,iocharset=utf8,defaults,rw,file_mode=0777,dir_mode=0777 0 0 //192.168.1.254/HD250GO /media/HD250GO cifs guest,uid=1000,file_mode=0777,dir_mode=0777 0 0 sshfs#bvandepo@192.168.1.59:/media/HD3TO1 /media/HD3TO1 fuse nofail,identityfile=/home/bvandepo/.ssh/id_rsa,allow_other,defaults,default_permissions,uid=1000,gid=1000 0 2 ====snap raspberry pi==== NE MARCHE PAS: sudo apt install snap-store snap sudo snap install duf ====wifi sur raspberry pi 4==== Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use. sudo raspi-config Localisation Options WLAN Country FR =====changement mot de passe===== sudo passwd =====Partage fichiers freebox===== https://www.freenews.fr/freenews-edition-nationale-299/freebox-9/freebox-os-partagez-vos-fichiers-avec-le-monde-entier-en-quelques-clics-13608 =====Support partition exFat===== pour clef usb windows: https://doc.ubuntu-fr.org/exfat sudo apt install exfatprogs ensuite utilisable depuis gparted =====Vérification partitions===== Pour forcer vérification de la partition root au prochain démarrage, mettre 1 ou 2 en dernière colonne dans le fichier /etc/fstab, puis: https://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/ sudo shutdown -rF now Pour déterminer la date de la dernière vérification: https://linuxconfig.org/how-to-force-fsck-to-check-filesystem-after-system-reboot-on-linux sudo tune2fs -l /dev/sdX | grep Last\ c =====Défragmentation dossier===== https://askubuntu.com/questions/221079/how-to-defrag-an-ext4-filesystem =====Gestion presse papier===== ===clipit deprecated=== https://doc.ubuntu-fr.org/presse-papier sudo apt install clipit clipit ClipIt has been deprecated and is no longer supported in Ubuntu. Diodon, a supported replacement for ClipIt, has been automatically installed for your convenience. Please note that the user settings have not been migrated. You can still access them in ~/.config/clipit/clipitrc. sudo apt remove clipit ===diodon=== https://doc.ubuntu-fr.org/diodon https://launchpad.net/diodon https://esite.ch/2015/07/using-custom-shortcuts-of-de-as-diodon-hotkey/ diodon ===parcellite=== https://doc.ubuntu-fr.org/parcellite sudo apt install parcellite parcellite ====liste des paquets installés triés par taille==== dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -nr ====purge des vieux kernels==== sudo apt install byobu purge-old-kernels =====Gestion de la batterie===== https://smart-tech.mg/comment-surveiller-la-sante-de-la-batterie-dun-laptop-dans-ubuntu/upower -e quand j'ai mis la nouvelle batterie elle était à 13% quand j'ai fait ce test elle était à 29%: upower -e /org/freedesktop/UPower/devices/line_power_AC /org/freedesktop/UPower/devices/battery_BAT0 /org/freedesktop/UPower/devices/DisplayDevice upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: Hewlett-Packard model: Primary serial: 09001 2021/11/02 power supply: yes updated: dim. 27 août 2023 15:00:55 (1 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 12,5208 Wh energy-empty: 0 Wh energy-full: 42,7128 Wh energy-full-design: 42,7128 Wh energy-rate: 31,8681 W voltage: 11,546 V charge-cycles: N/A time to full: 56,8 minutes percentage: 29% capacity: 100% technology: lithium-ion icon-name: 'battery-low-charging-symbolic' History (charge): 1693141255 29,000 charging 1693141208 28,000 charging History (rate): 1693141255 31,868 charging 1693141208 31,879 charging Une Fois la batterie chargée à 100%: bvandepo@bvandepo-HP-ZBook-14-G2:/media/HD500GO/Downloads/3D$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: Hewlett-Packard model: Primary serial: 09001 2021/11/02 power supply: yes updated: dim. 27 août 2023 17:19:24 (44 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: fully-charged warning-level: none energy: 42,7128 Wh energy-empty: 0 Wh energy-full: 42,7128 Wh energy-full-design: 42,7128 Wh energy-rate: 26,8176 W voltage: 12,413 V charge-cycles: N/A percentage: 100% capacity: 100% technology: lithium-ion icon-name: 'battery-full-charged-symbolic' History (charge): 1693149564 100,000 fully-charged History (rate): 1693149564 26,818 fully-charged 1693149564 7,316 fully-charged après une décharge complète: bvandepo@bvandepo-HP-ZBook-14-G2:/media/HD500GO/Downloads/3D$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: Hewlett-Packard model: Primary serial: 09001 2021/11/02 power supply: yes updated: lun. 28 août 2023 10:05:11 (3 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 2,6973 Wh energy-empty: 0 Wh energy-full: 41,3808 Wh energy-full-design: 41,3808 Wh energy-rate: 23,2989 W voltage: 10,701 V charge-cycles: N/A time to full: 1,7 hours percentage: 6% capacity: 100% technology: lithium-ion icon-name: 'battery-caution-charging-symbolic' History (charge): 1693209911 6,000 charging 1693209873 5,000 discharging 1693209827 6,000 discharging History (rate): 1693209911 23,299 charging 1693209880 36,142 pending-charge 1693209879 27,724 pending-charge 1693209874 37,030 discharging 1693209873 36,142 discharging 1693209853 34,665 discharging 1693209830 33,322 discharging 1693209827 36,541 discharging 1693209806 36,286 discharging sudo apt install tlp sudo tlp start sudo systemctl enable tlp.service sudo tlp start sudo tlp-stat -s --- TLP 1.5.0 -------------------------------------------- +++ System Info System = Hewlett-Packard A3008C510003 HP ZBook 14 G2 BIOS = M71 Ver. 01.31 OS Release = Ubuntu 22.04.3 LTS Kernel = 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 /proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-6.2.0-26-generic root=UUID=993e34f0-aeb6-423b-903b-d1d7a4d5a376 ro quiet splash vt.handoff=7 Init system = systemd v249 (249.11-0ubuntu3.9) Boot mode = UEFI +++ TLP Status State = enabled RDW state = enabled Last run = 15:08:25, 5 sec(s) ago Mode = AC Power source = AC sudo apt update E: Le dépôt https://ppa.launchpadcontent.net/martin-salbaba/ppa+libimobiledevice/ubuntu jammy Release n'a pas de fichier Release. je le purge: sudo add-apt-repository -r ppa:martin-salbaba/ppa+libimobiledevice Dépôt : « deb https://ppa.launchpadcontent.net/martin-salbaba/ppa+libimobiledevice/ubuntu/ jammy main » Description : libimobiledevice update to support ios10 trusty: libimobile4 is not longer working and must be replaced               please install all components xenial: libimobile6 is updated sudo add-apt-repository ppa:linuxuprising/apps sudo apt update sudo apt install tlpui tlpui =====Extinction disque dur USB après démontage===== https://unix.stackexchange.com/questions/354138/safest-way-to-remove-usb-drive-on-linux sudo udisksctl power-off -b /dev/sdd =====Indexation rapide des fichiers===== https://doc.ubuntu-fr.org/locate sudo apt-get install mlocate Mise à jour manuelle de la base de données sudo updatedb Exclusion de répertoire de l'indexation, ajouter le répertoire en question dans les PRUNEPATHS de /etc/updatedb.conf: PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs /data" recherche locate nom =====Upgrade martine===== https://linuxconfig.org/how-to-upgrade-ubuntu-to-22-04-lts-jammy-jellyfish =====portable yan===== https://www.laptopspirit.fr/30677/toshiba-qosmio-g50-12f-portable-184-wsxga-hd-a-999e-p7450-geforce-9600m-gt-320-go.html dongle usb bluetooth ====photopea==== https://www.photopea.com/ https://flathub.org/apps/com.github.vikdevelop.photopea_app https://flathub.org/setup/Ubuntu faire add this device et choisir les dossiers visibles sinon on ne peut rien ouvrir ====partitionnement manuel==== https://doc.ubuntu-fr.org/tutoriel/partitionner_manuellement_avec_installateur_ubuntu =====Reprise copie en cours===== https://fr.linux-console.net/?p=9277 cd /path/to/directory/of/partially_downloaded_file scp alice@remote:/path/fichier . CTRL+C rsync -P --rsh=ssh alice@remote:/path/fichier ./fichier ====codec av1 pour vlc==== sudo apt purge vlc sudo snap install vlc ====Conversion vers mp3==== https://quantixed.org/2021/11/20/convertible-using-ffmpeg-to-convert-audio-files/ find . -iname '*.opus' -exec bash -c 'D=$(dirname "{}"); B=$(basename "{}"); mkdir "$D/mp3/"; ffmpeg -i "{}" -ab 128k -map_metadata 0:s:a:0 -id3v2_version 3 "$D/mp3/${B%.*}.mp3"' \; find . -iname '*.m4a' -exec bash -c 'D=$(dirname "{}"); B=$(basename "{}"); mkdir "$D/mp3/"; ffmpeg -i "{}" -ab 128k -map_metadata 0:s:a:0 -id3v2_version 3 "$D/mp3/${B%.*}.mp3"' \; ====Comparaison de 2 dossiers==== Pour comparer 2 répertoires, vous pouvez utiliser la commande diff L'option -q permet de n'afficher que les différences. L'option -r permet d'examiner la totalité du répertoire (récursif) et pas seulement la racine diff -qr /repertoiresource/ /repertoirecible/ =====Logiciel analyse trafic réseau===== sudo apt install iptraf-ng sudo iptraf =====Problème mise en veille===== cat /var/log/syslog Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.468297] printk: Suspending console(s) (use no_console_suspend to debug) Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470553] rmi4_f01 rmi4-00.fn01: Failed to write sleep mode: -6. Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470569] rmi4_f01 rmi4-00.fn01: Suspend failed with code -6. Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470575] rmi4_physical rmi4-00: Failed to suspend functions: -6 Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470595] rmi4_smbus 0-002c: Failed to suspend device: -6 Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470603] rmi4_smbus 0-002c: PM: dpm_run_callback(): rmi_smb_suspend+0x0/0x60 [rmi_smbus] returns -6 Dec 28 01:51:39 bvandepo-HP-ZBook-14-G2 kernel: [79652.470632] rmi4_smbus 0-002c: PM: failed to suspend async: error -6 sudo apt install pm-utils sudo pm-suspend Après fermeture du lid, le touchpad ne marche plus: https://debian-facile.org/viewtopic.php?id=24876 sudo rmmod psmouse sudo modprobe psmouse https://forums.fedoraforum.org/showthread.php?294065-Removing-a-module-before-suspend-with-systemd FYI it does work if I create an executable file remove-psmouse.sh in /usr/lib/systemd/system-sleep: Code: sudo nano /usr/lib/systemd/system-sleep/remove-psmouse.sh #!/bin/bash [ "$1" = "post" ] && exec /usr/sbin/modprobe psmouse [ "$1" = "pre" ] && exec /usr/sbin/rmmod psmouse exit 0 sudo chmod a+x /usr/lib/systemd/system-sleep/remove-psmouse.sh =====Image Magick===== ====Cropping en cli==== convert c.png -crop 1690x850+140+128 c-crop.jpg https://usage.imagemagick.org/crop/#crop =====maj firefox sur pc cine===== https://support.mozilla.org/fr/kb/installer-firefox-linux?utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=firefox-download-thanks#w_install-firefox-deb-package-for-debian-based-distributions