Thursday, May 31, 2012

[HOW TO] Enable Single-Window Mode in Gimp 2.8

In Gimp 2.8 a new Single-Window mode were introduced, however it's not enabled by default. It can be enabled selecting Windows > Single-Window Mode.

Gimp 2.8 in Single-Window Mode
Gimp 2.8 in Single-Window Mode

Install GIMP 2.8 in Xubuntu 12.04 (ppa)

GIMP 2.8 is the new version of the "GNU Image Manipulation Program" and is equipped with a wealth of new features. Here's some highlights:

  • Single-Window mode
  • Layer Groups
  • On-Canvas Text Editing
  • Brush Dynamics System Improvements
  • Cage Transform Tool
  • Improved UI for tablet users

You can also see a video review done by Nixie Pixel:

Install

Open a terminal window and run:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp -y && sudo apt-get update && sudo apt-get install gimp -y

References

otto06217 - GIMP PPA
GIMP 2.8 RELEASE NOTES

Hey, Where's the Xfce panel restart option?

If the "Restart" option is missing from the "Action Buttons" on the Xfce panel, read below to get it back.

Restart option is missing Restart option is enabled
The restart option is missing in the left photo.

Fix

Open a terminal window and enter these two lines:

xfcommand="xfconf-query -c xfce4-panel -p /plugins/plugin-9/items"
eval $xfcommand"$(eval $xfcommand | tail -11 | sed 's/-restart/+restart/' | awk '{printf " -t string -s %s", $1}')"

Alternatively you can right-click the "Action Buttons" item on the Xfce panel and select properties.

And enable the "Restart" option on the following window.

Tuesday, May 29, 2012

xfconf-query set an array value to a property

"Xfconf-query is a Command Line Interface (CLI) tool for accessing configuration data stored in Xfconf."

If a property is an array of values:

xfconf-query -c CHANNEL -p PROPERTY [-n] -t TYPE1 -s VALUE1 -t TYPE2 -s VALUE2 ...

References

Xfconf-query

Monday, May 28, 2012

[FIX] Enable wireless in Xubuntu 12.04

In Xubuntu 12.04 when I boot my laptop with the wireless switched off and then try to switch it on while the system is already running, won't work.

I click on the network indicator plugin and it says that wireless is disabled by hardware switch, which isn't true. Luckily the solution is quite simple.

Fix

Open a terminal window and run:

sudo rfkill unblock all

References

Ubuntu 12.04 says Wireless is disabled by hardware switch at askubuntu.com

Sunday, May 27, 2012

Install Tex Live 2011 in [X]Ubuntu

LateX is a collection of many tools so a few LateX distributions were created to make it easier to find and installed them. For Linux there are two main distributions: Tex Live and teTeX. Since teTeX is declared obsolete[1], Tex Live is the better option.

Ubuntu 12.04 Precise Pangolin ships with the old Tex Live 2009. Below the installation process for the never version, Tex Live 2011, is described.

Install

There are several ways of installing Tex Live:

I'll describe the installation method with the collection ISO, because is the one I found to work better.

  1. First download the texlive2011.iso from a nearby: CTAN mirror.
  2. Mount the iso image using this command (adjust the path to iso):

    sudo mount -t iso9660 -o ro,loop,noauto /your/texlive2011.iso /mnt

  3. Still in the terminal, navigate to the mount point and run install-tl:

    cd /mnt && ./install-tl

  4. Now a menu will be presented with options to configure the installation. For example, use 'D' to change TEXDIR (installation directory), 'C' to select collections (if disk space is not a problem I advise to install them all) and 'L' to select language collections. Use 'I' to begin installation.
  5. When installation is completed, add the directory TEXDIR/bin/x86_64-linux to your PATH and that's it, Tex Live 2011 is now installed!

References

CTAN package downgrade: teTeX obsolete
LaTeX at Ubuntu Documentation

Saturday, May 26, 2012

Safely remove USB drive from command line

Open a terminal window and run (replace sdc with the appropriate device):

udisks --unmount /dev/sdc1 && udisks --detach /dev/sdc
Tip

You can find the device name using the mount point (replace MOUNT_POINT with the appropriate mount point, eg, /media/disk):

grep MOUNT_POINT /etc/mtab

References

command line alternative for "Safely Remove Drive" at Ubuntu Forums