Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2002 21:37:27 +0200
From:      Ian Barnes <ian@cerebellum.za.net>
To:        freebsd-questions@freebsd.org
Subject:   KDM Error
Message-ID:  <200206182137.27855.ian@cerebellum.za.net>

next in thread | raw e-mail | index | archive | help
Hi,

First off, this is a long email, so if you dont like long emails, then dont 
read. Anyone that is willing to read, my thanks to you.

I wonder if anyone can help me. I am trying to run KDM for a FreeBSD 4.6 
Workstation running KDE3.0. I changed the ttys config to read kdm -nodaemon 
instead of xdm -nodaemon. When i boot up, the X server launches itself, but 
keeps crashing. It might stay in X for 2-3 seconds, before crashing, and thus 
creating a cycle you can not escape. I can run X fine, by running startx.

I will include all config files, so could someone please give me some pointers 
why it is doing this.

Config File : /etc/XF86Config 
<snip>
Section "Files"
   RgbPath    "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/X11R6/lib/X11/fonts/local"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
EndSection

Section "ServerFlags"
EndSection

Section "Keyboard"
   Protocol        "Standard"
   XkbRules        "xfree86"
   XkbModel        "pc101"
   XkbLayout       "us"
EndSection

Section "Pointer"
   Protocol        "Microsoft"
   Device          "/dev/mouse"
EndSection

Section "Monitor"
   Identifier      "Primary Monitor"
   VendorName      "Unknown"
   ModelName       "Unknown"
   HorizSync       31.5-48.4
   VertRefresh     50-90
   Modeline  "1024x768"   65.00 1024 1048 1192 1344 768 771 777 806 -hsync 
-vsync
EndSection

Section "Device"
   Identifier      "Primary Card"
   VendorName      "Unknown"
   BoardName       "RIVA TNT2"


EndSection

Section "Screen"
   Driver          "Accel"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 32
   SubSection "Display"
      Depth        8
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "SVGA"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 32
   SubSection "Display"
      Depth        8
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA16"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        4
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA2"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "Mono"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1024x768"
   EndSubSection
EndSection
</snip


