Viber on Ubuntu 18.04

dpkg-deb -x viber.deb viber
dpkg-deb --control viber.deb viber/DEBIAN
# Edit viber/DEBIAN/control and repace "libcurl3" with "libcurl4"
dpkg -b viber vibernew.deb
sudo dpkg -i vibernew.deb

Disable ctrl+shift+alt up/down

gsettings get org.gnome.desktop.wm.keybindings move-to-workspace-down
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-down "['<Super><Shift>Page_Down']"
gsettings get org.gnome.desktop.wm.keybindings move-to-workspace-up
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-up "['<Super><Shift>Page_Up']"

Install Postman

Use Ubuntu Software

Disable switch to workspace left and right

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"

How to enter ñ, é, ¿

  • compose + ' + e - é
  • compose + ~ + n - ñ
  • compose + ? + ? - ¿

About enabling compose key:

Fans are working non-stop on Thinkpad

Fn-4 Fn

Show desktop shortcut


Switch between different users with shortcut

Ctrl+Alt+F7 and to switch back is Ctrl+Alt+F8

You can open the settings for shortcuts: System -> Preferences -> Keyboard Shortcuts and add a custom shortcut to start the gdmflexiserver. After that you can switch with the shortcuts strg+alt+F7 and strg+alt+F8

Switching between different windows of the same application

unity - How to ungroup windows on task switcher?

You can also press alt+` (the key above tab) to switch between instances of the current application.

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.

Inserting to 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:






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

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

eog image.png

eog stands for "Eye of gnome".

Lanching System settings from terminal


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

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

Move current window to another workspace

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

System settings > Sound > Alert volume > Mute

Open Terminal Here in Nautilus

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

# 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'`"
     while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done

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

Google DNS

Restart the connection after setting up custom DNS.

Problem with mail command

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

In System Settings > Users > ...

Set up HP 4500 series printer

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

Erase CD-RW

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


Desktops grid

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


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

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

My Chromium combination C.

File association

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.