Friday, December 14, 2012

Total memory use in Chromium

As percentage


run this and see the last numbers in the result


ps -eo pmem,comm | grep chromium | cut -d " " -f 2 | paste -sd+ | bc

Thursday, December 6, 2012

Edit PPA Sofware sources manually

the list is here: /etc/apt/sources.list

so

sudo gedit /etc/apt/sources.list

Wednesday, December 5, 2012

Set default internet browser in terminal

sudo update-alternatives --config x-www-browser

- enter password, see something like this





 Type the number of your browser of choice and then enter.

Saturday, December 1, 2012

Script to translate multiple filenames

Source

 
The script is:
-------------
#!/bin/bash

    for i in *.txt
    do
        mv "$i" "$(echo ${i%.txt} | translate-bin -s google -f ru -t fr).txt";
    done
--------------

You need to install this:

sudo apt-get install libtranslate0 libtranslate-bin

1. replace extension (txt, jpg, mp3 etc, in the three places where it appears)  with the one desired

2. replace in  '-f ru -t fr' (from one language to the other) with the two languages involved

3. save that in a file and make it executable

4. run script in the directory with the files (or run `./script` in terminal there) - use a different file manager if it doesn't work in  pcmanfm

(The script replaces the old old filenames irreversibly so backup first.)

Tuesday, November 27, 2012

Dictionaries to install

Great payable dictionaries are absent in Linux, but their windows versions work well in Wine.

In Synaptic there are good English dictionaries. But 'dictionary' may mean the source dictionary or the viewer.

A good and large English dictionary is the gnome-dictionary (displayed in the menu as 'Dictionary') which is a viewer+source (The Collaborative International Dictionary of English ). It has literary examples and  etymology. One of the best in spite of the primitive appearance.

Goldendict is a useful viewer when used for English with Wordnet dictionary and connection to Wikipedia as sources.  It is also the viewer for the 'freedict' dictionaries: these sources are mediocre in spite of their diversity. Amongst them are some eng-fr, eng-ro, eng-lat and many other such "translators" (See Synaptic) of the same low quality.

Littré with the viewer Stardict is a rare but very good and large French dictionary with literary examples and  etymology.

Artha is a decent English dictionary  with the special feature of heaving enabled  a ctrl-alt-w keybind search.



Edit shortcuts (keybindings) in Lubuntu

There is no easy GUI shipped with Lubuntu for editing hotkeys. The easiest way to create key bindings for Lubuntu is by opening the terminal and pasting in the following code:

sudo gedit ~/.config/openbox/lubuntu-rc.xml

This will open the hotkey configuration editor. At this point, you will need to search for the item you wish to edit. The following will help with some of the key codes:


C - Control Key
A - Alt Key
S - Shift Key
W - Super/Windows Key
Tab - Tab
Up - Up Arrow
Down - Down Arrow
Left - Left Arrow
Right - Right Arrow

Here's an example which binds Firefox to the key SUPER+f:

<keybind key="W-f">
    <action name="Execute">
        <command>firefox</command>
    </action>
</keybind>
To run a script:
 <keybind key="C-A-3">
      <action name="Execute">
        <command>sh ~/.screenlayout/single.sh</command>
      </action>
    </keybind>

Wednesday, November 21, 2012

How to install from tar.gz archive

theoretically...




tar zxvf name_of_application.tar.gz

cd name_of_application

./configure

make

sudo make install










Tuesday, November 20, 2012

Improve Wine programs appearance



Install all the fonts:
 
winetricks allfonts

  • enable font smoothing - fire one after the other these lines in Terminal:
wget http://files.polosatus.ru/winefontssmoothing_en.sh

bash winefontssmoothing_en.sh
select third option in terminal - with the arrows, then use tab key to select ok and 'enter'
enter image description here
  • install a windows msstyle file in Wine/Configure Wine/Desktop Integration
enter image description here
  • increase the screen resolution in Wine/Configure Wine/Graphics 

 enter image description here









To increase certain menu fonts:

  • open `.wine/drive_c/windows/win.ini` in a text editor, and add these two lines at the end, and save:
     
    [Desktop]

    MenuFontSize=18

    Replace the "18" with whatever font size.

Sunday, November 18, 2012

Add option to open folder as root in Thunar context menu

