Results 1 to 8 of 8

Thread: Making kdm appear by default on login

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    Making kdm appear by default on login

    Hello everyone - long time lurker and knoppix writer, new contributor/question asker...

    Anyway,

    I have nearly gone crazy and exhausted all sources of info for this one. I have two versions of knoppix KDE that I have been modifying. One version boots to the kdm login screen and the other logs in to the desktop as per usual. I simply CANNOT figure out exactly where the diffrence lies. I have a new build and I want to make the login via kdm rather than just logging in to the desktop, but I cannot figure out how. Any ideas? I'm going crazy with this.

    I looked at init.d/knoppix-autoconfig, inittab, etc. to no avail.

    Thanks a MILLION to anyone who can help.

    Clint [/b]

  2. #2
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    No one has any answers?

    I find it hard to believe that no one has encountered a need/desire to try have the gui kdm logon. Anyway, if you have any ideas, please let me know where I can change this. I thought about changing the last line in inittab from xsession start to kdm -nodaemon or something the like. Any ideas?

    Clint

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    Well, I'm waiting on a new LAN to be installed at my school. At that point I will run knx-hdinstall to install KNOPPIX to the hard-disks and set up a server everyone logs-in to via KDM.

    I'm not clear how you would set up such a network with only CDs?

    Regards,

  4. #4
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    running kdm

    Hopefully giving an explanation for why I need the function will make the request just, thus spur replies. I am making an edition for doing non-intrusive searches of suspect computer systems in a law enforcement capacity. I would like to be able to have the clean login screen appear and give the user (investigator) different login environments depending on the different situations. I know how to accomplish this if I am doing a hard drive install of knoppix - then it becomes trivial. The hard part is trying to get this done on the cd boot. That said, as my original post indicated, I HAVE made one version and through I know not by what means, the CD boots to kdm. I can't see why it does in order to replicate it.

    Clint

  5. #5
    Member registered user
    Join Date
    Feb 2003
    Posts
    43
    kdm (or gdm, or xdm) is normally started via /etc/inittab in run level 5. In Knoppix, run level 5 runs "startx" as knoppix instead.

    To get a proper kdm environment, you'd have to configure kdm (obviously) then change the inittab to reflect what you want.

    You can use the boot process to run a knoppix.sh script on the floppy drive (and with 3.2, perhaps on a hard drive or USB drive?). This script could use rsync with the backup options to copy the new /etc/inittab into place, then change runlevels. Seems pretty brutal, but it would work.

    The reason it has to be brutal (in some way or other) is because /etc/init is the first job created by the kernel, and then run. Once it is running, changing the contents of /etc/inittab are not reflected by init.

    Changing the init level would be:

    init 4

    ...or whatever you choose. You could also re-use run level 5 and just make sure that the startx process initially started by runlevel 5 doesn't exit cleanly (otherwise, it'll reboot!).

    Now that I think about it.... when knoppix.sh runs, startx has not yet started: changing /etc/inittab and telling init to reload init 5 just might work:

    telinit q

    Not sure. Try it (or I will)

  6. #6
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    Where is the magic point of divergence though?

    Exactly where is the divergence point during boot when the system would say "execute kdm" rather than "execute startx" I have looked everywhere. Man - this shouldn't be this hard...

  7. #7
    Member registered user
    Join Date
    Feb 2003
    Posts
    43

    Re: Where is the magic point of divergence though?

    Quote Originally Posted by clintonian
    Exactly where is the divergence point during boot when the system would say "execute kdm" rather than "execute startx" I have looked everywhere. Man - this shouldn't be this hard...
    No it shouldn't...

    Quote Originally Posted by I
    kdm (or gdm, or xdm) is normally started via /etc/inittab in run level 5.
    So, translating even further:

    1. Do a "man inittab" and read the manual page ("manpage") of inittab and its format. Unfortunately, it doesn't seem that "man kdm" will be of any use - it should be, but it isn't (kdm is undocumented - sigh)...

    2. Open /etc/inittab in your favorite editor (I use vi - and proudly, too!).

    3. Edit the line which is run for run level 5 and which runs startx.

    4. Change this line (which runs startx) to run kdm instead. It looks as if kdm should take a "-nodaemon" option; I'd recommend using it - it's probably needed.

    After having done this, if you want this preserved for use with a CDROM distribution, then you need to either burn a new CD with this new configuration or save the configuration somewhere so that it can be loaded during boot.

  8. #8
    Junior Member
    Join Date
    Mar 2003
    Posts
    9

    editing /etc/inittab

    thanks for the info. as soon as I get a chance, I will test it out. It is the last line in the script and it says something like:

    "blah blah.. xsession start"

    I'm not where I can see the line right now... anyway, this is where I take it I change to something like:

    /usr/bin/kdm -nodaemon?

    Thanks for your assistance - I'll give it a shot asap.

    Clint

Similar Threads

  1. How to select default keyboard as German for login manger?
    By majo in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 01-31-2005, 01:32 PM
  2. Stange Login + Default Users
    By jeremymeindl in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 05-29-2004, 01:06 AM
  3. after apt-get upgrade xdm default login
    By psoleko in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 05-16-2004, 10:40 PM
  4. Can't login to Debian login screen
    By turbines in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 04-17-2004, 04:40 PM
  5. want to make gdm default login manager my own live cd
    By gmwest5 in forum Customising & Remastering
    Replies: 2
    Last Post: 03-03-2004, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$225.00



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



1 X IBM 720 POWER SERVER WITH 32 GB RAM picture

1 X IBM 720 POWER SERVER WITH 32 GB RAM

$344.97



IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012 picture

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012

$109.99



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99