Home Elementary Os Install the command line virtual assistant Betty on Ubuntu Linux

Install the command line virtual assistant Betty on Ubuntu Linux

1213
0
SHARE

ktechpit betty ubuntu install

Betty is like Siri or Google now for the command line. Well, sort of. The tool interprets plain English into commands: it displays the command it runs and clearly, the command output, within the terminal. It will even speak the command output.

Betty’s mission is, in keeping with its GitHub page, to “provide the simplest way to use computers through linguistic communication input“:
“Specifically, the profit is having the ability to try to to things on your computer while not going away the command line or roll in the hay around on the net attempting to seek out the proper command. Betty simply works“.
For example, if you can’t bear in mind the exact compress and restore commands (and avoid sittuations like THIS), you’ll be able to merely raise Betty to try to to it:

 betty uncompress archive.tar.gz
Of course, the commands supported by Betty at this time is pretty limited since the tool is under two weeks old, but it should improve quite fast since it’s not that hard to add new commands (and there are 17 contributors already).

Betty 0.1.5 supports a wide variety of commands, 

Here are a few Betty examples:

 $ betty whats my usernameBetty: Running whoamiandrei
<code>$ betty how many words are in gnome3 Betty: Running find gnome3 -type f -exec wc -w {} ; | awk '{total += $1} END {print total}'214 </code>
 $ betty download http://cdimage.ubuntu.com/daily-live/current/utopic-desktop-amd64.iso to ubuntu-14.10-daily.isoBetty: Running curl -o ubuntu-14.10-daily.iso http://cdimage.ubuntu.com/daily-live/current/utopic-desktop-amd64.iso
<code>$ betty give me permission to this directoryBetty: Running sudo chown -R `whoami` .</code>
 $ betty turn web mode onBetty: Web queries ON$ betty whats the weather like in BucharestAsking the internet...Betty: Bucarest, Bucuresti: It is currently patchy light rain in area with thunder, 63 Fahrenheit
 $ betty turn web mode onBetty: Web queries ON$ betty translate "command line" to SpanishAsking the internet...Betty: Línea de comandos
 And of course:$ betty whats the meaning of lifeBetty: 42.
A complete list of supported commands is available @ GitHub (under Documentation).

Install Betty in Linux

1. Firstly, install git and download the latest Betty using the following commands:
 sudo apt-get install gitcd &amp;&amp; git clone https://github.com/pickhardt/betty
Or, to download Betty without using Git, grab THIS archive, extract it in your home folder and rename the extracted folder to “betty”.
2. Next, you’ll have to add the path to the “betty/main.rb” file as an alias for “betty” in your ~/.bashrcfile. Do this automatically (assuming you’ve downloaded Betty in your home folder!) by using the following commands:
 echo "alias betty="~/betty/main.rb"" &gt;&gt; ~/.bashrcsource ~/.bashrc
To contribute, submit bug reports, check out the latest code and the official installation instructions, see the Betty GitHub page.

 

SHARE