Knoppix LiveCD to HD Part #2

Updating HD installation

You can do a

for i in $(COLUMNS=240 dpkg -l | awk '{print $2}') ; do
echo dpkg-repack --root=/KNOPPIX "$i"
done

(The following worked for me with Knoppix 3.7 2004-12-08: create a bash script and sudo sh bashscriptname)

#!/bin/bash
#
echo ""
for i in $(COLUMNS=240 dpkg -l | awk '{print $2}') ; do
echo dpkg-repack --root=/KNOPPIX "$i"
dpkg-repack --root=/KNOPPIX "$i"
mv *.deb /mnt/hdxn
done
# where hdxn is your destination partition
# for the packages (needs 700 MB free)
echo ""
read -p "Finished; press Enter to exit"
echo ""


to create packages from a running KNOPPIX CD to a writable harddisk partition, and install/update these packages with dpkg -i.

See:

* http://freshmeat.net/projects/dpkg/
* tldp.org/LDP/linuxcookbook/html/cookbook_4.html#SEC42 (dead link)
* http://www.debian.org/doc/packaging-manuals/dpkg-internals/
* http://www.debian.org/doc/manuals/apt-howto/index.en.html

Using the Knoppix repository atdeveloper.linuxtag.net/knoppix/ (dead link) plus the standard debian mirrors is easier, though. See also : http://jaqque.sbih.org/kplug/apt-pinning.html
Installing Gnome

To install Gnome, you have to comment all the lines in /etc/apt/sources.list except the unstable ones. Then issue the commands as root:

apt-get update
apt-get install gnome


In order to have gnome-session working you must execute the following command and choose metacity and/or gdm:

update-alternatives --config x-window-manager

 

Article List