Headless breakout server
Tagged: headless server
March 21, 2012 at 7:30 AM #579
Hey guys, first up, awesome work! I was wondering if it is possible to run the breakout server headless since I don’t have a screen attached to my home server(SheevaPlug running Debian).March 21, 2012 at 10:54 AM #583
You can’t run the java-based server headless. However the Breakout distribution also includes a nodejs-based server which you could run headlessly. See this page on the wiki for details on running the node server.March 21, 2012 at 12:13 PM #586
Okay, this isn’t a walk in the park or I’m screwing this up. node-serialport and socket.io depend on WAF, a python framework. Can this be right or am I missing packages since I can’t get it to work.March 21, 2012 at 1:20 PM #587
I honestly haven’t tried running the node server on Linux since my linux skills are definitely sub par. It works great on Mac OS X, but it is not possible to run node-serialport on Windows (see this thread). I would think it would run on Linux. Try installing WAF. If that doesn’t work I can look into alternatives for a headless version of the server although it may be a few days before I can get to it.March 21, 2012 at 4:04 PM #588
Okay I did the following:
git clone https://github.com/voodootikigod/node-serialport.git
git clone https://github.com/LearnBoost/socket.io.git
apt-get -y install build-essential openjdk-6-jre-headless librxtx-java
tar -xjvf node-v0.6.13.tar.gz
./waf build -p
cp waf ../node-v0.6.13/
But here I start to hit errors due to an error in the wscript, you need WAF to compile node, you need node to compile node-serialport and you need node-serialport for the node server a.k.a. the headless server… I’ll try more/again in the morningMarch 21, 2012 at 5:24 PM #589
You shouldn’t have to download socket.io and node-serialport. You need to install node and npm (node package manager). NPM will handle the downloads and installation of node modules automatically. See these instructions for Debian
Then, after you have installed npm (make sure your paths are set if the installer did not set them for you), navigate to Breakout/node_server/ and type: “npm install serialport”. Then after that finishes, type: “npm install socket.io”.Google ‘installing node.js and npm linux’ if this is not working.
Also if you get all that installed you’ll have to update the serial port of your IOBoard on line 30 server.js file. Also note line 12 of server.js. Set this to true if you want to connect to the server from multiple clients. At some point I hope to find someone more familiar with node.js to help make this a bit easier to use.March 22, 2012 at 6:57 AM #590
The installation of node-waf is seriously a bitch, I’ll keep you posted if I succeed.
- The forum ‘Forum’ is closed to new topics and replies.