geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


GUI login with kdm
KDE Posted by Jason on Saturday December 08, @11:14AM
from the some-docs-would-be-nice dept.
Does anyone know where I can find documentation on kdm-2.2.x?

I thought I would like to setup the kdm GUI login for my wife and children. However, kdm has changed quite a lot in version 2.2.x and the currently available 2.0/2.1 docs no longer apply. I checked the FreeBSD handbook which is outdated and I checked kde.org.

I managed to get kdm 2.2.1 running by using some of the xdm files and creating (and guessing at) what the new kdm files are and should contain. I did this by examining the error messages.

The kdm stuff is under /usr/local/share/config/kdm and the xdm files were copied from /usr/X11R6/lib/X11/xdm.

At any rate, what I did and discovered (certainly by mistake) was that kdm could not be started from /etc/ttys like xdm or it would go crazy and lockup the machine. It worked fine when I started it from /usr/local/etc/rc.d/kdm.sh.

Then I noticed that all the users who logged in through kdm had root access to the system, and I certainly don't want my 11 year old wielding superuser priviledges. I am guessing that since kdm and X are started by root that control of X was not passed to the user who was authenticated through kdm.

So... If anyone knows where kdm-2.2.x docs or howto's can be located please let me know.

Cheers,

Jason






<  |  >

 

Related Links
  • Articles on KDE
  • Also by Jason
  • Contact author

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: GUI login with kdm
    by Santhosh Joseph on Thursday January 24, @09:25AM

    I heve kde-2.2.2 and I haven't tried this on any other version.

    Here's how I did it :

    1. As root edit /etc/ttys and modify the file to look like the following :

        #ttyv0 "/usr/libexec/getty Pc" cons25 on secure

        ttyv0 "/usr/local/bin/kdm -nodaemon" xterm on secure

        # Virtual terminals

        ttyv1 "/usr/libexec/getty Pc" cons25 on secure

        ......................................................................................

        ttyv7 "/usr/libexec/getty Pc" cons25 on secure

        #ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure



    1. Restart the machine and You should be greeted by the pleasant KDM Login Screen.

    2. Intially only default,kde,failsafe sessions will be displayed. You can add other Window Managers like gnome. First of all make sure gnome has been installed. Then, as root, edit /usr/local/share/config/kdm/Xsession to look like the following :

      .........................................................

      case "$sess" in

      failsafe)

      exec xterm -geometry 80x24-0-0 $*

      ;;

      gnome)

      exec gnome-session

      ;;

      ""|default)

      exec $HOME/.xsession $*

      ;;

      esac

      ...........................

    3. Gnome has not been added to the session list yet. For that, start X as root and from KDE Control Center, Select System -> Login Manager ->Sessions (tab).

      In the new type textbox enter :

        gnome

        warning : This should be same as the corresponding entry in /usr/local/share/config/kdm/Xsession

        Click Add New to add gnome to the "Available Types" List.



    1. When you login for the first time, select kde or gnome or any WM from the list. Next time onwards, KDM will remember the session used last time and will log into that environment automatically.

    That's it !




    [ Add a Reply to this ]
    • Re: GUI login with kdm
      by Lance St on Monday July 15, @06:32PM
      I hope this applies to KDE 3 with BSD 4.6. I dont have the usual .xinitrc,xservrrc files.
      [ Reply to this ]
      • Re: GUI login with kdm
        by Lance St on Monday July 15, @07:20PM
        Yea it worked except one problem. When I login to KDE 3 none of my terminals work. When I click the terminal icon they start- then quickly disapear. Also I need to set the bpp to at least 16, I guess thats in XF86 somewhere. Help.
        [ Reply to this ]
        • Re: GUI login with kdm
          by Epu on Monday August 26, @11:05AM
          Having same terminal problems. If I use xwrapper from a user directory and the 'startx' command, X loads ok and terminals work as expected. If I use kdm, Konsoles disappear when launched from the icon. Got them to stick by trying to run Konsole from a right-click menu somewhere.
          [ Reply to this ]
    Re: GUI login with kdm
    by Peter on Monday September 30, @06:48PM
    Exact same problem happens with me.
    [ Add a Reply to this ]
    Re: GUI login with kdm
    by pnoti on Thursday October 03, @02:24PM
    Can anyone tell me how to accomplish this same thing in NetBSD 1.6 with KDE3.x. The same files do not seem to exist in NetBSD as they do in FreeBSD.
    [ Add a Reply to this ]
    • Re: GUI login with kdm
      by topgun on Thursday January 10, @03:23AM
      To use the rc.local script, edit the file /etc/rc.local and add the following lines at the end (but before the last echo):
      echo "Starting the K Display Manager (kdm)"
      /usr/pkg/bin/kdm
      [ Reply to this ]
    Re: GUI login with kdm
    by Mike on Friday April 30, @05:45PM
    I am having similar trouble except that I get the following error.

    "repeating too quickly on port /dev/ttyv8..."

    Along with some flashing of my monitor. This is a N800w Compaq notebook and I had to make a guess at the horizontal and vertical sync rates. Could that be the source of the problem?
    [ Add a Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]