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
  •  


ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT picture

ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT

$140.79



Drobo DR04D-U External Data Backup Storage Raid Hard Drive 4 Bay NAS USB picture

Drobo DR04D-U External Data Backup Storage Raid Hard Drive 4 Bay NAS USB

$42.50



Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller picture

Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller

$84.99



Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 Type B For 3.5

Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 Type B For 3.5" SATA HDDs

$69.91



Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT picture

Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT

$15.98



LSI 8 Port 6Gbps PCIe 3.0 External SAS RAID Card w/ 1GB CacheVault & Low Profile picture

LSI 8 Port 6Gbps PCIe 3.0 External SAS RAID Card w/ 1GB CacheVault & Low Profile

$26.10



Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture

Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile

$15.99



9207-8i PCIE3.0 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID 2* SFF-8087 US picture

9207-8i PCIE3.0 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID 2* SFF-8087 US

$32.88



CompUSA Internal 2 Bay Removable Rack for 3 SATA Hard Drives Raid Configurations picture

CompUSA Internal 2 Bay Removable Rack for 3 SATA Hard Drives Raid Configurations

$25.00



Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 For 2.5

Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 For 2.5" SATA HDD SSD UASP

$56.25