14 May, 2009

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.
7 May, 2009

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:
- wget "http://ubuntu-blog.com/compartidos/translate"
- sudo mv translate /usr/local/bin/
- 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"
5 May, 2009

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:

(click to enlarge)
To solve this problem we'll need to execute the following line in a terminal:
sudo apt-get -f install
5 May, 2009

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...

Read the rest of this entry »
3 May, 2009

Most of us probably only use one user on Ubuntu, and probably its a little anoying to enter username and password every time you iniciate a session on Ubuntu...
But fortunately we can change this configuration, and make Ubuntu save our user details, so we don't have to type our username and password every time we start Ubuntu.
We only need to access the "Access Window" configuration in "System" menu and then "Administration". Once we've opened the Access Window configuration, in "Security" tab, we'll find something similiar to the following image:

(click to enlarge)
We only need to type our username in the field, at top of the window, in this examlpe "ubuntu-blog.com", and next time we start Ubuntu we'll not be asked to type our username nor our password.