DevelopmentSetup

Differences between revisions 1 and 14 (spanning 13 versions)
Revision 1 as of 2013-10-23 16:41:37
Size: 1749
Editor: nskaggs
Comment:
Revision 14 as of 2015-01-22 01:25:28
Size: 4046
Editor: knome
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from QATeam/DevelopmentInstall
Line 3: Line 4:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents>>|| = Setting up a development installation =
Line 5: Line 6:
= Summary =
Getting a development version of ubuntu installed is the first step to being able to provide test results for ubuntu.
== Obtaining an image ==
Line 8: Line 8:
= Setting up the installation =
== Using TestDrive==
If you are new to testing, try using [[https://wiki.ubuntu.com/QATeam/Testdrive|testdrive]] to get a development install up and running. It will setup a virtual machine with the latest development image of your choice which you can then install. Once installed you can use the virtualbox virtual machine as your test installation.
=== Downloading an image for the first time ===
Daily images of Ubuntu development are available on the [[http://cdimage.ubuntu.com/|cdimage server]]. For a development install, you will want to get either the '''most recent daily''' or the '''current milestone''' build.
Line 12: Line 11:
== Manual setup == ||<tablestyle="width: 90%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px;">As an example, the latest Ubuntu daily image can always be found at [[http://cdimage.ubuntu.com/daily-live/current/]].||
Line 14: Line 13:
=== Obtaining an image ===
Daily images of ubuntu development are available on the cdimage server. You want to [[http://cdimage.ubuntu.com/daily-live/current/|grab an image from the current builds]]. Download the image of your choice.
You will get the correct download link for your product (and the milestone, when needed) from the [[Testing/QATracker|QA Tracker]], after you have selected the milestone (daily, Alpha, Beta...) on the left hand side of the product of your choice in the product listing.
## Image here?
Line 17: Line 16:
=== Installing ===
Once you have an image you can install it into a virtual machine, such as virtualbox, or onto physical hardware. Feel free to use a cd, dvd, or usb drive as a medium to install on physical hardware.
=== Syncing, or updating, a previously downloaded image ===
If you have already downloaded an image for the current release (eg. Vivid), you can update the image by using '''rsync''' or '''zsync'''. The commands you need in order to do this can also be found in the download information page.
Line 20: Line 19:
= Staying Updated =
After installation, you can keep your install updated the same as a typical ubuntu installation. Use the update manager to update as new packages arrive. Alternatively utilize the command line via sudo apt-get update && sudo apt-get dist-upgrade.
== Get ready to install ==
Once you have an image you start preparing to install it into a virtual machine, such as VirtualBox, or onto physical hardware.
Line 23: Line 22:
== Partial Upgrade == === Creating and booting a virtual machine ===
To be able to run Ubuntu in a virtual machine, you will need to have virtualization software, such as VirtualBox, installed. You can install VirtualBox via the Ubuntu Software Center or by running {{{sudo apt-get install virtualbox}}}.

Once you have VirtualBox installed and have started it, you are ready to create a virtual machine. Click '''New''' and follow the wizard to create a virtual machine container for your installation. The default settings are usually good if you have no preference to change them.

When you have created the virtual machine, select the virtual machine you just created and click '''Start'''. When the virtual machine is starting, you will be prompted for a start-up disk. Click the '''Choose a virtual optical disk file...''' icon (at the right hand side) and navigate to the image you just downloaded, click '''Open''' and then '''Start'''.

If everything has succeeded, VirtualBox will now boot the installation media inside the virtual machine and you can start running the tests.

||<tablestyle="width: 90%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px;">In addition to VirtualBox, there are other virtualization options available. These include, but are not limited to '''KVM''' and '''VMWare'''. ||

=== Creating installation media for hardware ===
The instructions on how to create a bootable USB stick from your downloaded image can be found [[http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu|here]].

||<tablestyle="width: 90%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px;">When you install a development installation on hardware, it's good to remember that development versions aren't suitable for production machines. When installing, always take backups of important data and be prepared for the situation when the machine doesn't boot correctly. If you can, use a separate hard drive for the testing environment and dual-boot it with your main OS.||

== Staying up-to-date ==
After installation, you can keep your system updated the same as a typical installation. Use the update manager to update as new packages arrive. Alternatively utilize the command line via {{{sudo apt-get update && sudo apt-get dist-upgrade}}}.

=== Partial upgrades ===

Setting up a development installation

Obtaining an image

Downloading an image for the first time

Daily images of Ubuntu development are available on the cdimage server. For a development install, you will want to get either the most recent daily or the current milestone build.

As an example, the latest Ubuntu daily image can always be found at http://cdimage.ubuntu.com/daily-live/current/.

You will get the correct download link for your product (and the milestone, when needed) from the QA Tracker, after you have selected the milestone (daily, Alpha, Beta...) on the left hand side of the product of your choice in the product listing.

Syncing, or updating, a previously downloaded image

If you have already downloaded an image for the current release (eg. Vivid), you can update the image by using rsync or zsync. The commands you need in order to do this can also be found in the download information page.

Get ready to install

Once you have an image you start preparing to install it into a virtual machine, such as VirtualBox, or onto physical hardware.

Creating and booting a virtual machine

To be able to run Ubuntu in a virtual machine, you will need to have virtualization software, such as VirtualBox, installed. You can install VirtualBox via the Ubuntu Software Center or by running sudo apt-get install virtualbox.

Once you have VirtualBox installed and have started it, you are ready to create a virtual machine. Click New and follow the wizard to create a virtual machine container for your installation. The default settings are usually good if you have no preference to change them.

When you have created the virtual machine, select the virtual machine you just created and click Start. When the virtual machine is starting, you will be prompted for a start-up disk. Click the Choose a virtual optical disk file... icon (at the right hand side) and navigate to the image you just downloaded, click Open and then Start.

If everything has succeeded, VirtualBox will now boot the installation media inside the virtual machine and you can start running the tests.

In addition to VirtualBox, there are other virtualization options available. These include, but are not limited to KVM and VMWare.

Creating installation media for hardware

The instructions on how to create a bootable USB stick from your downloaded image can be found here.

When you install a development installation on hardware, it's good to remember that development versions aren't suitable for production machines. When installing, always take backups of important data and be prepared for the situation when the machine doesn't boot correctly. If you can, use a separate hard drive for the testing environment and dual-boot it with your main OS.

Staying up-to-date

After installation, you can keep your system updated the same as a typical installation. Use the update manager to update as new packages arrive. Alternatively utilize the command line via sudo apt-get update && sudo apt-get dist-upgrade.

Partial upgrades

Be very careful that your upgrade is not holding back or removing essential packages. If you encounter an upgrade that looks suspect, it's best to wait and try again at a later time. The archive state in general should be kept clean, but a partial upgrade is possible.

QATeam/DevelopmentSetup (last edited 2015-04-16 20:30:37 by knome)