Archive for May, 2009

Show what I’m listening to in emesene

Read this article in english Diesen Artikel auf Deutsch lesen

Continuing the "Show what music I'm listening to while chatting" series, we'll show you now, how you can view in emesene, one of the most famous and most used instant messaging clients thats available as Open Source, what music you're listening to.

Logo emesene

Read the rest of this entry »

Paste a text or command in the command shell

Read this article in english Diesen Artikel auf Deutsch lesen

Surely, some of you once tried to use Ctrl+V in the ubuntu command shell with the intention to paste a text or a command in one or more lines... and you'll have noticed that this key combination doesn't work in the terminal by default. So, if you're a fan of copy&paste with key bindings you'll need to follow theese steps...

Using the GNOME configuration tool we can change the behavior of the terminal. Pressing Alt+F2 and than writing "gconf-editor" (without quotation marks), a window will open, in which we need to browse the menu the following way: "apps -> gnome-terminal -> keybindings" there we'll look for the command "paste" and modify it, as we'd like to...

If you are curious, you'll also have found the command "copy"... you can edit and modify it as you'd like, too. But remeber that the combination Control+C in the command shell is allready used for aborting an operation in progress.

Translate texts by using the Ubuntu command shell

Read this article in english Diesen Artikel auf Deutsch lesen

Surfing round the world wide web, taking advantage of the high waves, we found a script (which we had to modify a little) that seems very useful to us. It's a script that can be used to translate texts in the command shell, to accomplish this, it queries to a Google API which translates the text, and than it changes the appearence of the text, to be able to show it to the user.

First thing we need to do, is to install the dependencies, by executing the following line in a command shell:

sudo apt-get install lynx

Now we'll need to download the script and allow the execution by executing the following lines:

  1. wget "http://ubuntu-blog.com/compartidos/translate"
  2. sudo mv translate /usr/local/bin/
  3. sudo chmod +x /usr/local/bin/translate

Now we'll have the script ready to use.

To translate a text in Ubuntu you'll now have to use the following syntax:

translate [text language] [desired language] [text]

For example executing the following line:

translate es en "Voy a visitar ubuntu-blog todos los días"

The command shell will answer: "I'm going to visit ubuntu-blog every day"

Solve dependency problem on Ubuntu

Read this article in english Diesen Artikel auf Deutsch lesen

Sometimes, when we manually install a deb package, there are some dependencies that are not satisfied, because they are not installed correctly. In that case we often get informed, that the software is damaged, or dependencies are not satisfied or updates could'nt be realized correctly, like it is shown on the next image:

Error Actualizaciones Ubuntu

(click to enlarge)

To solve this problem we'll need to execute the following line in a terminal:

sudo apt-get -f install

Create benchmarks on Ubuntu

 

Read this article in english Diesen Artikel auf Deutsch lesen

 

Phoronix Test Suite is an all-in-one software to create benchmarks or performance tests on Linux. Even if the aplication doen't have any tests installed by default, we can install them easily by our own. It's important to know, that the software doesn't have a grphic interface, so we need to control it all by commans from a command shell. But, don't worry, its really easy. Here are all commands you need to know...

Phoronix Test Suite Logo

Read the rest of this entry »