Results 1 to 3 of 3

Thread: login for stripped Ubuntu LiveCD

  1. #1
    Join Date
    Jul 2007
    Beans
    3

    Question login for stripped Ubuntu LiveCD

    Hi everybody,

    I could not get an answer at the Dutch fora and I wonder weather you could help me out. I'm making my own live cd from a downloaded live 7.04 Ubuntu desktop CD. I've stripped it down so only a nfs, a ssh and a telnet daemon start now. I managed to create two partition as ramdisks of 100MB, so my assignement I got is quite finished. Except for one thing: with the stripping I also stripped down the desktop environment, so I start with a prompt.
    The thing is that I need a login prompt before I get there to have some kind of security. Can one of you tell me how to get that on a livecd starting in RunLevel 2 with only a textline available?

    (I use the reconstructool's chroot to make the live cd)

  2. #2
    Join Date
    Jul 2007
    Beans
    3

    Re: login for stripped Ubuntu LiveCD

    Hi, I still haven't found a sollution myself, but I'll tell what I found out so far. Knowing that Ubuntu doesn't have an /etc/inittab anymore, I searched for what it was they used now -> upstart. According to the stuff I found at the web, I see that I would have to look for /etc/event.d and make the changes there.
    When I look there with a chroot, everything seems to be correct: /etc/event.d/tty1
    # tty1 - getty
    #
    # This service maintains a getty on tty1 from the point the system is
    # started until it is shut down again.

    start on runlevel 2
    start on runlevel 3
    start on runlevel 4
    start on runlevel 5

    stop on runlevel 0
    stop on runlevel 1
    stop on runlevel 6

    respawn
    exec /sbin/getty 38400 tty1
    When I start the live cd, there is no login prompt and the file mentioned above has changed. It now contains a '/bin/login -f' part instead of the '/sbin/getty' stuff. Does any of you know out of what the live cd takes this information. I have absolutely no clue what so ever and a find statement on 'login -f', 'getty' or 'upstart' didn't bring me any closer.

  3. #3
    Join Date
    Sep 2007
    Beans
    7

    Re: login for stripped Ubuntu LiveCD

    Hey, I'm doing something similar, so here's what I did to avoid starting X.

    sudo cp -rf /etc/rc2.d /etc/rc2.d.back
    sudo rm /etc/rc2.d/S13gdm

Bookmarks

Posting Permissions

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