2015-04-23 10:14:55 -04:00
---
layout: doc
2015-10-13 23:31:03 -04:00
title: Ubuntu Template
2015-10-28 18:14:40 -04:00
permalink: /doc/templates/ubuntu/
2015-10-11 03:04:59 -04:00
redirect_from:
2016-05-21 10:49:01 -04:00
- /doc/ubuntu/
2015-10-28 18:14:40 -04:00
- /en/doc/templates/ubuntu/
2015-10-11 03:04:59 -04:00
- /doc/Templates/Ubuntu/
- /wiki/Templates/Ubuntu/
2015-04-23 10:14:55 -04:00
---
Ubuntu template(s)
==================
2019-07-12 08:19:44 -04:00
If you would like to use Ubuntu Linux distribution in your AppVMs, you can build and install one of the available Ubuntu templates.
These templates are currently not provided by Qubes in ready to use binary packages, because Canonical does not allow redistribution of a modified Ubuntu.
2020-02-20 09:47:45 -05:00
The redistribution is not allowed by their [Intellectual property rights policy][IP].
2015-04-23 10:14:55 -04:00
2020-02-20 09:47:45 -05:00
Building the Template
2015-04-23 10:14:55 -04:00
-------
2020-02-20 09:47:45 -05:00
Templates can be built using [Qubes Builder][builder]
(You can also access documentation in the [source code repository][repo].)
2019-07-12 08:19:44 -04:00
2020-02-20 09:47:45 -05:00
Please carefully read the [instructions][builder] for setting up and using Qubes Builder.
2019-07-12 08:19:44 -04:00
To quickly prepare the builder configuration, you can use the `setup` script available in the repository - it will interactively ask you which templates you want to build.
2020-02-20 09:47:45 -05:00
Select one of the Ubuntu version options.
On the "Choose Pre-Built Packages Repositories" page you must not select either option.
This is because Qubes does not provide offical Pre-Built packages for Ubuntu.
Once you have completed setup, in the qubes-builder directory, run:
2019-07-12 08:19:44 -04:00
```
make qubes-vm
make template
```
The build for Ubuntu 16.04 LTS (Xenial) is straightforward.
The build for Ubuntu 18.04 LTS (Bionic) is straightforward.
2015-04-23 10:14:55 -04:00
2017-01-31 21:19:00 -05:00
2020-02-20 09:47:45 -05:00
Installing the template
-------
You must copy the template you have built in to dom0 and install it there.
Rather than do this manually, there is a script you can use.
2018-07-15 05:33:57 -04:00
2020-02-20 09:47:45 -05:00
In dom0, run :
```
qvm-run -p < build_qube > 'cat /home/user/qubes-builder/qubes-src/linux-template-builder/rpm/install-templates.sh ' > install-templates.sh
```
If you have built other templates, edit the `install-templates.sh` to ensure you only retain the templates you want to install.
Then run `./install-templates.sh`
2016-11-10 22:02:08 -05:00
2016-11-11 17:27:48 -05:00
----------
2020-02-20 09:47:45 -05:00
If you want to help in improving the template, feel free to [contribute][contrib].
2015-04-23 10:14:55 -04:00
2020-02-20 09:47:45 -05:00
[IP]: https://www.ubuntu.com/legal/terms-and-policies/intellectual-property-policy
[repo]: https://github.com/QubesOS/qubes-builder/blob/master/README.md
[builder]: /doc/qubes-builder/
[contrib]: /doc/contributing/