Go to`Edit/Configure custom actions` 
Click the button for adding new custom action ("+") 

add this command:

gksu thunar %N

Tuesday, November 6, 2012

To join multiple 001.avi etc files

1. use

cat filename.avi.* > filename.avi

2. But it's not the safest.

So,

AVI files -  avimerge
--------------
**Description**

> avimerge is a  versatile tool.  It can contatenate several
>        AVI files into one. It can also be used to fix an index of
>        a broken file and can also replace audio tracks or muxes
>        new ones. It can read raw AC3 and MP3 files for multplex-
>        ing.

**Installation**

`sudo apt-get install transcode transcode-utils`

**Usage**

You can merge avi files with:

    avimerge -i input1.avi input2.avi -o output.avi
It's encoding-free, so joining the parts usually doesn't take much longer than a minute.

**Options**

Other available options are:

    Usage: avimerge [options]
         -o file                   output file name
         -i file1 [file2 [...]]    input file(s)
         -p file                   multiplex additional audio track from file
         -a num                    select audio track number from input file [0]
         -A num                    select audio track number in output file [next]
         -b n                      handle vbr audio [autodetect]
         -c                        drop video frames in case audio is missing [off]
         -f FILE                   read AVI comments from FILE [off]
         -x FILE                   read AVI index from FILE [off] (see aviindex(1))


3.  http://www.hjsplit.org/linux/

4. http://www.openshot.org/download/

5.  Gnome split

sudo add-apt-repository ppa:gnome-split-team/ppa 
sudo apt-get update 
sudo apt-get install gnome-split 

6.mkvtoolnix-gui Install mkvtoolnix-gui

Sunday, November 4, 2012

How to rename files so as to replace spaces with "_"



    Open terminal in the folder where are the filesto be renamed and fire:


          rename 's/ /_/g' *\ *

Saturday, November 3, 2012

Howto Convert PDF to TXT in Ubuntu Linux

TO CONVERT ALL PDFs to TEXT  with THE SAME NAME NO MATTER SPACES IN NAME  :


find . -name '*.pdf' -print0 | xargs -0 -n1 pdftotext




this command seems to work when sometimes the other does not, but it has the problem of converting ALL pdfs within the folder `A` in which it is fired, downwards to those possibly present  in `A/B/C/D`... and so forth: if that is fired in the home folder, all your pdfs will be converted to txt

to avoid this:



ls *.pdf | xargs -n1 pdftotext
(The -n1 option makes sure that only one pdf file is passed to pdftotext at a time. But this command is allergic to space in names.)

In order not to wary about spaces in filenames:

for file in *.pdf; do pdftotext "$file" "$file.txt"; done


These commands can be added in Thunar as custom actions
(the source for all this info is in the answers to this question)

 

Friday, November 2, 2012

Lubuntu mplayer bug

Lubuntu has mplayer2 installed by default, which is a fork of mplayer.Smplayer and smtube might not therefore work. Install mplayer instead of smplayer2

sudo apt-get purge mplayer2 && sudo apt-get autoremove

sudo apt-get install mplayer gecko-mediaplayer gnome-mplayer

Tuesday, October 23, 2012

Task managers


sudo apt-get install gnome-system-monitor

How do I edit the menu in Lubuntu?


LXMenuEditor (Main Menu Editor) If link dead, try this one with the same files that were available before
Execute the LXMenuEditor.jar file, and then use the program to add the same file to the main menu... (with no spaces in the path...)
  • Java based
  • Cannot edit the main categories (as alacarte would if it worked)
  • Can open and edit .desktop files as text
enter image description here

If Quick Filter missing in Synaptic Manager

sudo apt-get install apt-xapian-index
sudo update-apt-xapian-index -vf

Install media converter: WinFF

sudo add-apt-repository ppa:paul-climbing/ppa

sudo apt-get update

sudo apt-get install winff

sudo apt-get install libavcodec-extra-53

How to remove taskbar info

sudo nano /etc/default/apport
 
or
 
gksu gedit /etc/default/apport
  
Change enabled from "1" to a "0"

Saturday, October 20, 2012

Edit clock display in lubuntu

The variables can be changed:

Clock Format:
%R

Custom:
%m/%d/%y %I:%M
%d.%m.%y. %I:%M
%d/%m: %Ih%M
%d/%m %I:%M:%S
%d%A %I:%M:%S
%d %A %I:%M)

