Headless breakout server
Tagged: headless server
- This topic has 6 replies, 2 voices, and was last updated 10 years, 12 months ago by junke1990.
-
AuthorPosts
-
March 21, 2012 at 7:30 AM #579junke1990Participant
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 #583soundanalogousMemberYou 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 #586junke1990ParticipantOkay, 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 #587soundanalogousMemberI 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 #588junke1990ParticipantOkay I did the following:
wget https://github.com/downloads/soundanalogous/Breakout/Breakout_v0.1.2.beta.zip
unzip Breakout_v0.1.2.beta.zip
cd Breakout/
mkdir downloads
cd downloads/
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
wget http://nodejs.org/dist/v0.6.13/node-v0.6.13.tar.gz
tar -xjvf node-v0.6.13.tar.gz
wget http://waf.googlecode.com/files/waf-1.6.11.tar.bz2
cd waf-1.6.11
./waf configure
./waf build -p
./waf install
cp waf ../node-v0.6.13/
cd ../node-v0.6.13/
./waf configureBut 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 morning
March 21, 2012 at 5:24 PM #589soundanalogousMemberYou 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 #590junke1990ParticipantThe installation of node-waf is seriously a bitch, I’ll keep you posted if I succeed.
-
AuthorPosts
- The forum ‘Forum’ is closed to new topics and replies.