Difference between revisions of "Gnome"

From Bashlinux
Jump to: navigation, search
(Gnome)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
Most of the things here are done by through ''gconftool''.
+
Most of the things here are done by through <code>gconftool</code>
   
== How to remove the tool bars ==
+
=== 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 12: 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 19: 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>
 
   
 
=== How to remove desktop icons ===
 
== How to remove desktop icons ==
 
 
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>
 
   
 
=== How to se the number of 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>
 
   
 
=== How to disable the 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>
 
   
 
=== How to disable the command line for the end user ===
 
== 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>
 
   
 
=== How to change the click behaviour of the mouse ===
 
== 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>
 
   
 
=== How to enable 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 88: 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>
 
   
 
=== 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 <code>[CTL+T]</code> to open a terminal on current screen.
== 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.
 
 
<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 ==
+
=== How to keep aligned icons pragmatically on Nautilus ===
The icon position on Gnome is stored in `~/.nautilus/metafiles/file:/%2F%2F%2Fhome%2f<u></u><u></u>_%2FDesktop.xml` file. The items could be positioned in `x,y` position, and obsoletes could be removed safely.
+
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.

Revision as of 06:05, 12 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.