192 lines
5.0 KiB
HTML
192 lines
5.0 KiB
HTML
<html>
|
|
<head>
|
|
<title>
|
|
I2PControl for L...
|
|
</title>
|
|
<meta name="author" content="eyedeekay" />
|
|
<meta name="description" content="graphic-monitorin" />
|
|
<meta name="keywords" content="main" />
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
|
</head>
|
|
<body>
|
|
<div id="navbar">
|
|
<a href="#shownav">
|
|
Show navigation
|
|
</a>
|
|
<div id="shownav">
|
|
<div id="hidenav">
|
|
<ul>
|
|
<li>
|
|
<a href="..">
|
|
Up one level ^
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="index.html">
|
|
index
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="LICENSE.html">
|
|
LICENSE
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="index.html">
|
|
index.html
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<br>
|
|
<a href="#hidenav">
|
|
Hide Navigation
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a id="returnhome" href="/">
|
|
/
|
|
</a>
|
|
<h1>
|
|
I2PControl for Lua and Conky-Lua
|
|
</h1>
|
|
<p>
|
|
<strong>
|
|
You will need:
|
|
</strong>
|
|
</p>
|
|
<p>
|
|
<code>
|
|
conky-lua
|
|
</code>
|
|
,
|
|
<code>
|
|
lua5.1
|
|
</code>
|
|
and
|
|
<code>
|
|
lua-socket
|
|
</code>
|
|
. You will need
|
|
<code>
|
|
lua-sec
|
|
</code>
|
|
for use with i2pd.
|
|
On Ubuntu or Debian, just:
|
|
</p>
|
|
<p>
|
|
<strong>
|
|
Usage:
|
|
</strong>
|
|
</p>
|
|
<p>
|
|
First, enable i2pcontrol on your I2P router by going to
|
|
<a href="http://127.0.0.1:7657/configwebapps">
|
|
Web App Configuration
|
|
</a>
|
|
and starting the
|
|
<code>
|
|
jsonrpc
|
|
</code>
|
|
app.
|
|
The
|
|
<code>
|
|
i2pcontrol.lua
|
|
</code>
|
|
expects the password to be
|
|
<code>
|
|
itoopie
|
|
</code>
|
|
, which is the default. You can change the password by setting the
|
|
<code>
|
|
I2P_CONTROL_PASSWORD
|
|
</code>
|
|
variable in your shell.
|
|
Once you have done so, execute the following commands to test them:
|
|
</p>
|
|
<pre><code class="language-sh">sudo apt-get install conky-all lua5.1 lua-socket lua-sec
|
|
</code></pre>
|
|
<pre><code class="language-sh">git clone --recursive https://github.com/eyedeekay/graphic-monitoring
|
|
cd graphic-monitoring
|
|
conky -c _dot_conkyrc
|
|
</code></pre>
|
|
<p>
|
|
<img src="screenshot.png" alt="screenshot.png" />
|
|
</p>
|
|
<h2>
|
|
Other ways of setting it up:
|
|
</h2>
|
|
<pre><code class="language-sh"># from this directory(a checkout)
|
|
conky -c _dot_conkyrc
|
|
</code></pre>
|
|
<pre><code class="language-sh"># installation to $HOME/.conkyrc
|
|
mkdir -p $HOME/lua
|
|
cp -rv lua/* $HOME/lua/
|
|
cp -v _dot_conkyrc $HOME/.conkyrc
|
|
</code></pre>
|
|
<pre><code class="language-sh"># usage with i2pd
|
|
export I2P_CONTROL="http://127.0.0.1:7650"
|
|
conky -c _dot_conkyrc
|
|
</code></pre>
|
|
<p>
|
|
<img src="screenshot-2.png" alt="screenshot-2.png" />
|
|
</p>
|
|
<div id="sourcecode">
|
|
<span id="sourcehead">
|
|
<strong>
|
|
Get the source code:
|
|
</strong>
|
|
</span>
|
|
<ul>
|
|
<li>
|
|
<a href="https://github.com/eyedeekay/graphic-monitoring">
|
|
Source Repository: (https://github.com/eyedeekay/graphic-monitoring)
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<a href="#show">
|
|
Show license
|
|
</a>
|
|
<div id="show">
|
|
<div id="hide">
|
|
<pre><code>MIT License
|
|
|
|
Copyright (c) 2023 idk
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.</code></pre>
|
|
<a href="#hide">
|
|
Hide license
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
|
</div>
|
|
<div>
|
|
<a href="https://geti2p.net/">
|
|
<img src="i2plogo.png"></img>
|
|
I2P
|
|
</a>
|
|
</div>
|
|
</body>
|
|
</html> |