Results 1 to 4 of 4

Thread: Script to run at bootup

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    1

    Script to run at bootup

    Where can I put a short script that will be run at bootup in Knoppix 6.2?

    I find it tedious to have to type in 'setxkbmap gb' every time after boot up, and it will confuse my friends who want to use it, but are not used to CLI.

  2. #2
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Hey-

    Do you have a "persistent store" set up? On both flash drives and "poor man's install" (tohd=/dev/whatever, on bootup) you can set up a filesystem that is merged with the main KNOPPIX system files, and your settings will be saved. Once you have that done, you can poke around in the /etc/init.d/ or whatever and your modifications will take effect permanently.

    Hope that helps!
    Krishna
    Last edited by krishna.murphy; 05-01-2010 at 05:38 AM. Reason: Ooops

  3. #3
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by krishna.murphy View Post
    Hey-

    Do you have a "persistent store" set up? On both flash drives and "poor man's install" (tohd=/dev/whatever, on bootup) you can set up a filesystem that is merged with the main KNOPPIX system files, and your settings will be saved. Once you have that done, you can poke around in the /etc/init.d/ or whatever and your modifications will take effect permanently.
    Additional info (from the cheatcodes):

    If you would like to edit your X-Server configuration manually
    (config file /etc/X11/xorg.conf), use "knoppix 2" to boot
    into runlevel 2 (textmode only) and, after changing the X
    configuration, start the X environment with "init 5". Note that
    you can always leave the graphical environment with "init 2", and
    restart it later with "init 5".

    Hope that helps!
    Krishna

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    I think the simplest and most safe way is to edit /etc/rc.local.
    For example, here are my modifications

    HTML Code:
    
    # Bug in initial 6.2.1 loop devices created wrong! Only one, create the rest
    
    mknod -m660 /dev/loop/1 b 7 1
    mknod -m660 /dev/loop/2 b 7 2
    mknod -m660 /dev/loop/3 b 7 3
    mknod -m660 /dev/loop/4 b 7 4
    mknod -m660 /dev/loop/5 b 7 5
    mknod -m660 /dev/loop/6 b 7 6
    mknod -m660 /dev/loop/7 b 7 7
    
    
    # Mounting extra persistent storage + creating directories
    mkdir /store
    mkdir /store/local
    mkdir /store/var
    mkdir /store/share
    mount -o loop /mnt-system/KNOPPIX/knoppix-data2.img /store/share
    mount -o loop /mnt-system/KNOPPIX/knoppix-data3.img /store/var
    
    export GDK_NATIVE_WINDOWS=1
    I could also have started servers etc

Posting Permissions

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


Atari LOGO Programming Cartridge RX8032 for Atari 400 & 800 8-bit Computers picture

Atari LOGO Programming Cartridge RX8032 for Atari 400 & 800 8-bit Computers

$19.99



Atari Power Cube 800XL, 600XL, 65XE, 130XE  USB-C Power Supply PSU picture

Atari Power Cube 800XL, 600XL, 65XE, 130XE USB-C Power Supply PSU

$11.25



Atari 800xl Excellent cond.  Mechanical KB.  Custom upgrades (Video, Case) picture

Atari 800xl Excellent cond. Mechanical KB. Custom upgrades (Video, Case)

$280.00



Atari 800xl 65xe 130xe XEGS  Pico.  A8PicoCart.  Loaded with ROMs Gray/Gray picture

Atari 800xl 65xe 130xe XEGS Pico. A8PicoCart. Loaded with ROMs Gray/Gray

$25.00



ATARI 130XE Computer TESTED WORKING Original Box Power Supply MANUAL TV Cable picture

ATARI 130XE Computer TESTED WORKING Original Box Power Supply MANUAL TV Cable

$249.99



Rana Systems 1000 Atari Compatible Floppy Disk Drive System w/cables. Powers On picture

Rana Systems 1000 Atari Compatible Floppy Disk Drive System w/cables. Powers On

$139.99



Atari 800xl 65xe 130xe XEGS  Pico.  A8PicoCart.  Loaded with ROMs Red/White picture

Atari 800xl 65xe 130xe XEGS Pico. A8PicoCart. Loaded with ROMs Red/White

$28.00



Submarine Commander Video Game Cartridge Atari 400, 800, XL, XE Tested & Cleaned picture

Submarine Commander Video Game Cartridge Atari 400, 800, XL, XE Tested & Cleaned

$10.99



Atari 800 8-Bit Home Computer Complete in Box Bueatiful Condition Powers up picture

Atari 800 8-Bit Home Computer Complete in Box Bueatiful Condition Powers up

$399.00



A8PicoCart Kit Atari 130 65 XE 800 600 XL unocart clone multicart cartridge game picture

A8PicoCart Kit Atari 130 65 XE 800 600 XL unocart clone multicart cartridge game

$19.95