📜 ⬆️ ⬇️

Useful Unity Commands

Ubuntu 11.04 offers a great opportunity to learn new and interesting commands for hammering in screws.

Check the launch option (they ask you to do this at launchpad.net if the hardware is buggy):
/usr/lib/nux/unity_support_test -p

Something went wrong...


Remove unity settings from ccsm (CompizConfig Settings Manage):
unity --reset
This command helped when I turned on the KDE / Qt event loop, getting the compiz reloading every two seconds. Quite a loop.

Set the initial icons on the left panel:
unity --reset-icons

Delete all unity settings ( only through the terminal , conveniently via xterm, it is the recovery console in gdm):
gconftool-2 --recursive-unset /apps/compiz-1
unity --reset


My favorite PulseAudio Device Chooser in tray


Since there are no other ways to get into the menu of this wonderful utility, I need to run:
gsettings get com.canonical.Unity.Panel systray-whitelist
['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray']


And add 'padevchooser' (actual) and 'deluge-gtk' (irrelevant) :
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray ', 'padevchooser', 'deluge-gtk' ]"

Default Session in gdm

For lovers, make your own shortcuts in / usr / share / xsessions /.
Background: A long time to set up a login session by default was enough to replace gnome.desktop with your own in / usr / share / xsessions /. Since gnome.desktop cannot simply be renamed unity.desktop (it is special), we had to find a solution.
')
Add a line to /etc/gdm/custom.conf:
SessionDesktopDir=/usr/share/xsessions/
Run (for xbmc):
sudo /usr/lib/gdm/gdm-set-default-session -d xbmc

There is an assumption that this mechanism will change again, because it has changed more than once .

Source: https://habr.com/ru/post/118614/


All Articles