Adding entries back to kdm menu
I upgraded to KDE 3.1.95 and in the process lost entries for Gnome, IceWM, and others in KDM. Is there an _easy_ way I'm unaware of to add these back, or do I need to mess with some config files? -- Cheers, Trey --- In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time. --Edward P. Tryon
On Sunday 25 January 2004 02:35, Trey Sizemore wrote:
I upgraded to KDE 3.1.95 and in the process lost entries for Gnome, IceWM, and others in KDM. Is there an _easy_ way I'm unaware of to add these back, or do I need to mess with some config files?
kdm in 3.1.95 uses a completely different method of defining sessions compared to earlier versions. What does "grep -v ^# /opt/kde3/share/config/kdm/kdmrc" say? Where are the icewm and gnome-session executables installed?
On Sat, 2004-01-24 at 20:46, Anders Johansson wrote: <snip>
What does "grep -v ^# /opt/kde3/share/config/kdm/kdmrc" say?
Here's the output: trey@linux:~> grep -v ^# /opt/kde3/share/config/kdm/kdmrc [General] AuthDir=/var/lib/xdm/authdir/authfiles/ ConfigVersion=2.0 PidFile=/var/run/kdm.pid Xservers=/etc/opt/kde3/share/config/kdm/Xservers [Shutdown] HaltCmd=/sbin/halt LiloCmd=/sbin/lilo LiloMap=/boot/map RebootCmd=/sbin/reboot UseLilo=false [X-*-Core] AllowNullPasswd=true AllowRootLogin=true AllowShutdown=All AutoReLogin=false Reset=/etc/X11/xdm/Xreset Resources=/etc/X11/xdm/Xresources Session=/etc/X11/xdm/Xsession Setup=/opt/kde3/share/config/kdm/Xsetup Startup=/etc/X11/xdm/Xstartup TerminateServer=true [X-*-Greeter] AntiAliasing=true BackgroundCfg=/etc/opt/kde3/share/config/kdm/kdmrc ColorScheme= DefaultUser=privoxy EchoMode=OneStar FaceSource=PreferAdmin FailFont=Nimbus Sans l,14,-1,5,74,0,0,0,0,0 FocusPasswd=false GUIStyle=Keramik GreetFont=Nimbus Sans l,20,-1,5,48,0,0,0,0,0 GreetString=SuSE Linux (%h) GreeterPosFixed=false GreeterPosX=100 GreeterPosY=100 HiddenUsers=nobody,privoxy,radiusd,vdr Language=en_US LogoArea=Clock LogoPixmap= MaxShowUID=65000 MinShowUID=100 PreselectUser=None SelectedUsers= SessionTypes=kde,windowmaker,mwm,twm,failsafe ShowUsers=NotHidden SortUsers=true StdFont=Nimbus Sans l,14,-1,5,48,0,0,0,0,0 UseBackground=true [X-:*-Core] AllowNullPasswd=true AllowRootLogin=true AllowShutdown=All NoPassEnable=false NoPassUsers= [X-:0-Core] AutoLoginEnable=false AutoLoginUser=privoxy [X-:0-Greeter] EnableChooser=false LogSource=/dev/xconsole ShowLog=true [Xdmcp] Enable=false Willing=/etc/X11/xdm/Xwilling Xaccess=/etc/X11/xdm/Xaccess
Where are the icewm and gnome-session executables installed?
Looks like several places for IceWM: icewm: /usr/X11R6/bin/icewm /usr/bin/X11/icewm /usr/X11/bin/icewm gnome-session: /opt/gnome/bin/gnome-session -- Cheers, Trey --- "There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another which states that this has already happened." --Douglas Adams
On Sunday 25 January 2004 03:26, Trey Sizemore wrote:
On Sat, 2004-01-24 at 20:46, Anders Johansson wrote: <snip>
What does "grep -v ^# /opt/kde3/share/config/kdm/kdmrc" say?
Here's the output:
<snip> That's the old config file format. You'll need to run (as root) /opt/kde3/bin/genkdmconf to create the new format. Then you'll need to restart kdm
Where are the icewm and gnome-session executables installed?
Looks like several places for IceWM:
icewm: /usr/X11R6/bin/icewm /usr/bin/X11/icewm /usr/X11/bin/icewm
gnome-session: /opt/gnome/bin/gnome-session
OK, after you generate the config file, you'll need to edit it (/opt/kde3/share/config/kdm/kdmrc), find the line with UserPath and add /opt/gnome/bin to it.
On Sat, 2004-01-24 at 21:36, Anders Johansson wrote:
That's the old config file format. You'll need to run (as root) /opt/kde3/bin/genkdmconf to create the new format. Then you'll need to restart kdm
Dumb question, but how do I restart kdm (shutdown & restart or...)?
OK, after you generate the config file, you'll need to edit it (/opt/kde3/share/config/kdm/kdmrc), find the line with UserPath and add /opt/gnome/bin to it.
How about icewm? I assume there can be multiple UserPaths on that line. How are they separated? -- Cheers, Trey --- "There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another which states that this has already happened." --Douglas Adams
On Sunday 25 January 2004 03:50, Trey Sizemore wrote:
On Sat, 2004-01-24 at 21:36, Anders Johansson wrote:
That's the old config file format. You'll need to run (as root) /opt/kde3/bin/genkdmconf to create the new format. Then you'll need to restart kdm
Dumb question, but how do I restart kdm (shutdown & restart or...)?
You can drop to a text console with ctrl-alt-f1, log in as root and run "rcxdm stop" followed by "rcxdm start". That should bring you back to the kdm screen, but if it doesn't, hit ctrl-alt-f7 to get back
OK, after you generate the config file, you'll need to edit it (/opt/kde3/share/config/kdm/kdmrc), find the line with UserPath and add /opt/gnome/bin to it.
How about icewm?
It should work directly, as /usr/X11R6/bin is there by default
I assume there can be multiple UserPaths on that line. How are they separated?
with : There are a few paths already by default, so you can see the format
On Sat, 2004-01-24 at 21:49, Anders Johansson wrote:
On Sunday 25 January 2004 03:50, Trey Sizemore wrote:
On Sat, 2004-01-24 at 21:36, Anders Johansson wrote:
That's the old config file format. You'll need to run (as root) /opt/kde3/bin/genkdmconf to create the new format. Then you'll need to restart kdm
I'm getting this message: linux:/home/trey # /opt/kde3/bin/genkdmconf Information: reading old kdmrc /opt/kde3/share/config/kdm/kdmrc (from kde >= 2.2.x) Information: old kdmrc is from kde >= 3.1 (config version 2.1) Warning: both local and foreign scripts referenced. Won't touch any. -- Cheers, Trey --- If there is a sin against life, it consists perhaps not so much in despairing of life as in hoping for another life and in eluding the implacable grandeur of this life. --Albert Camus
On Sunday 25 January 2004 04:10, Trey Sizemore wrote:
On Sat, 2004-01-24 at 21:49, Anders Johansson wrote:
On Sunday 25 January 2004 03:50, Trey Sizemore wrote:
On Sat, 2004-01-24 at 21:36, Anders Johansson wrote:
That's the old config file format. You'll need to run (as root) /opt/kde3/bin/genkdmconf to create the new format. Then you'll need to restart kdm
I'm getting this message:
linux:/home/trey # /opt/kde3/bin/genkdmconf Information: reading old kdmrc /opt/kde3/share/config/kdm/kdmrc (from kde >= 2.2.x) Information: old kdmrc is from kde >= 3.1 (config version 2.1) Warning: both local and foreign scripts referenced. Won't touch any.
Yep, that's normal. You should have the new config format now
On Sat, 2004-01-24 at 22:06, Anders Johansson wrote:
Yep, that's normal. You should have the new config format now
Once I've made the edits, how will the entries appear in kdm? For example, IceWM was not appearing before and its path was already in the config file. Thanks. -- Cheers, Trey --- Thieves respect property; they merely wish the property to become their property that they may more perfectly respect it. -- G.K. Chesterton, "The Man Who Was Thursday"
On Sat, 2004-01-24 at 22:06, Anders Johansson wrote:
Yep, that's normal. You should have the new config format now
I put the path in the config file as you mentioned, but I don't see Gnome showing up as an available session in KDM. Is there another step that I need to do? Thanks. -- Cheers, Trey --- If there is a sin against life, it consists perhaps not so much in despairing of life as in hoping for another life and in eluding the implacable grandeur of this life. --Albert Camus
On Sunday 25 January 2004 16.12, Trey Sizemore wrote:
On Sat, 2004-01-24 at 22:06, Anders Johansson wrote:
Yep, that's normal. You should have the new config format now
I put the path in the config file as you mentioned, but I don't see Gnome showing up as an available session in KDM. Is there another step that I need to do?
There shouldn't be. What does "grep -v ^# /opt/kde3/share/config/kdm/kdmrc" look like now? And check that you have a bunch of session scripts in /opt/kde3/share/apps/kdm/sessions/
On Sun, 2004-01-25 at 10:46, Anders Johansson wrote: <snip>
What does "grep -v ^# /opt/kde3/share/config/kdm/kdmrc" look like now? And check that you have a bunch of session scripts in /opt/kde3/share/apps/kdm/sessions/
linux:~ # grep -v ^# /opt/kde3/share/config/kdm/kdmrc [General] ConfigVersion=2.1 Xservers=/opt/kde3/share/config/kdm/Xservers PidFile=/var/run/kdm.pid AuthDir=/var/lib/xdm/authdir/authfiles/ [Xdmcp] Enable=false Xaccess=/opt/kde3/share/config/kdm/Xaccess Willing=/opt/kde3/share/config/kdm/Xwilling [Shutdown] HaltCmd=/sbin/halt RebootCmd=/sbin/reboot UseLilo=false LiloCmd=/sbin/lilo LiloMap=/boot/map [X-*-Core] TerminateServer=true Resources=/opt/kde3/share/config/kdm/Xresources Setup=/opt/kde3/share/config/kdm/Xsetup Startup=/etc/X11/xdm/Xstartup Reset=/etc/X11/xdm/Xreset Session=/opt/kde3/share/config/kdm/Xsession UserPath=/opt/kde3/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/opt/gnome/bin SystemPath=/opt/kde3/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin AutoReLogin=false AllowRootLogin=true AllowNullPasswd=true AllowShutdown=All [X-*-Greeter] GUIStyle=Keramik ColorScheme= LogoArea=Clock LogoPixmap= GreeterPosFixed=false GreeterPosX=100 GreeterPosY=100 GreetString=SuSE Linux (%h) GreetFont=Nimbus Sans l,20,-1,5,48,0,0,0,0,0 StdFont=Nimbus Sans l,14,-1,5,48,0,0,0,0,0 FailFont=Nimbus Sans l,14,-1,5,74,0,0,0,0,0 AntiAliasing=true Language=en_US ShowUsers=NotHidden SelectedUsers= HiddenUsers=privoxy,radiusd,vdr MinShowUID=100 MaxShowUID=65000 SortUsers=true FaceSource=PreferAdmin PreselectUser=None DefaultUser=privoxy FocusPasswd=false EchoMode=OneStar UseBackground=true BackgroundCfg=/opt/kde3/share/config/kdm/kdmrc ForgingSeed=1075000112 [X-:*-Core] AllowShutdown=All AllowRootLogin=true AllowNullPasswd=true NoPassEnable=false NoPassUsers= [X-:*-Greeter] LoginMode=DefaultLocal [X-:0-Core] AutoLoginEnable=false AutoLoginUser=privoxy [X-:0-Greeter] LoginMode=LocalOnly And I do have a lot of session scripts in the kdm directory (including Gnome). It's just that when I booted up this morning, kdm did not list Gnome (or Xfce for that matter) in the list of available sessions. Do you have to 'turn these on' somehow, or otherwise 'enable' them? Thanks again. -- Cheers, Trey --- There is an innocence in admiration; it is found in those to whom it has not yet occurred that they, too, might be admired some day. - Friedrich Nietzsche
On Sunday 25 January 2004 16.58, Trey Sizemore wrote: <snip> hm, your config file is exactly identical to mine
And I do have a lot of session scripts in the kdm directory (including Gnome). It's just that when I booted up this morning, kdm did not list Gnome (or Xfce for that matter) in the list of available sessions. Do you have to 'turn these on' somehow, or otherwise 'enable' them?
No, the idea behind the new scheme is that there is a script pre-written for every window manager under the sun, and all you have to do is to install it in a directory where kdm can see it, and it should show up automatically in the Session Type submenu. Right now I can't immediately see why yours doesn't work though. AFAICS it should
On Sun, 2004-01-25 at 11:04, Anders Johansson wrote:
On Sunday 25 January 2004 16.58, Trey Sizemore wrote:
<snip>
hm, your config file is exactly identical to mine
And I do have a lot of session scripts in the kdm directory (including Gnome). It's just that when I booted up this morning, kdm did not list Gnome (or Xfce for that matter) in the list of available sessions. Do you have to 'turn these on' somehow, or otherwise 'enable' them?
No, the idea behind the new scheme is that there is a script pre-written for every window manager under the sun, and all you have to do is to install it in a directory where kdm can see it, and it should show up automatically in the Session Type submenu.
Right now I can't immediately see why yours doesn't work though. AFAICS it should
Interesting... Maybe a bug? I'll keep digging. Thanks for your help Anders. -- Cheers, Trey --- men fear thought as they fear nothing else on earth --more than ruin --more even than death. thought is subversive and revolutionary, destructive and terrible, thought is merciless to privilege, established institutions, and comfortable habit. thought looks into the pit of hell and is not afraid. thought is great and swift and free, the light of the world, and the chief glory of man. --bertrand russell
participants (2)
-
Anders Johansson
-
Trey Sizemore