-
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
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/g/xiEAAOSwwGtmRmN6/s-l225/IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
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](/store/img/g/vCUAAOSwSJhlCJV3/s-l225/IBM-Server-System-X3100-M4-Xeon-3-10-Ghz-8GB-250GB.jpg)
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](/store/img/g/M~sAAOSwFVlkVr-r/s-l225/IBM-System-X3250-M3-Server-8GB-RAM-Intel-Xeon-x344.jpg)
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$36.53
![IBM Netezza 3567 picture](/store/img/g/-uEAAOSw4ixmWekl/s-l225/IBM-Netezza-3567.jpg)
IBM Netezza 3567
$4750.00
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/g/oRsAAOSw~pRmQitC/s-l225/IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
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](/store/img/g/1eUAAOSw5uxmdccr/s-l225/IBM-8202-E4D-Power-720-Server-3-6-GHz-4-Core-EPCK-.jpg)
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](/store/img/g/TDIAAOSwEsNlaJMN/s-l225/IBM-SYSTEM-x3200-M3-Tower-Intel-i3-540-3-07GHz-4GB.jpg)
IBM SYSTEM x3200 M3 Tower- Intel i3 540 @ 3.07GHz, 4GB, 500GB HHD
$125.00
![ibm server z series picture](/store/img/g/RKAAAOSw365hbg9L/s-l225/ibm-server-z-series.jpg)
ibm server z series
$16000.00
![IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture](/store/img/g/YXgAAOSwzGNjh6tH/s-l225/IBM-x3650-M4-2x-Xeon-E5-2670-2-6ghz-16-Core-64GB-M.jpg)
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](/store/img/g/afoAAOSwy6dd~SJ4/s-l225/IBM-5362-Server-System-36-60MB-HDD-With-Manuals-.jpg)
IBM 5362 Server System/36 60MB HDD With Manuals
$7700.00