Results 1 to 5 of 5

Thread: Two Knoppix boot options?

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    2

    Two Knoppix boot options?

    I'm working on a modified KNOPPIX distribution to give to CS students at my school so that they can work on assignments from their own computers in their dorms. I want to give them two options: boot KNOPPIX normally or connect to the computing lab. The idea is that if they choose to connect to the computing lab, KNOPPIX will start X with the -indirect option to our xdm servers, and they will go straight to logging on to a Linux maching in the lab.

    My idea is to modify lilo.conf in KNOPPIX to offer these two choices, and have the second choice boot to an unused runlevel, which I will provide a startx script for. Does this sound reasonable? I've been able to boot to a different run level using the normal KNOPPIX boot prompt, but I can't see anyway to specify the rl in lilo.conf. Is there a better way to do this?

    Thanks,
    Colin Kern

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    There are two scripts that control how Knoppix is booted: linuxrc and 45xsession.
    linuxrc: Knoppix loads the kernel and mini root partition from /KNOPPIX-CD-ROOT/boot/isolinux. If you use the 2.4 kernel on knoppix then the kernel loaded is linux24 and the mini root is minirt24.gz. If you use the 2.6 kernel on knoppix then the kernel loaded is linux26 and the mini root is minirt26.gz. You can view the mini root by copying it to another location, unziping it, and loop mounting it.
    Code:
    cd $HOME
    cp /KNOPPIX-CD-ROOT/boot/isolinux/minirt24.gz ./
    mkdir foobar
    gunzip minirt24.gz
    sudo mount -t ext2 -o loop minirt24 ./foobar
    Inside the minirt you will find a executable script named linuxrc. This linuxrc script is init script for Knoppix and controls many of the bootime cheat codes.

    45xsession: This script lets Knoppix figure out how to manage the knoppix user's home directory, starting X, and other cheat codes. See my HOWTO http://www.knoppix.net/forum/viewtopic.php?t=13867 where I edit the 45xession file in order to correctly populate the /home/knoppix directory.

    I hope this helps.
    James

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    2
    The 45xsession script seems to be processed after the X display has been started. I want to find where KNOPPIX executes startx and add some options (-indirect). My linuxrc file is only six lines or so. It seems to only mount proc, tmpfs, and ramfs.

    Thanks,
    Colin

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Quote Originally Posted by kernco
    The 45xsession script seems to be processed after the X display has been started. I want to find where KNOPPIX executes startx and add some options (-indirect). My linuxrc file is only six lines or so. It seems to only mount proc, tmpfs, and ramfs.
    Hmmm, only six lines? Here is the linuxrc from Knoppix 3.8 http://www.virtualacuity.com/james/k...nuxrc-3.8.html.

  5. #5
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    startx is started in /etc/inittab

    If you wish to check for the boot parameters then the linuxrc that UnderScore mentions has some bash functions that allow you to read the boot parameters entered on boot up. Using this method you can insert the cd and at the boot prompt you can go "boot> knoppix" for a normal boot or "boot> knoppix lab" for a lab boot.

Similar Threads

  1. Passing arguments to knoppix.sh via boot options
    By gogoye in forum General Support
    Replies: 3
    Last Post: 07-16-2004, 08:07 PM
  2. How do I enter boot options for knoppix 3.3?
    By knopphead in forum Hardware & Booting
    Replies: 2
    Last Post: 04-25-2004, 08:05 AM
  3. Boot options
    By ovunque in forum General Support
    Replies: 1
    Last Post: 02-18-2004, 12:20 AM
  4. Knoppix Problems/Boot Options
    By Journey44 in forum General Support
    Replies: 3
    Last Post: 01-27-2004, 05:56 AM
  5. Customize default knoppix boot options(knoppix home=scan etc
    By ktheking in forum Customising & Remastering
    Replies: 3
    Last Post: 03-30-2003, 06:52 PM

Posting Permissions

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


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$269.99



HP ProLiant DL360 G9 Server 2x E5-2660v3 2.60Ghz 20-Core 96GB P440ar picture

HP ProLiant DL360 G9 Server 2x E5-2660v3 2.60Ghz 20-Core 96GB P440ar

$304.35



Dell Precision T3600 | Xeon E5 | 16GB | GPU | 128GB SSD | Win 10 Pro picture

Dell Precision T3600 | Xeon E5 | 16GB | GPU | 128GB SSD | Win 10 Pro

$115.00



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$39.99



Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7 picture

Intel Xeon E5-2680 v4 2.4GHz 35MB 14-Core 120W LGA2011-3 SR2N7

$17.99



SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 A Grade Processor picture

SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 A Grade Processor

$5.09



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA

$234.98



Rare WaterCooled HP Z800 Workstation Dual Xeon X5680 16GB RAM 120GB SSD Nvidia picture

Rare WaterCooled HP Z800 Workstation Dual Xeon X5680 16GB RAM 120GB SSD Nvidia

$279.56