1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
0bin/docs/.build/html/en/easy_install.html

176 lines
7.5 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Easiest installation &mdash; 0bin 0.1 documentation</title>
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="0bin 0.1 documentation" href="../index.html" />
<link rel="next" title="Apache setup" href="apache_install.html" />
<link rel="prev" title="Introduction" href="intro.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="apache_install.html" title="Apache setup"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="intro.html" title="Introduction"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">0bin 0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="easiest-installation">
<h1>Easiest installation<a class="headerlink" href="#easiest-installation" title="Permalink to this headline"></a></h1>
<p>These solution are easy all will be able to handle a personnal website traffic.
2012-05-19 00:47:17 +04:00
For more robust and secure solutions, see <a class="reference internal" href="apache_install.html"><em>Apache</em></a>
and <a class="reference internal" href="nginx_install.html"><em>Nginx</em></a> setups.</p>
<div class="section" id="seconds-setup-if-you-know-python-already">
<h2>10 seconds setup (if you know Python already)<a class="headerlink" href="#seconds-setup-if-you-know-python-already" title="Permalink to this headline"></a></h2>
2012-05-19 00:58:14 +04:00
<p>Just type:</p>
<div class="highlight-python"><pre>pip install zerobin
zerobin --host 0.0.0.0 --port 80 --compressed-static # as admin</pre>
</div>
</div>
<div class="section" id="seconds-setup-for-anybody">
<h2>30 seconds setup (for anybody)<a class="headerlink" href="#seconds-setup-for-anybody" title="Permalink to this headline"></a></h2>
2012-05-19 00:58:14 +04:00
<ul>
<li><p class="first">Make sure you have Python 2.6 or 2.7 (<cite>python &#8211;version</cite>)</p>
</li>
2013-04-23 01:22:33 +04:00
<li><p class="first">Download the last <a class="reference external" href="https://github.com/sametmax/0bin/zipball/master">zip of the source code</a></p>
2012-05-19 00:58:14 +04:00
</li>
<li><p class="first">Extract all of it where you wish the site to be stored.</p>
</li>
<li><p class="first">Go to the extracted files.</p>
</li>
<li><p class="first">Run with the admin rights:</p>
<div class="highlight-python"><pre>python zerobin.py --host 0.0.0.0 --port 80 --compressed-static</pre>
</div>
</li>
</ul>
<p>On ubuntu, this is a one liner:</p>
<div class="highlight-python"><pre>wget stuff &amp;&amp; unzip zerobin.zip &amp;&amp; cd zerobin &amp;&amp; sudo python zerobin.py --host 0.0.0.0 --port 80 --compressed-static</pre>
</div>
2012-05-19 00:47:17 +04:00
<p>Check out for more <a class="reference internal" href="options.html"><em>configuration options</em></a>.</p>
</div>
<div class="section" id="run-0bin-in-background">
<h2>Run 0bin in background<a class="headerlink" href="#run-0bin-in-background" title="Permalink to this headline"></a></h2>
2012-05-19 00:47:17 +04:00
<p>0bin doesn&#8217;t come with something built in for this. You have several solutions.</p>
<p><em>For a small website:</em></p>
<p>Just make it a shell background process. E.G in GNU/Linux:</p>
<div class="highlight-python"><pre>nohup python zerobin.py --host 0.0.0.0 --port 80 --compressed-static &amp;</pre>
</div>
<p>Or run it in a screen.</p>
2012-05-19 00:47:17 +04:00
<p><em>For a big Website:</em></p>
<ul class="simple">
2012-05-19 00:47:17 +04:00
<li>setup 0bin with <a class="reference internal" href="apache_install.html"><em>Apache</em></a>;</li>
<li>setup 0bin with <a class="reference internal" href="using_supervisor.html"><em>supervisor</em></a> (best way to do it).</li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p>You can even use zerobin on your private local network from your laptop.</p>
<p>Make sure you firewall won&#8217;t block the port, and run:</p>
<div class="highlight-python"><pre>python zerobin.py --host 0.0.0.0 --port 8000</pre>
</div>
<p>0bin will now be accessible from <a class="reference external" href="http://your.local.ip.address:8000">http://your.local.ip.address:8000</a>.</p>
<p class="last">This can be very cool way to share code in a companie or during a code sprint.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Easiest installation</a><ul>
<li><a class="reference internal" href="#seconds-setup-if-you-know-python-already">10 seconds setup (if you know Python already)</a></li>
<li><a class="reference internal" href="#seconds-setup-for-anybody">30 seconds setup (for anybody)</a></li>
<li><a class="reference internal" href="#run-0bin-in-background">Run 0bin in background</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="intro.html"
title="previous chapter">Introduction</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="apache_install.html"
title="next chapter">Apache setup</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/en/easy_install.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="apache_install.html" title="Apache setup"
>next</a> |</li>
<li class="right" >
<a href="intro.html" title="Introduction"
>previous</a> |</li>
<li><a href="../index.html">0bin 0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2012, Sam et Max.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>