This repo contains the source code to build packages for OpenWrt, a Linux operating system targeting embedded devices.
OpenWrt is very popular with device manufacturers, and we want to make it easy to run our stuff there.
csshnpd has been accepted upstream in openwrt/packages, and luci-app-csshnpd is in openwrt/luci. So if you're running a SNAPSHOT build, NoPorts can be installed with:
apk update
apk add luci-app-csshnpd
or if you just want the command line app:
apk update
apk add csshnpd
An automated build based on this repo - OpenWrt-publishing creates the Atsign opkg repository
Follow the install guide for instructions on adding the repo key and packages from it.
This package contains our C NoPorts daemon
Once an .ipk file has been created (e.g. csshnpd_0.2.0-1_x86_64.ipk
) it
should be copied to the target OpenWRT system and installed with opkg
:
opkg install csshnpd_0.2.0-1_x86_64.ipk
NB that command line will vary according to version and platform architecture.
The config is held in /etc/config/sshnpd
Use your favourite editor to set atsign
, manager
and device
to the
atSigns and name you wish to use, and otp
to the One Time Password (OTP)
or Semi-Permanent Password (SPP) to be used for enrollment.
enabled
needs to be changed to 1
sshnpd expect to find keys in $HOME/.atsign/keys
.
Once the config has been customised an atKeys file can be generated using
the at_enroll.sh
script.
Run:
/etc/init.d/sshnpd start
This is a LuCI app that can be used to configure sshnpd without editing
/etc/config/sshnpd
at the command line
Once an .ipk file has been created (e.g.
luci-app-csshnpd_24.294.58918.40ad298_all.ipk
) it should be copied to
the target OpenWRT system and installed with opkg
:
opkg install luci-app-csshnpd_24.294.58918.40ad298_all.ipk
Once installed there will be a NoPorts
menu item under Network
:
Clicking that brings up the sshnpd config form:
Fill out the atSigns and device name, then click the enable button.
To start the daemon for the first time go to System->Startup then
press the Start
button beside sshnpd
.
Please start by setting up an OpenWrt toolchain following the steps in their Developer guide
If you've got past "Hello World!" for OpenWrt then you're ready to use this.
First clone this repo from GitHub.
Then create a feeds.conf
in the root of the OpenWrt build tree e.g.:
src-link atsign /home/chris/git/github.com/atsign-foundation/Atsign_OpenWrt_packages/packages
You'll need to change /home/chris/git/github.com/atsign-foundation/
to wherever you cloned this repo.
We previously packaged the Python3 atSDK and sshnpd in:
- lang/python/python-atsdk
- lang/python/python-sshnpd
These have been removed to prevent conflicts with older build tool chains. The branch python3-packages holds those packages as they were.
If you'd like to add, modify or improve what's here then please take a look at CONTRIBUTING.md for detailed guidance on how to make a pull request.
Created by @cpswan