toaster-manual-start.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!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. <chapter id='toaster-manual-start'>
  5. <title>Preparing to Use Toaster</title>
  6. <para>
  7. This chapter describes how you need to prepare your system in order to
  8. use Toaster.
  9. </para>
  10. <section id='toaster-setting-up-the-basic-system-requirements'>
  11. <title>Setting Up the Basic System Requirements</title>
  12. <para>
  13. Before you can use Toaster, you need to first set up your
  14. build system to run the Yocto Project.
  15. To do this, follow the instructions in the
  16. "<ulink url='&YOCTO_DOCS_DEV_URL;#dev-preparing-the-build-host'>Preparing the Build Host</ulink>"
  17. section of the Yocto Project Development Tasks
  18. Manual.
  19. For Ubuntu/Debian, you might also need to do an additional install
  20. of pip3.
  21. <literallayout class='monospaced'>
  22. $ sudo apt-get install python3-pip
  23. </literallayout>
  24. </para>
  25. </section>
  26. <section id='toaster-establishing-toaster-system-dependencies'>
  27. <title>Establishing Toaster System Dependencies</title>
  28. <para>
  29. Toaster requires extra Python dependencies in order to run.
  30. A Toaster requirements file named
  31. <filename>toaster-requirements.txt</filename> defines the
  32. Python dependencies.
  33. The requirements file is located in the
  34. <filename>bitbake</filename> directory, which is located in the
  35. root directory of the
  36. <ulink url='&YOCTO_DOCS_REF_URL;#source-directory'>Source Directory</ulink>
  37. (e.g. <filename>poky/bitbake/toaster-requirements.txt</filename>).
  38. The dependencies appear in a <filename>pip</filename>,
  39. install-compatible format.
  40. </para>
  41. <section id='toaster-load-packages'>
  42. <title>Install Toaster Packages</title>
  43. <para>
  44. You need to install the packages that Toaster requires.
  45. Use this command:
  46. <literallayout class='monospaced'>
  47. $ pip3 install --user -r bitbake/toaster-requirements.txt
  48. </literallayout>
  49. The previous command installs the necessary Toaster modules
  50. into a local python 3 cache in your
  51. <filename>$HOME</filename> directory.
  52. The caches is actually located in
  53. <filename>$HOME/.local</filename>.
  54. To see what packages have been installed into your
  55. <filename>$HOME</filename> directory, do the following:
  56. <literallayout class='monospaced'>
  57. $ pip3 list installed --local
  58. </literallayout>
  59. If you need to remove something, the following works:
  60. <literallayout class='monospaced'>
  61. $ pip3 uninstall PackageNameToUninstall
  62. </literallayout>
  63. </para>
  64. </section>
  65. <!-- Commenting this section out for now in case it needs to be used again.
  66. <section id='toaster-install-daemon'>
  67. <title>Install <filename>daemon</filename></title>
  68. <para>
  69. Toaster depends on
  70. <ulink url='http://www.libslack.org/daemon/'><filename>daemon</filename></ulink>.
  71. Depending on your distribution, how you install
  72. <filename>daemon</filename> differs:
  73. <itemizedlist>
  74. <listitem><para><emphasis>Debian-Based Systems:</emphasis>
  75. If you are running a Debian-based distribution,
  76. install <filename>daemon</filename> using the
  77. following command:
  78. <literallayout class='monospaced'>
  79. $ sudo apt-get install daemon​
  80. </literallayout>
  81. </para></listitem>
  82. <listitem><para><emphasis>Non-Debian-Based Systems:</emphasis>
  83. If you are not running a Debian-based distribution
  84. (Redhat-based distribution such as Fedora),
  85. you need to download ​the file relevant to the
  86. architecture and then install
  87. <filename>daemon</filename> manually.
  88. Following are the commands for 64-bit distributions:
  89. <literallayout class='monospaced'>
  90. $ wget http://libslack.org/daemon/download/daemon-0.6.4-1.x86_64.rpm
  91. $ sudo rpm -i daemon-0.6.4-1.x86_64.rpm
  92. </literallayout>
  93. Here are the commands for a 32-bit distribution:
  94. <literallayout class='monospaced'>
  95. $ wget http://libslack.org/daemon/download/daemon-0.6.4-1.i686.rpm
  96. $ sudo rpm -i ​daemon-0.6.4-1.i686.rpm​
  97. </literallayout>
  98. </para></listitem>
  99. </itemizedlist>
  100. </para>
  101. </section> -->
  102. </section>
  103. </chapter>