-
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
-

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

NEW JUNIPER QFX5120-48Y-AFO-T 48x 10/25GbE SFP28 8x 40/100GbE Switch Dual AC PS
$12750.00

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99

Juniper Network QFX5100-48S-AFO 48x SFP/SFP+ 6x 40GbE QSFP+ Switch w/ Dual power
$253.30

Juniper EX4300-24P 24 Port Gigabit PoE+ Switch.
$114.35

Juniper EX4100-F-12P Switch 12x 1GbE PoE 2x 10GbE Uplinks 4x 10GbE Stack Ports
$900.00

Juniper EX2300-C-12P 12 Port Gigabit PoE+ 2x10G SFP+ Managed Compact Switch
$179.99

Juniper EX3400-48T-AFI Ethernet Network Switch 48x1GbE 4x10GbE SFP+ 2x40GbE QSFP
$139.00

Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p
$99.99

Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch
$245.00

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch
$79.99