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