Wednesday, 17 January 2007

File system commands

You can navigate your remote computer's file system by using the "pwd" (print working directory), "cd" (change directory) and "ls" (list directory contents) commands (like in a shell).
For example:



You can even upload files (using your Jabber client "send file" function):



The file is uploaded in the current directory:



You can also download files using the "file" command:



(you have to open port 15000 in your firewall )

Saturday, 13 January 2007

Chat: example

Chat: configuration

The chat functionality uses an AIML engine.

The basic configuration file is "/bots/en-US/DEFAULT.bot". There are a lot of things you can modify, take a look.

You can find the AIML files in the "/AIML/en-US" folder. These are XML files that are easily customizable. If the "pattern" tag matches your message I will use the "template" tag to answer you.
Don't hesitate to share your modifications.

Command: "ip"

By typing "ip" I will display your IP address(es):



Here you can see that the computer has three local addresses (three network cards), and one Internet address (this is the address other people see on the Internet).
You can type "ip /l" to display only local addresses (it's a little faster because an http request is done to retrieve the Internet address).
You can type "ip /full" to display a more complete view.

(and you can type "ip /?" or "ip /help" to display the help)

Command: "alarm"

I can send you a message after some hours/minutes/seconds (useful to don't forget the egg in the boiling water after 3 minutes...)



(to display the help, type: "alarm /?" or "alarm /help")

Command: "sysinfo"

By typing "sysinfo" I will display some system information about the computer on which I'm running:

Installation - part 3: execute the program

  1. Install Mono or .NET 2.0:
  • MyHAL runs on Linux using the Mono runtime. Follow this link to download and install Mono.
  • MyHAL runs on Windows using the Mono runtime or .NET 2.0. Follow this link to download and install Mono, or this link to install .NET 2.0.
  1. Execute MyHAL:
    • On Windows double-click on "MyHal.Console.exe" (if you have .NET 2.0 installed), or execute the following command: "mono MyHaL.Console.exe" using the Mono command prompt (in "Start"-"All Programs"-"Mono for Windows")
    • On Linux run the following command: "mono MyHaL.Console.exe"
  2. Launch your Jabber client (on any computer), add the account you created for MyHAL to your roster (your "buddy list"), and start chatting with your computer!