Thursday, March 29, 2012

Record sound in Linux with Audio Recorder

Audio Recorder

sudo apt-add-repository ppa:osmoma/audio-recorder
sudo apt-get update && sudo apt-get install audio-recorder

Record radio in linux

Streamtuner + Streamripper:

 sudo apt-get install streamripper streamtuner

 Can only record mp3. Gives specific name of file.
Run Streamtuner, Streamripper is started in terminal (by default, xterm) when recording.
Settings for custom folder for recorded files would not work, they go in home/user/name-of-radio.
The default player for radio in Streamtuner is Audacious. Can be changed in Preferences.
In Streamtuner - Stream - New Preselection can be added new radio stations beside those already listed there.
Recording stops if xterm or Streamtuner are closed.

Saturday, March 17, 2012

Trash commands & shortcuts

To delete a file completely without putting it into the Rubbish Bin, select and use Shift-Del.

To create a command to empty trash basket and then a shortcut for that command, first find where is your trash folder (in current Xfce the deleted files go to /home/username/.local/share/Trash/files).

To create a bash file for the purpose:
gksudo gedit /usr/local/bin/emptytrash

Paste inside:
rm -rf /home/username/.local/share/Trash/files/*

Make this file executable:
sudo chmod +x /usr/local/bin/emptytrash

To empty trash in terminal:

You may create a shortcut for that - in current Xfce : Settings Manager/Keyboard/Applications Shortcuts: Add

Thursday, March 15, 2012

Torrent clients in Ubuntu

My first choice is qBitttorent, looks like utorrent, has a lot of features,is balanced and cool. It even has a changeable dark or light tray icon.

Is in the sources.

My second choice is Flush.  Similar to the above, but lacks some features and has a few quirks as if still at its beginnings. But most of the time is very good and has the lowest memory use of all.

sudo add-apt-repository ppa:konishchevdmitry/flush
sudo apt-get update
sudo apt-get install flush
Tixati is a very interesting and reach program. Maybe the best for advanced action, with a bit more memory use. To get it, here.

Deluge, one of the most popular clients in Ubuntu, deserves to be put at hand. To install, use Synaptic, etc.

I would not recommend and I would look for alternatives to:

Ktorrent. Recommended by some users. I tested it and it has odd features (cannot close it from the tray icon; has tabs that serve no purpose; once created, they can be closed only by a separate clumsy button); the memory use is high; speed seems lower than in alternative clients I changed it for; it was this one that made me look for an alternative (and so I found the first three choices above).

Transmission. The default client in Xubuntu 11.10 is from my experience not the best choice (although people use it - in the same manner some Windows users stick to the default media player or web browser). It seems poor and the lack of features is not compensated by low memory footprint.

Bittornado. The same problem as above. Lacks a lot of features that are elementary if you ever used utorrent.

Vuze. Cannot recommended because of its huge memory use compared to all the rest. It is said to be full featured but,  from my standpoint, its use of Java makes it bloated.  On newest computers with more than 4GB of RAM  all that would of course be irrelevant. Again, the benchmark set by utorrent makes me see things in this way.

By the way, utorrent in Wine is not too good.

Keyboard layouts settings in Lubuntu

I sometimes use LXDE/LUBUNTU desktop. To set the keyboard layouts I followed this procedure:

Check current xkb parameters with:

setxkbmap -query

Set us,fr,ro layout with variants default (us), (fr) and standard (ro) that can be changed with ALT-SHIFT keys:

setxkbmap -layout "us,fr,ro" -variant ",,std" -option "grp:alt_shift_toggle"

To test if all are OK and make all changes permanent:

gksudo gedit /etc/default/keyboard

Change parameters to the following:



Save, exit, reboot.

Keyboard layouts settings in Xubuntu

In order to handle these, the Xcfe desktop environment uses a plugin (xfce4-xkb) that has some problems in that it sometime cannot remember settings after reboot or logout.

My solution is this:
1. Go to Setting Manager - Keyboard - Layout, and set the languages in the preferred order (delete them and add them in order to achieve this: in my case, first the default, English-US, French, Romanian standard). Go to the properties of the xkb plugin and make the same settings in the same order with the same default language.

2. Open the file

gksudo gedit /home/your-username/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml

Edit it to look similar to this.

3. Open the file
Edit it to look similar to this:


(paste from here)

4. Open the file (root)
gksudo gedit etc/default/keyboard

Edit it accordingly:


Possibly the last is not strictly necessary to make it work, but just in case...

Also, as I use LXDE (Lubuntu) from time to time, before doing the above in Xubuntu/Xfce, I made these settings in Lubuntu/LXDE.

Thursday, March 8, 2012

Best torrent-applications in Ubuntu?

Is there one to match utorrent? That is: light, speedy, powerful?
Like in the case of audio players, at the start I was puzzled by the fact that people use very weak programs (Transmission) or, otherwise, some that are almost bloated and very memory hungry (Deluge and Vuze - the latter is - God forbids - even based on Java!).
I find Bittornado bizarre and still heavy. Ktorrent seems more decent, but still makes itself uselessly noticeable in the list of memory eaters .

All these are usable if you really need to, but I wanted better and I found them: qTorrent and Flush. They have a familiar utorrent-like friendly look and are good and lighter.

Qbittorent is in the official sources.

sudo add-apt-repository ppa:konishchevdmitry/flush
sudo apt-get update
sudo apt-get install flush

Flush is really light.

Another cross-platform application in this family is Tixati. (Somewhat heavier.)

The linux version of utorrent has to be used through the browser and that is cumbersome and heavy. I used the Windows version in Wine and will not repeat that feat.