Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto] Problemi con gdm
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun May 09, 2004 1:46 pm    Post subject: [risolto] Problemi con gdm Reply with quote

Ho dei problemi a far capire a gdm che sul mio sistema ho installato altri window managers (windowmaker, kde, enlightment); infatti non me li trova e mi consente di lanciare unicamente gnome (con le sue varianti, failsafe etc...)

Ho scoperto (ma non ho ancora conferme) che il problema potrebbe essere che le versioni nuove di gdm non leggono più la directory /etc/X11/Sessions ma /usr/share/xsessions, nella quale compare solo il file gnome.desktop che ha un formato diverso rispetto agli script residenti nella directory originale

Ora mi trovo di fronte al dilemma di
A: scrivere gli script per gli altri wm :(
B: trovare il modo per farli scrivere a qualche utility eventuale :wink:
C: cambiare verso kdm (che gaficamente mi piace meno ma a quanto pare è più serio) :?

Prima di cimentarmi nell'opzione A volevo sapere se qualcuno ha già scritto tali script o se c'è un modo per farli generare automaticamente da gdm; mi sembrerebbe strano che non ci fosse un opzione del setup per cercare i wm da lanciare...


Last edited by Cazzantonio on Tue May 18, 2004 10:12 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Sun May 09, 2004 1:49 pm    Post subject: Reply with quote

Controlla che file hai nella cartella /etc/X11/Sessions/ se ti manca quello del wm che vuoi lanciare basta che crei un file con il nome del tuo wm e all'interno ci metti ad esempio
Code:
/etc/X11/Sessions/fluxbox

Poi rendi eseguibile il file restart X e vedi se va.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun May 09, 2004 1:54 pm    Post subject: Reply with quote

Nella cartella /etc/X11/Sessions ci sono tutti gli script del caso, non è quello il problema...
Il fatto è che gdm se ne sbatte di quelli script e li cerca in /usr/share/xsessions, dove compare solo quello di gnome in un formato (*.desktop) completamente diverso da quelli in /etc/X11/Sesions
Il mio problema è di trovare questi nuovi script senza dovermeli scrivere ex novo a mano......

P.S.
(che gdm cerchi in /usr/share/xsessions l'ho scoperto girando nei forum, e vista la natura del problema mi sembra plausibilissimo)
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun May 09, 2004 2:21 pm    Post subject: Risolto Reply with quote

Ho scelto alla fine l'opzione A

Ecco un'esempio di script per windowmaker
Create un file *.desktop e copiateci le righe sottostanti
per altri wm cambiate nome, commento come vi pare e settate Exec=<launcher del wm> (per esempio per gnome è "gnome-session" e per kde è "startkde")



[Desktop Entry]
Encoding=UTF-8
Name=WindowMaker
Comment=This session logs you into WindowMaker
Exec=wmaker
TryExec=wmaker
# no icon yet, only the top three are currently used
Icon=
Type=Application




Mi stupisce che nessuno nel forum ne parlasse; forse che tutti usino kdm?
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun May 09, 2004 2:48 pm    Post subject: Reply with quote

Anche se non c'entra nulla posto qui anche la modifica da fare a /etc/runlevels/<runlevelname>/xdm
per evitare l'errore in shutdown (che dipende dal fatto che gdm si stoppa prima che lo faccia l'init)
Non l'ho scritto io ma l'ho raccattato da qualche post a giro per il forum, lo metto qui solo perchè chi legge questo post possa trovare risposta ai principali (unici) problemi di gdm in cui mi sono imbattuto
Cambiate lo script di xdm come segue:

FROM...

if [ "$(ps -A | grep -e "${myservice}")" ]
then
start-stop-daemon --stop --quiet \
--exe ${myexe} &>/dev/null

retval=$?
else
retval=1
fi

#switch back to original vt
chvt "${curvt}" &>/dev/null
eend ${retval} "Error stopping ${myservice}."

return ${retval}




TO....


if [ "$(ps -A | grep -e "${myservice}")" ]
then
start-stop-daemon --stop --quiet \
--exe ${myexe} &>/dev/null

retval=$?
else
# Drew's mods, for a prettier exit....
retval=0
chvt "${curvt}" &>/dev/null
echo " ${myservice} already stopped."
eend 0
return ${retval}
fi

#switch back to original vt
chvt "${curvt}" &>/dev/null
eend ${retval} "Error stopping {myservice}."

return ${retval}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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