Gnome

From Bashlinux
Revision as of 17:15, 26 November 2009 by Manpaz (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Gconf Tool

Remove 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
 


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
 


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
 


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
 


Command Line

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
 


Pointer

To start applications with a single click.

 # Single click
 gconftool-2 --type string -s /apps/nautilus/preferences/click_policy "single"
 


Remote Desktop using 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=="
 


Key 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"