%a-%d%b-%I:%M:%S

Tooltip format:
%A %x

Try and test.

Monday, October 8, 2012

Correct time in persistent live USB

It seems that in persistent live USB  it is displayed the wrong time (GMT / UTC instead of local)


ANSWER FROM HERE

sudo dpkg-reconfigure tzdata

After executing this to ensure the correct timezone was selected, then set this command to be run automatically and non-interactively at startup by adding it to System -> Preferences -> Sessions -> Add -> Command:  

sudo dpkg-reconfigure -f noninteractive tzdata

But in Lubuntu   I cannot add new staff to session. Nevertheless the first command seems persistent.

Edit shortcut for external display in Lubuntu

here

Saturday, October 6, 2012

Make executable file

sudo chmod a+x path/to/the/file


(just copy file and paste as path)

Thursday, September 13, 2012

Open folder after download with Axel has finished

You just need to add a custom download script that invokes your file manager.
  1. The script (suppose it's saved to /home/USERNAME/axelopen):

    #!/bin/bash
    axel -o $2 -H Cookie:$4 -H Referer:$3 $1 xdg-open $2

    don't forget to make it executable.

  2. Add the custom DL manager to FlashGot:

    • Open Flashgot options, and Add the custom manager, setting the executable to /usr/bin/xterm and the arguments as shown below:

    xterm is only used because it is universal. You can also use, for example, gnome-terminal and change the -e to -x; this "run a command" option should be available for your other favorite terminal too.

Wednesday, September 12, 2012

Emergency commands from console.

Sometimes the console is the only thing that is still accessible in the computer.

To access the console:

CTRL+ALT+F1 (F1-F6)
The Terminal is then accessible once in console:

enter your username

then password

you are in terminal now!

To kill an application:

killall nameofapplication
To exit the session:
sudo su
pkill -KILL -u username

To shut down:

CTRL-ALT-DELETE


To leave console and return to desktop:

CTRL-ALT- F7

Tuesday, September 11, 2012

Install last qbittorrent from PPA

sudo add-apt-repository ppa:hydr0g3n/qbittorrent-stable&&sudo apt-get update&&sudo apt-get install qbittorrent

A good network manager



Wicd este un program cu opțiuni mai avansate decât altele.

E în Repos.

În LXDE apare și ca systray icon.

În Xfce nu dar se poate adauga ca launcher.

Link

Monday, September 10, 2012

Wednesday, September 5, 2012

Tuesday, September 4, 2012

Install SMPlayer in Terminal


Before installing in Lubuntu see this.

Use the PPA only if the Synaptic version doesn't work.
sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smtube

Monday, September 3, 2012

Dictionaries

sudo apt-get install gnome-dictionary

That is the default Gnome dict.


sudo apt-get install artha
Artha is a good English one.

sudo apt-get install goldendict
Add this to GoldenDict.

OpenDict.

Latin-French Dictionary

Stardict - link to dictionaries to install in /usr/share/stardict/dic here

Wednesday, August 29, 2012

How to install Deadbeef add-ons/plugins

These plugins can be found at this address.

There are .so files that have to be copied into a folder

On their site they say: ~/.local/lib/deadbeef/

Tested and confirmed for 0.6.2

This new version has a new foobar like option to customize the GUI:

View-Design mode

That is saved in home/@user/.config/deadbeef/config

- Cleaning up these locations might be useful in case of problems.


Tuesday, August 21, 2012

Use Axel instead of apt-get

to speed up terminal download, use apt-fast

sudo add-apt-repository ppa:apt-fast/stable 
sudo apt-get update 
sudo apt-get install apt-fast axel
 
When installing apt-fast in Ubuntu via its PPA, the package asks you if 
you want to use aptitude or apt-get, what download manager to use (axel 
or aria2c). If, later on, you want to change some of the apt-fast 
options, use the following command:
 
sudo dpkg-reconfigure apt-fast 

Wednesday, July 25, 2012

Download embedded videos with FlashGot


To get videos from sites like youtube:

1. install flashgot for FirefoxLink

2.running a video should make a download button visible













or go to tools - flashgot - flashgot media













To have best speeds, install Axel downloader:

paste in Terminal:

sudo apt-get install axel

Go to Tools - Flashot-More options -FlashGot Media and set Axel as downloader for that, instead of the built-in one:















see the difference:




Sometimes Axel is not able to get the video, but when it can, it usually uses your best speed possible.
(Except for Rapidshare: they have a new policy of restricting speed so it is better to use the built-in downloader - if you try Axel the response from Rapidshare is to limit your speed.)

Monday, July 16, 2012

Use PlayOnLinux as Wine GUI

(Source HERE)

If you would like to use a GUI for WINE, that provides the option to install many Windows applications (including Office programs, games and more), you can install PlayOnLinux. It is available in the repository, but if you want the latest and greatest version, you will need to add the PlayOnLinux repository and install it from there:
For Oneiric:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_oneiric.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

Please see this page if you need to install the repository for a version other than Oneiric (11.10).

For Precise (12.04):

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

Sunday, July 15, 2012

See hardware statistics

sudo lshw

that gives too much info

so:

sudo lshw | less

to see specific item, e.g.

sudo lshw -c network

or

sudo lshw -c network -short

Thursday, July 12, 2012

Add new buttons in LXPanel

Create a file with the name 'name-of-application' (as entered afterwards into the file under 'Name') and  with the extension .desktop.
(or in Terminal:
gksudo leafpad /usr/share/applications/lubuntu-logout.desktop)
 

Put inside (no empty rows) :


[Desktop Entry]
Name=name-of-application
Comment=any-comment
Icon=<path to the png file>
Exec=executable-name-of-application (look in /usr/bin)
#NoDisplay=true
Type=Application
Categories= Settings
 
 The last entry will make the app to appear in Menu: 'Preferences'
 
 
 Put the file in usr/share/applications (root access needed).

Then, create an 'Application Launch Bar' in the  LXPanel and add your app into the former after finding it listed in the 'Preferences' category.

Add Shutdown Button to LXPanel

Shutdown Button is missing from LXPanel, how can I add it?


From LXTerminal, please run this command:
gksudo leafpad /usr/share/applications/lubuntu-logout.desktop

Now, copy the below content, paste it into lubuntu-logout.desktop file, Save and Exit: 

[Desktop Entry]
Name=Shutdown
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=lubuntu-logout
#NoDisplay=true
Type=Application
Categories=Settings;


After that, please right click on LXPanel > Add/Remove Panel Items > Add > Application Launch Bar > Add > double click on Application Launch Bar > Preferences > select Shutdown from the list and on the right and then click "Add" > Close > Close
http://ubuntuforums.org/picture.php?albumid=2428&pictureid=8235

Tuesday, July 10, 2012

See free disk space in Terminal

The command is

df -h

And that will display statistics for all partitions and connected disks


Friday, July 6, 2012

Mounting image files

To do this I use AcetoneISO. Unlike in Windows, once selected the iso image file is mounted without the need of creating a virtual drive.

Create shortcuts to launch programs in Xfce/Xubuntu

Go to Settings Manager / Keyboard / Applications Shortcuts / Add

The best use of this feature is with the elementary/systemic programs like the Terminals,  the run/launch programs (gmrun, grun, Gnome Do, xfrun) and the system monitors/task managers(xfce4-taskmanager, gnome-system monitor)

Install programs using Synaptic Package Manager

It is a nice way to install because you can see more information than in Ubuntu Software Center. It works more neatly as well.

At each start you are asked for the password, then it  looks like that:



Search for the program to install or to see if already installed. You don't need to give the whole name, but a clue may help, for example for 'burning' software.


Those checked (green) are already installed. To install, uninstall and other options, right click an item.

An essential feature in Linux are 'repositories' - the source of software to be installed from the internet  (programs you don't have on your computer to install, but that are installed through Synaptic Manager, Ubuntu Software Center, or the Terminal.) A lot of such repositories ('repos') are already there, but to install some new programs you may need new repos. To see,  add or remove them, go to Software Sources (accessible in Applications Menu - Settings - or, in Synaptic Manger: Settings - Repositories, etc.)

Thursday, June 7, 2012

Converting images

To convert images from a folder to a single pdf:

open terminal in that folder and run like:


convert *.jpg my_new.pdf

or

convert *.png my_newpng.pdf


General formula:

convert *.extensiontype file.pdf

or

convert imagename.extensiontype file.pdf


To reduce the size by 50%:


convert -resize 50% source.png dest.jpg
or
convert -resize 50% source.jpg dest.jpg
or even smth like:

convert -resize 1024X768 source.png dest.jpg

where you can replace extensions accordingly



Using ImageMagick to convert images:

sudo apt-get install imagemagick
mogrify -resize 50% *png # keep image aspect ratio
mogrify -resize 320x240 *png # keep image aspect ratio
mogrify -resize 320x240! *png # don't keep image aspect ratio
mogrify -resize 800x1094! *jpg # don't keep image aspect ratio

Keeping aspect ratio:
mogrify -resize x240 *png

mogrify -resize 320x *png

mogrify -resize 50% *jpg # keep image aspect ratio

About ImageMagick here and here.

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:
#!/bin/bash
rm -rf /home/username/.local/share/Trash/files/*

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

To empty trash in terminal:
emptytrash

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:

Code:

XKBMODEL="pc105"
XKBLAYOUT="us,fr,ro"
XKBVARIANT=",,std"
XKBOPTIONS="grp:alt_shift_toggle"

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
/home/your-username/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml

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
home/username/.config/xfce4/panel/xkb-plugin-##.rc
Edit it to look similar to this:

display_type=1
group_policy=0
default_group=0
never_modify_config=false
model=pc105
layouts=us,fr,ro
variants=,,std
toggle_option=grp:alt_shift_toggle
compose_key_position=

(paste from here)

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

Edit it accordingly:

XKBMODEL="pc105"
XKBLAYOUT="us,fr,ro"
XKBVARIANT=",,std"
XKBOPTIONS="grp:alt_shift_toggle"

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.

Wednesday, February 29, 2012

Arte+7 Downloader

sudo add-apt-repository ppa:vincent-vandevyvre/vvv
sudo apt-get update
sudo apt-get install qarte
 

Increase download speed

A good method to increase download speed is to use console downloaders (Axel and Prozilla). FlashGot plug-in in Firefox provides an easy way to administer/change download managers. (Could not yet find a script to use Prozilla with FlashGot, but there is one for Axel. See below.)

Prozilla

sudo add-apt-repository ppa:tldm217/tahutek.net
sudo apt-get update
sudo apt-get install prozilla

General usage

        proz download_link

Resume download

        proz -r download link

Limit download speed (at 20000 bps)

        proz --max-bps=20000 download_link

Do FTP search

        proz -s download_link

More download options

        proz --help



Axel
sudo apt-get install axel

help:
axel -h

to download from different mirrors

axel -S http://.............

The best thing is to integrate Axel as default download manager in Firefox (through FlashGot) and in Chromium (through Simple Get).

to create script, paste THAT in a text and save anywhere:

#!/bin/bash
cd Desktop
gnome-terminal -e , --command="axel $1 -n 10"

(source)

Then set  FlashGot and Simple Get to use that script file as downloader executable.

According to circumstances, Axel or Prozilla will prove the fastest (up to the limit of your bandwidth) or the most able to capture reluctant download links (e.g. Axel may not work in such cases when used as default download manager, so then use Firefox plugins like DownloadHelper, FlashGot, DownThemAll or UnPlug to get that stubborn link in the built-in downloader, so that, although it would not  download, the link would be copied: then, paste it in the terminal with Axel and Prozilla and see what happens.

Sunday, February 26, 2012

Hide system tray icons

Some system tray icons are less useful or are uglier than others. A maniacally customized monochrome desktop may be ruined by a rebellious tray-icon like that of Skype or Clementine or VLC.
Luckily the Xfce panel allows (Windows-like) to hide icons from Notification Area (right-click under the battery icon for example) and check them. They are easily accessible by a small arrow.

Remove unwanted ppa

 (found it here).
Install GetDeb repository - install this deb

sudo apt-get install ppa-purge
 
 to remove a certain ppa:
 
sudo ppa-purge PPA 
 
 (replace PPA with the specific name) 

Flash Player seems to be missing in Firefox or Chromium

although it is installed and reinstalled.
In Synaptic Manager check to have installed flashplugin-installer  instead of adobe-flashplugin. If that does not work,
I SOLVED like this:
download ADOBE flash as archive (click to install go to website and try to get the tar.gz archive)
- unpack
- take libflashplayer.so file and put it in /usr/lib/mozilla/plugins ('gksudo name-of-file-explorer' to open in root)
- do the same in /usr/lib/chromium-browser/plugins
(try the same for other browsers if needed: works in Opera - /usr/lib/opera/plugins)

solution inspired from here

If the wireless is stuck as if disabled by hardware

(it happens in some laptops when you use the wireless button a lot) and you cannot physically enable it,  try in Terminal:

sudo rfkill unblock wifi

How to fix Skype video in UBUNTU 11.10, 12.04, 12.10

Paste in Terminal  to create a blank file :

sudo gedit /usr/local/bin/skype

(that if gedit is your text editor)

There, paste the following:

#!/bin/bash
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype

save and close

Now to make the file executable, copy and paste the following line into Terminal.

sudo chmod a+x /usr/local/bin/skype

enter

start skype

thanks to this source, including the change suggested by JuliusP0pp in his comment there

How to make the Xfce xkb keyboard layout plugin to remember settings after reboot.

I found two files involved in this: /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml and /home/user/.config/xfce4/panel/xkb-plugin-43.rc (the last number varies in the name) I have seen that the second has the options that are created when you change settings, but these are not saved on session logout. So the other one has to be edited.

First make the desired settings in Settings Manager/Keyboard and in the plugin options. Then edit the two files mentioned so as to have the same options. In fact the xml file is the one that contains the data to be loaded after logout, but it does not contain the shortcut to change layout. Anyway, this shortcut will be remembered if the other data in the rc file are not different from those in the xml file.

The file xkb-plugin-43.rc should look like this:
display_type=1
group_policy=2
default_group=1
never_modify_config=false
model=pc105
layouts=ro,us,fr
variants=std,,
toggle_option=grp:alt_caps_toggle
compose_key_position=

The keyboard-layout.xml should look like this:
<?xml version="1.0" encoding="UTF-8"?>

<channel name="keyboard-layout" version="1.0">
  <property name="Default" type="empty">
    <property name="XkbDisable" type="bool" value="false"/>
    <property name="XkbLayout" type="string" value="ro,us,fr"/>
    <property name="XkbVariant" type="string" value=",std"/>
  </property>
</channel>

Monday, February 20, 2012

See disk space & folder size

With Baobab - in SYNAPTIC. Might be already installed as part of gnome-utils (sudo apt-get install gnome-utils)

Or K4DirStat
sudo add-apt-repository ppa:jeromerobert/misc
sudo apt-get update
sudo apt-get install k4dirstat

Monday, February 13, 2012

Install from PPA (Deadbeef player example)

Some of the good stuff is unavailable in Ubuntu Software Manager,  Synaptic Package Manager, or as deb file to download and install, and have to be installed "from PPA". I got all the information from here.
What it says is the following:
("Important: The contents of Personal Package Archives are not checked or monitored. You install software from them at your own risk.")

Enter in Terminal:

sudo add-apt-repository ppa:user/ppa-name

This means that in the case of Deadbeef player you should enter in Terminal:

sudo add-apt-repository ppa:alexey-smirnov/deadbeef 

To tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update
 Now you're ready to start installing software from the PPA!
====================
This means that for installing Deadbeef player you must add in Terminal:

sudo apt-get install deadbeef 

(replace with the name of your desired application)






Foobar2000 & Ubuntu: split cue files with Foobar in Ubuntu

The looks are not that great but Foobar works in Ubuntu through Wine (and I did not even set up the tweaks recommended by the geeks).

I am not using it all the time. The point of Foobar (just like that of Firefox) is to use it with a lot of add-ons, and so it can get heavier than other players (not that bad, over 60mb), the "facets" feature doesn't look as it should and often Foobar may freeze or crash (I should have made those tweaks!).
I use DeaDBeef player instead when I want simple access to my music library, or a lighter player like Audacious, Quod Libet or qmmp (and why not VLC or SMPlayer) just to play files or radios. But when I really need thorough access to something in my library, Foobar is the way.

A lot of the other features of Foobar are there to try. I did not have the occasion to try too many. The tagging feature seems to work.
I was pleasantly surprised to see that the converting ability of Foobar is working in Ubuntu, and can be used to split big single disk or album files according to the cue list. In Windows I was not even using  Foobar for splitting, for I used Medieval cue splitter, but in X(ubuntu) I tried it in Foobar and it's even simpler! Just load the cue file in a playlist - as if to play it: and it should play in Foobar - then select all files and convert them the usual way. Foobar sees the original file as multiple files and converts accordingly. 

Use Gdebi Package Manager to install .deb files

Ubuntu Software Center is a GUI made to help users install and uninstall stuff on their Ubuntus, but is very heavy and cumbersome.

The Synaptic Package Manager is better and less intuitive. No alternative to that. The lightest path to install/uninstall is the Terminal, but it is geekier.

When you are lucky enough to have a program package in the .deb format it will usually open in Ubuntu Software Center. Too heavy for Lubuntu, which still uses the very light Gdebi Package Manager, a small utility to install deb files. When I installed LXDE desktop environment to check it out (see my page "What is Ubuntu / Kubuntu etc") I discovered Gdebi as the main installation GUI. To get it open Synaptic Package Manager, search "gdebi", check it right-click for installation and apply. 
And after that it would be a good idea to associate deb files with Gdebi.

Sunday, February 12, 2012

Better than JDownloader in Ubuntu

I find JDownloader excellent but much too heavy sometimes. In Windows I preferred ochDownloader (no Java!), but couldn't make its Linux version work. (Started its Windows portable version in Wine, but although worked, it has issues. - While Tucan - still mentioned by Ubuntu users - stinks in Windows and is not even working in Ubuntu 11.10)
Free Rapid Downloader (FRD) although still Java-based is not so heavy as JD and can be used in Ubuntu. It has a portable version, just execute the frd.sh file. (In frd.sh file's properties, permissions, check "allow to run as a program".) The error message that keeps popping-up is of no consequence.

Monday, January 16, 2012

Main programs to install in Xubuntu

The drivers are already there (most of them : for my HP Compaq nx8220 laptop I needed no supplementary drivers - except for my Cannon LBP1220 printer)

A lot of good programs are installed by default in Xubuntu (even more in Ubuntu): Firefox (which you don't need to replace), some audio-video players, text editors and image viewers.
You do not have to go to google, search, download and install programs yourself like in Windows.
Go to Ubuntu Software Center - a program that is installed by default - to search and install new programs.
But what are the programs to install?
My top selection at this point:

The office suite: Open (Libre) Office
A powerful image editor (GIMP) is installed by default
Gwenview (lighter image viewer and editor)
Gpicview (even lighter)
Skype
K3b (cd/dvd burner)
Acetone ISO (iso mounter)
KDownloader (torrent app.)
uGet (download manager, increasing download speed, somewhat similar to Internet Download Manager of Windows)
SMPlayer - excellent video player
Clementine - good audio player.
Quod Libet - audio player.
Multiget (download manager) (to integrate in Firefox: by FlashGot add-on: In FlashGot : More Options…Add.... search for the program. Finally change "[URL]" to[url=URL] [refer=REFERER])
Advanced Setting (a program to adjust more settings)

Wine - to run some Windows programs in Ubuntu
Audacious - simple music player
Qmmp - simple music player
(see page on audio players)
SubDownloader
XCFA & Sound Converter
Dvd95 Converter & k9copy

Not all programs are accessible for download in Ubuntu Software Center. Then, they can be found on the Internet or they can be installed (and uninstalled) in the Terminal. A program that is downloaded in the "deb" format will be opened in Ubuntu Software Center and installed. Installing from other formats it's not something that I can teach somebody about. Not yet.

PROGRAMS TO BE DOWNLOADED AND INSTALLED (deb format - open in Ubuntu Software Center):
Google Chrome
Opera Browser
SubDownloader (search and download subtitles for your movies)

IN TERMINAL:
To install VLC:
sudo apt-get install vlc

To install the language panel plug-in (to display and switch the keyboard language):
sudo apt-get install xfce4-xkb-plugin

To install JDownloader:
sudo add-apt-repository ppa:jd-team/jdownloader
[enter]
sudo apt-get update
[enter]
sudo apt-get install jdownloader

TO UNINSTALL IN TERMINAL [example to uninstall ‘app’ - replace with the name of the program]
sudo apt-get remove app

To also remove configuration files:
sudo apt-get --purge remove app
(also check and delete directory in ‘home’)