Installing Cooperative Linux

Introduction

 This distribution of Cooperative Linux is meant to provide a complete and relatively easy-to-use setup of Cooperative Linux.   It is complete in the sense that it will install the Cooperative Linux programs and Linux kernel, let you choose to install a Linux file system file and swap device, it will write configuration files for each file system installed, it will (optionally) install Cooperative Linux as a Service, and it will provide menu items for starting, and configuring Cooperative Linux.

 The instructions below all assume that you have full administrative access to your computer.

 It is meant to be installed on a Windows 2000 or Windows XP computer with a file system that is using NTFS (the default file system type for Window 2000 or XP).  See the following section on Disk Space Usage for behavior on non NTFS file systems.

Disk Space Usage

 It may be installed on a file system that uses FAT or FAT32, but it will then use the real size of the files (1GB for the Debian distribution, 6GB for the Fedora Core 1 distribution and 256MB or 2GB for the swap device).  If it is installed on an NTFS file system, then it will only use the amount of space that Linux is currently really using—not the amount of space allocated for the Linux file system.  The following table shows the installed sizes for the give Linux 'devices': 

File system device file

Approximate Real Space Used

Space Allocated

Debian (root_fs)

66MB

1GB

Fedora Core 1 (fc1_6gb_root)

399MB

6GB

256 MB swap device (swap_device)

128KB

256MB

2GB swap device (swap_device)

128KB

2GB

 So on an NTFS file system, the second column shows the space really used while on FAT or FAT32 (if a file that large could be held by that file system) the third column shows the amount of space that would be used.  NOTE: if you install more files and use more space in Cooperative Linux (or use swap space for the swap devices) then the amount of Windows file system space used will grow and can grow to the amount of space given in the third column.

Network Setup

During the installation of Cooperative Linux, make sure to install the TAP network driver.

The first step in finishing the installation of networking for Cooperative Linux is to change the TAP adapter to "always connected"  by following these steps:

The second step in finishing the installation of networking for Cooperative Linux is to enable Internet Connection Sharing (ICS) on one of your real network connections (you may only have one)  by following these steps:

(This sets your IP address for your TAP adaptor to 192.168.0.1 which is your 'gateway' for your CoLinux.  Your CoLinux installations have their IP address set to 192.168.0.40 with the TAP adaptor address 192.168.0.1 as their gateway.)

The third step is to find your DNS lookup entries

(These addresses will need to be added to the /etc/resolve.conf file in your CoLinux session.  The format of the resolve.conf file is:

nameserver ###.###.###.###

where ###.###.###.### is the DNS addresses noted above.  Once you have a Cooperative Linux session running, use the command:

            vi /etc/resolve.conf

to edit the file.  Use the command dd to delete each existing line in the file, and then use the command i to start inserting into the file the above nameserver entries.  Use the escape key to finish inserting.  Use the command :wq (a colon followed by wq) to save and exit the file.)

Cooperative Linux Menus

The installation package has installed menus (select the Start menu in the lower left hand corner, followed by Programs and Cooperative Linux).  There are menu items for:

Cooperative Linux Service configuration

You will probably need to change which user the Cooperative Linux service runs as by:

Login to Cooperative Linux

At the "colinux login:" prompt, type "root" for the username and hit enter.

At the linux prompt, give the passwd command to change the password for root.

Shut Cooperative Linux down

To exit out of colinux, type poweroff or shutdown –h now.  This will shutdown the running Linux (and the Cooperative Linux service).

Adding more programs (packages)

To add more packages (or make sure the packages that are installed are up-to-date) you may use the comands

apt-get update

yum update

                        Retrieves new lists of packages—run once before running the other commands.

apt-get upgrade

yum upgrade

                        Perform an upgrade

apt-get install package

yum install package

                        Install the given package (see the link below for the list of Fedora Core 1 packages available)

apt-get dist-upgrade

                        Distribution upgrade

A FEDORA CORE package list is here.

Mounting your Windows drives

 If you installed the Fedora Core 1 (with the Samba client) the following instructions apply.  To mount your disk Windows disk drives (using the Samba client) so that you may read and write them from Linux, run the winmount command (located in /usr/local/bin) with the following syntax:

            winmount win_computer driveletter username

where win_computer is the network name of your computer, the driveletter is the drive letter of the drive you wish to mount (C, D, etc) and the username is a user on the Windows computer that has administrative access to the computer.  It will prompt you for the password for the user.  For example:

            winmount mycomputer c win_deity

will mount drive C at /mnt/mycomputer/c.  Use the umount command to unmount the drive:

            umount /mnt/mycomputer/c