Config file: /usr/local/share/config/kdm/*
<snip2>
**********************************************
kdmrc
**********************************************

# Greeter background
# XXX do this on a per-display basis: should be [X-*-Desktop]
# HELPME: I need help with kbackgroundrenderer!  -- ossi@kde.org
[Desktop0]
BackgroundMode=Wallpaper
BlendBalance=100
BlendMode=NoBlending
ChangeInterval=60
Color1=30,114,160
Color2=192,192,192
CurrentWallpaper=0
LastChange=0
MinOptimizationDepth=1
MultiWallpaperMode=NoMulti
Pattern=
Program=
UseSHM=false
ReverseBlending=false
Wallpaper=default_blue.jpg
WallpaperList=
WallpaperMode=Scaled

[General]
# If "false", KDM won't daemonize after startup. Use this, if you start
# KDM from inittab with the respawn instruction. Default is true.
#DaemonMode=false
# If the value starts with a slash (/), it specifies the file, where X-servers
# to be used by KDM are listed; the file is in the usual XDM-Xservers format.
# Otherwise it's interpreted like one line of the Xservers file, i.e., it
# specifies exactly one X-server.
# Default is ":0 local /usr/X11R6/bin/X"
# XXX i'm planning to absorb this file into kdmrc, but i'm not sure how to
# do this best.
Xservers=/usr/local/share/config/kdm/Xservers
# Where KDM should store its PID. Default is "" (don't store)
PidFile=/var/run/kdm.pid
# Whether KDM should lock the pid file to prevent having multiple KDM
# instances running at once. Leave it "true", unless you're brave.
#LockPidFile=false
# Where to store authorization files. Default is /var/run/xauth
#AuthDir=/tmp
# Whether KDM should automatically re-read configuration files, if it
# finds them having changed. Just keep it "true".
#AutoRescan=false
# Additional environment variables KDM should pass on to kdm_config, 
kdm_greet,
# Xsetup, Xstartup, Xsession, and Xreset. LD_LIBRARY_PATH is a good candidate;
# otherwise it shouldn't be necessary very often.
#ExportList=SOME_VAR,ANOTHER_IMPORTANT_VAR
# Where KDM should fetch entropy from. Default is /dev/mem.
#RandomFile=
# Where the command FiFos should be created. Make it empty to disable
# the FiFos. Default is /var/run/xdmctl
#FifoDir=/tmp
# To which group the command FiFos should belong.
# Default is -1 (effectively root)
#FifoGroup=xdmctl

[Xdmcp]
# Whether KDM should listen to XDMCP requests. Default is true.
Enable=false
# The UDP port KDM should listen on for XDMCP requests. Don't change the 177.
#Port=177
# File with the private keys of X-terminals. Required for XDM authentication.
# Default is /usr/local/share/config/kdm/kdmkeys
#KeyFile=
# XDMCP access control file in the usual XDM-Xaccess format.
# Default is /usr/local/share/config/kdm/Xaccess
# XXX i'm planning to absorb this file into kdmrc, but i'm not sure how to
# do this best.
Xaccess=/usr/local/share/config/kdm/Xaccess
# Number of seconds to wait for display to respond after the user has
# selected a host from the chooser. Default is 15.
#ChoiceTimeout=10
# Strip domain name from remote display names if it is equal to the local
# domain. Default is true
#RemoveDomainname=false
# Use the numeric IP address of the incoming connection instead of the
# host name. Use this on multihomed hosts. Default is false
#SourceAddress=true
# The program which is invoked to dynamically generate replies to XDMCP
# BroadcastQuery requests.
# By default no program is invoked and "Willing to manage" is sent.
Willing=/usr/local/share/config/kdm/Xwilling

[Shutdown]
# The command to run to halt the system. Default is /sbin/halt
#HaltCmd=
# The command to run to reboot the system. Default is /sbin/reboot
#RebootCmd=
# Whether one can shut down the system via the global command FiFo.
# Default is false
#AllowFifo=true
# Whether one can abort still running sessions when shutting down the system
# via the global command FiFo. Default is true
#AllowFifoNow=false

# Rough estimations about how many seconds KDM will spend at most on
# - opening a connection to the X-server (OpenTime):
#   OpenRepeat * (OpenTimeout + OpenDelay)
# - starting a local X-server (SeverTime): ServerAttempts * ServerTimeout
# - starting a display:
#   - local display: StartAttempts * (ServerTime + OpenTime)
#   - remote/foreign display: StartAttempts * OpenTime

# Core config for all displays
[X-*-Core]
# How long to wait before retrying to start the display after various
# errors. Default is 15
#OpenDelay=
# How long to wait before timing out XOpenDisplay. Default is 120
#OpenTimeout=
# How often to try the XOpenDisplay. Default is 5
#OpenRepeat=
# Try at most that many times to start a display. If this fails, the display
# is disabled. Default is 4
#StartAttempts=
# The StartAttempt counter is reset after that many seconds. Default is 30
#StartInterval=
# Ping remote display every that many minutes. Default is 5
#PingInterval=
# Wait for a Pong that many minutes. Default is 5
#PingTimeout=
# Restart instead of resetting the local X-server after session exit.
# Use it if the server leaks memory, etc. Default is false
#TerminateServer=true
# The signal needed to reset the local X-server. Default is 1 (SIGHUP)
#ResetSignal=
# The signal needed to terminate the local X-server. Default is 15 (SIGTERM)
#TermSignal=
# Need to reset the X-server to make it read initial Xauth file.
# Default is false
#ResetForAuth=true
# Create X-authorizations for local displays. Default is true
#Authorize=false
# Which X-authorization mechanisms should be used.
# Default is XDM-AUTHORIZATION-1,MIT-MAGIC-COOKIE-1
#AuthNames=
# The name of this X-server's Xauth file. Default is "", which means, that
# a random name in the AuthDir directory will be used.
#AuthFile=
# Specify a file with X-resources for the greeter, chooser and background.
# The KDE frontend doesn't care for this, so you don't need it unless you
# use an alternative chooser or another background generator than kdmdesktop.
# Default is ""
#Resources=
# The xrdb program to use to read the above specified recources.
# Default is /usr/X11R6/bin/xrdb
#Xrdb=
# A program to run before the greeter is shown. You should start kdmdesktop
# there. Also, xconsole can be started by this script.
# Default is ""
Setup=/usr/local/share/config/kdm/Xsetup
# A program to run before a user session starts. You should invoke sessreg
# there and optionally change the ownership of the console, etc.
# Default is ""
Startup=/usr/local/share/config/kdm/Xstartup
# A program to run after a user session exits. You should invoke sessreg
# there and optionally change the ownership of the console, etc.
# Default is ""
Reset=/usr/local/share/config/kdm/Xreset
# The program which is run as the user which logs in. It is supposed to
# interpret the session argument (see SessionTypes) and start an appropriate
# session according to it.
# Default is /usr/X11R6/bin/xterm -ls -T
Session=/usr/local/share/config/kdm/Xsession
# The program to run if Session fails.
# Default is /usr/X11R6/bin/xterm
#FailsafeClient=
# The PATH for the Session program. Default is
# /bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
#UserPath=
# The PATH for Setup, Startup and Reset, etc. Default is
# /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
#SystemPath=
# The default system shell. Default is /bin/sh
#SystemShell=/bin/bash
# Where to put the user's X-server authorization file if ~/.Xauthority
# cannot be created. Default is /tmp
#UserAuthDir=
# The host chooser program to use.
# Default is /usr/local/bin/chooser
# XXX this is going to be integrated into the greeter (probably).
#Chooser=
# If "true", KDM will automatically restart a session after an X-server
# crash (or if it is killed by Alt-Ctrl-BackSpace). Note, that enabling
# this opens a security hole: a secured display lock can be circumvented.
# Default is false
#AutoReLogin=true
# Allow root logins? Default is true
AllowRootLogin=false
# Allow to log in, when user has set an empty password? Default is true
AllowNullPasswd=false
# Who is allowed to shut down the system. This applies both to the
# greeter and to the command FiFo. Default is All
# "None" - no "Shutdown..." button is shown at all
# "Root" - the root password must be entered to shut down
# "All" - everybody can shut down the machine (Default)
AllowShutdown=Root
# Who is allowed to abort all still running sessions when shutting down.
# Same options as for AllowShutdown. Default is All
#AllowSdForceNow=Root
# The default choice for the shutdown condition/timing.
# "Schedule" - shutdown after all sessions exit (possibly at once) (Default)
# "TryNow" - shutdown, if no sessions are open, otherwise do nothing
# "ForceNow" - shutdown unconditionally
#DefaultSdMode=ForceNow
# If this is false the user must select the shutdown condition/timing already
# in the shutdown dialog. If this is true he won't be bothered with the 
options,
# but will be asked what to do if sessions are actually open. Default is true
# NOTE: the interaction is currently not implemented. If this is set to true,
# a normal forced shutdown will happen (without caring for the AllowSdForceNow
# option!), i.e., KDM will behave exactly as before KDE 3.0.
#InteractiveSd=false
# Where (relatively to the user's home directory) to store the last
# selected session. Default is .wmrc
#SessSaveFile=

# Greeter config for all displays
[X-*-Greeter]
# Session types the users can select. It is advisable to have "default" and
# "failsafe" listed herein, which is also the default.
# Note, that the meaning of this value is entirely up to your Session program.
SessionTypes=default,kde,failsafe
# Widget Style of the greeter:
# Default, Windows, Platinum, Motif, MotifPlus, CDE, SGI, and any styles you
# may have installed, e.g., HighColor; Default is "Default"
#GUIStyle=Windows
# What should be shown righthand of the input lines:
# "Logo" - the image specified by LogoPixmap (Default)
# "Clock" - a neat analog clock
# "None" - nothing
#LogoArea=None
# The image to show when LogoArea=Logo. Default is kdelogo.png
#LogoPixmap=
# Normally, the greeter is centered on the screen. Use this, if you want
# it to appear elsewhere on the screen. Default is false
#GreeterPosFixed=true
#GreeterPosX=200
#GreeterPosY=100
# The headline in the greeter.
# The following character pairs are replaced:
# - %d -> current display
# - %h -> host name, possibly with domain name
# - %n -> node name, most probably the host name without domain name
# - %s -> the operating system
# - %r -> the operating system's version
# - %m -> the machine (hardware) type
# - %% -> a single %
# Default is "Welcome to %s at %n"
#GreetString=K Desktop Environment (%n)
# The font for the headline. Default is charter,24,bold
#GreetFont=charter,24,5,0,50,0
# The normal font used in the greeter. Default is helvetica,12
#StdFont=helvetica,12,5,0,50,0
# The font used for the "Login Failed" message. Default is helvetica,12,bold
#FailFont=helvetica,12,5,0,75,0
# Whether the fonts shown in the greeter should be antialiased. Default is 
false
#AntiAliasing=true
# What to do with the Num Lock modifier for the time the greeter is running:
# "On" -> - turn on
# "Off" -> - turn off
# "Keep" -> - don't change the state (Default)
#NumLock=Off
# Language to use in the greeter. Default is en_US
#Language=de_DE
# Specify, which user names (along with pictures) should be shown in the
# greeter.
# "NotHidden" - all users except those listed in HiddenUsers (Default)
# "Selected" - only the users listed in SelectedUsers
# "None" - no user list will be shown at all
#ShowUsers=None
# For ShowUsers=Selected. Default is ""
#SelectedUsers=root,johndoe
# For ShowUsers=NotHidden. Default is ""
HiddenUsers=adm,alias,amanda,apache,bin,bind,daemon,exim,falken,ftp,games,gdm,gopher,halt,httpd,ident,imnadm,ingres,kmem,lp,mail,mailnull,man,mta,mysql,named,news,nfsnobody,nobody,nscd,ntp,operator,pcap,pop,postfix,postgres,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,radvd,reboot,rpc,rpcuser,rpm,sendmail,shutdown,squid,sympa,sync,tty,uucp,xfs,xten
# Special case of HiddenUsers: users with a UID less than this number
# (except root) will not be shown as well. Default is 0
#MinShowUID=1000
# Complement to MinShowUID: users with a UID greater than this number will
# not be shown as well. Default is 65535
#MaxShowUID=29999
# If false, the users are listed in the order they appear in /etc/passwd.
# If true, they are sorted alphabetically. Default is true
#SortUsers=false
# Specify, if/which user should be preselected for log in.
# Note, that enabling this feature can be considered a security hole,
# as it presents a valid login name to a potential attacker, so he "only"
# needs to guess the password.
# "None" - don't preselect any user (Default)
# "Previous" - the user which successfully logged in last time
# "Default" - the user specified in the DefaultUser field
#PreselectUser=Previous
# The user to preselect if PreselectUser=Default
#DefaultUser=ethel
# If this is true, the password input line is focused automatically if
# a user is preselected. Default is false
#FocusPasswd=true
# The password input fields cloak the typed in text. Specify, how to do it:
# "NoEcho" - nothing is shown at all, the cursor doesn't move
# "OneStar" - "*" is shown for every typed letter (Default)
# "ThreeStars" - "***" is shown for every typed letter
#EchoMode=NoEcho
# Hold the X-server grabbed the whole time the greeter is visible.
# This may be more secure, but will disable any background. Default is false
#GrabServer=true
# How many seconds to wait for grab to succeed. Default is 3
#GrabTimeout=

# Core config for local displays
[X-:*-Core]
# How often to try to run the X-server. Running includes executing it and
# waiting for it to come up. Default is 1
#ServerAttempts=
# How long to wait for a local X-server to come up. Default is 15
#ServerTimeout=
# See above
AllowShutdown=All
# See above
AllowRootLogin=true
# See above
AllowNullPasswd=true
# Enable password-less logins on this display. USE WITH EXTREME CARE!
# Default is false
#NoPassEnable=true
# The users that don't need to provide a password to log in. NEVER list root!
#NoPassUsers=fred,ethel

# Greeter config for local displays
[X-:*-Greeter]
# Warn, if local X-authorization cannot be created. Default is true
# XXX this is a dummy currently
#AuthComplain=false
# The screen the greeter should be displayed on in multi-headed setups.
# The numbering starts with 0 and corresponds to the listing order in the
# active ServerLayout section of XF86Config. -1 means to use the upper-left
# screen. Default is 0
#GreeterScreen=-1

# Core config for 1st local display
[X-:0-Core]
# Enable automatic login on this display. USE WITH EXTREME CARE!
# Default is false
#AutoLoginEnable=true
# The user to log in automatically. NEVER specify root!
#AutoLoginUser=fred
# The password for the user to log in automatically. This is NOT required
# unless the user is to be logged into a NIS or Kerberos domain. If you use
# it, you must "chmod 600 kdmrc" for obvious reasons.
#AutoLoginPass=secret!
# The session for the user to log in automatically. This becomes useless after
# the user's first login, as the last used session will take precedence.
#AutoLoginSession=kde
# If "true", the auto-login is truly automatic, i.e., the user is logged in
# when KDM comes up. If "false", the auto-login must be initiated by crashing
# the X-server with Alt-Ctrl-BackSpace. Default is true
#AutoLogin1st=false

# Greeter config for 1st local display
[X-:0-Greeter]
# See above
#PreselectUser=Default
# See above
#DefaultUser=johndoe


*****************************************
Xservers
*****************************************
:0 local /usr/X11R6/bin/X


****************************************
Xstartup
****************************************
#! /bin/sh
# Xstartup - run as root before session starts

PIDFILE=/var/run/kdmdesktop-$DISPLAY.pid
if [ -f $PIDFILE ] ; then
     kill `cat $PIDFILE`
fi

# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output.  This way a random user can invoke xterm -C without
# causing serious grief.
# This is not required if you use PAM, as pam_console should handle it.
#
#chown $USER /dev/console

#exec sessreg -a -l $DISPLAY $USER


I must appologise for the long email, but i have no clue what is going on.

Thanks Alot
Ian Barnes


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206182137.27855.ian>