blob: fbdb5ecb90e73838a42d401c29271433fe1d09aa [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3[<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
4
5<chapter id='toaster-manual-start'>
6
7<title>Preparing to Use Toaster</title>
8
9 <para>
10 This chapter describes how you need to prepare your system in order to
11 use Toaster.
12 </para>
13
14 <section id='toaster-setting-up-the-basic-system-requirements'>
15 <title>Setting Up the Basic System Requirements</title>
16
17 <para>
18 You first need to be sure your build system is set up to run
19 the Yocto Project.
20 See the
21 "<ulink url='&YOCTO_DOCS_QS_URL;#yp-resources'>Setting Up to Use the Yocto Project</ulink>"
22 section in the Yocto Project Quick Start for information on how
23 to set up your system for the Yocto Project.
24 </para>
25 </section>
26
27 <section id='toaster-establishing-toaster-system-dependencies'>
28 <title>Establishing Toaster System Dependencies</title>
29
30 <para>
31 Toaster requires extra Python dependencies in order to run.
32 A Toaster requirements file named
33 <filename>toaster-requirements.txt</filename> defines the
34 Python dependencies.
35 The requirements file is located in the
36 <filename>bitbake</filename> directory, which is located in the
37 root directory of the
38 <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
39 (e.g. <filename>poky/bitbake/toaster-requirements.txt</filename>).
40 The dependencies appear in a <filename>pip</filename>,
41 install-compatible format.
42 </para>
43
44 <section id='toaster-optional-virtual-environment'>
45 <title>Optionally Setting Up a Python Virtual Environment</title>
46
47 <para>
48 It is highly recommended that you use a Python virtual
49 environment that allows you to maintain a dedicated Python
50 executable and its own set of installed modules.
51 Doing so separates the executable from the Python and modules
52 provided by the operating system and therefore avoids any
53 version conflicts.
54 </para>
55
56 <para>
57 Follow these steps to set up your virtual environment.
58 These steps assume a Ubuntu distribution:
59 <orderedlist>
60 <listitem><para><emphasis>Install <filename>virtualenv</filename>:</emphasis>
61 Install the supported
62 <filename>python-virtualenv</filename> package from your
63 distribution rather than using <filename>pip</filename>.
64 <literallayout class='monospaced'>
65 $ sudo apt-get install python-virtualenv
66 </literallayout>
67 </para></listitem>
68 <listitem><para><emphasis>Create and Activate a Virtual Environment:</emphasis>
69 <literallayout class='monospaced'>
70 $ virtualenv venv
71 $ source venv/bin/activate
72 </literallayout>
73 </para></listitem>
74 </orderedlist>
75 <note>
76 If you do choose to set up a virtual environment in
77 which to run Toaster, you must initialize that
78 virtual environment each time you want to start
79 Toaster.
80 Use the following to initialize the environment just
81 before you start Toaster:
82 <literallayout class='monospaced'>
83 $ source venv/bin/activate
84 </literallayout>
85 </note>
86 </para>
87 </section>
88
89 <section id='toaster-load-packages'>
90 <title>Install Toaster Packages</title>
91
92 <para>
93 You need to install the packages that Toaster requires.
94 Use this command:
95 <literallayout class='monospaced'>
96 $ pip install -r bitbake/toaster-requirements.txt
97 </literallayout>
98 </para>
99 </section>
100
101<!-- Commenting this section out for now in case it needs to be used again.
102
103 <section id='toaster-install-daemon'>
104 <title>Install <filename>daemon</filename></title>
105
106 <para>
107 Toaster depends on
108 <ulink url='http://www.libslack.org/daemon/'><filename>daemon</filename></ulink>.
109 Depending on your distribution, how you install
110 <filename>daemon</filename> differs:
111 <itemizedlist>
112 <listitem><para><emphasis>Debian-Based Systems:</emphasis>
113 If you are running a Debian-based distribution,
114 install <filename>daemon</filename> using the
115 following command:
116 <literallayout class='monospaced'>
117 $ sudo apt-get install daemon​
118 </literallayout>
119 </para></listitem>
120 <listitem><para><emphasis>Non-Debian-Based Systems:</emphasis>
121 If you are not running a Debian-based distribution
122 (Redhat-based distribution such as Fedora),
123 you need to download ​the file relevant to the
124 architecture and then install
125 <filename>daemon</filename> manually.
126 Following are the commands for 64-bit distributions:
127 <literallayout class='monospaced'>
128 $ wget http://libslack.org/daemon/download/daemon-0.6.4-1.x86_64.rpm
129 $ sudo rpm -i daemon-0.6.4-1.x86_64.rpm
130 </literallayout>
131 Here are the commands for a 32-bit distribution:
132 <literallayout class='monospaced'>
133 $ wget http://libslack.org/daemon/download/daemon-0.6.4-1.i686.rpm
134 $ sudo rpm -i ​daemon-0.6.4-1.i686.rpm​
135 </literallayout>
136 </para></listitem>
137 </itemizedlist>
138 </para>
139 </section> -->
140 </section>
141</chapter>