Sunday, December 21, 2014

Edit icon sets

You might want to change or keep just a part of an icon set.

The folder icon is in 'places' folder (multiple scales).

The file manager back-forward icon is in 'actions'.

Saturday, December 20, 2014

Install latest QMMP Player in Ubuntu with File Browser

sudo add-apt-repository ppa:forkotov02/ppa&&sudo apt-get update&&sudo apt-get install qmmp&&sudo apt-get install qmmp-plugin-pack

Then go  to Settings/Plugins/

Thursday, December 18, 2014

Fix Unity problem with Plank dock (and other docks)

  • Find plank.desktop file ~/.config/autostart and add this code,X-GNOME-Autostart-Delay=20
Steps to solve easily (tested in Ubuntu 14.04)
  1. Run gedit without root
  2. Click open file menu and press Ctrl+H
  3. Open file ~/.config/autostart/plank.desktop
  4. Add this
  5. Save and close
  6. Reboot your unity/gnome
Delay time more than 20 works fine.
  • Select Plank startup application from startup application and change command option to:
    sh -c "sleep 30; exec plank -o"
    source here and here
  • Create a script called startdock, with the text
    #! /bin/sh -e
    sleep 20
    exit 0
    Make it executable, and in the startup items add a new command with path to this script.

Install MPV Player in Ubuntu

sudo add-apt-repository ppa:mc3man/trusty-media&&sudo apt-get update&&sudo apt-get install mpv

Converting (various) ... old post

To convert images to pdf or to other formats
in terminal:

      convert *.jpg my_new.pdf
   convert *.png my_newpng.pdf 

More here

LibreOffice (OpenOffice) Writer is a great tool for converting images to pdf, as explained here.

convert *.pdf *.jpg

To convert media files, see this. Also, Format Factory works fine in Wine.

To add convert commands to Thunar's custom actions or similar (or just run them in terminal in the proper folder):

sudo apt-get install ffmpeg libavcodec-unstripped-52
(Multiverse repository has to be enabled.)

Or, in Synaptic, install libavcodec-extra-53.

Then, use such commands to add to Thunar custom actions:

ffmpeg -i %f %f.mp3


avconv -i %f %f.mp3 

To see it in a Terminal it should look like:
gnome-terminal --window-with-profile=new1 -e "avconv -i %f %f.mp3" 

(In Gnome Terminal, create a new profile called "new1" and edit it ('Edit/Profiles/Title and Command') to 'When command exits: Hold the Terminal open'.)

Wednesday, December 17, 2014

USB Formatter and Image Writer from Linux Mint

It's Mint's alternative to usb creator. It is a graphical application to write .img and .iso files to USB keys. It can also format USB Key from a contextual menu in Cinammon and KDE desktops. It can be used in other linux systems, at least in Ubuntu for sure.

sudo add-apt-repository ppa:tsvetko.tsvetkov/trusty-backports&&sudo apt-get update&&sudo apt-get install mintstick

Tuesday, December 16, 2014

Change colour in Gimp

  • Open image in Gimp
  • Go to 'Select' menu > By colour
  • In the lower part of the Gimp window, Threshold: 0.0 (zero)
  • Click the colour that you want to edit from within your image
  • In the left panel select the Bucket Fill Tool and then the desired colour
  • Click the area(s) from your image that are selected to change them
  • Export image.

Wednesday, December 3, 2014

DeaDBeeF - save and reset configuration

Especially since the GUI is configurable, it may be useful to save the customized configuration or reset to default.

To save a certain configuration, backup the directory `/home/@user/.config/deadbeef`; to reset to defaults, delete that directory (it is absent by default).

Tuesday, December 2, 2014

Make conky work

sudo apt-get install conky-all curl

Install Plank dock outside eOS

  sudo add-apt-repository ppa:ricotz/docky&&sudo apt-get update&&sudo apt-get install plank

Enable Key-shortcuts for menu items of all programs (Ctrl-C, etc)

All programs menus that have key-shorts attached can be edited in Xfce: just enable the feature:

1. Enable editable accelerators in SettingsManager -> Appearance -> Settings

2. Hover the mouse over the menu item for which you want to change the shortcut (in Eurenglish: mouse over the menu without clicking) and press the new key combination.

Use in terminal, etc. Works in all programs.

Monday, December 1, 2014

Install Synapse latest

sudo apt-add-repository ppa:synapse-core/testing&&sudo apt-get update&&sudo apt-get install synapse


sudo add-apt-repository ppa:darklin20/bomi&&sudo apt-get update&&sudo apt-get install bomi

Fonts! Improve font rendering in Linux

  Infinality is a set of Freetype patches that try to provide an improved font rendering for Linux and also, to allow easy customization so the users can adjust the settings to their taste. Using it, you can easily set the font style to emulate OSX, OSX2, Windows 98, WIndows XP or Windows 7 or you can use the "Linux" or "Infinality" (default) styles.

sudo add-apt-repository ppa:no1wantdthisname/ppa&&sudo apt-get update&&sudo apt-get install fontconfig-infinality
Once you install Infinality, it's time to configure it. To set the style you want to use, run the following command:
sudo bash /etc/fonts/infinality/ setstyle

(add that to a launcher or something)

And select the style you want to use. Available options are: debug, infinality, linux, osx, osx2, win7, win98 and winxp (I recommend using the "linux" style, obviously, but you can try any style, then remember to log out and log back in - you can easily select a different style later on by using the same command).

To use the Windows or OSX style you'll also need to use and install the Windows or OSX fonts.

sudo apt-get install ttf-mscorefonts-installer 

Optional: next, open /etc/profile.d/ with a text editor as root - I'll use Gedit below:
sudo -H gedit /etc/profile.d/infinality-settings.shAnd in this file, search for USE_STYLE (it should be USE_STYLE="DEFAULT" by default) and change it to one of the following styles (I recommend using "UBUNTU" here but you should also try the default to see which one you like better):
  • DEFAULT - A compromise that should please most people;
  • OSX - Simulate OSX rendering;
  • IPAD - Simulate iPad rendering;
  • UBUNTU - Simulate Ubuntu rendering;
  • LINUX - Generic "Linux" style - no snapping or certain other tweaks;
  • WINDOWS - Simulate Windows rendering;
  • WINDOWS7 - Simulate Windows rendering with normal glyphs;
  • WINDOWS7LIGHT- Simulate Windows 7 rendering with lighter glyphs;
  • WINDOWS - Simulate Windows rendering;
  • VANILLA - Just subpixel hinting;
  • CUSTOM - Your own choice;
  • Infinality styles:
    • CLASSIC - Infinality rendering circa 2010. No snapping;
    • NUDGE - CLASSIC with lightly stem snapping and tweaks;
    • PUSH - CLASSIC with medium stem snapping and tweaks;
    • SHOVE - Full stem snapping and tweaks without sharpening;
    • SHARPENED - Full stem snapping, tweaks, and Windows-style sharpening;
    • INFINALITY - Settings used by the Infinality developer;
    • DISABLED - Act as though running without the extra infinality enhancements (just subpixel hinting).

In this file you can change many other settings but if you don't know what they do, only change the style. Then, save the file, log out and log back in to see the changes.

For discussion, bug reports and so, visit the Infinality forums.