Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8243867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:39:44+00:00 2026-06-07T21:39:44+00:00

I’m desperately trying to make node.js work again on Ubuntu 12.04 LTS. I installed

  • 0

I’m desperately trying to make node.js work again on Ubuntu 12.04 LTS.

I installed it before 2-3 weeks ago and everything went fine, I used it daily for that period of time.

But today, suddenly it just wouldn’t work anymore. The way it bugs is really strange :

  • node -v works and returns v0.8.2
  • the node command works too, I can access the console and do a console.log
  • but when I use node with a file like this node server.js, Ubuntu just goes to a new line :

kollektiv@kollektiv-PC:~/node-projects$ node server.js

kollektiv@kollektiv-PC:~/node-projects$

I already reinstalled Ubuntu this evening but I get the same result.

I also did multiple apt-get upgrade and apt-get update in case some node.js dependencies would be out of date.

The way I installed node.js is by compiling the source following this tutorial : –> Compiling Node.js from source on Ubuntu 10.24 – shapeshed

I even did a chmod 777 server.js on the server file just to be sure but that didn’t change anything either.

Thank you a lot in advance for your help !

EDIT : Content of server.js

var net = require('net'),
    server = net.createServer();
var crypto = require('crypto'),
    shasum = crypto.createHash('sha256');

var alpha = [],
    i = 0,
    cle = '';
while(i < 256) {
    alpha.push(String.fromCharCode(i));
    i++;
}

// CRYPTAGE -- START --

function cryptProcess(cle, txt) {
    var k = txt.length,
        j = k / cle.length,
        cledeBase = cle,
        txtc = '',
        i = 1;
    while(i < j) {
        cle = cle + cledeBase;
        i++;
    }
    function crypt(cleu, letr) {
        //if(alpha.indexOf(letr) == -1) return "§";
        var biIndex = alpha.indexOf(letr) + alpha.indexOf(cleu), x;
            sumIndex = biIndex - alpha.length;
        x = sumIndex >= 0 ? alpha[sumIndex] : alpha[biIndex];
        return x;
    }
    while(k--) {
        txtc = crypt(cle[k], txt[k]) + txtc;
    }
    return txtc;
}

function decryptProcess(cle, txtc) {
    var k = txtc.length,
        j = k / cle.length,
        cledeBase = cle,
        txt = '',
        i = 1;
    while(i < j) {
        cle = cle + cledeBase;
        i++;
    }
    txt = '';
    function decrypt(cleu, letc) {
        //if(alpha.indexOf(letc) == -1) return "§";
        var biIndex = letc - alpha.indexOf(cleu), x;
        x = biIndex >= 0 ? alpha[biIndex] : alpha[biIndex + alphabet.length];
        return x;
    }
    while(k--) {
        txt = decrypt(cle[k], txtc[k]) + txt;
    }
    return txt;
}

// CRYPTAGE -- END --


server.on('connection', function(client) {

    var connecOne = 0;

    function talk(data) {
        var msg = data.toString('utf8');
        var msgEnc = cryptProcess(cle, msg);

        client.write(msgEnc);
        console.log(msg + '\nsend as\n' + msgEnc);
    }

    client.once('data', function(data) {

        function triHandShake() {

        }

    });

    client.on('data', function(data) {

        var msg = data.toString('utf8');
        if(connecOne === 0) {
            connectionOne(msg);
            connecOne++;
        }
        else if(connecOne === 1) {
            // Check for paragraph symbol
            //authentification with cookie as cle
        }

        var msgDec = decryptProcess(cle, msg);
        console.log(msgDec + '\nreiceved as\n' + msgDec);

    });

    client.on('end', function() {
        connecOne = 0;
    });
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:39:46+00:00Added an answer on June 7, 2026 at 9:39 pm

    You need to call server.listen to listen for connections and start the process as expected.

    server.listen(8124, function() { //'listening' listener
      console.log('server bound');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.