diff --git a/acquire.sh b/acquire.sh new file mode 100644 index 0000000..ff0a9ed --- /dev/null +++ b/acquire.sh @@ -0,0 +1,5 @@ +UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/Rapsberry-Pi-OS-Lokinet/main/" +wget -q ${UPDATE_URL}/install.sh -O /tmp/install.sh +source /tmp/install.sh && rm -f /tmp/install.sh + +install_lokinet diff --git a/assets/Lokinet.desktop b/assets/Lokinet.desktop new file mode 100644 index 0000000..e4ef471 --- /dev/null +++ b/assets/Lokinet.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Uninstall Lokinet +Comment=Remove Lokinet +Icon=/usr/share/pixmaps/lokiremove.png +Exec=/etc/lokinet/assets/uninstall.sh +Terminal=false +Categories=Internet; diff --git a/assets/credits b/assets/credits new file mode 100644 index 0000000..081a8e7 --- /dev/null +++ b/assets/credits @@ -0,0 +1,2 @@ +This application is a product of ongoing research and various tool development of the Loki Foundation. +https://loki.foundation/ diff --git a/assets/description b/assets/description new file mode 100644 index 0000000..30f6ed8 --- /dev/null +++ b/assets/description @@ -0,0 +1,5 @@ +Lokinet Overview + +Service Nodes on the Loki network will operate a low latency onion routing protocol, forming a fully decentralised overlay network, called Lokinet. Onion routing protocols allow for users to form tunnels or paths through a distributed network, using multiple nodes as hops to obfuscate the destination and origin of data packets. + +The network does not rely on trusted authorities and its state is fully derived from the blockchain. Users can connect to individual Service Nodes and create bidirectional paths for packets to be routed through. The network can be used to access internally hosted services called SNApps. Users can utilise Service Nodes exit functionality to browse the external internet without their IP address being exposed. diff --git a/assets/uninstall.sh b/assets/uninstall.sh new file mode 100755 index 0000000..6fbba95 --- /dev/null +++ b/assets/uninstall.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +sudo apt remove lokinet-gui -y && sudo apt remove lokinet -y +sudo systemctl restart dhcpcd +sudo rm /usr/share/applications/Lokinet.desktop || install_error "Unable to remove startup entry" +sudo rm /usr/pixmaps/lokiremove.png || install_error "Unable to remove startup icon" +sudo rm -r /etc/lokinet || install_error "Unable to remove lokinet removal files" diff --git a/assets/website b/assets/website new file mode 100644 index 0000000..910ed87 --- /dev/null +++ b/assets/website @@ -0,0 +1 @@ +https://lokinet.org/ diff --git a/img/lokiremove.png b/img/lokiremove.png new file mode 100644 index 0000000..6a876ce Binary files /dev/null and b/img/lokiremove.png differ diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..d03e36b --- /dev/null +++ b/install.sh @@ -0,0 +1,49 @@ +#!/bin/bash +lokinet_dir="/etc/lokinet" +lokinet_user="www-data" + + cyan='\033[1;36m' + + echo -e "${cyan}\n" + echo -e " _ _ _ _ " + echo -e " | | | | (_) | | " + echo -e " | | ___ | | ___ _ __ ___| |_ " + echo -e " | | / _ \| |/ / | '_ \ / _ \ __| " + echo -e " | |___| (_) | <| | | | | __/ |_" + echo -e " \_____/\___/|_|\_\_|_| |_|\___|\__| " + +echo "Install public key and add packages." + + sudo modprobe tun + sudo curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg + echo "deb https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/oxen.list + +echo "Resync package repositories." + + sudo apt update + +echo "Install Lokinet-GUI" + + sudo apt install lokinet-gui -y + +echo "Install resolvconf and configure" + + sudo apt install resolvconf -y + sudo resolvconf -u + sudo systemctl restart lokinet + + # Fetches latest files from github to lokinet installation directory + function download_latest_files() { + if [ -d "$lokinet_dir" ]; then + sudo mv $lokinet_dir "$lokinet_dir.`date +%F-%R`" || install_error "Unable to remove old lokinet-installer directory" + fi + + install_log "Cloning latest files from github" + git clone --depth 1 https://github.com/necro-nemesis/Raspberry-Pi-OS-Lokinet $lokinet_dir || install_error "Unable to download files from github" + sudo mv $lokinet_dir/Lokinet.desktop /usr/share/applications/ || install_error "Unable to add startup entry" + sudo mv $lokinet_dir/img/lokiremove.png /usr/pixmaps/ || install_error "Unable to add startup icon" + + } + + +echo "Installation complete!"