Optimisation.. [Réglé]

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Reprise du message précédent
Ourck20-1 :
/root/sortieRedirigee.txt
Mousepad me sort rien du tout !!
Mousepad me sort rien du tout !!
Mais... Je n'avais pas demandé de taper la commande en tant que root.
Du coup, si le fichier est à Root, il se peut que mouspad ne peut rien lire car l'utilisateur normal ne peut pas lire les fichier à root.
Donc en tant qu'utilisateur normal, peux-tu refaire les commandes ?
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
Caché :
1.72 - Thu Feb 1 21:59:24 IST 2018
* Switch to PyQt5 and Python3
* Add btrfs to list of filesystems for which we can set commit interval
* Add pkexec invocation script
* Add desktop file to upstream repo and invoke script
* Update installer to includes gui wrappers
* Install new SVG pixmap
* Control all available cards in radeon-dpm
* Prefer to use the new runtime pm autosuspend_delay_ms interface
* tolerate broken device interfaces quietly
* runtime-pm: Make {black,white}lists work with non-USB devices
* send echo errors to verbose log
* Extend blacklist by device types of devtype
1.71 - Thu Jan 12 13:30:50 IST 2017
* Fix incorrect import of os.putenv
* Merge pull request #74 from Coucouf/fix-os-putenv
* Fix documentation on where we read battery capacity from
* cpuhotplug: allow disabling specific cpus
* Merge pull request #78 from aartamonau/cpuhotplug
* runtime-pm: refactor listed_by_id()
* wireless-power: Use iw and fallback to iwconfig if it not available
* Prefer available AC supply information over battery state to determine ON_AC
* On startup, we want to force the full execution of LMT.
* Device hotplugs need a forced execution for LMT to apply the proper settings
* runtime-pm: Refactor list_by_type()
* kbd-backlight: New module to control keyboard backlight brightness
* Include Transmit power saving in wireless cards
* Don't run in a subshell
* Try harder to check battery charge
* New module: vgaswitcheroo
* Revive bluetooth module. Use rfkill primarily. Also don't unload (incomplete list of) kernel modules
* Switch to PyQt5 and Python3
* Add btrfs to list of filesystems for which we can set commit interval
* Add pkexec invocation script
* Add desktop file to upstream repo and invoke script
* Update installer to includes gui wrappers
* Install new SVG pixmap
* Control all available cards in radeon-dpm
* Prefer to use the new runtime pm autosuspend_delay_ms interface
* tolerate broken device interfaces quietly
* runtime-pm: Make {black,white}lists work with non-USB devices
* send echo errors to verbose log
* Extend blacklist by device types of devtype
1.71 - Thu Jan 12 13:30:50 IST 2017
* Fix incorrect import of os.putenv
* Merge pull request #74 from Coucouf/fix-os-putenv
* Fix documentation on where we read battery capacity from
* cpuhotplug: allow disabling specific cpus
* Merge pull request #78 from aartamonau/cpuhotplug
* runtime-pm: refactor listed_by_id()
* wireless-power: Use iw and fallback to iwconfig if it not available
* Prefer available AC supply information over battery state to determine ON_AC
* On startup, we want to force the full execution of LMT.
* Device hotplugs need a forced execution for LMT to apply the proper settings
* runtime-pm: Refactor list_by_type()
* kbd-backlight: New module to control keyboard backlight brightness
* Include Transmit power saving in wireless cards
* Don't run in a subshell
* Try harder to check battery charge
* New module: vgaswitcheroo
* Revive bluetooth module. Use rfkill primarily. Also don't unload (incomplete list of) kernel modules
[root@OO7 ~]# urpmf --provides lmt
php-pear-Net_LMTP:pear(tests/Net_LMTP/test_lmtp.php)
@Jibz, désolé comprends pas !
Il n'y as pas de user, je comprends pas ce que tu cherches à me faire faire !

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
[root@OO7 ~]# updatedb
[root@OO7 ~]# locate lmt-config-gui
/usr/sbin/lmt-config-gui
/usr/sbin/lmt-config-gui-pkexec
F.

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
lister les binaires exécutable du paquet pour les lancer en commande et lire les erreurs afin de déboguer et lancer l'interface graphique dont tu nous parles.
EDIT : s/fichier/paquet/
Édité par Jybz Le 01/09/2019 à 17h29
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
@Jybz: il y a bien un lmt-config-gui mais qui lance un script python 3 qui n' existe pas (voir mon message précédent) !

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
nic80 :
Bonjour,
@Jybz: il y a bien un lmt-config-gui mais qui lance un script python 3 qui n' existe pas (voir mon message précédent) !
@Jybz: il y a bien un lmt-config-gui mais qui lance un script python 3 qui n' existe pas (voir mon message précédent) !
Je viens de revenir en arrière, désolé j'avais manqué tous ces posts !
Bien je vous laisse.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
En revanche, si rpm -ql laptop-mode-tools ne retourne rien, c' est peut être que le paquet n' est pas installé puisque on redirige uniquement la sortie standard et pas les messages d' erreur 1> , or si le paquet n' est pas installé, forçément il y a message d'erreur mais qui n' est pas redirigé, d'où le fichier vide!
Que donne un rpm -qa | grep laptop-mode-tools (si le paquet se nomme comme ceci).
Est ce qu'il n' y aurait pas 2 paquets ? Un pour le "core" et un pour la partie graphique ?
On pourrais s' assurer que le LMT.py existe en faisant un locate LMT.py (voir un locate lmt.py)
Édité par nic80 Le 01/09/2019 à 18h18

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
*Alors pour python, ben c'est:
[root@OO7 ~]# python --version
Python 2.7.16
*laptop-mode-tools existe bien et est correctement orthographié :
[root@OO7 ~]# rpm -qa | grep laptop-mode-tools
laptop-mode-tools-1.72.2-1
*[root@OO7 ~]# locate LMT.py
/usr/share/laptop-mode-tools/LMT.py
*[root@OO7 ~]# locate lmt.py----->RIEN !!!
Pourquoi j'ai l'icône et rien au bout ???

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
Peut être parce que l' icône lance le lmt-config-gui qui lance le script python 3 lmt.py qui n' existe pas (voir mon message de 13h30 (il ne faut pas oublier que la casse des fichiers est importante)) ?
Édité par nic80 Le 01/09/2019 à 19h08

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
nic80 :
...il y a bien un lmt-config-gui mais qui lance un script python 3 qui n' existe pas
T'as surement raison...
Ceci explique cela !
Plus que quelque mois à attendre pour python 3 !
Enfin, peut-être
F.

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
Jibz :
Ce que je cherche à faire :
lister les binaires exécutable du paquet pour les lancer en commande et lire les erreurs afin de déboguer et lancer l'interface graphique dont tu nous parles.
EDIT : s/fichier/paquet/
lister les binaires exécutable du paquet pour les lancer en commande et lire les erreurs afin de déboguer et lancer l'interface graphique dont tu nous parles.
EDIT : s/fichier/paquet/

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
Citation :
Plus que quelque mois à attendre pour python 3 !
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
nic80 :
Bonjour,
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.
Citation :
Plus que quelque mois à attendre pour python 3 !
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.
Mais il faudra renommer le fichier LMT.py en lmt.py...

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Ourck20-1 :
T'as surement raison...
Ceci explique cela !
Plus que quelque mois à attendre pour python 3 !
Enfin, peut-être
F.
nic80 :
...il y a bien un lmt-config-gui mais qui lance un script python 3 qui n' existe pas
T'as surement raison...
Ceci explique cela !
Plus que quelque mois à attendre pour python 3 !
Enfin, peut-être
F.
Pourquoi tu parles d'attendre pour python3 ? Ça fait déjà 10 ans que ça existe, et surement presque autant que c'est sous mageia.
Code BASH :
[jibz@jabztop /]$ echo ${PATH} /home/jibz/MesBins:/home/jibz/MesScripts:/home/jibz/MesBins:/home/jibz/MesScripts:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/home/jibz/.local/bin:/home/jibz/bin [jibz@jabztop /]$ ls -lsa /usr/bin/python* 0 lrwxrwxrwx 1 root root 7 mai 4 07:42 /usr/bin/python -> python2* 0 lrwxrwxrwx 1 root root 9 mai 4 07:42 /usr/bin/python2 -> python2.7* 16 -rwxr-xr-x 1 root root 15304 mai 4 07:43 /usr/bin/python2.7* 4 -rwxr-xr-x 1 root root 1681 mai 4 07:42 /usr/bin/python2.7-config* 4 -rwxr-xr-x 1 root root 388 janv. 5 2019 /usr/bin/python2-chardetect* 0 lrwxrwxrwx 1 root root 16 mai 4 07:42 /usr/bin/python2-config -> python2.7-config* 0 lrwxrwxrwx 1 root root 9 avril 4 10:56 /usr/bin/python3 -> python3.7* 0 lrwxrwxrwx 1 root root 8 avril 4 10:56 /usr/bin/python3-2to3 -> 2to3-3.7* 0 lrwxrwxrwx 1 root root 10 avril 4 10:56 /usr/bin/python3.7 -> python3.7m* 0 lrwxrwxrwx 1 root root 17 avril 4 10:56 /usr/bin/python3.7-config -> python3.7m-config* 16 -rwxr-xr-x 1 root root 15312 avril 4 10:56 /usr/bin/python3.7m* 4 -rwxr-xr-x 1 root root 3429 avril 4 10:55 /usr/bin/python3.7m-config* 0 lrwxrwxrwx 1 root root 16 avril 4 10:56 /usr/bin/python3-config -> python3.7-config* 36 -rwxr-xr-x 1 root root 35101 avril 26 16:14 /usr/bin/python3-miniterm.py* 0 lrwxrwxrwx 1 root root 14 mai 4 07:42 /usr/bin/python-config -> python2-config*
Regardes, quand on tape "python" dans un terminal,
le système regarde dans la variable PATH les chemins où chercher les exécutables.
Parmis ses chemins, un des deux plus importants (en nombre de programme) est /usr/bin.
Là dedans, il y a le fameux "python" qu'on vient de taper dans le terminal.
Celui ci n'est en fait qu'un lien vers un fichier "python2", donc il exécutera python2. Mais python2 n'est qu'un lien, lui aussi, vers le fichier (cette fois ci le bon, l'exécutable) python2.7 .
Et comme tu peux le voir, il y a python3 aussi !
En janvier, le fichier "python" au lieu de rediriger vers python2 puis python2.7 redirigera par défaut vers python3.
Je pense que python2 sera encore disponible quelques temps, même s'il n'est plus maintenu...
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
nic80 :
Mais il faudra renommer le fichier LMT.py en lmt.py...
nic80 :
Bonjour,
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.
Citation :
Plus que quelque mois à attendre pour python 3 !
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.
Mais il faudra renommer le fichier LMT.py en lmt.py...
Ou changer le script.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
Bon, je pense que je peux faire un peu plus que copier/coller, cad m'y coller !
--->
Caché :
[xxl@OO7 ~]$ ls -lsa /usr/bin/python*
0 lrwxrwxrwx 1 root root 7 mai 4 07:43 /usr/bin/python -> python2*
0 lrwxrwxrwx 1 root root 9 mai 4 07:43 /usr/bin/python2 -> python2.7*
16 -rwxr-xr-x 1 root root 14604 mai 4 07:43 /usr/bin/python2.7*
4 -rwxr-xr-x 1 root root 402 janv. 5 2019 /usr/bin/python2-automat-visualize*
4 -rwxr-xr-x 1 root root 388 janv. 5 2019 /usr/bin/python2-chardetect*
0 lrwxrwxrwx 1 root root 9 avril 4 10:57 /usr/bin/python3 -> python3.7*
0 lrwxrwxrwx 1 root root 8 avril 4 10:57 /usr/bin/python3-2to3 -> 2to3-3.7*
0 lrwxrwxrwx 1 root root 10 avril 4 10:57 /usr/bin/python3.7 -> python3.7m*
0 lrwxrwxrwx 1 root root 17 avril 4 10:57 /usr/bin/python3.7-config -> python3.7m-config*
16 -rwxr-xr-x 1 root root 14616 avril 4 10:57 /usr/bin/python3.7m*
4 -rwxr-xr-x 1 root root 3519 avril 4 10:55 /usr/bin/python3.7m-config*
0 lrwxrwxrwx 1 root root 16 avril 4 10:57 /usr/bin/python3-config -> python3.7-config*
4 -rwxr-xr-x 1 root root 2558 avril 17 19:46 /usr/bin/python-argcomplete-check-easy-install-script*
4 -rwxr-xr-x 1 root root 318 mars 15 2017 /usr/bin/python-argcomplete-tcsh*
0 lrwxrwxrwx 1 root root 7 mai 4 07:43 /usr/bin/python -> python2*
0 lrwxrwxrwx 1 root root 9 mai 4 07:43 /usr/bin/python2 -> python2.7*
16 -rwxr-xr-x 1 root root 14604 mai 4 07:43 /usr/bin/python2.7*
4 -rwxr-xr-x 1 root root 402 janv. 5 2019 /usr/bin/python2-automat-visualize*
4 -rwxr-xr-x 1 root root 388 janv. 5 2019 /usr/bin/python2-chardetect*
0 lrwxrwxrwx 1 root root 9 avril 4 10:57 /usr/bin/python3 -> python3.7*
0 lrwxrwxrwx 1 root root 8 avril 4 10:57 /usr/bin/python3-2to3 -> 2to3-3.7*
0 lrwxrwxrwx 1 root root 10 avril 4 10:57 /usr/bin/python3.7 -> python3.7m*
0 lrwxrwxrwx 1 root root 17 avril 4 10:57 /usr/bin/python3.7-config -> python3.7m-config*
16 -rwxr-xr-x 1 root root 14616 avril 4 10:57 /usr/bin/python3.7m*
4 -rwxr-xr-x 1 root root 3519 avril 4 10:55 /usr/bin/python3.7m-config*
0 lrwxrwxrwx 1 root root 16 avril 4 10:57 /usr/bin/python3-config -> python3.7-config*
4 -rwxr-xr-x 1 root root 2558 avril 17 19:46 /usr/bin/python-argcomplete-check-easy-install-script*
4 -rwxr-xr-x 1 root root 318 mars 15 2017 /usr/bin/python-argcomplete-tcsh*
nic80 :
Pourquoi ?
Python 3 est déjà disponible sous Mageia 7 il me semble.
Python 3 est déjà disponible sous Mageia 7 il me semble.
Jibz :
Ou changer le script...
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie