-
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
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture](/store/img/g/cEQAAOSwKIlgze4p/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black
$32.00
![Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION picture](/store/img/g/PZoAAOSwM3xmZJQs/s-l225/Polycom-VVX-411-IP-VOIP-POE-Gigabit-Telephone-L-N-.jpg)
Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION
$24.00
![Polycom Poly VVX 250 4-Line 2.8](/store/img/g/ZI0AAOSwPnpmchDy/s-l225/Polycom-Poly-VVX-250-4-Line-2-8-Color-Display-VoIP.jpg)
Polycom Poly VVX 250 4-Line 2.8" Color Display VoIP IP Business Phone /w Stand
$21.24
![Lot Of 7 Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture](/store/img/g/b7wAAOSwzeFjaUbX/s-l225/Lot-Of-7-Cisco-CP-7945G-VOIP-Phone-With-Stand-Hand.jpg)
Lot Of 7 Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945
$41.99
![Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture](/store/img/g/NjUAAOSwEmNmEw4x/s-l225/Cisco-CP-7945G-VOIP-Phone-With-Stand-Handset-Busin.jpg)
Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945
$3.00
![Yealink SIP-T54W 16-Line Color Display Business VoIP Phone /w Built-in Bluetooth picture](/store/img/g/Nh0AAOSwj0dmWNA9/s-l225/Yealink-SIP-T54W-16-Line-Color-Display-Business-Vo.jpg)
Yealink SIP-T54W 16-Line Color Display Business VoIP Phone /w Built-in Bluetooth
$50.99
![magicJack Portable VoIP Phone Adapter picture](/store/img/g/us8AAOSwTMVmfdgY/s-l225/magicJack-Portable-VoIP-Phone-Adapter.jpg)
magicJack Portable VoIP Phone Adapter
$19.99
![New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G - picture](/store/img/g/ky0AAOSwk4RmDzQo/s-l225/New-Cisco-7945G-IP-VoIP-Gigabit-GIGE-Telephone-Pho.jpg)
New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G -
$24.95
![Cisco 7962 Series CP-7962G Unified VoIP IP Business Phone picture](/store/img/g/igoAAOSw0rhlFY7v/s-l225/Cisco-7962-Series-CP-7962G-Unified-VoIP-IP-Busines.jpg)
Cisco 7962 Series CP-7962G Unified VoIP IP Business Phone
$6.99
![Grandstream HT801 Single-Port Analog Telephone Adapter picture](/store/img/g/n90AAOSwefdjYwuN/s-l225/Grandstream-HT801-Single-Port-Analog-Telephone-Ada.jpg)
Grandstream HT801 Single-Port Analog Telephone Adapter
$34.00