logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 23-12-2016 15:18:00

tegenaria
Membre
Distrib. : Debian 8
Noyau : WinNT 5.1 64 bits SP5 ^^
(G)UI : XFCE
Inscription : 31-03-2016

[ SOLUTION ] Debian 8 + xfwm4 probleme [ French/English ]

[ Hi guys big_smile ! A simplier English version of this tip exists at the bottom message. wink ]

Bonjour à tous. Ça faisait un moment que j'étais pas venu ici. ( preuve que mes Debians se portent plutôt bien... ^^ )

Aujourd'hui, je ne viens donc pas pour réclamer de l'aide mais plutôt pour proposer une solution. Peut-être que celle-ci ne représentera pas un remède à 100 % efficace, mais au moins j'espère qu'elle s'ajoutera à l'arcenal de solutions, d'autant plus que sa mise en oeuvre est facile et accessible même aux débutants ayant un niveau déjà quelque peu amélioré. ( Peut-être même qu'elle existe déjà ailleurs, mais n'a jamais été évoquée ici... )

SYMPTOMES
Mardi soir, après un allumage normal de mon PC, je me suis retrouvé avec des fenêtres dépourvues de moyens de fermeture. C'est à dire, en langage lamba “windo-maco-linuxien”, la perte des icônes permettant la réduction, ma maximalisation et la fermeture des fenêtres. Bref, le truc que tout le monde utilise et connaît même sans être un pseudo geek.

Bien évidemment, le raccourci clavier “ctrl+q” m'a sorti de la panade durant deux jours, mais au delà, j'ai quand même cherché à trouver une solution efficace et robuste.

* * *

Etape A - La recherche infructueuse.
J'ai effectivement commencé par rechercher une solution sur le net francophone et anglophone. Très vite sont apparus les commandes “xfwm4 --replace” ; “metacity --replace” et autres variantes. Mais aucune n'a été la bonne solution.

* * *

Etape B - Mac Gyver en action...
( Rapidement, je vous passe mes réflexions et analyses sur le moment pour en venir directement au tuto... )

- - -

1 - Création d'un nouvel utilisateur dans le répertoire home avec la commande adduser. ( par commodité, ce nouvel utilisateur sera appelé “user”, mais vous pouvez le nommer “toto” ou “test”, ça n'a guère d'importance )

Commande à effectuer dans le terminal en mode ROOT : adduser user
( ensuite, à vous de définir un mot de passe et de remplir ou pas les champs subalternes “nom” prénom” etc, qui de toute façon n'ont aucun effet pour la suite. )

- - -

2 - Une foie ce nouvel utilisateur “user” créé, vous allez vous rendre dans ce dossier en mode ROOT, que ce soit avec le terminal ou bien avec un gestionnaire de fichier tel Thunar ou Krusader, ce qui est quand même plus aisé ( pensez à faire apparaitre les fichiers cachés ! ) : /home/user/.config/xfce4/xfconf/xfce-perchannel-xml

A présent, dans la liste des fichiers, vous allez chercher et isoler “xfce4-panel.xml”. Pour l'instant, il n'est pas question de le modifier ni de le déplacer. Retrouvons nous pour ça après le point 3 ci-dessous.

- - -

3 - C'est le moment de faire le backup de votre fichier partiellement défectueux dans votre profil d'utilisateur ! Car, il vaut mieux le faire pour toujours se permettre de revenir en arrière... Pour cela, en mode ROOT ou en mode utilisateur normal, vous allez vous rendre de répertoire jumeau de votre utilisateur à vous, en suivant cette commande qu'il vous faudra compléter absolument par le bon pseudo ( et de fait, remplacer les xxxx de l'example ) : /home/xxxx/.config/xfce4/xfconf/xfce-perchannel-xml

Dès lors, sans crainte de voir planter votre session sur l'instant, ( pas de risque de subir un BSOD à la windows ) vous renommez votre “xfce4-panel.xml” en “old_ xfce4-panel.xml”. Voire, vous pouvez créer un dossier ( qu'importe son nom ) à cet endroit même et le déplacer dedans, si vous craignez vraiment de vous embrouiller dans vos manipulations si vous n'êtes pas expert.

