Dangerous Prototypes

Other projects => Past projects => #twatch network LCD backpack => Topic started by: cristian.perdutu on February 25, 2010, 05:21:45 pm

Title: #twatch linux usage
Post by: cristian.perdutu on February 25, 2010, 05:21:45 pm
Hi all,
Can someone share a step by step tutorial for linux ? A want to connect #twatch with a linux router (dd-wrt), to get info about WAN IP, disks usage etc.
I'm a linux noob,
Title: Re: #twatch linux usage
Post by: ian on February 25, 2010, 06:33:24 pm
I'm not sure about the details, but the process will involve opening a TCPIP port on the router to the #twatch on port 1337, then sending matrix orbital formatted commands. You can check the LCDSmartie source for matrix orbital command code, or a number of #twatch scripts in the SVN if you can use Perl or Pyton on the router.
Title: Re: #twatch linux usage
Post by: cristian.perdutu on February 25, 2010, 10:06:50 pm
Maybe is something very simply, but I'm not a linux user,
I know some simple commands in linux like, cd, mkdir, cp ..... ls, but that's all....
Can you help me to make #twatch work with ubuntu..... ?

thx.
Title: Re: #twatch linux usage
Post by: cristian.perdutu on February 27, 2010, 07:58:39 pm
nothink about #twatch with linux?
Title: Re: #twatch linux usage
Post by: Joe Henley on February 27, 2010, 09:50:02 pm
Cristian,

I am not a Linux expert, but I do use it on my home network.  I have a tWatch which is still sitting on my workbench since I haven't had much time to work with it yet.  But I'll try to help you if I can.

First, have you gotten the backlighting "problem" resolved?

Next, look thru:
http://shudder.daemonette.org/source/BashNP-Guide.txt (http://shudder.daemonette.org/source/BashNP-Guide.txt)

Then let me know how you are doing.

Joe Henley
Title: Re: #twatch linux usage
Post by: cristian.perdutu on February 28, 2010, 07:44:48 am
Hi Joe,
There is no prb with my #thatch backlight, the frmw puts on by default.
Title: Re: #twatch linux usage
Post by: Joe Henley on February 28, 2010, 04:47:10 pm
Cristian,

If your backlight works OK, that's good.  You probably have one of the later produced tWatches.

I assume it works OK and that you can ping it.

Next you should look through the reference I included last time.  Similar sites include:
http://tldp.org/LDP/abs/html/devref1.html (http://tldp.org/LDP/abs/html/devref1.html)
http://www.cyberciti.biz/tips/linux-ipt ... -6889.html (http://www.cyberciti.biz/tips/linux-iptables-open-bittorrent-tcp-ports-6881-to-6889.html)

These should give you some ideas about opening a port on your PC.  Then use Ian's suggestions about passing Matrix Orbital commands to it using port 1337.

Joe

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00992070400session_write_close ( )...(null):0
20.01022201992ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01032202768Database_MySQL->query( ).../DatabaseHandler.php:119
40.05702341496Database_MySQL->error( ).../Db-mysql.class.php:273