One of a series of test instances for migrating the Koha Wiki MediaWiki database.
For the current Koha Wiki, visit https://wiki.koha-community.org .Live CD (No Install Option)
WARNING! This page is obsolete.
This page is no longer correct and exists for historical reasons only.
Live CD (No Install Option)
Created 5/5/2008 by Christopher Hyde of East Brunswick Public Library
To simply modify the LiveCD, Download the ISO file from here:
Then use an ISO editor to modify the following files as needed:
- printer.conf(see more information below)
- edit Resetbrowser(see more information below)
- Modify user.js for homepage. Modify localstore.rdf for toolbar, etc options.
Keep in mind that if you edit the printer.conf or some other linux system files under windows, they may not work on the LiveCD as windows automatically adds characters to the files which linux doesn't like.
Test and Burn to CD! The system loads fairly quickly, as it is only about 168mb.
Actual Edits
Extract files from ISO(right click extract here in linux)
Modify Boot List
Open /Slax/boot/slax.cfg
Change timeout to 1(boots right away, 0 stops system at menu)
Remove slax\base\004 thru 006.lzm files
Add Printing
Create a folder called /etc/cups under the slax/rootcopy directory.
Add a file called printer.conf with the following information, suitable for your print setup, where ebpl2 is the server name and Ref B&W Q is the name of the printer Q.
- Printer configuration file for CUPS v1.3.7
- Written by cupsd on 2008-12-22 11:11
<Printer ColorQ>
Info Raw printer
Location
DeviceURI lpd://ebpl2/Color Q
State Idle
StateTime 1229944311
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer RefB&W>
Info Raw printer
Location
DeviceURI lpd://ebpl2/Ref B&W Q
State Idle
StateTime 1229944266
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Install Firefox 2
Untar firefox into /opt
Copy modified user.js, localstore.rdf into the directory. Then copy userchrome.css into the opt /firefox/chrome directory. Modify user.js for homepage. Modify localstore.rdf for toolbar, etc options.
Create a folder under slax/rootcopy called X11/xinit
In this folder, copy the following into a file called “xinitrc”
- !/bin/sh
- $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
- merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
- Start the window manager:
- startkde
- /usr/local/bin/xscreensaver
- /root/inactivity
Xconf
- this makes sure the power management features DO NOT kick in and turn off the monitor(just in case, for the terminal)!
setterm -blank 0 -powersave off -powerdown 0
- this makes sure the power management features DO NOT kick in and turn off the monitor!
xset s off -d :0 s 0 –dpms
/usr/bin/setterm -blank 0 -store
- this runs firefox, and attempts to have it take up the full screen
/opt/firefox/firefox --maximized
Download the extension resetbrowser, and install it under Firefox 2 on a test computer. Copy the folder {ed52a7ae-35c6-40dc-bb21-8dd56e2e89ea} from the extensions directory on the test computer to /opt/firefox/extensions Modify the file /opt/firefox/extensions/{ed52a7ae-35c6-40dc-bb21-8dd56e2e89ea}/defaults/preferences/autoresetbrowser.js if you wish. The default (300000) is for five minutes, or 60000*5(60000 for each minute you want, 10 minutes would be 6000000) pref("autoResetBrowser.timeout", 300000); Cleanup – Preventing CD from Ejecting Under the root copy folder, create a folder called mnt/live. In this, create a file called “cleanup”. Simply doing this will prevent the system from “shutting down properly”, since by default the cleanup file will not be executable. This will prevent the system from shutting down/ejecting the CD.
Tools
Make ISO within linux (from within Slax/slax directory) (run this from the slax directory) sudo mkisofs -o "fslax.iso" -v -J -R -D -A "CDLABEL" -V "CDLABEL" -no-emul-boot -boot-info-table -boot-load-size 4 -b boot/isolinux/isolinux.bin -c boot/isolinux/isolinux.boot ../. Editing LZM files Unpack: lzm2dir /home/chris/Desktop/Slax/slax/base/002-xorg.lzm /tmp/aaaaxorg Repack: dir2lzm /tmp/aaaaxorg/ 002-xorg.lzm
WARNING! This page is obsolete.
This page is no longer correct and exists for historical reasons only.