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
    X-GNOME-Autostart-Delay=20
    
  5. Save and close
  6. Reboot your unity/gnome
Delay time more than 20 works fine.
or:
  • Select Plank startup application from startup application and change command option to:
    sh -c "sleep 30; exec plank -o"
    
    source here and here
or
  • Create a script called startdock, with the text
    #! /bin/sh -e
    sleep 20
    plank
    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
or
   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

or

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

BOMI VIDEO PLAYER, former CMPLAYER




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

Fonts! Improve font rendering in Linux



SOURCE:
  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/infctl.sh 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/infinality-settings.sh 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.
 

Sunday, November 30, 2014

Keep terminal open after running a command in terminal from shurtcut

You may need to keep terminal open after running a command in order to see the results, but when launched from a shortcut it closes unless you specify otherwise

First you need gnome-terminal and a profile with the setting to remain open after command: Edit, Profiles, create and select profile, edit, title and command, when command exits: hold terminal open.

The convenient way is to create a new profile called 'new1'.

The command to run by shortcut should be:

gnome-terminal --window-with-profile=new1 -e "whatever"

See temperature with a shortcut

Add this command to shortcuts:

gnome-terminal --window-with-profile=new1 -e "sensors" 

(first you need gnome-terminal with a new profile called 'new1' and the setting to remain open after command: Edit, Profiles, create and select profile, edit, title and command, when command exits: hold terminal open)

Friday, November 28, 2014

Command to extract audio from video without conversion

ffmpeg -i video.mp4 -vn -acodec copy audio.m4a
 
Even better is to replace ffmpeg with avconv and then use a line that doesn't need inserting the actual name of the files:
 
avconv -i %f -map 0:1 -c:a copy %f.m4a 

%f stays for any selected files. Multiple file can be selected and processed at the same time. 

`-map 0:1 -c:a copy` is the command to extract without processing. 
 
`.m4a` is a variable to be used if the video contains aac audio. Change accordingly. Use mediainfo to find out.

Without`-map 0:1 -c:a copy`, a simple line like
 
avconv -i %f %f.m4a  
will convert to whatever variable format. But then it is recommendable to use more complex commands.


An updated better form (input extension is removed from output name):

bash -c 'avconv -i "$0" -map 0:1 -c:a copy "${0%%.*}".m4a' %f

For mp3:

avconv -i %f -c:a libmp3lame -ac 2 -b:a 190k %f.mp3

Thursday, November 27, 2014

Multi-thread downloaders for Linux

uGet works with multi thread if aria2 plugin is enabled





REXloader boasts download speed to maximum, only that it dosplays it in Mbps instead od KBps. 8Mbps=1MBps=1024KBps

sudo add-apt-repository ppa:ra9oaj/spolab&&sudo apt-get update&&sudo apt-get install rexloader 

Wednesday, November 26, 2014

Install VLC from PPA

The stable VLC in *ubuntu 14.04 is version 2.1. To get the 2.2 version:
 

 

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



VLC nightly here:
sudo add-apt-repository ppa:videolan/master-daily&&sudo apt-get update&&sudo apt-get install vlc





Wednesday, November 19, 2014

Synapse in 14.04

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

Sunday, November 16, 2014

Command to change the default browser

Open the Terminal and run:

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



Then you will see something like this:


There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                           Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome-stable   200       auto mode
  1            /usr/bin/epiphany-browser       85        manual mode
  2            /usr/bin/firefox                40        manual mode
  3            /usr/bin/google-chrome-stable   200       manual mode
Press enter to keep the current choice[*], or type selection number:




Push the number key you like and then Enter.

Tuesday, November 11, 2014

Thunar actions - add a command that works in Terminal

Some actions that work in Terminal do not work as such in Thunar actions and do not work in a Thunar action that invokes a Terminal window with that initial command.

The first does not work because Thunar actions seem to call the command with bash and makes the use of terminal superfluous.

The second does not work when the selection is a directory because the current directory is then one level up. So you need to first cd into the target before running the command.

SOURCE

So, if the <command> works in a terminal window opened in a target directory, in order to make that work as a Thunar custom action for the same directory, adapt the command as follows:

cd %f && <command>
 

Monday, November 10, 2014

Thunar actions: save selected pdf's pages as images

Name: To PNG
Command: pdftoppm %f -png %f.png
File pattern: *.pdf
Appears if selection contains: Image Files
 
It should work for other files than pngs. 

Friday, October 24, 2014

Install VMWare & VMWare Tools in Ubuntu

http://youtu.be/T8Tab-BwJ4A

Go to VMWare downloads site. Look for VMWare Player and download the .bundle file.

Open Terminal in the download location

sudo ./VMware-Player-6.0.2-1744117.x86_64.bundle
 
After installation:

 sudo apt-get install build-essential linux-headers-$(uname -r)

Ubuntu or Ubuntu Server with a graphical user interface
To mount the CD image and extract the contents:

    Power on the virtual machine.
    Log into the virtual machine using an account with administrator or root privileges.
    Select:

    For Fusion: Virtual Machine > Install VMware Tools.
    For Workstation: VM > Install VMware Tools.
    For Player: Player > Manage > Install VMware Tools.

    Note: If you are running the light version of Fusion, a version of Workstation without VMware Tools, or VMware Player, you are prompted to download VMware Tools before they can be installed. Click Download Now to begin the download.

    Open the VMware Tools CD mounted on the Ubuntu desktop.
    Right-click the file name that is similar to VMwareTools.x.x.x-xxxx.tar.gz, click Extract to, and select the Ubuntu Desktop to save the extracted contents.

    The vmware-tools-distrib folder is extracted to the Ubuntu Desktop.

To install VMware Tools in Ubuntu:

    Open a Terminal window.
    In the Terminal, run this command to navigate to the vmware-tools-distrib folder:

    cd Desktop/vmware-tools-distrib

    Run this command to install VMware Tools:

    sudo ./vmware-install.pl -d

    Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept the defaults or supply your own answers.

    Enter your Ubuntu password.
    Restart the Ubuntu virtual machine after the VMware Tools installation completes.

Tuesday, October 14, 2014

Enable / disable touchpad

Create launchers with commands to enable/disable touchpad easily. Works in Xfce but not only.

xinput set-prop 15 "Device Enabled" 0 xinput set-prop 15 "Device Enabled" 1

the number 15 is my device, to see the variable number for the touchpad, run:

xinput list

Monday, October 13, 2014

Install Shutter to capture screen and edit captures and images



sudo apt-get install shutter

Install Shotwell to see and edit images

sudo add-apt-repository ppa:yorba/ppa&&sudo apt-get update&&sudo apt-get install shotwell

Edit shortcuts in a program in Xfce

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

2. Hover the mouse over the menu item for which you want to change the shortcut and press the new key combination.

Use in terminal, etc. Works in all programs.