DevelopmentSetup

Differences between revisions 13 and 19 (spanning 6 versions)
Revision 13 as of 2015-01-22 01:24:51
Size: 4046
Editor: xdsl-83-150-81-40
Comment:
Revision 19 as of 2015-04-16 20:30:37
Size: 4371
Editor: xdsl-83-150-81-40
Comment: Removing automatic VirtualBox interwiki links.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from QATeam/DevelopmentInstall
Line 11: Line 10:
||<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/]].|| ||<tablestyle="width: 95%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px; padding-top: 0.25em;">As an example, the latest Ubuntu daily image can always be found at [[http://cdimage.ubuntu.com/daily-live/current/]].||
Line 17: Line 16:
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. If you have already downloaded an image for the current release (eg. Vivid), you can [[QATeam/DevelopmentSetup/SyncImage|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:
Once you have an image you start preparing to install it into a virtual machine, such as VirtualBox, or onto physical hardware. Once you have an image you start preparing to install it into a virtual machine, such as Virtual''''''Box, or onto physical hardware.
Line 23: Line 22:
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}}}. To be able to run Ubuntu in a virtual machine, you will need to have virtualization software, such as Virtual''''''Box, installed. You can install Virtual''''''Box via the Ubuntu Software Center or by running {{{sudo apt-get install virtualbox}}}.
Line 25: Line 24:
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. Once you have Virtual''''''Box 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.
Line 29: Line 28:
If everything has succeeded, VirtualBox will now boot the installation media inside the virtual machine and you can start running the tests. If everything has succeeded, Virtual''''''Box will now boot the installation media inside the virtual machine and you can start running the tests.
Line 31: Line 30:
||<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'''. || ||<tablestyle="width: 95%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px; padding-top: 0.25em;">In addition to Virtual''''''Box, there are other virtualization options available. These include, but are not limited to '''KVM''' and '''VMWare'''. ||
Line 34: Line 33:
||<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.|| 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]].
Line 36: Line 35:
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]]. ''Alternative tools for creating a bootable USB stick include Disks from gnome-disk-utility. A method of creating a stick with that tool can be found at the Creating the image section [[https://wiki.ubuntu.com/Unity8DesktopIso|here]].''

||<tablestyle="width: 95%; margin-bottom: 1em;" style="background-color: #eee; border: none; border-radius: 3px; padding-top: 0.25em;">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.||

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.

Alternative tools for creating a bootable USB stick include Disks from gnome-disk-utility. A method of creating a stick with that tool can be found at the Creating the image section 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 xdsl-83-150-81-40)