Wednesday, January 2, 2019

Now BETTY is like as SIRI or Now Google for New COMMAND LINE for Linux (Translates Plain ENGLISH INTO COMMANDS)

Leave a Comment
Now BETTY is like as SIRI or Now Google for New COMMAND LINE for Linux (Translates Plain ENGLISH INTO COMMANDS)

Now BETTY is like as SIRI or Now Google for New COMMAND LINE for Linux (Translates Plain ENGLISH INTO COMMANDS)

Now BETTY is like Siri or Google Now for the command line. well sort of. This tool translates plain English into command: it runs the command and obviously, the command output, in the terminal

The BETTY voice is not controlled, so you still have to type your (plain english) command, but if you want, this command can speak the output.

Update: Betty Internet functionality does not currently work, at least in recent Ubuntu versions. However, you will find a solution for this.

BETTY's mission is to provide a way to "use the computer through natural language input" according to its Geethaub page:

"Specially, the benefit is being able to do things without leaving the command line on your computer or searching for the right commands around the internet without screwing around." Daughter just works. "

For example, if you can not remember accurate compresses and uncompressed commands (and can avoid such a situation like THIS), then you can just ask Betty to do the following:

Linux Terminal:~$
betty uncompress archive.tar.gz

Of course, the order supported by Betty at this time is very limited because the device is less than two weeks old but it should be improved very fast as it is not difficult to add new command (and already 17 contributors).

Betty supports 0.1.5 different types of commands, such as:

Counting (number of characters in a file, number of words in a directory, etc.);
config (rename your);
Datetime (current time, date, etc.);
Find (Find in Files);
Internet / web queries (download some files, find out what the weather is like, etc.);
Files / directories operations (compress / uncompress files, show file size, change permissions, etc.);
User command (my user name, real name, IP address, who is logged in, etc.);
Control iTunes and Spotify;

Here are some Betty examples:

Linux Terminal:~$
$ betty whats my username
Betty: Running whoami

Linux Terminal:~$
$ betty how many words are in gnome3 
Betty: Running find gnome3 -type f -exec wc -w {} \; | awk '{total += $1} END
{print total}'214

Linux Terminal:~$
$ betty download 
to ubuntu-14.10-daily.iso Betty:Running curl -o ubuntu-14.10-daily.iso

Linux Terminal:~$
$ betty give me permission to this directory
Betty: Running sudo chown -R `whoami` .

Linux Terminal:~$
$ betty turn web mode on
Betty: Web queries ON
$ betty whats the weather like in Bucharest
Asking the internet...
Betty: Bucuresti ,Bucarest : It is currently patchy light rain in area with thunder, 63 Degree Fahranheite

Linux Terminal:~$
$ betty turn web mode on
Betty: Web queries ON
$ betty translate "command line" to Spanish
Asking the internet...
Betty: Línea de comandos

Linux Terminal:~$
And of course:
$ betty whats the meaning of life
Betty: 42.

A complete list of supported commands @GitHub (under documentation) is available.

Check Update: There is a fix for Betty Internet queries not working in recent Ubuntu versions

Betty does not work by default in Ubuntu versions of Internet Commands (and possibly other Linux distributions too).

To fix this, you have to apply a patch. You can do this by using the following commands (which suppose you have removed Betty in the "Betty" folder in your home directory):

Linux Terminal:~$
cd ~/betty
patch -p1 < betty-ssl-fix.patch

Install Betty:

1. How to Install Ruby (required to use Betty) and curl (required by some Betty commands). In Ubuntu, install them using the following command:

Linux Terminal:~$
sudo apt-get install ruby curl

2. Install Gift and download the latest betty using the following commands:

Linux Terminal:~$
sudo apt-get install git
cd && git clone

Or, to download Betty without using Git, grab this archive, remove it in your home folder and name the removed folder as "Betty".

3. And finally, you have to add the path to your "/ beta / main.rb" file as the nickname for "Betty" for ~ / .bashrc file (Zsh users: instead of ~ / .zshrc, instead of ~ /. .bnashrc). Automatically do this by using the following commands (assuming that you have downloaded Betty in your home folder!):

Linux Terminal:~$
echo "alias betty=\"~/betty/main.rb\"" >> ~/.bashrc
source ~/.bashrc

If You Enjoyed This, Take 5 Seconds To Share It


Post a Comment