Unity desktop tuning: Difference between revisions

From WickyWiki
mNo edit summary
 
(29 intermediate revisions by 2 users not shown)
Line 3: Line 3:
[[Category:Ubuntu Unity]]
[[Category:Ubuntu Unity]]
[[Category:201109]]
[[Category:201109]]
<!-- ubuntu installation task set up after install -->


Sources:
Sources:
* http://www.webupd8.org/2011/04/things-to-tweak-fix-after-installing.html
* http://www.webupd8.org/2011/04/things-to-tweak-fix-after-installing.html
* http://www.uielinux.org/myunity/


These tweaks are for Ubuntu 11.04 unless stated otherwise. You might want to try them for newer versions.
== MyUnity desktop tuning tool ==
===Ubuntu 12.04===


== sudo no longer remembers credentials with scripts ==
Website:
* http://www.uielinux.org/myunity/


* http://ubuntuforums.org/showthread.php?p=10803623
Features:
* Configure launcher, dash, panel, desktop, font, themes


sudo no longer remembers credentials, tried to explicitly configure the timeout in /etc/sudoers (to prevent corruption use visudo!) Workaround: start a sh subscript with gksudo
<syntaxhighlight lang=bash>
sudo apt-get install myunity
</syntaxhighlight>


== Placement of the maximize, minimize and close buttons in GNOME ==
== Placement of the maximize, minimize and close buttons in GNOME ==
Maximize, minimize and close buttons have been moved to the left. Do this to place them on the right or get used to it.


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 39: Line 49:
== Remove the global app menu bar ==
== Remove the global app menu bar ==


=== Ubuntu 11.04 ===
=== Ubuntu 14.04 ===
 
Go to System settings (commandline):


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo mv /usr/lib/indicators/5/libappmenu.so /usr/lib/indicators/5/libappmenu.so.old
unity-control-center
</syntaxhighlight>
</syntaxhighlight>
Then to Apearance > Behavior > Show menu's for a window > In windows title bar


=== Ubuntu 12.04 ===
=== Ubuntu 12.04 ===
Line 52: Line 66:


Then restart the desktop.
Then restart the desktop.
=== Ubuntu 11.04 ===
<syntaxhighlight lang=bash>
sudo mv /usr/lib/indicators/5/libappmenu.so /usr/lib/indicators/5/libappmenu.so.old
</syntaxhighlight>


== ATI: disable "Sync to VBlank" ==
== ATI: disable "Sync to VBlank" ==
Line 73: Line 93:


== Activity Log Manager for history privacy settings ==
== Activity Log Manager for history privacy settings ==
=== Ubuntu 14.04, 12.04 ===
This version contains a Privacy settings tool.
Go to System settings (commandline):
<syntaxhighlight lang=bash>
unity-control-center
</syntaxhighlight>
Then to 'Security & Privacy' and turn stuff off


=== Ubuntu 11.04 ===
=== Ubuntu 11.04 ===
Line 84: Line 116:
activity-log-manager
activity-log-manager
</syntaxhighlight>
</syntaxhighlight>
=== Ubuntu 12.04 ===
This version contains a Privacy settings tool.


== Modify unity sidebar right-click menu ==
== Modify unity sidebar right-click menu ==
Line 173: Line 201:
For example you get 'truecrypt is already running' but you do not see the icon in the systray.
For example you get 'truecrypt is already running' but you do not see the icon in the systray.


=== TrueCrypt ===
=== [[TrueCrypt]] ===


You could also add '''[... ,'truecrypt']''' in stead of using '''['all']'''. Note: when the problem with TruCrypt persists you might need to remove the truecrype lockfile:
You could also add '''[... ,'truecrypt']''' in stead of using '''['all']'''. Note: when the problem with TruCrypt persists you might need to remove the truecrype lockfile:
Line 187: Line 215:
</syntaxhighlight>
</syntaxhighlight>


== Use standard scrollbars instead of the small overlay scrollbars ==
=== Ubuntu 12.10 and newer ===
 
You can right-click and choose 'Unlock from launcher'
 
== Use standard scrollbars instead of the overlay scrollbars ==
 
=== Ubuntu 14.04 ===
 
Turn off:
 
<syntaxhighlight lang=bash>
gsettings set com.canonical.desktop.interface scrollbar-mode normal
</syntaxhighlight>
 
Turn back on:
 
<syntaxhighlight lang=bash>
gsettings reset com.canonical.desktop.interface scrollbar-mode
</syntaxhighlight>
 
