Merge pull request #41 from necro-nemesis/master

Update backup
backup
necro-nemesis 4 years ago committed by GitHub
commit e93b062fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
![](https://i.imgur.com/mXuacOH.jpg)
![](https://i.imgur.com/2ZrhaiH.png)
# `LabyrinthAP / Lokinet Access Point` [![Release 2.3](https://img.shields.io/badge/Release-2.2-green.svg)](https://github.com/necro-nemesis/raspap-webgui/releases)
# `LabyrinthAP / Lokinet Access Point` [![Release 2.4](https://img.shields.io/badge/Release-2.4-green.svg)](https://github.com/necro-nemesis/raspap-webgui/releases)
LabyrinthAP interfaces with Lokinet daemon to facilitate connections to the Lokinet global privacy network. LabyrinthAP provides a simple, responsive web interface to control wifi, hostapd, Lokinet daemon and related services necessary to access Lokinet on the Raspberry Pi or Orange Pi.
@ -8,15 +8,13 @@ LabyrinthAP interfaces with Lokinet daemon to facilitate connections to the Loki
https://lokinet.org/
Lokinet is a privacy network which allows users to transact and communicate privately over the internet infrastructure using it's own onion routing network, encryption system and protocols. Lokinet requires no internet IP Address but instead provides it's own network addresses which can be either ephemeral, persistent or personalized depending on the users desired application. Information is onion routed through a globally distributed network of over one thousand nodes. Utilizing blockchain technology Lokinet is run on incentivized decentralized nodes that are paid by the network to maintain the privacy of the network. User need not pay for access to use Lokinet but may chose to subscribe to an exit provider should they wish to anonymously access the internet through a paid exit provider.
Lokinet is a privacy network which allows users to transact and communicate privately over the internet infrastructure using it's own onion routing network, encryption system and protocols. Lokinet requires no internet IP Address but instead provides it's own network addresses which can be either ephemeral, persistent or personalized depending on the users desired application. Information is onion routed through a globally distributed network of over one thousand nodes. Utilizing blockchain technology Lokinet is run on incentivized decentralized nodes that are paid by the network to maintain the privacy and decentralized aspects of the network. User need not pay for access to use Lokinet but may chose to subscribe to an exit provider should they wish to anonymously access the internet through such a provider. Additionally the network generally has free exit nodes available offered through individuals providing volunteerary support of the network.
LabyrinthAP is currently offered as a free software solution that runs Lokinet on a remote network connected device which creates a WiFi hostspot and/or Ethernet subnet to connect to Lokinet. Using LabyrinthAP not only ensure Lokinet is always connected and available but removes the requirement of installation and association with a single or group of devices. LabyrinthAP makes Lokinet platform agnostic meaning it can connect to a multitude of devices regardless of the type of hardware or software installed. LabyrinthAP is compatible with most web based applications and browsers. It also has a web based interface to manage and control.
LabyrinthAP is currently offered as a free software solution that runs Lokinet on a remote network connected device which creates a WiFi hostspot and/or Ethernet subnet to connect to Lokinet. Using LabyrinthAP not only ensures Lokinet is always connected and available but removes the requirement for installation on a single or group of end point devices. LabyrinthAP makes Lokinet platform agnostic meaning it can connect to a range of devices regardless of the type of hardware or software installed on them. LabyrinthAP is compatible with most web based applications and browsers and has a built in web based interface to manage and control.
LabyrinthAP comes with it's own auto-installation scripts to set up Lokinet and the LabyrinthAP interface providing an access point on very commonly available single board computer devices such as the Rapsberry Pi using Raspberry OS. It also supports device running Armbian such as the OrangePiR1 or OrangePi Zero + etc.
LabyrinthAP comes with it's own auto-installation scripts to set up Lokinet and the LabyrinthAP interface thereby providing an easy to create access point on very commonly available single board computer devices such as the Rapsberry Pi using Raspberry OS. It also supports device running Armbian such as the OrangePiR1 or OrangePi Zero + etc.
![](https://i.imgur.com/fxKF4bi.jpg)
![](https://i.imgur.com/JpudIag.png)
![](https://i.imgur.com/IbksKgc.png)
![](https://i.imgur.com/F83n7PF.jpg)
@ -34,7 +32,7 @@ LabyrinthAP comes with it's own auto-installation scripts to set up Lokinet and
- [License](#license)
## Prerequisites
Start with a clean install of [Armbian](https://www.armbian.com/) or [Raspberry Pi OS](https://www.raspberrypi.org/downloads/raspberry-pi-os/) (currently Buster and Stretch are verified as working). Lite versions are recommended as all additional dependencies are added by the installer. If using Raspberry Pi OS you will need to elevate to root with ```sudo su``` before running the LokiAP installer script. This additional step is not required when using Armbian.
Start with a clean install of [Armbian](https://www.armbian.com/) or [Raspberry Pi OS](https://www.raspberrypi.org/downloads/raspberry-pi-os/) (currently Buster and Stretch are verified as working). Lite versions are recommended as all additional dependencies are added by the installer. If using Raspberry Pi OS you will need to elevate to root with ```sudo su``` before running the LabyrinthAP installer script. This additional step is not required when using Armbian.
For Orange Pi R1 use Armbian Buster found here: https://www.armbian.com/orange-pi-r1/. Recommend using "minimal" which is available for direct download at the bottom of the page or much faster download by .torrent also linked there.
@ -96,13 +94,15 @@ configured as an access point as follows:
* Username: `admin`
* Password: `secret`
* DHCP range: 10.3.141.1 to 10.3.141.24
* SSID: `loki-access`
* SSID: `LabyrinthAP`
* Password: `ChangeMe`
## Test site
To test the connection navigate to Lokinet's wiki page found at
http://dw68y1xhptqbhcm5s8aaaip6dbopykagig5q5u1za4c7pzxto77y.loki/wiki/index.php?title=Main_Page
You can also access this page using it's ONS (Oxen Name Service) registered domain name at
http://probably.loki
## Connecting to an Exit Node
@ -113,8 +113,7 @@ Exit nodes provide privacy on the internet through onion routing connections via
If you have a Waveshare 4G/3G/2G/GSM/GPRS/GNSS HAT for the Raspberry Pi the access point has built in support for it to use cellular data. When installed if Ethernet is available the access point will connect over Ethernet. If you wish to use cellular then booting without an Ethernet connection the access point will automatically switch over to cellular and connect to your provider. You will need to obtain a SIM card and it's APN address from your local cellular service provider. The APN addresses are usually obtainable with a quick online search. Once the software is installed you will need to navigate to the "Mobile APN" tab in the GUI under "Configure Lokinet" and enter in your APN address, set it and then reboot. It will now be saved for future use of the adapter.
![](https://i.imgur.com/eD82qCT.png)
![](https://i.imgur.com/KYy2grU.png)
![](https://i.imgur.com/feaC56c.png)
## Support us
@ -124,9 +123,9 @@ LabyrinthAP is free software but powered by your support. If you find it benefic
```sh
LA8VDcoJgiv2bSiVqyaT6hJ67LXbnQGpf9Uk3zh9ikUKPJUWeYbgsd9gxQ5ptM2hQNSsCaRETQ3GM9FLDe7BGqcm4ve69bh
```
- PayPal Donation Address:
- Donation Wallets
![](https://i.imgur.com/gIhGB1X.jpg)
![](https://i.imgur.com/HGVuijh.jpg) ![](https://i.imgur.com/6dMgBVr.jpg) ![](https://i.imgur.com/gIhGB1X.jpg)
## How to contribute

@ -10,7 +10,7 @@ require dhcp_server_identifier
slaac private
nohook lookup-hostname
# LokiAP-WebGui wireless configuration
# LabyrinthAP wireless configuration
{
interface wlan0
static ip_address=10.3.141.1/24

@ -6,7 +6,7 @@ ctrl_interface_group=0
auth_algs=1
wpa_key_mgmt=WPA-PSK
beacon_int=100
ssid=loki-access
ssid=LabyrinthAP
channel=6
hw_mode=g
ieee80211n=1
@ -27,7 +27,7 @@ ignore_broadcast_ssid=0
#beacon_int=100
#auth_algs=1
#wpa_key_mgmt=WPA-PSK
#ssid=loki-access
#ssid=LabyrinthAP
#channel=1
#hw_mode=g
#wpa_passphrase=ChangeMe

@ -5,7 +5,7 @@
html * {
font-family: Arial, Andale Mono, monospace;
font-size: 10pt;
color: #33ff00;
color: #609aac;
background-color: #252525;
}
@ -27,12 +27,12 @@ html * {
}
.panel-primary {
border-color: #33ff00;
border-color: #609aac;
background-color: #0C1309;
}
.panel-primary>.panel-heading {
border-color: #33ff00;
border-color: #609aac;
background-color: #0C1309;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

@ -1,6 +1,6 @@
<?php
define('RASPI_VERSION', '2.2');
define('RASPI_VERSION', '2.4');
define('RASPI_CONFIG', '/etc/raspap');
define('RASPI_CONFIG_NETWORKING',RASPI_CONFIG.'/networking');
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');

@ -282,7 +282,7 @@ function DisplayWPAConfig(){
</form>
</div><!-- ./ Panel body -->
<div class="panel-footer"><?php echo _("<strong>Note:</strong> WEP access points appear as 'Open'. LokiAP does not currently support connecting to WEP"); ?></div>
<div class="panel-footer"><?php echo _("<strong>Note:</strong> WEP access points appear as 'Open'. LabyrinthAP does not currently support connecting to WEP"); ?></div>
</div><!-- /.panel-primary -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row -->

@ -37,7 +37,7 @@ function DisplayThemeConfig(){
<div class="form-group col-md-6">
<label for="code"><?php echo _("Select a theme"); ?></label>
<select class="form-control" id="theme-select"><?php echo _("Select a Theme"); ?>
<option value="default" class="theme-link"<?php echo $cselected; ?>>LokiAP (default)</option>
<option value="default" class="theme-link"<?php echo $cselected; ?>>LabyrinthAP (default)</option>
<option value="hackernews" class="theme-link"<?php echo $hselected; ?>>HackerNews</option>
<option value="terminal" class="theme-link"<?php echo $tselected; ?>>Terminal</option>
</select>

@ -12,8 +12,8 @@
*
* @author TechnicalTumbleweed (Loki->Discord/Telegram)
* @license GNU General Public License, version 3 (GPL-3.0)
* @version 2.2
* @link https://github.com/necro-nemesis/Lokiap-webgui
* @version 2.4
* @link https://github.com/necro-nemesis/LabyrinthAP
*/
session_start();
@ -62,7 +62,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
<meta name="description" content="">
<meta name="author" content="">
<title><?php echo _("LokiAP"); ?></title>
<title><?php echo _("LabyrinthAP"); ?></title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
@ -105,7 +105,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"style="font-family: Arial;font-size: 20px; color: #33ff00"><?php echo _("LokiAP Mixnet Portal"); ?> v<?php echo RASPI_VERSION; ?></a>
<a class="navbar-brand" href="index.php"style="font-family: Arial;font-size: 20px; color: #609aac"><?php echo _("LabyrinthAP Mixnet Portal"); ?> v<?php echo RASPI_VERSION; ?></a>
</div>
<!-- /.navbar-header -->
@ -172,7 +172,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<img class="logo" src="img/raspAP-logo.png" width="45" height="45">LokiAP
<img class="logo" src="img/raspAP-logo.png" width="45" height="45">LabyrinthAP
</h1>
</div>
</div><!-- /.row -->

@ -32,12 +32,12 @@ fi
# Outputs a RaspAP Install log line
function install_log() {
echo -e "\033[1;32mLokiAP Install: $*\033[m"
echo -e "\033[1;32mLabyrinthAP Install: $*\033[m"
}
# Outputs a RaspAP Install Error log line and exits with status code 1
function install_error() {
echo -e "\033[1;37;41mLokiAP Install Error: $*\033[m"
echo -e "\033[1;37;41mLabyrinthAP Install Error: $*\033[m"
exit 1
}
@ -49,16 +49,16 @@ function install_warning() {
# Outputs a welcome message
function display_welcome() {
raspberry='\033[0;35m'
green='\033[1;32m'
echo -e "${green}\n"
echo -e " ooooo oooo o8o .o. ooooooooo."
echo -e " 888 888 .888. 888 Y88."
echo -e " 888 .ooooo. 888 oooo oooo .8 888. 888 .d88"
echo -e " 888 d88 88b 888 .8P 888 .8 888. 888ooo88P"
echo -e " 888 888 888 888888. 888 .88ooo8888. 888"
echo -e " 888 o 888 888 888 88b. 888 .8 888. 888"
echo -e " o888ooooood8 Y8bod8P o888o o888o o888o o88o o8888o o888o"
cyan='\033[1;36m'
echo -e "${cyan}\n"
echo -e " _ _ _ _ _ _ ____ "
echo -e " | | __ _| |__ _ _ _ __(_)_ __ | |_| |__ / \ | _ \ "
echo -e " | | / _ | _ \| | | | __| | _ \| __| _ \ / _ \ | |_) | "
echo -e " | |__| (_| | |_) | |_| | | | | | | | |_| | | |/ ___ \| __/ "
echo -e " |_____\__,_|_.__/ \__, |_| |_|_| |_|\__|_| |_/_/ \_\_| "
echo -e " |___/ "
echo -e " by Minotaurware.net"
echo -e "${raspberry}"
echo -e "The Quick Installer will guide you through a few easy steps\n\n"
}
@ -102,6 +102,9 @@ function common_interfaces() {
function stop_lokinet(){
sudo systemctl stop lokinet.service
#Set sed lokinet.service for Hostapd to restart everytime after Lokinet restarts
sed -i '/^ExecStartPost=+/usr/sbin/lokinet-resolvconf add /var/lib/lokinet/lokinet.ini.*/a ExecStartPost=+systemctl restart hostapd' /usr/lib/systemd/system/lokinet.service
sudo systemctl daemon-reload
}
# Replaces NetworkManager with DHCPD
@ -122,7 +125,7 @@ function enable_php_lighttpd() {
# Verifies existence and permissions of RaspAP directory
function create_raspap_directories() {
install_log "Creating LokiAP directories"
install_log "Creating LabyrinthAP directories"
if [ -d "$raspap_dir" ]; then
sudo mv $raspap_dir "$raspap_dir.`date +%F-%R`" || install_error "Unable to move old '$raspap_dir' out of the way"
fi
@ -159,7 +162,7 @@ function download_latest_files() {
fi
install_log "Cloning latest files from github"
git clone --depth 1 https://github.com/necro-nemesis/Lokiap-webgui /tmp/raspap-webgui || install_error "Unable to download files from github"
git clone --depth 1 https://github.com/necro-nemesis/LabyrinthAP /tmp/raspap-webgui || install_error "Unable to download files from github"
sudo mv /tmp/raspap-webgui $webroot_dir || install_error "Unable to move raspap-webgui to web root"
}
@ -313,7 +316,6 @@ function patch_system_files() {
#added for forced Lokinet
"/sbin/ip"
#
"/sbin/ifdown"
"/sbin/ifup"
"/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf"
@ -323,7 +325,7 @@ function patch_system_files() {
"/sbin/wpa_cli -i wlan[0-9] scan_results"
"/sbin/wpa_cli -i wlan[0-9] scan"
"/sbin/wpa_cli -i wlan[0-9] reconfigure"
"/sbin/wpa_cli -i wlan[0-9] select_network"
"/sbin/wpa_cli -i wlan[0-9] select_network"
"/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf"
"/etc/init.d/hostapd start"
"/etc/init.d/hostapd stop"
@ -420,7 +422,7 @@ function install_complete() {
exit 0
fi
install_log "Shutting Down"
echo -n "Allow a minute for reinitialization then connect wifi to SSID loki-access and use default password 'ChangeMe'"
echo -n "Allow a minute for reinitialization then connect wifi to SSID LabyrinthAP and use default password 'ChangeMe'"
sleep 8
sudo shutdown -r now || install_error "Unable to execute shutdown"
}

@ -1,4 +1,4 @@
UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/Lokiap-webgui/master/"
UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/LabyrinthAP/master/"
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh
source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh

Loading…
Cancel
Save