stxh / omniedge-cli-tinycore

OmniEdge CLi for TinyCore Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tinycore extension of Omniedge Cli

OmniEdge is an Open source p2p layer 2 VPN infrastructure, a traditional VPN alternative. No central server, easy to scale with less maintenance. What happens in intranet, stays in in intranet.

This repo make omniedge extension for tinycore.

Extension

Download omniedge.tcz

Build the extension

Tool chain on Tinycore. (Must on Tinycore pure64, because Tinycore x86 and Tinycore x64's go extension stay v1.4)

tce-load -wi curl make git go bash autoconf automake squashfs-tool

Before compile

export SSL_CERT_FILE=/usr/local/etc/ssl/certs/ca-certificates.crt

Then follow Official Doc Build OmniEdge for Linux

git clone https://github.com/omniedgeio/omniedge-cli
cd omniedge-cli
go mod download
go generate
BUILD_ENV=prod make build

Make tcz

cp out/omniedge tcz/omniedge/usr/local/bin
cd tcz
mksquashfs omniedge omniedge.tcz

Then copy omniedge.tcz and omniedge.tcz.dep to tce/optional forld and load it

Omniedge Cli

OmniEdge CLi for macOS (Intel, M1/M2 MacBook), Linux Distributions, and ARM, Raspberry PI, Nvidia Jetson Embedded System.

Bring the intranet on the internet

🤝 Website 💬 Twitter 😇 Discord

Main repo: https://github.com/omniedgeio/omniedge

Install OmniEdge Cli

curl https://omniedge.io/install/omniedge-install.sh | bash

Install OmniEdge other clients

Cli Command

Login

  • Login By Password
omniedge login -u xxx@xxx.com
  • Login By Secret-Key

You can generate secret-key on omniedge web.

omniedge login -s xxxxxx

Join

you can just call omniedge join, it will automatically prompt the available network for you to choose. And you can also add one parameter -n to specify the network id manually.

And then, enjoy the omniedge network.

omniedge join 
// or
omniedge join -n "virtual-network-id" 

Resources

Compile for riscv64

apt-get update
apt-get install -y openssl autoconf build-essential libssl-dev zip wget g++-riscv64-linux-gnu gcc-riscv64-linux-gnu

wget https://go.dev/dl/go1.18.4.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
export GOOS=linux
export GOARCH=riscv64
export CGO_ENABLED=1
export CC=riscv64-linux-gnu-gcc
git clone https://github.com/yongqianme/omniedge-cli.git
cd omniedge-cli
go mod download
go generate
BUILD_ENV=prod make build-riscv64

Contributing Guildlines

Check the tempalte into .github folder to report an issue or submit a PR:

  1. ISSUE_TEMPLATE.md
  2. PULL_REQUEST_TEMPLATE.md

How to get started?

  1. If you only need a convenient connectivity service Just visit https://omniedge.io/download and download the apps for your platform.

Contributors

@ivyxjc

About

OmniEdge CLi for TinyCore Linux

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%