wiopi:zero-server-en
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | wiopi:zero-server-en [2021/11/29 08:16] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Zero Rocrail Server ====== | ||
+ | * [[: | ||
+ | * [[: | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | =====Introduction===== | ||
+ | The Rasberry Zero has two USB connectors: | ||
+ | |< >| | ||
+ | ^ Code ^ Usage ^ | ||
+ | | PWR | 5V power supply | | ||
+ | | USB | Normal USB port | | ||
+ | |||
+ | The USB connector can be used to connect a CommandStation with Serial port.\\ | ||
+ | This will be available in Rocrail as device ''/ | ||
+ | |||
+ | \\ | ||
+ | =====Setup Zero===== | ||
+ | Provide the Zero with a PiOS Lite SD-Card and activate ssh and WiFi.\\ | ||
+ | How to setup a Raspberry Pi is found on many places in Internet, so it won't be part of this Wiki.\\ | ||
+ | Some hints and tips can be found here: [[: | ||
+ | |||
+ | \\ | ||
+ | =====Setup Rocrail===== | ||
+ | Open an ssh session with the zero.\\ | ||
+ | ====Install the Server==== | ||
+ | < | ||
+ | sudo apt install zip | ||
+ | mkdir Rocrail | ||
+ | cd Rocrail/ | ||
+ | wget https:// | ||
+ | unzip Rocrail-ARMHF.zip | ||
+ | </ | ||
+ | |||
+ | ====Create a Workspace and Startup script==== | ||
+ | < | ||
+ | cd | ||
+ | mkdir RocrailZero | ||
+ | nano startrocrail.sh | ||
+ | </ | ||
+ | |||
+ | Content of startrocrail.sh: | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | cd / | ||
+ | / | ||
+ | if [ $? -eq 70 ] | ||
+ | then | ||
+ | sudo halt -p | ||
+ | fi | ||
+ | </ | ||
+ | The last 4 lines will shut down the Zero properly in case of a normal end, but is of course optional.\\ | ||
+ | A normal Server end is signalled by the return value of 70.\\ | ||
+ | Booting the Zero 2 W is very fast, so the Rocrail server is available after 10...20 seconds.\\ | ||
+ | |||
+ | |||
+ | ====Make startrocrail.sh executable==== | ||
+ | < | ||
+ | chmod +x startrocrail.sh | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====Add a line in CronTab==== | ||
+ | < | ||
+ | crontab -e | ||
+ | @reboot / | ||
+ | </ | ||
+ | |||
+ | ====Update the Server==== | ||
+ | < | ||
+ | cd ~/Rocrail/ | ||
+ | wget https:// | ||
+ | unzip Rocrail-ARMHF.zip | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====GO===== | ||
+ | After a reboot the Rocrail server will be started automatically, | ||
+ | __**Note: | ||
+ | |||
+ | \\ | ||
+ | =====Command Stations===== | ||
+ | Every __**[[: | ||
+ | |||
+ | \\ | ||
+ | =====WIOpi===== | ||
+ | Parallel a __**[[: | ||
+ | It will automatically connect to the Rocrail Server.\\ | ||
+ | |||
+ | |||
wiopi/zero-server-en.txt · Last modified: 2021/11/29 08:16 by 127.0.0.1