Headless breakout server

About Forums Forum Headless breakout server

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #579
    junke1990
    Participant

    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).

    #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.

    #586
    junke1990
    Participant

    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.

    #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.

    #588
    junke1990
    Participant

    Okay 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 configure

    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 morning

    #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.

    #590
    junke1990
    Participant

    The installation of node-waf is seriously a bitch, I’ll keep you posted if I succeed.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Forum’ is closed to new topics and replies.