DoESLiverpool / Tosca

Machinekit-powered polargraph drawing robot
0 stars 0 forks source link

Sort out advanced OS matters on the BB #27

Open goatchurchprime opened 8 years ago

goatchurchprime commented 8 years ago
  1. Need a way to obtain the IP number of the BB without needing to search for it on NMAP. Adrian mentions some sort of MDNS technology.
  2. Need a way to disconnect from the BB while leaving the terminal window and it's X-windows "axis" UI interface running, and then be able to reconnect to it and carry on. Otherwise when running a long operation we're stuck with having to have a separate laptop connected at all times just to see the UI and do nothing else.
  3. Autorunning of the ". scripts/rip_environment" before the machinekit/axis UI is run on terminal startup -- and some explanation of what it's actually doing.
  4. A lightweight standard server (eg flask) that can replace twistcodewiki that enables the scripts in https://bitbucket.org/goatchurch/twistcodewiki/src/6cf9f046090d9547d35c350e0a810298544c8436/cgipipe/?at=default to be run remotely from javascript on a webpage elsewhere (specifically http://doesliverpool.github.io/svgraph.html). These scripts operate on stdin -> stdout and take the urlparameters in as command line options.
amcewen commented 8 years ago

For (1), I've used "apt-get install libnss-mdns" on the Raspberry Pi. That means you can then connect to it as hostname.local, so it'd be machinekit.local. If that works then we should look at giving each polargraph its own hostname (tosca-stepper and tosca-servo?) so we can connect to them both (once we've got more than one...)

amcewen commented 8 years ago

And for (2), I've not used it, but a quick google suggests that https://en.wikipedia.org/wiki/Xpra would do the trick

amcewen commented 8 years ago

The mDNS stuff is already installed on the Beaglebone, so it was available as beaglebone.local.

I've updated the hostname (following the steps in https://sheldondwill.wordpress.com/2013/12/14/43/ - which is basically "edit /etc/hostname and /etc/hosts, then reboot") and set its hostname to tosca.

So now to ssh in you just need to do ssh -X machinekit@tosca.local

We'll need to change the name on the other Beaglebone (to knut, for the stepper-motor version) once we've got two Beaglebones on the network :-)