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