Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kdm - gdm - xdm] Plus de Kde ni de Gnome (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
XtremXpert
n00b
n00b


Joined: 14 Oct 2003
Posts: 46
Location: Québec, Canada

PostPosted: Sun Nov 02, 2003 5:23 pm    Post subject: [kdm - gdm - xdm] Plus de Kde ni de Gnome (résolu) Reply with quote

Bonjour,

J'ai gaffé, je le sais. Voici le trouble. J'ai, par erreur (voyons je suis pas maso) tout les fichiers de mon /etc/X11. Bon, vous pouvez imaginez le résultat. Étant encore assez newb avec linux, j'ai essayé la techinque windows, soit, je réinstall les applications en défaut (sans les désinstalle avant). Je ré-emerge donc xfree, gnome et kde. J'ajoute égallement fluxbox tant qu'a y être.

Après ça, je lance gdm (ou autre) et je peux lancer fluxbox mais pas les autres (sauf avec gdm qui me permet de lancer Gnome secour).

A part faire le stupide emerge unmerge, il doit y avoir une solution plus simple.

Merci d'avance.
_________________
XtremXpert
Abenclo AT hotmail

Quote:
Pour obtenir un Linux mature, ça ne prends pas plus de programmeurs, ça prends plus d'utilisateurs.


Last edited by XtremXpert on Mon Nov 03, 2003 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Sun Nov 02, 2003 6:56 pm    Post subject: Reply with quote

au pif : un etc-update ça arrangerait pas le pb?

j'ai pas envie de testé de virer /etc/X11 pour voir si cette commande arrange les choses :lol:

sinon : methodes bourrins...ça marche des fois.

enfin tu as raison il doit y avoir plus doux!
Back to top
View user's profile Send private message
djf_jeff
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 174
Location: Quebec

PostPosted: Sun Nov 02, 2003 6:57 pm    Post subject: Reply with quote

Ce qu'il te manque, s'est les fichiers dans /etc/X11/Sessions

Pour Gnome, tu peux essayer de créé ce fichier là nommer Gnome :

Code:

#!/bin/sh

# Great new Gnome2 feature, AA
# We enable this by default

export GDK_USE_XFT=1

for errfile in "$HOME/.gnomerc-errors" "${TMPDIR-/tmp}/gnomerc-$USER" "/tmp/gnomerc-$USER"
do
   if ( cp /dev/null "$errfile" 2> /dev/null )
   then
      chmod 600 "$errfile"
      exec > "$errfile" 2>&1
      break
   fi
done
#
#  Distributors:
#  You should modify the paths here to fit your distro
#  If you need to do so, send me (jirka@5z.com) a patch
#  and I'll try to make the script detect the distro stuff
#

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

rh6sysresources=/etc/X11/xinit/Xresources
rh6sysmodmap=/etc/X11/xinit/Xmodmap

if [ -x "$HOME/.gnomerc" ]; then
   command="$HOME/.gnomerc"
elif [ -x /etc/X11/gdm/gnomerc ]; then
   command="/etc/X11/gdm/gnomerc"
else
   # as fallback in case the config is screwed
   command=`which gnome-session`
fi

sshagent=`which ssh-agent`
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
    command="$sshagent -- $command"
fi

# merge in defaults
if [ -f "$rh6sysresources" ]; then
    xrdb -merge "$rh6sysresources"
fi

if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
    setxkbmap `cat "$sysxkbmap"`
    XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
    setxkbmap `cat "$userxkbmap"`
    XKB_IN_USE=yes
fi

#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" ] && [ ! -L /etc/X11/X ]; then
    if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
       xkbsymbols=`sed -n -e 's/^[     ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
       if [ -n "$xkbsymbols" ]; then
           setxkbmap -symbols "$xkbsymbols"
           XKB_IN_USE=yes
       fi
    fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    if [ -f "$rh6sysmodmap" ]; then
       xmodmap "$rh6sysmodmap"
    fi

    if [ -f "$sysmodmap" ]; then
       xmodmap "$sysmodmap"
    fi

    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for i in /etc/X11/xinit/xinitrc.d/* ; do
        if [ -x "$i" ]; then
       . "$i"
        fi
    done
fi

exec $command


Je ne sais pas si ca va marcher, s'est un copier/coller de mon fichier. Y'a peut-être des trucs à adapter pour ton système mais rien perd d'essayer.

Si ça marche, je pourrai te passer ceux de kde, enlightenment, etc
Back to top
View user's profile Send private message
XtremXpert
n00b
n00b


Joined: 14 Oct 2003
Posts: 46
Location: Québec, Canada

PostPosted: Sun Nov 02, 2003 7:37 pm    Post subject: Reply with quote

Merci djf_jeff, mon Gnome marche de nouveau. J'accepte l'offre pour le fichier KDE. A moins que tu connaisse la manière de le faire recréer par le système, Le rentrer manuellement puis mettre les bonnes autorisations (chmod 755) marche parfaitement.

Je me répète peut-être, mais Dieu que ce forum est actif. Avoir des réponses a ce type de problème un dimanche, on voit pas ca sur le mandrakeclub.


Merci encore
_________________
XtremXpert
Abenclo AT hotmail

Quote:
Pour obtenir un Linux mature, ça ne prends pas plus de programmeurs, ça prends plus d'utilisateurs.
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Sun Nov 02, 2003 8:51 pm    Post subject: Reply with quote

comme quoi y en a qui n'ont rien d'autre à foutres de leur dimanche...(dixit : moi même) ouh la feignasse! :lol:

(surtout que j'apporte pas vraiment se soluce en plus!)
Back to top
View user's profile Send private message
djf_jeff
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 174
Location: Quebec

PostPosted: Mon Nov 03, 2003 5:00 am    Post subject: Reply with quote

Heureux pour toi que ca marche!

Non, je ne sais pas comment le regénérer automatiquement. Peut-être que réemerge GDM pourrait faire l'affaire.

Entk, voici mon fichier pour kde-3.1.2

Code:

#!/bin/sh
/usr/kde/3.1/bin/startkde


Pas mal plus petit! ;)
Back to top
View user's profile Send private message
XtremXpert
n00b
n00b


Joined: 14 Oct 2003
Posts: 46
Location: Québec, Canada

PostPosted: Mon Nov 03, 2003 11:44 pm    Post subject: Reply with quote

Merci, ca a régler mon problème
_________________
XtremXpert
Abenclo AT hotmail

Quote:
Pour obtenir un Linux mature, ça ne prends pas plus de programmeurs, ça prends plus d'utilisateurs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum