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

[Cbsupport] [Fwd: [cai-vic] Knoppix 3.4 Hard Drive Install guide (relevant to CBV)]




-- Kylie Davies Victorian Branch Coordinator Computerbank Australia Inc www.computerbank.org.au

--- Begin Message ---
Hi All,

The following is a brief guide to installing Knoppix on the hard drive. It's in draft stage...hasn't been edited... or tested...it's just been written from experience and notes I have written.

I have asked several questions throughout the guide in the hope that someone can supply the answers or help out. :)

In addition to what gets mentioned in this guide, there is a lot of other configuration required before shipping a Knoppix build to a client. These have not been included in the guide this time around.

Cheers, and enjoy!

Kylie

Draft 1: Knoppix 3.4 Hard Drive Install Guide

Date 09/06/04

_Overview_

This guide is designed to give a quick overview of installing Knoppix on computers in the CBV environment. The guide is also useful for those wishing to install Knoppix on computers at home.

The guide does not explain Linux command line usage or the Linux file system, it is to be used as a set of basic instructions for the installation of Knoppix 3.4.

_Getting Started_

Ensure you have a computer that meets the current CBV spec, current Knoppix 3.4 (10-05-2004) CD and a network connection

Note: The network connection is not necessary, but it helps with the configuration of the network card.

Change the BIOS for the computer so that it boots from CD ROM.

Note: Some of our computers, ie...the 300PL IBM's do not boot from CD ROM and will require a boot floppy (can someone in WFD...ie DA/JS? get onto that)?

_Booting Knoppix 3.4_

Put the Knoppix 3.4 CD in the CD ROM drive so the computer can boot from it. If it loads successfully you will see a Knoppix boot screen.

To look at the Knoppix boot options, press the F2 and F3 keys. If Knoppix can't boot due to unmet memory requirements, or weird hardware, boot options can be passed at the boot prompt.

For example, if Knoppix hangs on AGP device detection we can boot Knoppix by entering "knoppix noagp" or, to boot with minimal hardware detection (often very handy for systems with interesting hardware), try entering "failsafe" at the Knoppix boot prompt.

There are more boot options available, they can be explored using the F2 and F3 keys.

Note: In the event that Knoppix can't figure out the best display settings to run, press enter twice. Most of the time this works and Knoppix will boot.

When Knoppix boots, it should present the KDE desktop. If the KDE desktop doesn't appear, it is likely that the TWM (Tiny Window Manager) will appear. While Knoppix can be installed using TWM, people new to Linux could find it a bit too minimalistic and not very intuitive (ie every time you get a new window you need to click to place it on the desktop).

_Configuring Knoppix using KDE Desktop and Knoppix Root Shell_

If Knoppix isn't running to it's optimal configuration for X (the display), or if the soundcard and network card have not been setup correctly they should be configured before starting the hard drive install. (Take Knoppix for a test drive to find out if devices work; load up the browser and try to find Google, play xgalaga to see if the sound works.)

X can be configured by launching "kxconfig" from the command line using the Knoppix root shell. This can be found by clicking on the K Menu ->Knoppix Menu->Root Shell or by clicking on the penguin menu located on the panel (next to the K menu).

The soundcard is configured using a utility called "soundcardconfig" and the network card can be configured using "netcardconfig".

The Knoppix root shell is also used to start the Knoppix install on the hard drive.

_Preparing for the Hard Drive Install_

The process for the install will vary depending on the state of the hard drive partition table.It could be that the HDD doesn't have a partition table, or the current partition table on the HDD (created during Desktop Penguin Install) fails to meet the minimum requirement for a the install (usually this is the swap).

Note: For a Knoppix install the minimum amount of swap is 128MB. In most of the installs I have done, I have set the Linux swap (file system type 82) at 150MB, as this was a nice easy number to work with (although it is probably overkill). :)

The minimum amount of disk for Linux (file system type 83) is 2gig. So, while yes, you can install Knoppix on a 2.2g hard drive,it doesn't leave a lot of room for anything else.

With the two disk systems it would be wise to allocate a minimum 2.5g to the first disk (for the install) so there is room for upgrades/additional software to be added at later data. The Knoppix build can also be stripped back to free up more space (see notes at end of guide).

As root, and before the install, check the partition table with "cfdisk" from a root shell. If there are no changes to be made, exit "cfdisk". If the partition table needs to be recreated, use "cfdisk" to do this. Navigate "cfdisk" with keyboard keys (arrows/enter) to select options and apply changes.

Note: Remember that Linux swap is type 83 and Linux is 82. Make Linux bootable. The swap should be between 128MB-150MB. You can accept the defaults for most other questions. The install seems to work independent of the swap location. It doesn't seem to matter where it goes as long as the size allocation is correct (others may like to correct me here? or shed light re swap and where it should go?).

After creating the partition table, write it to the disk. Reboot the computer if a message advises to do so.

_Starting the Install_

From the Knoppix root shell type the magic words (drum roll...)

#knx2hd
	or
#knoppix-installer
		or
#ignore_check=1 sudo knoppix installer

There are slight differences between each script, (apparently... but I don't know?), however, the end result is Knoppix on the hard drive. :)

If you find that you need to partition the disk (during the knoppix install) because it fails to meet the requirements, try the qtparted program that Knoppix presents during the install.

Note: Qtparted seems to be buggy at times, I haven't had a lot of success with it.

Note: Sometimes the Knoppix installer gets 'stuck' at HDD partitioning and needs a little coaxing. Try rebooting, try setting the swap at the end of the disk and rewriting the partition table, try using qtparted to define partitions, try different variants of the knoppix hard drive install command (see above)...try anything! [Qn: Can someone research this problem, i had a brief look on knoppix.net, but couldn't find anything.]

Persevere until the Knoppix Hard Drive Installer Menu with 6 menu options appears. The most important menu option is 'Start Installation', choose this when it appears.

When asked to install beginner, Knoppix or the Debian way, choose the Debian method.

When asked to select the file system type, select reiserfs.

The next series of questions require the input of information about the user and the system.

1- The users full name: Computerbank User
2- The users login name: user
3- The user password: cbvsys
4- The root password: cbvsys
5- The Hostname: the cbvid number from the tech spec form, ie: if cbv1890, the name would be cbv1890


When asked where to install LILO, accept the default option, the master boot record (mbr).

Before the install starts, a dialogue box will appear to confirm the install options, clicking on Next..or hitting the enter key, will start the install.

A progress dialogue box will appear, and remain, on the screen during the install.

Note: The install can take around 20-40 mins depending on the capacity of the system.

Just before the install finishes, another dialogue box will appear to ask if a rescue floppy disk should be made. Select no.

Finally a dialogue box that announces "knoppix has been successfully installed" will appear and the installation is complete.

When done, reboot the computer so that Knoppix loads from the hard drive instead of the CD ROM (take the CD out) and login as the user created during the install.

_Customising the User desktop_

Note: A basic knowledge of KDE and the KDE Control Centre (Kcontrol) are required to perform some of the changes mentioned below.

The user desktop needs some customising because some of the icons on the desktop don't work (Floppy and CD ROM devices are misconfigured), or, point to irrelevant information (eg Linux Tag). A link to the home directory can also be placed on the desktop. Be sure to leave the trash can.
.
Further configuration of the desktop (ie themes/icons/mouse operation/color/file associations/menu editing) can also be performed.


_Trimming down and adding packages to Knoppix using Debian Advanced Package Management (APT) Tool_

Note: It is outside the scope of this guide to explain the APT tool. This guide gives the commands that need to be issued while using APT to remove and add software to the system. While using APT you will need to be the root user.

It is essential to change the sources list that the Knoppix install writes in /etc/apt/sources.list as this points to a comprehensive list of German Debian Sources.

The sources should point to Debian Unstable, so it will be necessary to comment out (put a # in front of a source line) any the other sources. When at CBV, Debian sources should point to the internal CBV Debian repository on rasterman, and, when out in the wild, the sources should point to US or AU sources, and not the German ones.

[Perhaps we can have some suggestions for reliable sources from people using Debian at home?] [Could someone post the rasterman sources URL on list?]

Before updating packages, always be sure to run an apt-get update.

In order to remove packages from the system, a knowledge of what to remove, and when to remove it, is required. If you are unsure about what to do when using APT, ask someone to help.

To remove a whole lot of superfluous and unnecessary software, (research indicates this selection works), type the following at a root shell prompt: [Yep...we need a script!]

apt-get remove --purge kdevelop3* kdevelop3-data kdevelop3-plugins kompare xfig apache apache-common apache-utils python-tk chromium chromium-data enigma gnuchess imaze bochs xtel emacs* nedit larswm* twm* xbattle xawtv xawtv-plugins zile jpilot xfce fluxbox falconseye falconseye-data netris samba ding linneighborhood nxclient airsnort dillo mutt qtparted slrn k3b wavemon wmaker wmakerconf ethereal* ethereal-common* joe kdat kpilot isdnutils rosegarden xaos gnomemeeting csh sash radio kbackup

In the event that APT suggests the removal of other packages, do not proceed with the removal of the software. If all looks okay, enter Y to continue to remove the software.

When APT has finished the shell prompt will be returned and the software has been removed from the system.

[Note: Ideally we would like to remove nessus and nessusd but these packages return errors. If you know what you are doing when using APT, remove nessus and it's associated components.]

Note: Removing nessus requires users to recreate or delete directory paths in order to trick APT into removing the packages. It is only advisable to do this if you know what you are doing.

To add software, in particular, ktouch and tuxpaint, enter the following command, "apt-get install ktouch tuxpaint"

When APT returns to the prompt, the new software will be available to use.

And Wallah...a near ready Knoppix install has been built!


-- Kylie Davies Victorian Branch Coordinator Computerbank Australia Inc www.computerbank.org.au


_______________________________________________ cai-vic mailing list cai-vic@lists.linux.org.au http://lists.linux.org.au/listinfo/cai-vic


--- End Message ---