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
  •  


IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System

$359.99



IBM Server System X3100 M4 | Xeon @ 3.10 Ghz | 8GB | 250GB HDD No OS (IG-PC26) picture

IBM Server System X3100 M4 | Xeon @ 3.10 Ghz | 8GB | 250GB HDD No OS (IG-PC26)

$96.01



IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture

IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)

$36.53



IBM Netezza 3567 picture

IBM Netezza 3567

$4750.00



IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture

IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD

$74.50



IBM 8202-E4D Power 720 Server 3.6 GHz 4-Core (EPCK) IBM i V7R2 4x300gb HDD @15k picture

IBM 8202-E4D Power 720 Server 3.6 GHz 4-Core (EPCK) IBM i V7R2 4x300gb HDD @15k

$596.25



IBM SYSTEM x3200 M3 Tower- Intel i3 540 @ 3.07GHz, 4GB, 500GB HHD picture

IBM SYSTEM x3200 M3 Tower- Intel i3 540 @ 3.07GHz, 4GB, 500GB HHD

$125.00



ibm server z series picture

ibm server z series

$16000.00



IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$229.99



IBM 5362 Server  System/36 60MB HDD With Manuals  picture

IBM 5362 Server System/36 60MB HDD With Manuals

$7700.00