The Artima Developer Community
Sponsored Link

Python Buzz Forum
Ubuntu and Debian on Windows

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
Ubuntu and Debian on Windows Posted: Oct 19, 2006 5:51 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: Ubuntu and Debian on Windows
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've been getting some support e-mails for PeopleAggregator from people running it on Ubuntu, so I thought it was about time I at least set up a vmware install of Ubuntu. There's a mirror in New Zealand, so the 400 meg CD download (for the server version) took less than an hour. The installation was really quick, I guess because I was using the minimal version. Generally it looks very much like plain Debian so far. So now, while Windows XP is my primary OS on this laptop, I have Debian running under colinux, which is what I'm using to write this blog post, and Ubuntu running under vmware. Total memory+swap usage is showing as 0.99 GB right now, which is pretty reasonable for three simultaneous operating systems :-)

I'm going to write down everything I've done to configure it here, in the process of making a "how to install PA on Ubuntu" guide (which will go on the wiki).

Initial setup: vmware with NAT networking. Ubuntu server 6.06.1 install with LVM on an 8GB virtual disk. After installation and some apt-getting, the vmdk file is about 500MB, so it's fairly 'light'.

apt-get install samba emacs21 ssh

[now I can ssh in to the IP address for eth0 with PuTTY, which is nicer than using the vmware console.]

emacs /etc/samba/smb.conf

[change workgroup = MYELIN, uncomment [homes] (plus comment, valid users, writable, create mask, directory mask).]

smbpasswd -a phil

[enter password for phil twice.]

/etc/init.d/samba restart

[now I can successfully 'ping ubuntu' from the windows host and access \\ubuntu\phil.]

emacs /etc/hostname /etc/hosts

[change hostname from ubuntu to miniu - ubuntu is a PITA to type! - and s/ubuntu/miniu/g in the ubuntu.mshome.net line in /etc/hosts. if repeating this at home, keep a root shell open in another screen as sudo failed for me the first, until I edited /etc/hosts!.]

hostname `cat /etc/hostname`
apt-get install php5 mysql-server subversion

[wait as 30MB downloads from security.ubuntu.com.]

cd /var/www
svn checkout http://update.peopleaggregator.org/svn/release/pa/

[browse to http://miniu/pa, click link to config page.]

chmod a+w /var/www/pa/web/config

[refresh config page, get huge list of errors.]

emacs /etc/apt/sources.list

[uncomment the two lines required to access packages in the 'universe' distribution.]

apt-get update
apt-get install php5-mysql php-db php5-gd imagemagick
/etc/init.d/apache2 restart
chmod a+w /var/www/pa/log /var/www/pa/networks /var/www/pa/web/files /var/www/pa/web/cache /var/www/pa/web/sb-files

[refresh config page, find that PA is now installable! enter an admin password, database password, and click 'Set up PeopleAggregator'.]

mv /var/www/pa/web/config/local_config.php /var/www/pa/

[browse to http://miniu/pa/web/ - and it's working!]

[browse to http://miniu/pa/web/api/doc/peopleaggregator.echo.html and click on the test links - and they work!]

So now we have a working PeopleAggregator install on Ubuntu. There are plenty of things you'd want to do to make it a bit more usable - in particular:

- install on a system with a real domain, with wildcard DNS configured, so network spawning will work.

- configure a root password for MySQL.

- set the DocumentRoot to /var/www/pa/web so the URL is http://miniu/ rather than http://miniu/pa/web/.

All these details are covered in installation guide (also linked from the download/update page).

Comment

Read: Ubuntu and Debian on Windows

Topic: The Agile Story: Show, don't tell Previous Topic   Next Topic Topic: MochiKit Talk at Freedel 06

Sponsored Links



Google
  Web Artima.com   

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