2015-04-22 21:36:33 -04:00
---
layout: doc
2015-10-13 23:31:03 -04:00
title: Archlinux Template
2015-10-28 18:14:40 -04:00
permalink: /doc/templates/archlinux/
2015-10-11 03:04:59 -04:00
redirect_from:
2016-05-21 10:49:01 -04:00
- /doc/archlinux/
2015-10-28 18:14:40 -04:00
- /en/doc/templates/archlinux/
2015-10-11 03:04:59 -04:00
- /doc/Templates/Archlinux/
- /wiki/Templates/Archlinux/
2015-04-22 21:36:33 -04:00
---
2015-10-13 23:31:03 -04:00
Archlinux Template
2015-04-22 21:36:33 -04:00
===============
Archlinux template is one of the templates made by Qubes community. It should
be considered experimental as Qubes developers team use mainly Fedora-based VMs
to test new features/updates.
Main maintainer of this template is [Olivier Médoc ](mailto:o_medoc@yahoo.fr ).
2015-04-23 10:14:55 -04:00
2016-02-08 19:04:55 -05:00
< br >
2015-04-23 10:14:55 -04:00
2016-02-19 12:20:31 -05:00
## Instructions ##
2015-04-22 21:36:33 -04:00
2016-02-08 19:04:55 -05:00
< br >
2016-11-18 05:45:18 -05:00
**These are the instructions for Qubes 3.2. They will take you step by step through the entire process start to finish**
2015-04-22 21:36:33 -04:00
2016-02-08 19:04:55 -05:00
*Note: Currently there are no binary packages and it must be compiled from source using the instructions below.*
2015-04-22 21:36:33 -04:00
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 11:32:34 -05:00
2016-02-19 12:20:31 -05:00
#### **1: Create and configure VM to use for template building:** ####
2015-09-18 20:03:05 -04:00
2016-02-08 19:04:55 -05:00
* The VM should be based on a Fedora template. It's best to use a standalone VM. I created a standalone VM based on
the Fedora 23 template. I named the VM “**development**”. These instructions assume a standalone VM based on a Fedora template is being used.
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-01 ](/attachment/wiki/ArchlinuxTemplate/arch-template-01.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* Ensure there is at least 25GB preferably 30GB of free space in the private storage. I made the private storage 30GB to be safe.
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-02 ](/attachment/wiki/ArchlinuxTemplate/arch-template-02.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
*Note: Unless otherwise noted, all commands are from within the “development” VM or whatever you named your standalone VM used for building the template.*
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **2: Create GitHub Account (optional):** #####
2016-02-08 19:04:55 -05:00
* It can be helpful. Creating only a basic account is all that is needed. This will allow you to help, going forward, with the Qubes project. You could be help edit errors in documentation. It can also be of use building other templates.
* Create user account here https://github.com
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-03 ](/attachment/wiki/ArchlinuxTemplate/arch-template-03.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **3: Install necessary packages to 'development' VM for "Qubes Automated Build System":** #####
2016-02-08 19:04:55 -05:00
* Necessary packages to install:
* git
* createrepo
* rpm-build
* make
* rpmdevtools
* python-sh
2016-12-11 12:51:20 -05:00
* dialog
2016-02-08 19:04:55 -05:00
* rpm-sign
2016-11-19 15:20:04 -05:00
* gnupg
2016-02-08 19:04:55 -05:00
< br >
* The tools can usually be installed all together with the following terminal command string:
2016-11-19 15:20:04 -05:00
* ** $ sudo dnf install git createrepo rpm-build make wget rpmdevtools python-sh dialog rpm-sign gnupg**
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-04 ](/attachment/wiki/ArchlinuxTemplate/arch-template-04.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **4: Installing the "Qubes Automated Build System":** #####
2016-02-08 19:04:55 -05:00
2016-11-26 03:36:49 -05:00
* Download the latest stable qubes-builder repository:
2016-02-08 19:04:55 -05:00
2016-11-26 03:36:49 -05:00
* $ **git clone https://github.com/QubesOS/qubes-builder.git**
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-05 ](/attachment/wiki/ArchlinuxTemplate/arch-template-05.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-11-18 05:45:18 -05:00
* You will now have the Qubes Builder System environment installed in the directory below:
* ** /home/user/qubes-builder/**
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **5: Configuring setup script to create builder.conf file:** #####
2016-02-08 19:04:55 -05:00
2016-02-21 13:07:55 -05:00
* You will be creating the builder.conf file which tells where and what to use. The most automated, and in this case the easiest, way to create this is to use the script that is provided in Qubes Builder. Its named '**setup**'. Before running the script you need to edit one file it uses.
2016-02-08 19:04:55 -05:00
*In the future this should not be needed once a change is made to the 'setup' script.*
2016-11-18 05:45:18 -05:00
* Edit the '**qubes-os-r3.2.conf**' which is found in ** /home/user/qubes-builder/example-configs** Use the text editor of your choice.
2016-02-08 19:04:55 -05:00
* ** $ cd /home/user/qubes-builder/example-config/**
2016-11-18 05:45:18 -05:00
* ** $ nano -W qubes-os-r3.2.conf** or ** $ gedit qubes-os-r3.2.conf** or etc….
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-06 ](/attachment/wiki/ArchlinuxTemplate/arch-template-06.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-03-20 07:19:07 -04:00
* Go to the first line containing '**DISTS_VM ?= fc23**' it will be preceeded by line '**DIST_DOM0 ?= fc20**'. Remove '**fc23**' or whatever is listed there leaving only '**DISTS_VM ?=**'. Then save the file and close the text editor.
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-07 ](/attachment/wiki/ArchlinuxTemplate/arch-template-07.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **6: Run the 'setup' script to build the builder.conf file** #####
2016-02-08 19:04:55 -05:00
* Run the 'setup' script located in '**/home/user/qubes-builder/**' Make sure you are in directory '**qubes-builder**'
* ** $ cd /home/user/qubes-builder/**
* ** $ ./setup**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-08 ](/attachment/wiki/ArchlinuxTemplate/arch-template-08.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* First screen will ask you to import 'Qubes-Master-Signing-key.asc'. The 'setup' script not only downloads but confirms the key to that of the key on Qubes-OS website.
* Select '**YES**'
* Select '**OK**' Press '**Enter**'
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-09 ](/attachment/wiki/ArchlinuxTemplate/arch-template-09.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* Next screen will ask you to import Marek Marczykowski-Goracki (Qubes OS signing key). Again 'setup' will confirm this key to the fingerprint.
* Select '**YES**'
* Select '**OK**' Press '**Enter**'
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-10 ](/attachment/wiki/ArchlinuxTemplate/arch-template-10.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* This screen will give you the choice of which Qubes Release to build the template for.
2016-11-18 05:45:18 -05:00
* Select '**Qubes Release 3.2**'
2016-02-08 19:04:55 -05:00
* Select '**OK**' Press '**Enter**'
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-11 ](/attachment/wiki/ArchlinuxTemplate/arch-template-11.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* Screen "**Choose Repos To Use To Build Packages**"
2016-04-18 17:37:25 -04:00
* Select 'QubesOS/qubes- Stable - Default Repo'
2016-02-08 19:04:55 -05:00
* Select '**OK**' Press '**Enter**'
< br >
2016-11-18 05:45:18 -05:00
< br >
![arch-template-12 ](/attachment/wiki/ArchlinuxTemplate/arch-template-12.png )
< br >
2016-04-18 17:37:25 -04:00
< br >
* Screen "**Build Template Only?**"
* Select '**Yes**' Press '**Enter**'
< br >
2016-02-08 19:04:55 -05:00
< br >
2016-11-18 05:45:18 -05:00
![arch-template-12 ](/attachment/wiki/ArchlinuxTemplate/arch-template-12a.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 06:08:01 -05:00
* Screen '**Builder Plugin Selection**' will give choices of builder plugins to use for the build.
2016-02-08 19:04:55 -05:00
* Deselect '**Fedora**'
2016-11-18 05:45:18 -05:00
* Deselect '**mgmt_salt**'
2016-02-08 19:04:55 -05:00
2016-11-18 05:45:18 -05:00
* Select '**builder-archlinux**'
2016-02-08 19:04:55 -05:00
* Select '**OK**' Press **Enter**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-13 ](/attachment/wiki/ArchlinuxTemplate/arch-template-13.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-04-18 17:37:25 -04:00
* Screen '**Get sources**' wants to download additional packages needed for the choosen plugin/s.
2016-02-08 19:04:55 -05:00
2016-11-18 05:45:18 -05:00
* Select '**Yes**' Press '**Enter**'
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-14 ](/attachment/wiki/ArchlinuxTemplate/arch-template-14.png )
2016-11-18 05:45:18 -05:00
< br >
< br >
* Then wait for download to finish and press '**OK**'
< br >
< br >
![arch-template-14 ](/attachment/wiki/ArchlinuxTemplate/arch-template-15.png )
< br >
2016-02-08 19:04:55 -05:00
< br >
* Screen '**Template Distribution Selection**' allows you to choose the actual template/s you wish to build.
* Scroll Down to the very bottom (it is off the screen at first)
* Select '**archlinux**'
* Select '**OK**' Press '**Enter**'
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-16 ](/attachment/wiki/ArchlinuxTemplate/arch-template-16.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
*Note: 'Setup' will close and will output the text of the created build.conf file as well as the needed * *make** commands to build the template*
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-17 ](/attachment/wiki/ArchlinuxTemplate/arch-template-17.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **7: Install all the dependencies:** #####
2016-02-11 05:17:54 -05:00
*Note: make sure you are in the “qubes-builder” directory to run the following cmds*
2016-02-08 19:04:55 -05:00
* ** $ make install-deps**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-18 ](/attachment/wiki/ArchlinuxTemplate/arch-template-18.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **8: Get all the require sources for the build: (Note: this may take some time)** #####
2016-02-08 19:04:55 -05:00
* ** $ make get-sources**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-19 ](/attachment/wiki/ArchlinuxTemplate/arch-template-19.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **9: Make all the require Qubes Components:** #####
2016-02-08 19:04:55 -05:00
* **Note:** You can run a single command to build all the Qubes components or you can run them each individually.
Both ways below:
* Single command to build all Qubes components together: (this command can take a long time to process depending of your pc proccessing power)
* ** $ make qubes-vm**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-20 ](/attachment/wiki/ArchlinuxTemplate/arch-template-20.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
* These are the indivual component 'make' commands:
* ** $ make vmm-xen-vm**
* ** $ make core-vchan-xen-vm**
* ** $ make core-qubesdb-vm**
* ** $ make linux-utils-vm**
* ** $ make core-agent-linux-vm**
* ** $ make gui-common-vm**
* ** $ make gui-agent-linux-vm**
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **10: Make the actual Archlinux template:** #####
2016-02-08 19:04:55 -05:00
2016-02-11 05:17:54 -05:00
* ** $ make template**
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-21 ](/attachment/wiki/ArchlinuxTemplate/arch-template-21.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **11: Transfer Template into Dom0** #####
2016-02-08 19:04:55 -05:00
* You need to ensure these two files are in the '**noarch**' directory
* ** $ cd /home/user/qubes-builder/qubes-src/linux-template-builder/rpm/**
* ** $ ls** *(confirm the below two files are there)*
* **install-templates.sh** (script to install template in dom0)
* ** $ cd noarch**
* ** $ ls**
* **qubes-template-archlinux-X.X.X-XXXXXXXXXXXX.noarch.rpm** (this is the template package 'X' replaces version and build digits)
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-22 ](/attachment/wiki/ArchlinuxTemplate/arch-template-22.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 06:08:01 -05:00
* **Transfer the install-templates.sh script file into Dom0**
2016-02-08 19:04:55 -05:00
*Note: as there is not a typical file transfer method for Dom0, for security reasons, this less than simple transfer function has to be used*
* Swtich to Domo and open a terminal window.
2016-02-11 06:08:01 -05:00
**Note:** Take care when entering these cmd strings. They are very long and have a number of characters that are easy to mix '**-**' vs '**.**' '**< u > T</ u > emplates** (correct) vs ** < u > t</ u > emplates** (wrong) or **Template_** '(also wrong) This script will also take care of transfering the actual template.rpm to Dom0 as well.
2016-02-08 19:04:55 -05:00
* ** $ cd /**
* ** $ sudo qvm-run --pass-io development 'cat /home/user/qubes-builder/qubes-src/linux-template-builder/rpm/install-templates.sh' > install-templates.sh**
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-23 ](/attachment/wiki/ArchlinuxTemplate/arch-template-23.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-24 ](/attachment/wiki/ArchlinuxTemplate/arch-template-24.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **If everything went correct there should be a Archlinux template listed in your Qubes VM Manager** #####
2016-02-08 19:04:55 -05:00
< br >
< br >
< br >
---------------
2016-02-19 12:20:31 -05:00
## **Package Manager Proxy Setup Section** ##
2016-02-08 19:04:55 -05:00
One last thing to setup to have a "PROPERLY" functioning archlinux template.
2016-02-21 13:07:55 -05:00
Archlinux package manager Pacman is a fine package mangers except that we could not find a way to configure it to use the Qubes Update Proxy Service (QUPS) that would comply with Qubes QUPS usage policy.
2016-02-08 19:04:55 -05:00
*If someone does find a way please post to the Qubes-Users or Devel google groups mailing list.*
2016-02-21 13:07:55 -05:00
Powerpill is a full Pacman wrapper that not only give easy proxy configuration but further offers numerous other advantages.
2016-02-08 19:04:55 -05:00
Please check out:
[Archlinux Powerpill ](https://wiki.archlinux.org/index.php/powerpill )
[XYNE's (dev) Powerpill ](http://xyne.archlinux.ca/projects/powerpill/ )
2016-08-10 10:44:41 -04:00
**Important Note:** Until Powerpill is configured you will have to open network access to the template to get the initial packages etc downloaded. You can use the "allow full access for" a given time period in the FW settings of the template in the VMM or open up the various services through the same window. Remember to change it back if you choose the later route. Actions needing network access will be noted with (needs network access)
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **1: Editing Pacman's configuration file (pacman.conf)** #####
2016-02-08 19:04:55 -05:00
* Open archlinux terminal app
* edit /etc/pacman.conf
* ** $ sudo nano -w /etc/pacman.conf**
2016-02-21 13:07:55 -05:00
* Below is the output of a correct pacman.conf file Make the changes so your file matches this one or rename the original and create a new one and copy and paste this text into it. Text should be justified left in the file. The changes from your default are to make gpg sig signing mandatory for packages but not required for DBs for the archlinux repos. Also to add the repo (at the end) for the Powerpill package.
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-20 19:16:51 -05:00
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
#
# GENERAL OPTIONS
#
2016-02-11 22:27:43 -05:00
[options]
2016-02-20 19:16:51 -05:00
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
# RootDir = /
# DBPath = /var/lib/pacman/
# CacheDir = /var/cache/pacman/pkg/
# LogFile = /var/log/pacman.log
2016-02-11 22:27:43 -05:00
GPGDir = /etc/pacman.d/gnupg/
HoldPkg = pacman glibc
2016-02-20 19:16:51 -05:00
# XferCommand = /usr/bin/curl -C - -f %u > %o
# XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
# CleanMethod = KeepInstalled
# UseDelta = 0.7
2016-02-11 22:27:43 -05:00
Architecture = auto
2016-02-20 19:16:51 -05:00
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
# IgnorePkg =
# IgnoreGroup =
# NoUpgrade =
2016-02-11 22:27:43 -05:00
NoUpgrade = /etc/X11/xinit/xinitrc.d/pulseaudio
NoUpgrade = /etc/X11/xinit/xinitrc.d/pulseaudio
NoUpgrade = /etc/X11/xinit/xinitrc.d/pulseaudio
2016-02-20 19:16:51 -05:00
# NoExtract =
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
# Misc options
# UseSyslog
# Color
# TotalDownload
2016-02-11 22:27:43 -05:00
CheckSpace
2016-02-20 19:16:51 -05:00
# VerbosePkgLists
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
**Edited Line:** `# SigLevel = Required DatabaseOptional`
2016-02-11 22:27:43 -05:00
LocalFileSigLevel = Optional
2016-02-20 19:16:51 -05:00
# RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux` .
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
# [testing]
# SigLevel = PackageRequired
# Include = /etc/pacman.d/mirrorlist
2016-02-11 22:27:43 -05:00
[core]
2016-02-20 19:16:51 -05:00
2016-02-11 22:27:43 -05:00
**Edited Line:** `SigLevel = PackageRequired`
Include = /etc/pacman.d/mirrorlist
[extra]
2016-02-20 19:16:51 -05:00
2016-02-11 22:27:43 -05:00
**Edited Line:** `SigLevel = PackageRequired`
Include = /etc/pacman.d/mirrorlist
2016-02-20 19:16:51 -05:00
# [community-testing]
# SigLevel = PackageRequired
# Include = /etc/pacman.d/mirrorlist
2016-02-11 22:27:43 -05:00
[community]
2016-02-20 19:16:51 -05:00
2016-02-11 22:27:43 -05:00
**Edited Line:** `SigLevel = PackageRequired`
Include = /etc/pacman.d/mirrorlist
2016-02-20 19:16:51 -05:00
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
# [multilib-testing]
# Include = /etc/pacman.d/mirrorlist
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
# [multilib]
# Include = /etc/pacman.d/mirrorlist
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
# [custom]
# SigLevel = Optional TrustAll
# Server = file:///home/custompkgs
2016-02-11 22:27:43 -05:00
[multilib]
2016-02-20 19:16:51 -05:00
2016-02-11 22:27:43 -05:00
**Edited Line:** `SigLevel = PackageRequired`
2016-02-08 19:04:55 -05:00
2016-02-11 22:27:43 -05:00
Include = /etc/pacman.d/mirrorlist
2016-02-08 19:04:55 -05:00
2016-02-20 19:16:51 -05:00
**Edited Line:** `# [qubes]`
2016-02-08 19:04:55 -05:00
2016-02-20 19:16:51 -05:00
**Edited Line:** `# Server = http://olivier.medoc.free.fr/archlinux/pkgs/`
2016-02-08 19:04:55 -05:00
2016-02-11 22:27:43 -05:00
**Add Section Below:**
[xyne-x86_64]
2016-02-20 19:16:51 -05:00
# A repo for Xyne's own projects: http://xyne.archlinux.ca/projects/
# Packages for the "x86_64" architecture.
# Added for PowerPill app
# Note that this includes all packages in [xyne-any].
2016-02-11 22:27:43 -05:00
SigLevel = Required
Server = http://xyne.archlinux.ca/repos/xyne
----------
2016-02-08 19:04:55 -05:00
< br >
2016-02-19 12:20:31 -05:00
##### **2: Setting Up GPG** (needs network access) #####
2016-02-08 19:04:55 -05:00
* Initialize GPG Keyring
* ** $ sudo pacman-key --init**
* Populate the keyring with Archlinux master keys
2016-02-11 22:27:43 -05:00
* ** $ sudo pacman-key --populate archlinux**
2016-02-08 19:04:55 -05:00
* Confirm keys with those at [Archlinux Master Keys ](https://www.archlinux.org/master-keys/ )
2016-02-21 13:07:55 -05:00
* For more information on Pacman key signing: [Pacman Package Key Signing ](https://wiki.archlinux.org/index.php/Pacman/Package_signing )
2016-02-08 19:04:55 -05:00
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **3: Install Powerpill (Pacman wrapper)** (needs network access) #####
2016-02-08 19:04:55 -05:00
* ** $ sudo pacman -S powerpill**
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **4: Install Reflector** (needs network access) #####
2016-02-08 19:04:55 -05:00
*Note: It scripts mirror updating. Grabbing the most up to date gen mirror list. It ranks them by most recently sync'd. Then ranks them on fastest speed. Also can be used by Powerpill config to allow a once stop conf file for all if so wanted.*
* ** $ sudo pacman -S reflector**
Note: You can combine package downloads: ** $ sudo pacman -S powerpill reflector**
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **5: Backup mirrorlist prior to first running Reflector.** #####
2016-02-08 19:04:55 -05:00
Note: For info on Reflector and its configs: [Reflector ](https://wiki.archlinux.org/index.php/Reflector )
* ** $ sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bkup**
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **6: Setup mirrolist with Reflector** (needs network access)** #####
2016-02-08 19:04:55 -05:00
*Note: Look at the Reflector page to decide what filter and argument string you wish to run. Below is a default string that will work for most all to setup a working basic mirrorlist.
2016-02-21 13:07:55 -05:00
*Look to Reflector pages or --help for more info on args and filters.*
2016-02-08 19:04:55 -05:00
* ** $ sudo reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist**
* The above ranks all the most up to date and sorts for the 5 fastest
* You can confirm the new list by opening the newly created mirrorlist.
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **7: Configure Powerpill configuration file to use Qubes Proxy Service** #####
2016-02-08 19:04:55 -05:00
* Qubes Proxy Address: **10.137.255.254:8082**
* Edit **powerpill.json** (powerpill config file)
* ** $ sudo nano -w /etc/powerpill/powerpill.json**
* Add line '**--all-proxy=10.137.255.254:8082**' at the bottom of the list under the ** "aria2"** section under the ** "args"** line. Example below:
< br >
{
"aria2": {
"args": [
"--allow-overwrite=true",
"--always-resume=false",
"--auto-file-renaming=false",
"--check-integrity=true",
"--conditional-get=true",
"--continue=true",
"--file-allocation=none",
"--log-level=error",
"--max-concurrent-downloads=100",
"--max-connection-per-server=5",
"--min-split-size=5M",
"--remote-time=true",
"--show-console-readout=true",
"--all-proxy=10.137.255.254:8082"
],
"path": "/usr/bin/aria2c"
},
< br >
< br >
2016-02-19 12:20:31 -05:00
##### **8: Test Powerpill Configuration** #####
2016-02-08 19:04:55 -05:00
*Note: Powerpill uses and passes the same syntax as pacman*
* Configure Archlinux Template to only use the Qubes Proxy Update Service
* In the Qubes VM Manager under Archlinux FW tab make sure only the access check box for update proxy is on. All others should be set to deny.
* ** $ sudo powerpill -Syu**
* You should get a similar output as below:
< br >
< br >
2016-02-11 05:17:54 -05:00
![arch-template-26 ](/attachment/wiki/ArchlinuxTemplate/arch-template-26.png )
2016-02-08 19:04:55 -05:00
< br >
< br >
**Remember you must open up network access anytime you wish to run the Reflector script to update the mirrorlist. This page will be updated when/if this situation changes.**
2016-02-19 12:20:31 -05:00
### **If the above checks out, you can start using your new Archlinux Template** ###
2016-02-08 19:04:55 -05:00
< br >
< br >
2015-09-18 20:03:05 -04:00
2016-02-19 12:20:31 -05:00
#### **Known Issues:** ####
2015-04-22 21:36:33 -04:00
2016-02-11 22:27:43 -05:00
* If there is an Arch upgrade of Pulse Audio it will require rebuilding and installing Qubes component: gui-agent-linux
* There May also be a similar issue of dependencies with Xorg.
2016-08-10 10:44:41 -04:00
* Upgrade Relfector functionality to allow its use through the QUPS
2016-02-11 22:27:43 -05:00
2016-08-10 10:44:41 -04:00
* Pacman functionality changes and allows it to be directly configured to work through QUPS.
2016-02-11 22:27:43 -05:00
< br >
2015-04-22 21:36:33 -04:00
2016-02-19 12:20:31 -05:00
#### **Qubes Mailing List Threads on the Archlinux build process:** ####
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
* [Qubes-Devel ](https://groups.google.com/forum/#!forum/qubes-devel ): [Qubes Builder failed Archlinux repository is missing ](https://groups.google.com/forum/#!topic/qubes-devel/tIFkS-rPVx8 )
2016-02-11 22:27:43 -05:00
2016-02-20 19:16:51 -05:00
* [Qubes-Users ](https://groups.google.com/forum/#!forum/qubes-users ): [Trying to compile archlinux template ](https://groups.google.com/forum/#!topic/qubes-users/7wuwr3LgkQQ )
2016-02-11 22:27:43 -05:00
< br >
2016-02-19 12:20:31 -05:00
#### **Want to contribute?** ####
2016-02-11 22:27:43 -05:00
* [How can I contribute to the Qubes Project? ](/doc/contributing/ )
2016-09-24 19:25:34 -04:00
* [Guidelines for Documentation Contributors ](/doc/doc-guidelines/ )
2016-02-11 22:27:43 -05:00
< br >