====== Software ======
[[:start|SolarNET.HuB (SNH)]] is a multi-layer project that includes, among other things, a physical object in the form of a pre-configured easy-to-use device.
Our current [[https://en.wikipedia.org/wiki/Software|software]] design includes everything you need to work autonomously, safely and ecologically, and it is able to run all the [[kit/hardware|hardware]] it contains, including a [[/kit/hardware#raspberry_pi|RaspberryPi]], a [[kit/hardware#dfrobotups_hat|battery]] and a [[kit/hardware#bigbluesolar_panel|solar panel]].
The [[kit:overview|kit]] contains a required minimum components for proper operation, although it is totally expandable.
===== Deployment =====
We have paranoically and efficiently configured all the layers that make it up, including encryption and distribution of data, to prevent a [[https://en.wikipedia.org/wiki/Single_point_of_failure|single failure point]].
{{ :kit:snh_schema-by-security.png?400 |}}
In addition, we have built a whole [[https://en.wikipedia.org/wiki/Operating_system|Operating System]] from scratch, safe, multilayer and resilient. The system is read-only, so nothing can alter it. In case of any failure related to software, the **Kit > Restore** entry of the menu returns the desktop to its initial state keeping your identity, your wallet, your keys and your folders, and **Kit > Erase** leaves the kit as when you have acquired it. Both work without internet.
{{ :kit:snh_schema-by-technologies.png?400 |}}
We keep the most internal part of the artifact apart from the part that uses who acquires it: the desktop is a read-only image that the system mounts and runs isolated, as a user without privileges, so that it is very complicated that something can fail. The [[socialnet/overview|project network]] checks for new versions by itself; a new version of the system is installed by copying a new image to the card.
{{ :kit:snh_schema_by_containers.jpg?400 |}}
===== Booting =====
While it starts, the [[kit:overview|kit]] shows the SNH logo and a progress bar.
{{ :kit:snh-os-splash.png?nolink&600 |}}
With __SNH-OS 1.0__ on a [[kit/hardware#raspberry_pi|Raspberrypi]] 3 Model B, the desktop is ready about **15 seconds** after the electric cable is connected. The very first start takes longer: the kit prepares the rest of the card to store your data and asks for your language, keyboard layout and time zone.
{{ :kit:snh-os-desktop.jpg?nolink&600 |}}
===== Download =====
SNH-OS is published as one image file that you copy to a microSD card.
* [[https://code.solarnethub.com/files/snh-os/snh-os-v.1.0.img.xz|snh-os-v.1.0.img.xz]] (843 MB)
* sha256: ''ca10deb6a13eee1ea6737de5d538f4df4224a800e2dcb524a17c2a9fad9cc93b''
Check the download before using it:
sha256sum snh-os-v.1.0.img.xz
You need a [[kit/hardware#raspberry_pi|Raspberrypi]] 3 Model B, a microSD card of 16 GB or more, a power supply that really delivers 5 V and 2.5 A, a screen with HDMI and a mouse. A keyboard is optional: there is one on screen.
===== Copy it to the card =====
Everything on the card is erased.
With [[https://www.raspberrypi.com/software/|Raspberry Pi Imager]]: choose "Use custom" as operating system, select the file without decompressing it, choose the card and write. If it offers to apply OS customisation settings, answer "No".
From a Linux terminal, after finding the device name of the card with ''lsblk'':
xz -dc snh-os-v.1.0.img.xz | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress
Then put the card in the Raspberrypi, connect the screen and the mouse, and plug in the power.
===== List of components =====
* Kernel (Core)
* Operating System (Core)
* Isolation (Core)
* Distribution (Core)
* Base (Core)
* Management (Apps)
* Privacy (Apps)
* Internet (Apps)
* Project Network (Apps)
* CryptoCurrency (Apps)
==== Kernel ====
[[:start|SolarNET.HuB (SNH)]] starting prototype has compilation and configured its own [[https://en.wikipedia.org/wiki/Kernel_(operating_system)|kernel]] so that it works correctly and safely with [[kit/hardware#raspberry_pi|Raspberrypi]] (64-Bit) and all [[kit/software|software]] (Operating system and applications) and [[kit/hardware|hardware]] (peripherals and sensors) that the [[kit:overview|kit]] has.
{{ :kit:kernel_layout.png?nolink&600 |}}
The image carries one kernel for the 64-Bit Raspberrypi boards (3B, 3B+, 4, 400, 5 and Zero 2 W), tested on the 3B, and only the modules that the kit can use.
''snh% Linux 6.12.87-v8 aarch64''
==== Operating System ====
[[:start|SolarNET.HuB (SNH)]] starting prototype has compilation and configured its own [[https://en.wikipedia.org/wiki/Operating_system|Operating system]] (from scratch) that we have baptized as "**SNH-OS**". It has been built using a [[https://en.wikipedia.org/wiki/Linux|Linux]] distribution system for embedded devices called [[https://en.wikipedia.org/wiki/Yocto_Project|Yocto]].
**Build Configuration:**
* BB_VERSION = "2.18.0"
* BUILD_SYS = "x86_64-linux"
* NATIVELSBSTRING = "universal"
* TARGET_SYS = "aarch64-poky-linux"
* MACHINE = "raspberrypi-armv8"
* DISTRO = "snh"
* DISTRO_VERSION = "1.0"
* TUNE_FEATURES = "aarch64 crc cortexa53"
It is based on the long-term support release 6.0 of the Yocto Project, starts without systemd and keeps its root read-only.
''snh% SNH-OS 1.0 snh-kit''
==== Isolation ====
[[:start|SolarNET.HuB (SNH)]] does not need a container engine any more. The system itself mounts the desktop as a read-only image and runs it isolated, in its own [[https://en.wikipedia.org/wiki/Linux_namespaces|namespaces]] and as a user without privileges. [[https://en.wikipedia.org/wiki/Tor_(network)|Tor]], [[https://en.wikipedia.org/wiki/Privoxy|Privoxy]] and the DNS forwarder run outside that desktop, each one with its own user.
==== Distribution ====
[[:start|SolarNET.HuB (SNH)]] starting prototype is using, inside that isolated image, a top-level layer OS distribution that supports [[https://en.wikipedia.org/wiki/ARM_architecture_family|ARM architecture family]] for 64-Bits kernel, and that contains a fully functional base package system, called [[https://en.wikipedia.org/wiki/Debian|GNU/Linux Debian]].
**OS Release:**
* PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
* NAME="Debian GNU/Linux"
* VERSION_ID="12"
* VERSION="12 (bookworm)"
* VERSION_CODENAME=bookworm
* ID=debian
* HOME_URL="https://www.debian.org/"
* SUPPORT_URL="https://www.debian.org/support"
* BUG_REPORT_URL="https://bugs.debian.org/"
''snh% Debian GNU/Linux 12 (bookworm)''
==== Base ====
[[:start|SolarNET.HuB (SNH)]] starting prototype contains a fully functional base package system that allows you to make, within the possibilities of the [[kit:hardware|hardware]], a large number of operations: network connections, device discovery, open documents, file handling, packages decompression, etc.
=== Display ===
The [[kit:overview|kit]] allows you to use any screen, including tactical, which can be connected by an [[https://en.wikipedia.org/wiki/HDMI|HDMI]] cable. We have included an application so you can handle the display configuration, change the resolution (and other display options), even double the screen.
=== Keyboard ===
The [[kit:overview|kit]] allows you to use any USB keyboard, although it contains a virtual keyboard application that you can use with a tactical screen or with the mouse.
=== Files ===
The [[kit:overview|kit]] allows you to operate with files and folders like any other computer. It has a [[https://en.wikipedia.org/wiki/Unix_security|UNIX permissions]] system and all common file manipulation functions: copy, paste, delete, move, etc. USB disks are mounted when you connect them and must be ejected from the menu before unplugging them.
=== X11/Matchbox (Window Manager) ===
The [[kit:overview|kit]] uses a window manager designed for embedded and based on the [[https://en.wikipedia.org/wiki/X_Window_System|X Window System]] called [[https://en.wikipedia.org/wiki/Matchbox_(window_manager)|Matchbox]], so you can handle applications more intuitively and visual.
=== Comman (Networking) ===
The [[kit:overview|kit]] uses a connection manager for embedded devices called [[https://en.wikipedia.org/wiki/ConnMan|ConnMan]] which is designed to be slim and to use as few resources as possible. It is a fully modular system that can be extended, through plug-ins, to support all kinds of [[https://en.wikipedia.org/wiki/Wired_communication|wired]] or [[https://en.wikipedia.org/wiki/Wireless|wireless]] technologies.
=== Bluetooth ===
The [[kit:overview|kit]] allows you to connect to other devices through [[https://en.wikipedia.org/wiki/Bluetooth|Bluetooth]] technology, for example, to **__get internet directly from a mobile phone__**.
=== Sound ===
The [[kit:overview|kit]] plays sound through the [[https://en.wikipedia.org/wiki/HDMI|HDMI]] cable and has a volume control.
=== Languages ===
The [[kit:overview|kit]] works in English and in Spanish. The language, the keyboard layout and the time zone are chosen at the first start and can be changed later.
==== Management ====
[[:start|SolarNET.HuB (SNH)]] starting prototype contains a fully functional management system composed of different tools.
=== Text Editor ===
The [[kit:start|kit]] has a text editor called [[https://en.wikipedia.org/wiki/Leafpad|L3afpad]] that emphasizes simplicity and ease of use, with a clean and simple [[https://en.wikipedia.org/wiki/Graphical_user_interface|GUI]].
=== Office ===
The [[kit:start|kit]] has a word processor called [[https://en.wikipedia.org/wiki/AbiWord|AbiWord]], a spreadsheet called [[https://en.wikipedia.org/wiki/Gnumeric|Gnumeric]], a PDF reader and a calculator.
=== Tools ===
The [[kit:start|kit]] has a file manager called [[https://en.wikipedia.org/wiki/Thunar|Thunar]], an image viewer, an archive manager, a terminal and [[https://en.wikipedia.org/wiki/GNU_Privacy_Guard|GnuPG]] to manage your keys.
=== Kit ===
The **Kit** entry of the menu opens this wiki and the shop, and holds the two ways of returning the kit to a known state: **Restore** and **Erase**.
==== Privacy ====
[[:start|SolarNET.HuB (SNH)]] starting prototype contains different measures to protect the [[https://en.wikipedia.org/wiki/Information_privacy|information privacy]] and [[https://en.wikipedia.org/wiki/Confidentiality|confidentiality]], through the use of [[https://en.wikipedia.org/wiki/Encryption|encryption]] and the correct routed/storage of the data.
The [[kit:start|kit]] **__does not keep logs__**, so that if it falls into unwanted hands, it is very complicated to make [[https://en.wikipedia.org/wiki/Reverse_engineering|reverse engineering]] of the previous actions. It also **__routes connections through proxies__** (including [[https://en.wikipedia.org/wiki/Domain_Name_System|DNS]] resolutions) making practically impossible the discovery of the origin of requests and its browser **__only allows access through encrypted channels__** with the aim of making more difficult possible data interception attacks (ex: [[https://en.wikipedia.org/wiki/Man-in-the-middle_attack|Man-in-the-middle attack]]).
A firewall sends every connection that leaves for the internet through [[https://en.wikipedia.org/wiki/Tor_(network)|Tor]], whatever program makes it, and no program can go around it. Connections to your own local network are direct, and the clock synchronisation is the only connection to the internet that does not use Tor.
=== Privoxy ===
The [[kit:start|kit]] has a lightweight caching and forwarding web proxy server called [[https://en.wikipedia.org/wiki/Privoxy|Privoxy]].
{{ :kit:polipo_example.png?nolink&600 |}}
It has a wide variety of uses, from aiding security by filtering traffic; to caching web, DNS and other computer network lookups for a group of people sharing network resources; to speeding up a web server by caching repeated requests. It can be configured to use on-disk cache and serve cached content when offline and perform various forms of content filtering.
=== DNSMasq ===
The [[kit:start|kit]] has a lightweight, easy to configure DNS forwarder, which resolves through Tor, designed to provide DNS (and optionally DHCP and TFTP) services to a small-scale network called [[https://en.wikipedia.org/wiki/Dnsmasq|DNSMasq]]. It can serve the names of local machines which are not in the global DNS.
=== TOR ===
The [[kit:start|kit]] has an anonymous communication system called [[https://en.wikipedia.org/wiki/Tor_(network)|Tor]].
{{ :kit:tor-schema.jpeg?nolink&600 |}}
Using it makes more difficult to trace a user's Internet activity because it directs Internet traffic through a free, worldwide, volunteer overlay network, consisting of more than six thousand relays, to conceal a user's location and usage from anyone performing network surveillance or traffic analysis.
==== Internet ====
[[:start|SolarNET.HuB (SNH)]] starting prototype has different applications related to the use of the Internet (surfing the web, sending and receiving email, etc.), which are configured by default with certain paranoia parameters that allow a safe experience.
So all of these Internet related applications always connect through the [[kit/software#privacy|Tor network]], and the browser uses encrypted channels ([[https://en.wikipedia.org/wiki/HTTPS|HTTPS/SSL]]) only, blocks advertising and trackers and searches with DuckDuckGo.
=== Firefox ===
The [[kit/overview|kit]] has a web browser called [[https://en.wikipedia.org/wiki/Firefox|Mozilla Firefox]]. It uses the Gecko rendering engine to display web pages, which implements current and anticipated web standards. It comes with [[https://en.wikipedia.org/wiki/UBlock_Origin|uBlock Origin]] and without telemetry.
=== Thunderbird ===
The [[kit/overview|kit]] has an email client, personal information manager, news client, RSS and chat client called [[https://en.wikipedia.org/wiki/Mozilla_Thunderbird|Mozilla Thunderbird]]. It can encrypt and sign your mail with OpenPGP.
==== Project Network ====
[[:start|SolarNET.HuB (SNH)]] starting prototype contains its [[socialnet/overview|own project network]] and [[:socialnet/ecosystem|ecosystem]] based on a [[https://en.wikipedia.org/wiki/Mesh_networking|mesh network]] called [[https://en.wikipedia.org/wiki/Secure_Scuttlebutt|Secure Scuttlebutt (SSB)]].
{{ :kit:mesh-network-example.jpeg?nolink&800 |}}
We are [[socialnet/engineering|developing new functionalities]] and much of our effort focuses on [[:socialnet/snh|building a stable community]].
{{ :socialnet:oasis-matrix-theme.png?nolink&800 |}}
You can visit the [[:project/roadmap#the_project_network|roadmap]] to see what state is the current development and what are the future implementations that are desired to achieve.
==== CryptoCurrency ====
[[:start|SolarNET.HuB (SNH)]] contains its [[https://ecoin.03c8.net/#implementations|own cryptocurrency]] called [[https://ecoin.03c8.net/|ECOin]].
[[https://ecoin.03c8.net/|ECOin]] is **a crypto-currency with the goal of providing a long-term energy-efficient digital economy strategy.**
This tool provides [[https://ecoin.03c8.net/#intro|a currency mining system]] technology for __autonomous generation by solar energy__.
It is the only crypto in the market that implements such a sophisticated mining system:
Proof-Of-Work
Proof-Of-Stake
Proof-Of-Transaction
This allows the inhabitants of the [[:kit/overview|kit]] to **__access an economic and market system, totally sustainable__**.
{{ :socialnet:oasis-tomatoes-example.png?nolink&800 |}}