mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
247 lines
10 KiB
HTML
247 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html dir="ltr">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
|
<title>Dev/File/Setup/Linux - XOWA</title>
|
|
<link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
|
|
<link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
|
|
|
|
</head>
|
|
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
|
|
<div id="mw-page-base" class="noprint"></div>
|
|
<div id="mw-head-base" class="noprint"></div>
|
|
<div id="content" class="mw-body">
|
|
<h1 id="firstHeading" class="firstHeading"><span>Dev/File/Setup/Linux</span></h1>
|
|
<div id="bodyContent" class="mw-body-content">
|
|
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
|
|
<div id="contentSub"></div>
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
|
|
|
|
<p>
|
|
XOWA recommends that Linux users download and install ImageMagick and Inkscape according to their distribution requirements.
|
|
</p>
|
|
<p>
|
|
Ubuntu instructions are listed below. Other distro-specific instructions will be added as feedback is received.
|
|
</p>
|
|
<p>
|
|
After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config: <a href="xowa-cmd:%0Aapp.setup.cmds%0A%2F%2F%20Config%20file%0A.cmd_add('wiki.image_cfg'%2C%20'%7E%7B%3C%3Euser_cfg_dir%3C%3E%7Duser_system_cfg.gfs')%0A%20%20.add('.download.enabled_(''n'')'%2C%20'.download.enabled_(''y'')'%0A).owner%0A.cmd_add('msg.ok'%2C%20'config%20updated').owner%0A.run;%0A">update xowa config<img src="file:///C:/xowa_release/bin/any/xowa/file/app.general/xowa_exec.png"></a>. You can also configure this option at <a href="/wiki/Options/Files" id="xolnki_2" title="Options/Files">Options/Files</a>
|
|
</p>
|
|
<p>
|
|
For more information about the config, see the section below.
|
|
</p>
|
|
<div id="toc" class="toc">
|
|
<div id="toctitle" class="toctitle">
|
|
<h2>
|
|
Contents
|
|
</h2>
|
|
</div>
|
|
<ul>
|
|
<li class="toclevel-1 tocsection-1">
|
|
<a href="#Ubuntu"><span class="tocnumber">1</span> <span class="toctext">Ubuntu</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-2">
|
|
<a href="#Config_(all_distros)"><span class="tocnumber">2</span> <span class="toctext">Config (all distros)</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-3">
|
|
<a href="#Enable_images"><span class="tocnumber">2.1</span> <span class="toctext">Enable images</span></a>
|
|
</li>
|
|
<li class="toclevel-2 tocsection-4">
|
|
<a href="#Paths"><span class="tocnumber">2.2</span> <span class="toctext">Paths</span></a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-5">
|
|
<a href="#ImageMagick_source"><span class="tocnumber">3</span> <span class="toctext">ImageMagick source</span></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<h2>
|
|
<span class="mw-headline" id="Ubuntu">Ubuntu</span>
|
|
</h2>
|
|
<p>
|
|
Ubuntu users should run the following in a terminal:
|
|
</p>
|
|
<pre>
|
|
sudo apt-get install imagemagick
|
|
sudo apt-get install inkscape
|
|
</pre>
|
|
<h2>
|
|
<span class="mw-headline" id="Config_(all_distros)">Config (all distros)</span>
|
|
</h2>
|
|
<h3>
|
|
<span class="mw-headline" id="Enable_images">Enable images</span>
|
|
</h3>
|
|
<ul>
|
|
<li>
|
|
Navigate to <a href="/wiki/Options" id="xolnki_3" title="Options">Options</a> and check "Download enabled"
|
|
</li>
|
|
<li>
|
|
Restart XOWA and navigate to any page. Any images will be downloaded automatically.
|
|
</li>
|
|
</ul>
|
|
<h3>
|
|
<span class="mw-headline" id="Paths">Paths</span>
|
|
</h3>
|
|
<p>
|
|
Note that XOWA assumes that ImageMagick and Inkscape have the following paths:
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<b>/usr/bin/identify</b>
|
|
</li>
|
|
<li>
|
|
<b>/usr/bin/convert</b>
|
|
</li>
|
|
<li>
|
|
<b>/usr/bin/inkscape</b>
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
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="/wiki/Dev/Config_files" id="xolnki_4" title="Dev/Config files">Dev/Config_files</a> for more information.
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
Open <b>/xowa/user/anonymous/app/cfg/os.gfs</b> in a text editor.
|
|
</li>
|
|
<li>
|
|
Search for <code>.cmd_('/usr/bin/identify')</code>
|
|
</li>
|
|
<li>
|
|
Update the path to whatever it is on you system.
|
|
</li>
|
|
<li>
|
|
Repeat for the other paths
|
|
</li>
|
|
<li>
|
|
Save the file and restart XOWA.
|
|
</li>
|
|
</ul>
|
|
<h2>
|
|
<span class="mw-headline" id="ImageMagick_source">ImageMagick source</span>
|
|
</h2>
|
|
<p>
|
|
If you need to compile ImageMagick from source, you can try the following:
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
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>
|
|
</li>
|
|
<li>
|
|
Download <b>tar.gz</b>.
|
|
</li>
|
|
<li>
|
|
Unpack the archive to your home directory (EX: <b>/home/username/imageMagick</b>)
|
|
</li>
|
|
<li>
|
|
Run the following from a terminal
|
|
</li>
|
|
</ul>
|
|
<pre>
|
|
./configure
|
|
make
|
|
sudo make install
|
|
sudo ldconfig /usr/local/lib
|
|
</pre>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="mw-head" class="noprint">
|
|
<div id="left-navigation">
|
|
<div id="p-namespaces" class="vectorTabs">
|
|
<h3>Namespaces</h3>
|
|
<ul>
|
|
<li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id='mw-panel' class='noprint'>
|
|
<div id='p-logo'>
|
|
<a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
|
|
</div>
|
|
<div class="portal" id='xowa-portal-home'>
|
|
<h3>XOWA</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
|
|
<li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
|
|
<li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-started'>
|
|
<h3>Getting started</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA's system requirements'>Requirements</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-android'>
|
|
<h3>Android</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
|
|
<li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-help'>
|
|
<h3>Help</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-blog'>
|
|
<h3>Blog</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-links'>
|
|
<h3>Links</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
|
|
<li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
|
|
<li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-donate'>
|
|
<h3>Donate</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<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/ -->
|
|
<li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html> |