-
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.
-
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
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
krishna.murphy
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
-
Senior Member
registered user
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
-
Forum Rules
![ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT picture](/store/img/g/m2IAAOSwmz5kyNFT/s-l225/ORICO-5-Bay-Raid-USB3-0-to-SATA-External-Hard-Driv.jpg)
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](/store/img/g/BikAAOSwmbBmeEtI/s-l225/Drobo-DR04D-U-External-Data-Backup-Storage-Raid-Ha.jpg)
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](/store/img/g/ph8AAOSwnHxmXzcB/s-l225/Dell-EMC-092GD6-Broadcom-9305-16i-LSI-Quad-Port-4-.jpg)
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](/store/img/g/3cEAAOSw6t1kaG3t/s-l225/Yottamaster-2-Bay-RAID-Hard-Drive-Enclosure-USB-3-.jpg)
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](/store/img/g/25EAAOSwxzdk-ipC/s-l225/Inspur-LSI-YZCA-00424-101-Raid-Card-12Gbps-HBA-Con.jpg)
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](/store/img/g/3oUAAOSweflmcp0x/s-l225/LSI-8-Port-6Gbps-PCIe-3-0-External-SAS-RAID-Card-w.jpg)
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](/store/img/g/C7YAAOSwLYJl3nQQ/s-l225/Dell-PERC-H330-PCIe-3-0-x8-RAID-Storage-Controller.jpg)
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](/store/img/g/~n8AAOSwg9BibAAq/s-l225/9207-8i-PCIE3-0-6Gbps-HBA-LSI-FW-P20-IT-Mode-ZFS-F.jpg)
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](/store/img/g/lrwAAOSwd7llPxya/s-l225/CompUSA-Internal-2-Bay-Removable-Rack-for-3-SATA-H.jpg)
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](/store/img/g/7iAAAOSwl8tlJ6Cu/s-l225/Yottamaster-2-Bay-RAID-Hard-Drive-Enclosure-USB-3-.jpg)
Yottamaster 2 Bay RAID Hard Drive Enclosure USB 3.1 For 2.5" SATA HDD SSD UASP
$56.25