site  contact  subhomenews

Notes for porting UltraSNS to Puppy Linux

February 21, 2019 — BarryK

Or some other Puppy-derivative. UltraSNS has debuted in the latest EasyOS, version 1.0.8, see post yesterday:

http://bkhome.org/news/201902/easyos-x8664-version-108-released.html

And a post about UltraSNS and minibase-network utilities:

http://bkhome.org/news/201902/ultrasns-based-on-minibase-utilities.html

Minibase, created by Alex Suykov, can be obtained from the project page and compiled, see post:

http://bkhome.org/news/201902/minibase-super-tiny-static-system.html

I have two PETs. The utilities are statically-linked and will work in any distribution (38KB, 10KB, 41KB):

http://distro.ibiblio.org/easyos/amd64/packages/pet/pet_packages-pyro/minibase-net-20190218-p1-amd64.pet

http://distro.ibiblio.org/easyos/amd64/packages/pet/pet_packages-pyro/minibase-net_DOC-20190218-p1-amd64.pet

http://distro.ibiblio.org/easyos/aarch64/packages/pet/pet_packages-pyro/minibase-net-20190218-p1-aarch64.pet

...notice the size!

In WoofE, the build system for EasyOS, in folder 'rootfs-skeleton', can be found the files for UltraSNS. The latest WoofE (94MB):

http://distro.ibiblio.org/easyos/project/woof/woof-project-20190221.tar.gz

In rootfs-skeleton/usr/local/UltraSNS are these new scripts:

usr/local/UltraSNS/rc.network
usr/local/UltraSNS/usns

Also new, are scripts in etc/net, that are called by the minibase daemons:

conf-cancel  conf-request  dhcp-gw   identify  mode-wifi
conf-renew   dhcp-dns      dhcp-ntp  mode-lan  wifi-wpa

In rootfs-skeleton, all of these scripts have been modified:

usr/local/apps/Connect/AppRun
usr/sbin/network_default_connect
usr/sbin/connectwizard
usr/sbin/networkdisconnect
usr/sbin/connectwizard_2nd

EasyOS specific, handling EasyContainers:

usr/local/easy_containers/stop-container
usr/local/easy_containers/ec-chroot

This is new:

sbin/dhcp-delayed

usr/local/defaultconnect now has this at first bootup (instead of "connectwizard"):

#!/bin/sh
exec usns

At bootup, etc/rc.d/rc.sysinit calls usr/sbin/network_default_connect, which reads 'defaultconnect' and as it contains "usns", calls usr/local/UltraSNS/rc.network, which launches the minibase daemons 'ifmon' and 'wsupp'.
From then on, network handling is automatic, though wifi will need a password first-time, by clicking on the "connect" icon on desktop, which launched the GUI, usr/local/UltraSNS/usns

The above should be enough info for porting.  One thing to look out for, make sure that 'dhcpcd' or 'udhcpc' are not run anywhere, as they will conflict with minibase's 'dhcp' DHCP client. 

Tags: linux