1
0

Linux.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Dev/File/Setup/Linux - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Dev/File/Setup/Linux</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <p>
  19. XOWA recommends that Linux users download and install ImageMagick and Inkscape according to their distribution requirements.
  20. </p>
  21. <p>
  22. Ubuntu instructions are listed below. Other distro-specific instructions will be added as feedback is received.
  23. </p>
  24. <p>
  25. After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config:
  26. </p>
  27. <div>
  28. update xowa config&nbsp;⊗
  29. </div>
  30. <p>
  31. . You can also configure this option at <a href="http://xowa.org/wiki/home/page/Options/Files.html" id="xolnki_2" title="Options/Files" class="xowa-visited">Options/Files</a>
  32. </p>
  33. <p>
  34. For more information about the config, see the section below.
  35. </p>
  36. <div id="toc" class="toc">
  37. <div id="toctitle">
  38. <h2>
  39. Contents
  40. </h2>
  41. </div>
  42. <ul>
  43. <li class="toclevel-1 tocsection-1">
  44. <a href="#Ubuntu"><span class="tocnumber">1</span> <span class="toctext">Ubuntu</span></a>
  45. </li>
  46. <li class="toclevel-1 tocsection-2">
  47. <a href="#Config_.28all_distros.29"><span class="tocnumber">2</span> <span class="toctext">Config (all distros)</span></a>
  48. <ul>
  49. <li class="toclevel-2 tocsection-3">
  50. <a href="#Enable_images"><span class="tocnumber">2.1</span> <span class="toctext">Enable images</span></a>
  51. </li>
  52. <li class="toclevel-2 tocsection-4">
  53. <a href="#Paths"><span class="tocnumber">2.2</span> <span class="toctext">Paths</span></a>
  54. </li>
  55. </ul>
  56. </li>
  57. <li class="toclevel-1 tocsection-5">
  58. <a href="#ImageMagick_source"><span class="tocnumber">3</span> <span class="toctext">ImageMagick source</span></a>
  59. </li>
  60. </ul>
  61. </div>
  62. <h2>
  63. <span class="mw-headline" id="Ubuntu">Ubuntu</span>
  64. </h2>
  65. <p>
  66. Ubuntu users should run the following in a terminal:
  67. </p>
  68. <pre>
  69. sudo apt-get install imagemagick
  70. sudo apt-get install inkscape
  71. </pre>
  72. <h2>
  73. <span class="mw-headline" id="Config_.28all_distros.29">Config (all distros)</span>
  74. </h2>
  75. <h3>
  76. <span class="mw-headline" id="Enable_images">Enable images</span>
  77. </h3>
  78. <ul>
  79. <li>
  80. Navigate to <a href="http://xowa.org/wiki/home/page/Options.html" id="xolnki_3" title="Options" class="xowa-visited">Options</a> and check "Download enabled"
  81. </li>
  82. <li>
  83. Restart XOWA and navigate to any page. Any images will be downloaded automatically.
  84. </li>
  85. </ul>
  86. <h3>
  87. <span class="mw-headline" id="Paths">Paths</span>
  88. </h3>
  89. <p>
  90. Note that XOWA assumes that ImageMagick and Inkscape have the following paths:
  91. </p>
  92. <ul>
  93. <li>
  94. <b>/usr/bin/identify</b>
  95. </li>
  96. <li>
  97. <b>/usr/bin/convert</b>
  98. </li>
  99. <li>
  100. <b>/usr/bin/inkscape</b>
  101. </li>
  102. </ul>
  103. <p>
  104. If these paths are different on your system, you will need to update the config file. Instructions are provided below. If you run into issues, you may want to visit <a href="http://xowa.org/wiki/home/page/Dev/Config_files.html" id="xolnki_4" title="Dev/Config files">Dev/Config_files</a> for more information.
  105. </p>
  106. <ul>
  107. <li>
  108. Open <b>/xowa/xowa.gfs</b> in a text editor.
  109. </li>
  110. <li>
  111. Search for <code>.cmd_('/usr/bin/identify')</code>
  112. </li>
  113. <li>
  114. Update the path to whatever it is on you system.
  115. </li>
  116. <li>
  117. Repeat for the other paths
  118. </li>
  119. <li>
  120. Save the file and restart XOWA.
  121. </li>
  122. </ul>
  123. <h2>
  124. <span class="mw-headline" id="ImageMagick_source">ImageMagick source</span>
  125. </h2>
  126. <p>
  127. If you need to compile ImageMagick from source, you can try the following:
  128. </p>
  129. <ul>
  130. <li>
  131. Navigate to the <a href="http://www.imagemagick.org/script/install-source.php" rel="nofollow" class="external free">http://www.imagemagick.org/script/install-source.php</a>
  132. </li>
  133. <li>
  134. Download <b>tar.gz</b>.
  135. </li>
  136. <li>
  137. Unpack the archive to your home directory (EX: <b>/home/username/imageMagick</b>)
  138. </li>
  139. <li>
  140. Run the following from a terminal
  141. </li>
  142. </ul>
  143. <pre>
  144. ./configure
  145. make
  146. sudo make install
  147. sudo ldconfig /usr/local/lib
  148. </pre>
  149. </div>
  150. </div>
  151. </div>
  152. <div id="mw-head" class="noprint">
  153. <div id="left-navigation">
  154. <div id="p-namespaces" class="vectorTabs">
  155. <h3>Namespaces</h3>
  156. <ul>
  157. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  158. </ul>
  159. </div>
  160. </div>
  161. </div>
  162. <div id='mw-panel' class='noprint'>
  163. <div id='p-logo'>
  164. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  165. </div>
  166. <div class="portal" id='xowa-portal-home'>
  167. <h3>XOWA</h3>
  168. <div class="body">
  169. <ul>
  170. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  171. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  172. <li><a href="http://xowa.org/wiki/home/page/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  173. <li><a href="http://xowa.org/wiki/home/page/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  174. </ul>
  175. </div>
  176. </div>
  177. <div class="portal" id='xowa-portal-stargin'>
  178. <h3>Getting started</h3>
  179. <div class="body">
  180. <ul>
  181. <li><a href="http://xowa.org/wiki/home/page/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  182. <li><a href="http://xowa.org/wiki/home/page/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  183. <li><a href="http://xowa.org/wiki/home/page/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  184. <li><a href="http://xowa.org/wiki/home/page/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  185. <li><a href="http://xowa.org/wiki/home/page/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  186. </ul>
  187. </div>
  188. </div>
  189. <div class="portal" id='xowa-portal-help'>
  190. <h3>Help</h3>
  191. <div class="body">
  192. <ul>
  193. <li><a href="http://xowa.org/wiki/home/page/Help/About.html" title='Get more information about XOWA'>About</a></li>
  194. <li><a href="http://xowa.org/wiki/home/page/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  195. <li><a href="http://xowa.org/wiki/home/page/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  196. <li><a href="http://xowa.org/wiki/home/page/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  197. </ul>
  198. </div>
  199. </div>
  200. <div class="portal" id='xowa-portal-blog'>
  201. <h3>Blog</h3>
  202. <div class="body">
  203. <ul>
  204. <li><a href="http://xowa.org/wiki/home/page/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  205. </ul>
  206. </div>
  207. </div>
  208. <div class="portal" id='xowa-portal-links'>
  209. <h3>Links</h3>
  210. <div class="body">
  211. <ul>
  212. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  213. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  214. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  215. </ul>
  216. </div>
  217. </div>
  218. <div class="portal" id='xowa-portal-donate'>
  219. <h3>Donate</h3>
  220. <div class="body">
  221. <ul>
  222. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  223. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  224. <!-- <li><a href="" title="Support XOWA! (but only after you've supported archive.org and Wikipedia)">XOWA</a></li> -->
  225. </ul>
  226. </div>
  227. </div>
  228. </div>
  229. </body>
  230. </html>