Voilà qui est fait ! A présent passons au point 4.

- - -

4 - En mode ROOT, copiez le fichier “xfce4-panel.xml” de “user” vers le dossier identique de votre utilisateur. Ensuite, grace au clic droit de la sourie ( mode gestionnaire de fichier, bien sûr ), rendez-vous dans “propriété” puis dans “permissions”. De là, dans “appartenance”, il ne vous reste plus qu'à renommer les deux fois “user” par le pseudo de votre profil [ attention de respecter la casse, c'est à dire les majuscules et les minuscules... même s'il y a des chances que tout soit déjà en minuscule ! ]

- - -

5 - Vous pouvez à présent sortir de votre gestionnaire [ ctrl+q ] ou de votre terminal pour les plus experts d'entre vous qui ont tenté ce tuto en ligne de commande et vous pouvez redémarrer votre session.

Normalement à la réouverture de celle-ci sous le pseudo de l'utilisateur que vous souhaitez réparer ( donc, pas “user” ! ), vous devriez constater le retour des 3 symboles que sont le petit trait, le carré et la croix ! Ô joie !

Accessoirement, vous pourrez aussi constater la perte de certaines icônes ou autres personnalisations, mais ne vous inquiétez pas. Si vous avez réalisé scrupuleusement le backup du  “xfce4-panel.xml” endommagé selon le point 3, sachez qu'à l'intérieur se trouve encore les lignes qui permettent, en les recopiant à la main, de faire réapparaître tout ou partie de votre customisation.

* * *

Etape C - Comment supprimer l'utilisateur de test devenu inutile ?
En effet, nous voilà avec une installation réparée, mais aussi un profil d'utilisateur qui ne nous sert plus à rien. Pour le supprimer définitivement, voici comment faire. Il vous suffit de taper la ligne de commande suivante en mode ROOT dans un terminal : deluser user --remove-all-files

