Ubuntu

Making Chrome default browser for Skype

Skype does not use default browser from Ubuntu system settings. One needs to change ~/.local/share/applications/mimeapps.list. Replace all browsers with google-chrome.desktop there.

http://askubuntu.com/questions/96080/how-to-set-google-chrome-as-the-default-browser

Inserting to PDF file

http://askubuntu.com/questions/18685/adding-pages-to-existing-pdf-file

pdftk A=bigpdf.pdf B=insert.pdf cat A1-180 B A181-end output output.pdf

Reverting from Ctrl+Alt+F1..F6

Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs. Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X. So to get back into your GUI window manager: type:

Ctrl+Alt+F7

or

Alt+F7

or

Ctrl+Alt+F8

http://askubuntu.com/questions/157617/reverting-from-ctrl-alt-f1

Open Open Office spreadsheet from command line

soffice --calc data.csv

Printing on photo paper (4x6 inches 10x15 centimeters)

Choose paper size: 4x6 inches, Page handling: Fit to printable area.

Remove repository source

http://askubuntu.com/questions/307/how-can-ppas-be-removed

You can remove them by deleting .list files from /etc/apt/sources.list.d directory or remove it with the --remove flag to the same command you used to add it: sudo add-apt-repository --remove ppa:whatever/ppa

XMPP (Jabber messenger)

Standard Ubuntu messenger is called Empathy. If it is not available from the tray it may be launched with

  nohup empathy &

Preview image from command line

http://chrisjean.com/2009/02/17/easily-view-images-from-terminal-in-ubuntu/

eog image.png

eog stands for "Eye of gnome".

Lanching System settings from terminal

http://askubuntu.com/questions/116655/what-is-the-command-to-run-system-settings-from-a-terminal

  gnome-control-center 

Mapping CAPS to ESC

  Windows key > <Start typing 'settings'> > 
System settings > Keyboard layout > Opions > 
Cap Lock key behaviour > Make Cap Lock an additional ESC

Touchpad stopped working

http://askubuntu.com/questions/74964/touchpad-stopped-working-on-an-acer-aspireone-d255e

I have actually by accident disabled touchpad by funcitonal key combination Fn+F8 on my Lenovo ThinkPad SL510.

Move current window to another workspace

http://www.technotraits.com/2008/11/25-useful-ubuntu-shortcuts/

Alt+Ctrl+Shift+Left/Right Arrow – Move current window to another workspace

Make a script start when login

Go to "Dash home" start typing "Start", use "Startup applications" to set up a script to run.

Turn off alert sound

http://askubuntu.com/questions/95839/11-10-desktop-alerts-volume-change-and-terminal-bell-stopped-working-but-all-o

System settings > Sound > Alert volume > Mute

Open Terminal Here in Nautilus

Place file "Open Terminal Here" to .gnome2/nautilus-scripts/

#!/bin/bash
# From Chris Picton
# Replaces a Script by Martin Enlund
# Modified to work with spaces in path by Christophe Combelles

# This script either opens in the current directory,
# or in the selected directory

base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`"
if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
     dir="$base"
else
     while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
     dir="$base/$1"
fi

gnome-terminal --working-directory="$dir"

Google DNS

http://code.google.com/speed/public-dns/docs/using.html

Restart the connection after setting up custom DNS.

Problem with mail command

http://ubuntuforums.org/showthread.php?p=9415204

Set up user directory in /var/mail/$USER.

sudo touch /var/mail/$USER
sudo chown $USER:mail /var/mail/$USER
sudo chmod o-r /var/mail/$USER
sudo chmod g+rw /var/mail/$USER

Unrar a file

sudo apt-get install unrar
unrar filename.rar

Make a user sudoer

http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer

In System Settings > Users > ...

Set up HP 4500 series printer

https://help.ubuntu.com/community/HpAllInOne

sudo hp-setup
sudo apt-get install python-qt4

Erase CD-RW

sudo umount /dev/sr0 
wodim dev=/dev/sr0 blank=fast

via https://help.ubuntu.com/community/CdDvd/Burning#Burning_a_CD_on_the_Command_Line_with_wodim

Desktops grid

http://askubuntu.com/questions/70150/restoring-old-workspace-switcher

There is a bug with desktops to be on 2x2 grid. It may be solved with a Python script.

Shortcuts

Keyboard shortcuts may be associated with ccsm (CompizConfig Settings Manager).

ccsm > General > Commands > Key Binding (press combination)

My Chromium combination C.

http://askubuntu.com/questions/30918/broken-keyboard-shortcuts

File association

http://ubuntuforums.org/showthread.php?t=1860433

Just right click > Properties > Open with, pick emacs & click on the set as default.

Keyboard shortcuts

Alt+Tab launches switcher. Use Alt+arrows to navigate there. Arrows to sides - left/right, up/down - inside window groups.

Useful to configure Unity:

CompizConfig Settings Manager

  1. Install the CompizConfig Settings Manager (Click the link)
  2. Hit Alt+F2 and type about:config and hit enter.

via http://askubuntu.com/questions/29553/how-can-i-configure-unity

Last edited by Artem Dudarev, 2013-10-13 02:01:37. Edit