Ubuntu / Linux news and application reviews.

TerminalRun Firefox Addon Allows You To Run Shell Commands From Websites Via Right Click [Linux]

TerminalRun and FoxRunner are two similar Firefox extensions for running a command from a website in a terminal. Because FoxRunner didn't work for me (but it seems to be working for most people so you can try it if you want), I'll review TerminalRun.

Here is a video I've just recorded with TerminalRun in action:

Ncmpcpp: Ncurses MPD Client [Shell Music Player - Linux]

For a shell music player, I used to love CMus (I still like it a lot), but I've found a similar - probably better - command line music player which is actually a MPD client: Ncmpcpp.

Ncmpcpp (Ncmpc++) is an ncurses MPD client inspired by Ncmpc (runs in a terminal). Ncmpcpp has an UI very similar to ncmpc's one, but it provides new useful features such as support for regular expressions in search engine, extended song format, items filtering, fetching artist's info from last.fm, tag editor, ability to sort playlist, local filesystem browser, song lyrics and other minor functions.


Ncmpcpp mpdNcmpcpp mpdncmpcpp mpd playlist



Why use Ncmpcpp (Ncmpc++)?


  • It's fast and uses very few system resources. On my computer, it uses 2,2 MB of RAM - on a music database of ~40.000 songs.
  • It has all the features you may want in a music player, even Last.fm info, lyrics, multiple views and tag editor.
  • Very easy to use - must remember a few keyboard shortcuts.
  • Ncmpcpp can basically run and work perfect on any PC, no matter it's configuration.
  • Want to look geeky in front of your friends =)



Install Ncmpcpp


Shell System Information Tool For Linux

inxi is a very small command line tool (bash script) which allows you to see all sorts of information about your Linux computer. The information inxi can give you ranges from CPU info, graphic card, sound card, ip and so on (a lot of info!) and you can also choose the color scheme.

Take a look at this screenshot to see a sample of what inxi can do:

inxi

Use Gmail To Send Emails From A Terminal (Shell) [Linux]

We've seen how to check Gmail using the terminal (shell) in Linux and Mac but how about sending emails from a shell?

This is actually pretty easy, here's what you have to do:

1. Install ssmtp. For Ubuntu, open a terminal and paste the following command:
sudo apt-get install ssmtp


2. Edit the ssmtp config file. Press Alt + F2 and type:
gksu gedit /etc/ssmtp/ssmtp.conf

If you don't use Gedit, replace it with your favourite text editor (kate, etc).
And paste this inside the ssmtp.conf file:
root=YOUR_EMAIL@gmail.com
mailhub=smtp.gmail.com:465
rewriteDomain=gmail.com
AuthUser=YOUR_GMAIL_USERNAME # (without @gmail.com)
AuthPass=YOUR_GMAIL_PASSWORD
FromLineOverride=YES
UseTLS=YES

And replace everything in capital letters with your credentials.

Searching For Text? `egrep -r foo $*` Too Slow?

Following our article on tools to find files via command line, a Web Upd8 reader decided to post a follow-up.


Searching for text? `egrep -r foo $*` too slow?

Mac OSX has Spotlight, MS Windows has Desktop Search or even Google Desktop and Linux/Gnome has Beagle. Like so many things in Unix, Beagle is faster, more powerful via the command line, and hostilely requires user configuration.

Beagled runs as a user daemon, continually updating its search index and efficiently exploits inotify, a kernel mod more powerful than other OSes, and bundled in Linux since v2.6.13, in 2005. Inotify is similar to the older FAM File Activity Monitor.


INSTALLATION

4 Shell Tools For Find Files In Linux

1. locate

How to use:
locate file_name

Example:
locate xorg.conf

Will return this:
/etc/X11/xorg.conf
/usr/share/man/man5/xorg.conf.5.gz
/var/lib/x11/xorg.conf.md5sum


Searching for an exacte match:
locate -r '/xorg.conf$'


Searching non-casesensitive:
locate -i 'file_Name'


Please note: locate relies on slocate database to function, which is cached. To manually update the slocate database, run:
sudo updatedb


2. which

This command tells you where a command lives.