Bien sûr, “user” doit correspondre au nom temporaire que vous avez choisi ( "toto ; "test" ) ! Attention... Ne choisissez jamais le nom du profil que vous venez de réparer !

A partir de ce moment, il vous sera proposé de détruire l'ensemble des données de cet utilisateur. Sachez que cette destruction est sans retour.

Voilà, nous sommes arrivés au terme de ce tutoriel, et j'espère sincèrement qu'il vous sera très utile ! N'hésitez pas non plus à le partager. Les versions françaises et anglaises sont libres d'être copiées.

Version Linux utilisée : Debian 8 Jessie ( 8.6 ) amd64
Gestionnaire de fenètres : XFCE4
Gestionnaire de fichier : Krusader

* * * FIN

- - -

23-12-16 - By Tegenaria ( https://debian-facile.org )

Here a ligher English version for anglophon people who need to come here. ( By advance, sorry if sometimes my English is mistaken... )


SYMPTOMS
Tuesday evening, after a normal ignition of my PC, I met windows devoided some closing means. That is to say, in a common language shared between windows-mac and linux users, the loss of icons allowing the reduction, maximizition and the windows closing. So, something that everybody uses et knows without to be a half geek.


Sure, the keyboard shortcut “ctrl+q” helped me alot for two days, but beyond, I even so looked for an efficient and stout solution. 

* * *

Stage A - The unfortunate search
I obviously began to looking for a solution on the francophon and anglophon internet. Quickly it appeared commands “xfwm4 --replace” ; “metacity --replace” and other variants. But, none has been the good tip.


* * *

Stage B - Mac Gyver in action...
( It's the real tutorial beginning. )


- - -

1 - You need to create a new user profile in the "home" repertory with the “adduser”command. ( for convenience, this new user is called “user” in this tutorial, but you could to name it “toto” or “test”, that is not important. )

Here the command to write in the terminal with the ROOT profile : adduser user
( then, you can to specify a password and complete if you only want others demands such “first name”, “last name” that anyway have no effect for the following. )


- - -

2 - When this new user “ user” is created, you have to go in this folder with the ROOT profile, whethet over the terminal or a files manager such Thunar or Krusader, that is even so easier. ( think to show hidden folders ! ) :
/home/user/.config/xfce4/xfconf/xfce-perchannel-xml


Now, in the files list, you have looking for and discern “xfce4-panel.xml”. For the moment, it's neither a matter to modify nor to move it. Regarding this, you have to read after the point 3 that is below.

- - -

3 - It's time to make backup concerning your partially defective file in your usual profil ! Because, it's better to do it and keeping possibilities to back... For that, with the ROOT profil or with the normal user profile, you have to go in the twin repertory of your favourite profile, following this written command that you have to complete by the good nickname ( and inevitably, te replace the xxxx of this example : /home/xxxx/.config/xfce4/xfconf/xfce-perchannel-xml

Thus, whitout the fear to see your session become corrupted immediately ( no risk to have a BSOD like the Windows OS ) you can re-name your “xfce4-panel.xml” according to “old_ xfce4-panel.xml”. Likewise, you can to createa folder ( any name is possible ) in this place and move the old file inside if you are not sure regarding manipulations that you need to do without to be an expert.

That is done ! Now, it's time to read the point 4.

- - -

4 - According to the ROOT profile, copy the “xfce4-panel.xml” from “user” toward the equal folder of your favourite user profile. Then, by the mouse's right clic ( into a files manager, of course ), you have to choice “properties” and afterwards “permissions”. From here, in “belonging/membership”, you have to re-name twice “user” by your favourite profile's nickname [ to become the file owner ] [ be careful. Pay attention concerning uppercase and lowercase... even if it's already possible that everything is by lowercase ! ]

- - -

5 - You can from now to exit from your files manager [ ctrl+q ] or from your terminal for mostly experts between yourselves who have tested this tutorial by the command lines and you can to restart your session.

Normally, from the reopening of this one under the favourite nickname profile that you want to repair ( so, never “user” from the example ! ), you have to remark the three symbols return that are the small dash, the squarre, and the cross ! Enjoy !

Occasionally, you can note the loss of some icons and others customizations, but don't worry. If you made precisely the backup of the damaged “xfce4-panel.xml” according to the point 3. know that, inside this file, there are still all lines to allow, by copying some of them by hand, to reappear all or a part of your customization.

* * *

Stage C - How to remove the test user who became useless ?
Indeed, we re-found a clean installation, however we also have an useless user profile now. To defitively remove it, here how to process. You just have to type this following command line with the ROOT profile into a terminal : deluser user --remove-all-files


Of course, “user” matches to the temporary name that you chosen ( "toto ; "test" ) ! Be aware... Never choice your favourite nickname profil that you repaired !

From this moment, a message will propose to destroy all of this user's datas. Know that this destruction is absolutely definitive.

Voilà, we are at the end of this tutorial, and I sincerily hope that it will be quite convenient ! Don't hesitate to share it anymore. French and English version are completely free to be copied.

Used Linux version: Debian 8 Jessie ( 8.6 ) amd64
Windows manager : XFCE4
Files manager : Krusader


* * * END 

Dernière modification par tegenaria (23-12-2016 15:21:22)

Hors ligne

#2 29-12-2016 02:15:45

kawer
Membre
Lieu : Earth
Distrib. : Debian Stable
Noyau : Current
(G)UI : Xfce
Inscription : 08-10-2013

Re : [ SOLUTION ] Debian 8 + xfwm4 probleme [ French/English ]

Sur xfce4 il suffit de valider xfwm4 dans un petit alt+F2 wink

Songez à ce que vous avez été, à ce que vous êtes, et à ce que vous serez un jour, et vous deviendrez humbles. Saint Vincent de Paul
La maladie la plus constante et la plus mortelle, mais aussi la plus méconnue de toute société, est l’indifférence. Abbé Pierre
Carpe diem, quam minimum credula postero. Horace

Hors ligne

Pied de page des forums