=== Ubuntu 12.04 ===


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 201: Line 249:
Right click a .deb file -> Properties -> Open With" ->  "GDebi Package Installer"
Right click a .deb file -> Properties -> Open With" ->  "GDebi Package Installer"


== Hide UbuntuOne ribbon in Nautilus ==
== Grub2 ==


Right click on a folder -> Ubuntu One > Hide Ribbon
See [[Grub2]]
 
== Grub startupmanager, configure bootmenu delay and bootmenu screen resolution ==
 
<syntaxhighlight lang=bash>
sudo apt-get install startupmanager
sudo startupmanager
</syntaxhighlight>


== Custom time and date format ==
== Custom time and date format ==
Line 220: Line 261:
Go to /com/canonical/indicators/datetime/
Go to /com/canonical/indicators/datetime/


Settings for format "23 Oct 21:46":
Settings for format "vr 15 aug, 22:17:12":
* custom-time-format '%d %b %H:%M'
* custom-time-format '%a %d %b, %H:%M:%S'
* show-date 'NO'
* show-date 'NO'
* time-format 'custom'
* time-format 'custom'
About date/time formatting:
* http://www.manpager.com/linux/man1/date.1.html


== Menu item properties with Ubuntu Natty ==
== Menu item properties with Ubuntu Natty ==


Now the menu is gone from Ubuntu it is a bit harder to get the properties of a menu-item. Just type 'menu' and run it, you will be able to customize the menu you don't have but you can also view the properties of menu-items.
Go to /usr/share/applications


== Unity search results ==
== Unity search results ==
Line 256: Line 300:
* audacity
* audacity


== Disable the unity keyboard shortcut overlay ==
== Disable suspend by default ==


=== Ubuntu 12.04 ===
Shutting down Ubuntu I managed each time to pick the suspend option, which I normally do not use. When I disable suspend the option will be removed from the menu.


* http://askubuntu.com/questions/103352/how-do-i-disable-the-unity-keyboard-shortcut-overlay
* http://askubuntu.com/questions/80278/how-can-i-remove-the-suspend-and-hibernate-options-from-the-power-menu


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
gconf-editor
sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
</syntaxhighlight>
</syntaxhighlight>


Uncheck the option /apps/compiz-1/plugins/unityshell/screen0/options/shortcut_overlay
Scroll to the bottom. Check to see if the following information exists, and if not add it:
 
