From d4a518c703a9231cd6f5139b99e1035182467e4b Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Wed, 12 Sep 2012 20:26:12 +0100 Subject: Add tip mentioned via the comments. --- .../_posts/2012-05-06-installing-node-js-on-ubuntu.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_site_build/_posts/2012-05-06-installing-node-js-on-ubuntu.markdown b/_site_build/_posts/2012-05-06-installing-node-js-on-ubuntu.markdown index 0e844dc..1ac5b3c 100644 --- a/_site_build/_posts/2012-05-06-installing-node-js-on-ubuntu.markdown +++ b/_site_build/_posts/2012-05-06-installing-node-js-on-ubuntu.markdown @@ -173,3 +173,15 @@ node ~/server.js {% endhighlight %} If everything has gone according to plan you should see 'Hello World' when you open a web browser at `http://localhost:1337/`. + +For those of you who are working from the console and may not be able to see the results in a desktop browser, KENTOSI added a very good tip via the comments. Simply install a text-based web browser such as lynx. + +{% highlight bash %} +sudo apt-get install lynx +{% endhighlight %} + +You can then use this browser to connect to the running web server and the results will be displayed onto the console. + +{% highlight bash %} +lynx -dump http://127.0.0.1:1337/ +{% endhighlight %} -- cgit v1.2.3-13-gbd6f