Skip to main content - Skip to accessibility settings - Skip to right sidebar

Ubuntu 7.04 on Virtual PC 2007 How To

UPDATE: I'm eliminating the "LAMP" part of this walk though since it cause some problems within VirtualPC, and I cover the installation of LAMP and Webmin in other parts of this site (links within...)

I've just gone through a TONNE of how to-s and forums, etc, etc... and have come up with this instruction set that should get you a Ubuntu command line-only 7.04 LAMP server install within Virtual PC 2007. All for free :)
Time: 30min-1hr.
See below for links to all the sources of info I rummaged through to get this working, eventually...

Get and install Virtual PC 2007 from either:
http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-4...
-or-
http://www.microsoft.com/windows/downloads/virtualpc/default.mspx

Get Ubuntu 7.04 Server here:
http://releases.ubuntu.com/7.04/ (chose one of the server distros)
http://releases.ubuntu.com/7.04/ubuntu-7.04-server-i386.iso (this is the one I used)

Start Virtual PC 2007....

Create a new VPC, select "other" for OS, with at least 256ram (I used 512mb of 1.5gig. After successfully installing, reduced to 256mb). I gave myself 4gigs of space, non-expanding.

Boot from UBUNTU 7.04 server ISO.

I had the best luck mounting the ISO in Alcohol-52% as a virtual drive, then selecting that drive, F: in my case, in Virtual PC as a "physical" drive.

IMPORTANT!!! hit F4 and define your desired screen resolution, you'll have trouble later if you don't.
I use 800x600x16. Don't use 24bit, I've heard this can cause trouble...

...follow the rest of the install...

...choose LAMP when the choice arises...

!!! if your install fails to boot...START !!!**************************

Reboot, do not eject cd/ISO , boot from cd/ISO
IMPORTANT!!! hit F4 and define your desired screen resolution, you'll have trouble later if you don't
Select "Rescue a broken system ".
Go through all the steps, similar to installation....
At the end of all that, select "Execute a shell in /dev/hda1"
("#" denotes shell commands)

su
apt-get install linux-386
apt-get remove linux-server

Re-boot: I got an error trying to reboot, hit reset(Virtual PC), then rebooted into a corrupt(?) install, system checked and fixed itself(?), automatically rebooted into working install...

!!! if your install fails to boot...END !!!**************************

Upon successful login...

sudo passwd root

...and give root a password.
become root by running the following command:

su

Look for updates to your installation (I performed this again after installing other apps, not sure how often this is necessary)

apt-get install update


Install Nano

sudo apt-get install nano

Other tutorials site vi as the text editor of choice, but I found it difficult to get the hang of, being a command line newbie. Nano was a little easier to grasp and has limited mouse capabilities (on native installs)...


Install php5

apt-get install apache2 php5 libapache2-mod-php5

Create test.php to test install

nano /var/www/test.php

Add the text "<?php phpinfo(); ?> " and save (ctrl-x, press "y" to save changes, and hit return)

View server in browser (under host OS)... (http://192.168.1.101/) ... substitute "192.168.1.101" for the IP address of your Virtual PC.


Install Mysql

apt-get install mysql-server mysql-client php5-mysql

#mysql -u root
# USE mysql;
# UPDATE user SET Password='new-password' WHERE user='root';
# FLUSH PRIVILEGES;


Install Phpmyadmin

apt-get install phpmyadmin

#nano /etc/apache2/apache2.conf

*** add the following line...
"Include /etc/phpmyadmin/apache.conf" and save (ctrl-x, press "y" to save changes, and hit return)

/etc/init.d/apache2 restart

Login to phpmyadmin @ http://192.168.1.101/phpmyadmin (no 's' in 'http' required) ... substitute "192.168.1.101" for the IP address of your Virtual PC.

!!! If you cannot log into phpmyadmin... START !!!**************************

nano /var/www/phpmyadmin/config.inc.php

And add the following line immediately after the opening "

"$i = 1;"

And add the following just before the "?>" tag

"
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['user'] = 'root';
"
!!! If you cannot log into phpmyadmin... END !!!**************************


Install Webmin

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

edit the /etc/apt/sources.list add the following line...

nano /etc/apt/sources.list

...and add the following line...
"deb http://download.webmin.com/download/repository sarge contrib" and save (ctrl-x, press "y" to save changes, and hit return)

apt-get update
#apt-get install webmin

Login to webmin @ https://192.168.1.101:10000/ *** Don't forget the 's' in 'https'... substitute "192.168.1.101" for the IP address of your Virtual PC.

ENJOY

As I am preparing to follow this tutorial myself, I am going to cut out some steps in my next install. Webmin may be a all-in-one solution and may eliminate the need to install anything else listed in this article. And since Phpmyadmin seems to only cause me grief, wouldn't mind giving it the axe.

I'll also see how the install process differs on an actual PC and post the differences.

Next!!! Install Drupal 5.2 from command line!!! http://www.scothiam.com/Drupal

Sources:

Clean install of Ubuntu 7.04 server crashes on boot help/how-to:
http://www.virtualbox.org/ticket/289

Ubuntu 7.04 LAMP help/how-to:
http://onlyubuntu.blogspot.com/2007/05/ubuntu-704-feisty-fawn-lamp-serve...
http://www.howtoforge.com/ubuntu_debian_lamp_server

Nano help/how-to:
https://help.ubuntu.com/community/Nano?action=show&redirect=NanoHowto#he...

Webmin help/how-to:
http://onlyubuntu.blogspot.com/2007/05/how-to-install-webmin-in-ubuntu.h...

Phpmyadmin help/how-to (see p.68-69):
http://www.friendsofed.com/errata.html?isbn=1590595815

Get Virtual PC 2007 for free:
http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-4...
http://www.microsoft.com/windows/downloads/virtualpc/default.mspx

UBUNTU 7.04 server ISO.
http://releases.ubuntu.com/7.04/
http://releases.ubuntu.com/7.04/ubuntu-7.04-server-i386.iso (this is the one used in this example)

alcohol 52%:
http://trial.alcohol-soft.com/en/

Categories:

    Accessibility

    colour font  Linear layout

    Accessibility guide - Home page