<blockquote>
<pre>
[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
</pre>
</blockquote>
 
==Disable the Unity keyboard shortcut overlay==
 
[[Disable the Unity keyboard shortcut overlay]]
 
 
==Set root password==
 
After installation you can increase security somewhat by configuring a root password. By default you can boot Ubuntu into rescue-mode and 'drop to root prompt' without entering a password. Know that anyone would still be able to access the files, for example by mounting the drive from a different system. Better means of security are achieved by using encryption.
 
<syntaxhighlight lang=bash>
sudo passwd root
</syntaxhighlight>

Latest revision as of 17:22, 29 March 2016


Sources:

MyUnity desktop tuning tool

Ubuntu 12.04

Website:

Features:

  • Configure launcher, dash, panel, desktop, font, themes
sudo apt-get install myunity

Placement of the maximize, minimize and close buttons in GNOME

Maximize, minimize and close buttons have been moved to the left. Do this to place them on the right or get used to it.

gconf-editor

apps -> metacity -> general -> button_layout -> change to ":maximize,minimize,close"

Nautilus always show full path

Alternatively you can use CTRL+L in Nautilus to make the full path visible. Start gconf-editor:

gconf-editor

Then go to: apps -> nautilus -> preferences -> always_use_location_entry -> enable

Nautilus actions, right click execute script

Go to: Nautilus actions, right click execute script

Remove the global app menu bar

Ubuntu 14.04

Go to System settings (commandline):

unity-control-center

Then to Apearance > Behavior > Show menu's for a window > In windows title bar

Ubuntu 12.04

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt

Then restart the desktop.

Ubuntu 11.04

sudo mv /usr/lib/indicators/5/libappmenu.so /usr/lib/indicators/5/libappmenu.so.old

ATI: disable "Sync to VBlank"

sudo apt-get install compizconfig-settings-manager
ccsm

OpenGL -> disable "Sync to VBlank" option

Use dconf editor for additional unity settings

sudo apt-get install dconf-tools
dconf-editor

Activity Log Manager for history privacy settings

Ubuntu 14.04, 12.04

This version contains a Privacy settings tool.

Go to System settings (commandline):

unity-control-center

Then to 'Security & Privacy' and turn stuff off

Ubuntu 11.04

sudo add-apt-repository ppa:zeitgeist/ppa
sudo apt-get update
sudo apt-get upgrade
zeitgeist-daemon --replace
sudo apt-get install activity-log-manager
activity-log-manager

Modify unity sidebar right-click menu

sudo gedit /usr/share/applications/nautilus-home.desktop
[Desktop Entry]
Name=Home Folder
Comment=Open your personal folder
Exec=nautilus %U
Icon=folder
Terminal=false
StartupNotify=true
Type=Application
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Core;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.0.0
X-Ubuntu-Gettext-Domain=nautilus
Actions=Root;DoSomething

[Desktop Action Root]
Name=Root
Exec=gksudo nautilus /home/wilbert
OnlyShowIn=Unity;

[Desktop Action DoSomething]
Name=DoSomething
Exec=notify-send 'DoSomething' 'DoSomething'
OnlyShowIn=Unity;

NB: this setting is sometimes overwritten during updates

Unity sidebar: remove "Unity Place Applications"

Ubuntu 11.04

sudo gedit /usr/share/unity/places/applications.place

In section "[Entry:Files]" add "ShowEntry=false"

Unity sidebar: remove "Unity Place Files"

Ubuntu 11.04

sudo gedit /usr/share/unity/places/files.place

In section "[Entry:Files]" add "ShowEntry=false"

Reload unity

unity --replace

Add weather AppIndicator

Ubuntu 11.04

sudo apt-get install indicator-weather
sudo apt-get --purge autoremove indicator-weather

Note: has problems in Ubuntu 12.04

Allow all applications in notification area

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

For example you get 'truecrypt is already running' but you do not see the icon in the systray.

TrueCrypt

You could also add [... ,'truecrypt'] in stead of using ['all']. Note: when the problem with TruCrypt persists you might need to remove the truecrype lockfile:

rm ~/.TrueCrypt-lock-$USER

Do not show devices on the Unity side bar

gsettings set com.canonical.Unity.Devices devices-option "Never"

Ubuntu 12.10 and newer

You can right-click and choose 'Unlock from launcher'

Use standard scrollbars instead of the overlay scrollbars

Ubuntu 14.04

Turn off:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

Turn back on:

gsettings reset com.canonical.desktop.interface scrollbar-mode

Ubuntu 12.04

sudo apt-get remove overlay-scrollbar liboverlay-scrollbar-0.1-0

Use debian installer when opening .deb files

sudo apt-get install gdebi gdebi-core

Right click a .deb file -> Properties -> Open With" -> "GDebi Package Installer"

Grub2

See Grub2

Custom time and date format

dconf-editor

Go to /com/canonical/indicators/datetime/

Settings for format "vr 15 aug, 22:17:12":

  • custom-time-format '%a %d %b, %H:%M:%S'
  • show-date 'NO'
  • time-format 'custom'

About date/time formatting:

Menu item properties with Ubuntu Natty

Go to /usr/share/applications

Unity search results

When using the Unity menu, the result is based on the name and the description of the shortcut. These can be found in the ".desktop" files (desktop configuration file). To edit a desktop configuration file: right click and choose "properties".

System desktop configuration files can be found in:

  • /usr/share/applications

Personal desktop configuration files can be found in:

  • ~/.local/share/applications

Geeqie Image Viewer

Good alternative to the default 'Eye of GNOME' image and photo viewer. It has a ton of options. You can traverse your images in order of date.

sudo apt-get install gqview

Other Useful Tools

  • avidemux
  • minidlna
  • wine
  • picasa
  • google earth
  • audacity

Disable suspend by default

Shutting down Ubuntu I managed each time to pick the suspend option, which I normally do not use. When I disable suspend the option will be removed from the menu.

sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Scroll to the bottom. Check to see if the following information exists, and if not add it:

[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
 
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no

Disable the Unity keyboard shortcut overlay

Disable the Unity keyboard shortcut overlay


Set root password

After installation you can increase security somewhat by configuring a root password. By default you can boot Ubuntu into rescue-mode and 'drop to root prompt' without entering a password. Know that anyone would still be able to access the files, for example by mounting the drive from a different system. Better means of security are achieved by using encryption.

sudo passwd root