[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] Knoppix Customization and Persistency FAQ



Hey Nils :)

Gute Sache, die FAQ.

On Sat, Dec 14, 2002 at 19:36:51 +0100, Nils Magnus wrote:

> The Knoppix Customization and Persistency FAQ
> =============================================
[...]
> Q03: Can I install Knoppix on other filesystem types than ext2?
> 
> A03: That issue is currently worked on. However, you can install Knoppix
> on your harddrive with knx-hdinstall first, switch to the root user,
> create a new partion, format it with any filesystem you want and copy
> the temporary installation to the new partition. After these steps don't
> forget to adjust your boot loader and your /etc/fstab entries.

A03: Since Knoppix 3.1 2002-12-12, the included knx-hdinstall 0.35
allows installing to ext2, ext3 and reiserfs filesystem types.

Anmerkung:
Die Versionsnummer ist tatsaechlich 0.35, nicht 0.351. Das liegt
daran, dass Klaus als Grundlage fuer seine letzten Aenderungen an
knx-install diese Version als Grundlage verwendet hat, waehrend ich
die Version 0.351 mit einem aehnlichen Bugfix released habe.

Wenn ich es zeitlich schaffe, release ich vor Weihnachten noch eine
Version mit xfs-Support, franzoesischen Meldungen und weiteren
Kleinigkeiten.

> Q04: Can I install knoppix on more than one single partion?
> 
> A04: Not with the plain knx-hdinstall tool. There are too many details to
> be considered that would turn the script itself unmanageable. But you

Absolute Zustimmung. Die noetigen Sanity-Checks wuerden das Skript
schaetzungsweise um 50% aufblaehen.

> Q08: I want to make slightly more complex persistent changes to Knoppix
> like the configuration of a static IP address or the installation of a
> ssh certificate. Do I have to remaster the image?
> 
> A08: No you don't. If you pass the "floppyconfig" (or "custom" with is
> actually an alias for "floppyconfig") boot option line (sometimes
> inappropiately called cheatcodes), Knoppix searches after its hardware
> detection and booting the system for a file "knoppix.sh" on a floppy
> disk or in the "/" directory. You can place shell script commands into

Wenn das knoppix.sh-Skript im Verzeichnis /KNOPPIX auf der CD (nicht
im cloop-Mountpoint) liegt, wird es unabhaengig vom Bootparameter
"floppyconfig" ausgefuehrt.

> Q11: How can I change some of the defaults of a Knoppix installation
> booted from CDROM?
> 
> A11: The root directory of Knoppix resides on a ramdisk of your memory.
> The /etc directory, where most of the configuration files are stored, is
> also located on this ramdisk. However, most files in this directory are
> symbolic links to the CDROM for memonry consumption reasons. If you want
> to change i. e. the /etc/hosts file, you can perform the following steps:
> 
>   Open a command shell, then become root:
>   $ sudo -s
>   # cd /etc
>   # cp hosts hosts.tmp
>   # rm hosts
>   # mv hosts.tmp hosts
> 
> Now you have a copy of that file on the ramdisc which can be edited.

Fuer diesen Fall habe ich vor einiger Zeit ein kleines Shellskript
"changeconf" geschrieben:

#!/bin/sh
# changeconf -- edit symlinked files on Knoppix
[ -z "$EDITOR" ] && EDITOR=vi
case "$1" in
  /etc/*)
    if [ -L "$1" ] ; then
      rm -f "$1"
      cp /KNOPPIX/"$1" "$1"
      $EDITOR "$1"
    else
      $EDITOR "$1"
    fi
    ;;
  *)
    echo "only files in /etc allowed"
    ;;
esac


Gruss,
  Chris
-- 
Christian Perle                                   perle@itm.tu-clausthal.de
Grunaer Str. 31                      http://www.itm.tu-clausthal.de/~perle/
01069 Dresden                   LinuxGuitarKitesBicyclesBeerPizzaRaytracing
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: