The Artima Developer Community
Sponsored Link

Python Buzz Forum
CoLinux considered useful

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
CoLinux considered useful Posted: Sep 8, 2005 3:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: CoLinux considered useful
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

I'm starting to like CoLinux; I think it's what's going to keep me working next time I'm on the road.

Here's a rough summary of what it took to get the instance that lives on my portable hard disk and runs off a Win2K laptop going ...

Install the Debian image, the TAP driver and interface, and also bridged networking support. Install WinPCap.

Set up /etc/network/interfaces like this:

auto lo eth0 eth1

iface eth0 inet static
  address 192.168.2.14
  gateway 192.168.2.63
  netmask 255.255.255.0

iface eth1 inet static
  address 192.168.98.2
  netmask 255.255.255.0

iface lo inet loopback

Put this in config.xml:

<network index="0" type="bridged" name="Wireless LAN" mac="wlan card's mac address here" />
<network index="1" type="tap" name="colinux-TAP" />

(My home network is 192.168.2.* and 192.168.98.* is a fake network to get connectivity between the Linux instance and the Win2K laptop I'm running it on. You might not need the TAP device and eth1 - but if you find you can connect from Linux to the outside world but not the host PC, this will help. I tried DHCP for eth0 originally, but it gave me the address my WLAN card was using under Windows, which didn't work.)

On Windows, edit c:\windows\system32\drivers\etc\hosts and add "192.168.98.2 colinux" at the bottom.

On Windows, rename the TAP connection to "colinux-TAP", change its IP address to 192.168.98.1 and make sure that a default gateway is NOT specified.

Put name servers in /etc/resolv.conf.

update-rc.d -f inetd remove

apt-get install emacs21 apache mysql-server python php4 libapache-mod-php php-elisp python-mode

cp /usr/share/doc/mysql-server/examples/my-small.cnf /etc/mysql/my.cnf

/etc/init.d/mysql restart

Edit /etc/apache/httpd.conf and change MinSpareServers to 1, StartServers to 1, and MaxClients to 10 (this machine doesn't have much memory).

/etc/init.d/apache restart

I've probably forgotten something - but this is most of the "important" stuff :-)

Comment

Read: CoLinux considered useful

Topic: 11 Holidays, at last 11 Previous Topic   Next Topic Topic: e Google AdSense 11

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use