in the coLinux config file (interfaces).
or
and get hidden behind other windows.
The install process looks like it is hung up.
It's not required, but I find that Debian maintenance and updates are a little
easier when the coLinux files are separated from Debian file system artifacts.
It's free, and works on all the file types that I've had to deal with.
# This is an example for a configuration file that can
# be passed to colinux-daemon in this manner:
#
# colinux-daemon @example.conf
#
# Note that you can still prepend or append configuration and
# boot parameters before and after '@', or you can use more
# that one '@ to load several settings one after another.
#
# colinux-daemon @example.conf @overrider.conf mem=32
#
# Full list of config params is listed in colinux-daemon.txt.
# The default kernel kernel=vmlinux
# File contains the root file system.
# FOR cobd0: CHANGED DIRECTORY FROM c:\colinux TO c:\debian AND USED THE REAL FILE SYSTEM NAME
# Also has corresponding entry in Debian /etc/fstab cobd0="c:\debian\Debian-4.0r0-etch.ext3.10gb-root"
# FOR cobd1: CHANGED DIRECTORY FROM c:\colinux TO c:\debian AND USED THE REAL SWAP FILE NAME
# Also has corresponding entry in Debian /etc/fstab cobd1="c:\debian\swap_2g"
# FOR cobd2: CHANGED DIRECTORY FROM c:\colinux TO c:\debian AND USED THE REAL FILE SYSTEM NAME
# This is used for a second extra Debian file system. Otherwise it is commented.
# Also has corresponding entry in Debian /etc/fstab
# cobd2="c:\debian\Debian-4.0r0-etch.ext3.10gb-xtra"
# FOR cobd4: I USE TO POINT TO MY DVD/CD DRIVE. OTHERWISE COMMENTED.
# Also has corresponding entry in Debian /etc/fstab cobd4="\Device\Cdrom0"
# Tell kernel the name of root device (mostly /dev/cobd0,
# /dev/cobd/0 on Gentoo)
# This parameter will be forward to Linux kernel. root=/dev/cobd0
# Additional kernel parameters (ro = rootfs mount read only) ro
# FOR cofs00: ADDED cofs00 SO DEBIAN WILL BE ABLE TO ACCESS MY WINDOWS C: DRIVE
# Also has corresponding entry in Debian /etc/fstab cofs00="C:\"
# FOR cofs01: ADDED cofs01 SO DEBIAN WILL BE ABLE TO ACCESS MY WINDOWS F: DRIVE.
# Also has corresponding entry in Debian /etc/fstab file
# Don't have a F: drive? then delete the line or make it a comment.
# This could be any other "local"/USB hard drive on your PC: D, E, ... Z
# cofs01="F:\"
# Initrd installs modules into the root file system.
# Need only on first boot. initrd=c:\colinux\initrd.gz
# Maximal memory for linux guest # FOR mem: Set memory size to 512 mem=512
# Select console size, default is 80x25 cocon=120x24
# Slirp for internet connection (outgoing)
# Inside running coLinux configure eth0 with this static settings:
# ipaddress 10.0.2.15 broadcast 10.0.2.255 netmask 255.255.255.0
# gateway 10.0.2.2 nameserver 10.0.2.3
# FOR eth0: uncomment eth0 and added port forwarding for ssh port 22
# Also has corresponding entry in debian /etc/fstab file eth0=slirp,,tcp:22:22
# Tuntap as private network between guest and host on second linux device
# FOR eth1: uncomment eth1
# Also has corresponding entry in debian /etc/fstab eth1=tuntap
# FOR eth2: comment a placeholder for pcap-bridge
# Also has corresponding entry in debian /etc/fstab #eth2=pcap-bridge,"COLINUX",,
# Setup for serial device #ttys0=COM1,"BAUD=115200 PARITY=n DATA=8 STOP=1 dtr=on rts=on"
# FOR exec0: I leave as a comment and start the Xming Xserver manually.
# Then I can use it for other X-Windows services besides this Debian instance.
# Also, if I shutdown Debian (halt), Xming stays put for my other uses.
# Run an application on colinux start (Sample Xming, a Xserver)
# exec0=C:\Programs\Xming\Xming.exe,":0 -clipboard -multiwindow -ac"
fstab
cd /etc
nano fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/cobd0 / ext3 noatime,errors=remount-ro 0 1
/dev/cobd1 none swap sw 0 0
# /dev/cobd2 /mnt/10g ext3 noatime,errors=remount-ro 0 1
/dev/cobd4 /cdrom iso9660 defaults,noauto
/dev/cofs00 /mnt/cdrive cofs defaults 0 0
# cofs01 /mnt/fdrive cofs defaults 0 0
top - 13:11:10 up 1 min, 1 user, load average: 0.07, 0.05, 0.01
Tasks: 27 total, 1 running, 26 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 516296k total, 20084k used, 496212k free, 976k buffers
Swap: 2305016k total, 0k used, 2305016k free, 9932k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2218 root 15 0 2232 1080 856 R 0.3 0.2 0:00.71 top
... ...
mkswap /dev/cobd1
swapon -a
top
cd /mnt
# cd to the /mnt directory
mkdir cdrive
# this creates /mnt/cdrive to match the mount point name in the fstab file for /dev/cofs00
cd /
# cd to the system root directory
ln -s /mnt/cdrive /c
# create a symbolic link from /mnt/cdrive to the root directory and name in: /c
You may access the Windows C:\ drive via /c
mount -a
# mount all unmounted devices in fstab.
Windows C:\ drive is now available.
interfaces
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://ftp.debian.org etch Release.gpg [386B]
Get:3 http://ftp.debian.org etch Release [58.2kB]
Get:4 http://security.debian.org etch/updates Release [37.6kB]
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://ftp.debian.org etch/main Sources/DiffIndex
Get:5 http://security.debian.org etch/updates/main Packages [403kB]
Get:6 http://ftp.debian.org etch/main Packages [5620kB]
Get:7 http://security.debian.org etch/updates/contrib Packages [8934B]
Get:8 http://security.debian.org etch/updates/main Sources [62.2kB]
Get:9 http://security.debian.org etch/updates/contrib Sources [1283B]
Get:10 http://ftp.debian.org etch/main Sources [1656kB] Fetched 7847kB in 1m10s (111kB/s)
Reading package lists...
Done
Windows IP Configuration
Host Name . . . . . . . . . . . . : pslaptop
Primary Dns Suffix . . . . . . . : na.phs.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : na.phs.com
phs.com
Ethernet adapter coLinux1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V8 (coLinux)
Physical Address. . . . . . . . . : 00-FA-A1-2C-12-AB
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.101.147
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Broadcom NetLink Gigabit Ethernet
Physical Address. . . . . . . . . : 00-16-A1-CA-5B-DF
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . : comcast.net.
Description . . . . . . . . . . . : Broadcom 802.11a/b/g WLAN
Physical Address. . . . . . . . . : 00-2B-31-13-4D-FA
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 201.155.124.23
201.155.112.23
68.87.73.242
interfaces
I can not explain the details of how each of these configuration settings work.
There is much documentation at the coLinux site that can assist you in understanding network operations to a greater degree.
I know that this setup works for me.
# Second network (tap-win32) auto eth1 iface eth1 inet static address 192.168.0.40 netmask 255.255.255.0 gateway 192.168.0.1
# Second network (tap-win32) auto eth1 iface eth1 inet static address 192.168.1.101 netmask 255.255.255.0 gateway 192.168.1.1
note to self: /etc/resolv.conf but later, as many may not need it yet
apt-get --fix-missing update
apt-get upgrade
apt-get install <package name>
apt-get install ssh
cd /etc
# go to the /etc directory
cp -p passwd passwd.sav
# save a copy of passwd file
vi passwd
- for the user root, change bash to ksh save and exit (:wq in vi)
exit
# to log off and get new login prompt
cd /etc
to
mkdir -p /opt/local/bin
cd /opt/local/bin
cp -p /c/debian/ccl_olb.20101229.160858.tar .
tar -xvf ccl_olb.20101229.160850.tar
cp ~/.profile ~/.profile.sav
cd /opt/local/bin
cp .profile ~
cp .myprof ~
cp .myoptions ~
cd
. ./.profile
functions
a
# i.e., alias | more
To see any new variables enter command:
env | less
cd /opt/local/bin
cp .profile /etc/skel
cp .myprof /etc/skel
cp .myoptions /etc/skel
adduser <username>
example: adduser andy
Note: To delete a user, use the command: deluser <username>
Also review the man pages for deluser, userdel, adduser, useradd, addgroup, and groupadd
or
if [[ -z $DISPLAY ]] then export DISPLAY=10.0.2.2:0.0 fi
Create a new PuTTY session, use the IP address from step 12
Do not allow C: drive access (skip step 11 above) and a virus can be removed by doing a CoLinux restore from the backup copy made in step 24.
... I'm done unless you ask for help or clarification.
...additional notes could be done on how to uninstall TAP-WIN32, if you were to remove CoLinux.
... how to do some shell coding, like creating your own "tree" command or "dos2unix" command, for when those utilities are NOT available (some AIX systems).
... MS Windows host file - add loopback and 127.0.0.1 for the Debian install.u