Monday, September 28, 2015

Talk to me.

 Computers are robots without arm or legs.

You may want to read this first. 

You may also want to setup automatic login into C1 and C2. i.e.
On C3:
$ ssh-keygen -t rsa

If .ssh directory is already setup and security is not a real issue just press return at all the prompts.

$ cd .ssh
$ scp .ssh./ C1:~/.
$ scp .ssh./ C2:~/.

If you have rights on C1 and C2, For C1 and C2: You will want to log into them and add the .pub file to the  authorized_keys file.

$ cd .ssh
$ cat ../ > authorized_keys

Now you can login easily or send commands remotely without having to type in passwords for C3.

You could login into C2 and C1 and type the command:

$ echo this is a test | festival --tts

And you would hear This is  a test from the speakers assuming are turned on and the volume was loud enough. But we might not want to log into C2 or C1 so that To test the speakers you could issue the commands remotely and be a bit more stealthy from C3:

$  ssh C1 "echo this is a test | festival --tts"
$  ssh C2 "echo this is a test | festival --tts"

Now comes the fun part. You could set up a script file to make if appear if the computers are talking to each other. Such as simulating an argument.


 ssh C1 "You messed with me | festival --tts"
 ssh C2 "echo NO, I did not. | festival --tts"
 ssh C1 "echo Yes you did | festival --tts"
 ssh C2 "echo NO, I did not. | festival --tts"
ssh C1 "echo  Yes you did | festival --tts"
 ssh C2 "echo NO, I did not. | festival --tts"


Or you could even make an even  more interesting conversation. You get the idea!  Just be careful in case the victims at the computers might over react. Just one way to use your robots without legs.

Finally, you could add led's, a robot arm, or etc,  just like you might do with an Arduino or an RPi. So could remotely do a sort of light show.

$ ssh oeorgan1 "kitt"

And the lights sott of mimic the red lamps on the famous TV car called "Kitt".  Code for that little project is in  another post here,

The only limit is your imagination.

No comments:

Post a Comment