Difference between revisions of "Gnome"
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
+ | Most of the things here are done by through <code>gconftool</code> |
||
− | == Gconf Tool == |
||
+ | |||
− | + | === How to remove the tool bars === |
|
To remove the tool bars, or panels as gnome refers them, we need to hide them from desktop, reduce the size to "0", and keep hidden for a long time. |
To remove the tool bars, or panels as gnome refers them, we need to hide them from desktop, reduce the size to "0", and keep hidden for a long time. |
||
⚫ | |||
− | <pre><nowiki> |
||
# Top panel |
# Top panel |
||
gconftool-2 --type boolean -s /apps/panel/toplevels/top_panel/auto_hide true |
gconftool-2 --type boolean -s /apps/panel/toplevels/top_panel/auto_hide true |
||
Line 11: | Line 10: | ||
gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/hide_delay 0 |
gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/hide_delay 0 |
||
gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/unhide_delay 1000000000 |
gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/unhide_delay 1000000000 |
||
⚫ | |||
− | |||
#Bottom panel |
#Bottom panel |
||
gconftool-2 --type boolean -s /apps/panel/toplevels/bottom_panel/auto_hide true |
gconftool-2 --type boolean -s /apps/panel/toplevels/bottom_panel/auto_hide true |
||
Line 18: | Line 17: | ||
gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/hide_delay 0 |
gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/hide_delay 0 |
||
gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/unhide_delay 1000000000 |
gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/unhide_delay 1000000000 |
||
− | </nowiki></pre> |
||
− | |||
− | |||
⚫ | |||
⚫ | |||
To remove the icons one by one, choose the desired icons set to false |
To remove the icons one by one, choose the desired icons set to false |
||
− | |||
− | <pre><nowiki> |
||
# Icons |
# Icons |
||
gconftool-2 --type boolean -s /apps/nautilus/desktop/computer_icon_visible false |
gconftool-2 --type boolean -s /apps/nautilus/desktop/computer_icon_visible false |
||
gconftool-2 --type boolean -s /apps/nautilus/desktop/home_icon_visible false |
gconftool-2 --type boolean -s /apps/nautilus/desktop/home_icon_visible false |
||
gconftool-2 --type boolean -s /apps/nautilus/desktop/trash_icon_visible false |
gconftool-2 --type boolean -s /apps/nautilus/desktop/trash_icon_visible false |
||
− | </nowiki></pre> |
||
There is a single option to hide, not remove, all the icons, but you should note that all the icons will disappear from desktop, even the icons created by the user. To do this run the following command. |
There is a single option to hide, not remove, all the icons, but you should note that all the icons will disappear from desktop, even the icons created by the user. To do this run the following command. |
||
− | |||
− | <pre><nowiki> |
||
gconftool-2 --type boolean -s /apps/nautilus/preferences/show_desktop false |
gconftool-2 --type boolean -s /apps/nautilus/preferences/show_desktop false |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | ==== Workspaces ==== |
||
+ | === How to se the number of workspaces === |
||
To limit the number of workspaces available, change the ending number for the desired |
To limit the number of workspaces available, change the ending number for the desired |
||
− | |||
− | <pre><nowiki> |
||
# Workspace |
# Workspace |
||
gconftool-2 --type integer -s /apps/metacity/general/num_workspaces 1 |
gconftool-2 --type integer -s /apps/metacity/general/num_workspaces 1 |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | ==== Screen saver ==== |
||
+ | === How to disable the screen saver === |
||
The following commands avoid the startup of the screen saver and do not allow to lock the screen. |
The following commands avoid the startup of the screen saver and do not allow to lock the screen. |
||
− | |||
− | <pre><nowiki> |
||
# Avoid Lock screen |
# Avoid Lock screen |
||
gconftool-2 --type boolean -s /apps/panel/global/disable_lock_screen true |
gconftool-2 --type boolean -s /apps/panel/global/disable_lock_screen true |
||
gconftool-2 --type boolean -s /apps/gnome-screensaver/lock_enabled false |
gconftool-2 --type boolean -s /apps/gnome-screensaver/lock_enabled false |
||
gconftool-2 --type boolean -s /apps/gnome-screensaver/idle_activation_enabled false |
gconftool-2 --type boolean -s /apps/gnome-screensaver/idle_activation_enabled false |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | ==== Command Line ==== |
||
+ | === How to disable the command line for the end user === |
||
To avoid the user send commands to a terminal. |
To avoid the user send commands to a terminal. |
||
− | |||
− | <pre><nowiki> |
||
# Avoid use of command line |
# Avoid use of command line |
||
gconftool-2 --type boolean -s /desktop/gnome/lockdown/disable_command_line false |
gconftool-2 --type boolean -s /desktop/gnome/lockdown/disable_command_line false |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | ==== Pointer ==== |
||
+ | === How to change the click behaviour of the mouse === |
||
To start applications with a single click. |
To start applications with a single click. |
||
− | |||
− | <pre><nowiki> |
||
# Single click |
# Single click |
||
gconftool-2 --type string -s /apps/nautilus/preferences/click_policy "single" |
gconftool-2 --type string -s /apps/nautilus/preferences/click_policy "single" |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | ==== Remote Desktop using VNC ==== |
||
+ | === How to enable VNC === |
||
Remote desktop of the current session is possible using vino, the following commands will allow a remote user to connect using password. |
Remote desktop of the current session is possible using vino, the following commands will allow a remote user to connect using password. |
||
− | |||
− | <pre><nowiki> |
||
# Enable remote desktop with vino |
# Enable remote desktop with vino |
||
gconftool-2 --set /desktop/gnome/remote_access/authentication_methods --type list --list-type string "[vnc]" |
gconftool-2 --set /desktop/gnome/remote_access/authentication_methods --type list --list-type string "[vnc]" |
||
Line 93: | Line 59: | ||
gconftool-2 --type boolean -s /desktop/gnome/remote_access/view_only false |
gconftool-2 --type boolean -s /desktop/gnome/remote_access/view_only false |
||
gconftool-2 --type string -s /desktop/gnome/remote_access/vnc_password "djBsNG50Mw==" |
gconftool-2 --type string -s /desktop/gnome/remote_access/vnc_password "djBsNG50Mw==" |
||
− | </nowiki></pre> |
||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | <pre><nowiki> |
||
gconftool-2 --type string -s /apps/metacity/global_keybindings/run_command_1 "<Control>t" |
gconftool-2 --type string -s /apps/metacity/global_keybindings/run_command_1 "<Control>t" |
||
gconftool-2 --type string -s /apps/metacity/keybinding_commands/command_1 "/usr/bin/gnome-terminal" |
gconftool-2 --type string -s /apps/metacity/keybinding_commands/command_1 "/usr/bin/gnome-terminal" |
||
+ | |||
− | </nowiki></pre> |
||
+ | === How to keep aligned icons pragmatically on Nautilus === |
||
+ | The icon position on Gnome is stored in <tt>~/.nautilus/metafiles/file:/%2F%2F%2Fhome%2f<u></u><u></u>_%2FDesktop.xml</tt> file. The items could be positioned in <code>x,y</code> position, and obsoletes could be removed safely. |
||
+ | |||
+ | === How to run an application with no terminal and sudo privileges === |
||
+ | In order to run a command that requires super user privileges we just prepend <code>sudo</code> to the command and it will run the command as super user in behalf the user that invokes it. |
||
+ | |||
+ | From the CLi or a shell script it will run fine, but when this is called from a desktop entry in Gnome or from an application that is not running from the command line, then <code>sudo</code> just won't works. |
||
+ | |||
+ | We will start to see errors in the applications, weird behavior or the application just won't run. To confirm that the application is running fine when invoking the desired command check the log file <tt>/var/log/secure</tt>. |
||
+ | |||
+ | By default <code>sudo</code> doesn't run from this kind of invokation, so to make <code>sudo</code> runs from an application with no terminal do edit <tt>/etc/sudoers</tt> an comment out the line |
||
+ | # Default requiretty |
Latest revision as of 23:48, 18 June 2015
Most of the things here are done by through gconftool
How to remove the tool bars
To remove the tool bars, or panels as gnome refers them, we need to hide them from desktop, reduce the size to "0", and keep hidden for a long time.
# Top panel gconftool-2 --type boolean -s /apps/panel/toplevels/top_panel/auto_hide true gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/auto_hide_size 0 gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/size 0 gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/hide_delay 0 gconftool-2 --type integer -s /apps/panel/toplevels/top_panel/unhide_delay 1000000000 #Bottom panel gconftool-2 --type boolean -s /apps/panel/toplevels/bottom_panel/auto_hide true gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/auto_hide_size 0 gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/size 0 gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/hide_delay 0 gconftool-2 --type integer -s /apps/panel/toplevels/bottom_panel/unhide_delay 1000000000
How to remove desktop icons
To remove the icons one by one, choose the desired icons set to false
# Icons gconftool-2 --type boolean -s /apps/nautilus/desktop/computer_icon_visible false gconftool-2 --type boolean -s /apps/nautilus/desktop/home_icon_visible false gconftool-2 --type boolean -s /apps/nautilus/desktop/trash_icon_visible false
There is a single option to hide, not remove, all the icons, but you should note that all the icons will disappear from desktop, even the icons created by the user. To do this run the following command.
gconftool-2 --type boolean -s /apps/nautilus/preferences/show_desktop false
How to se the number of workspaces
To limit the number of workspaces available, change the ending number for the desired
# Workspace gconftool-2 --type integer -s /apps/metacity/general/num_workspaces 1
How to disable the screen saver
The following commands avoid the startup of the screen saver and do not allow to lock the screen.
# Avoid Lock screen gconftool-2 --type boolean -s /apps/panel/global/disable_lock_screen true gconftool-2 --type boolean -s /apps/gnome-screensaver/lock_enabled false gconftool-2 --type boolean -s /apps/gnome-screensaver/idle_activation_enabled false
How to disable the command line for the end user
To avoid the user send commands to a terminal.
# Avoid use of command line gconftool-2 --type boolean -s /desktop/gnome/lockdown/disable_command_line false
How to change the click behaviour of the mouse
To start applications with a single click.
# Single click gconftool-2 --type string -s /apps/nautilus/preferences/click_policy "single"
How to enable VNC
Remote desktop of the current session is possible using vino, the following commands will allow a remote user to connect using password.
# Enable remote desktop with vino gconftool-2 --set /desktop/gnome/remote_access/authentication_methods --type list --list-type string "[vnc]" gconftool-2 --type boolean -s /desktop/gnome/remote_access/enabled true gconftool-2 --type boolean -s /desktop/gnome/remote_access/require_encryption false gconftool-2 --type boolean -s /desktop/gnome/remote_access/prompt_enabled false gconftool-2 --type boolean -s /desktop/gnome/remote_access/view_only false gconftool-2 --type string -s /desktop/gnome/remote_access/vnc_password "djBsNG50Mw=="
How to setup keys binding
To start applications with a key combination, we need to setup a key binding on gnome. the following commands will setup [CTL+T]
to open a terminal on current screen.
gconftool-2 --type string -s /apps/metacity/global_keybindings/run_command_1 "<Control>t" gconftool-2 --type string -s /apps/metacity/keybinding_commands/command_1 "/usr/bin/gnome-terminal"
How to keep aligned icons pragmatically on Nautilus
The icon position on Gnome is stored in ~/.nautilus/metafiles/file:/%2F%2F%2Fhome%2f_%2FDesktop.xml file. The items could be positioned in x,y
position, and obsoletes could be removed safely.
How to run an application with no terminal and sudo privileges
In order to run a command that requires super user privileges we just prepend sudo
to the command and it will run the command as super user in behalf the user that invokes it.
From the CLi or a shell script it will run fine, but when this is called from a desktop entry in Gnome or from an application that is not running from the command line, then sudo
just won't works.
We will start to see errors in the applications, weird behavior or the application just won't run. To confirm that the application is running fine when invoking the desired command check the log file /var/log/secure.
By default sudo
doesn't run from this kind of invokation, so to make sudo
runs from an application with no terminal do edit /etc/sudoers an comment out the line
# Default requiretty