Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/proj/en/desktop/gnome/howtos: gnome-3.6-upgrade.xml
Date: Fri, 28 Dec 2012 05:58:11
Message-Id: 20121228055800.DBEC12171E@flycatcher.gentoo.org
1 tetromino 12/12/28 05:58:00
2
3 Added: gnome-3.6-upgrade.xml
4 Log:
5 Add gnome-3.6 upgrade guide.
6
7 Revision Changes Path
8 1.1 xml/htdocs/proj/en/desktop/gnome/howtos/gnome-3.6-upgrade.xml
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/desktop/gnome/howtos/gnome-3.6-upgrade.xml?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/desktop/gnome/howtos/gnome-3.6-upgrade.xml?rev=1.1&content-type=text/plain
12
13 Index: gnome-3.6-upgrade.xml
14 ===================================================================
15 <?xml version="1.0" encoding="UTF-8"?>
16 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
17 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/desktop/gnome/howtos/gnome-3.6-upgrade.xml,v 1.1 2012/12/28 05:58:00 tetromino Exp $ -->
18
19 <guide lang="en">
20 <title>GNOME 3.6 Upgrade Guide</title>
21
22 <author title="Author">
23 <mail link="tetromino"/>
24 </author>
25
26 <abstract>
27 This is a guide for upgrading from GNOME 2.32.x or 3.4.x to GNOME 3.6.x
28 </abstract>
29
30 <!-- The content of this document is licensed under the CC-BY-SA license -->
31 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
32 <license/>
33
34 <version>0.1</version>
35 <date>2012-12-28</date>
36
37 <chapter>
38 <title>Introduction</title>
39
40 <section>
41 <title>General changes</title>
42 <body>
43
44 <p>
45 Please see the <uri link="http://library.gnome.org/misc/release-notes/3.6/">GNOME
46 3.6 Release Notes</uri> for what is new in this major release of GNOME.
47 </p>
48
49 <p>Current users of GNOME 2 would also want to glance at the release notes for
50 <uri link="http://library.gnome.org/misc/release-notes/3.0/">3.0</uri>,
51 <uri link="http://library.gnome.org/misc/release-notes/3.0/">3.2</uri>, and
52 <uri link="http://library.gnome.org/misc/release-notes/3.0/">3.4</uri>.
53 Briefly: GNOME 3 includes two desktop modes&mdash;standard and fallback.
54 Fallback mode uses <c>gnome-base/gnome-panel</c> and <c>x11-wm/metacity</c>, and
55 is similar in appearance and behavior to GNOME 2. Standard mode uses
56 <c>gnome-base/gnome-shell</c> and <c>x11-wm/mutter</c>, and looks and behaves
57 <e>completely</e> differently from GNOME 2 releases. By default, the
58 choice of desktop mode is determined by the system's graphics hardware and
59 drivers (standard mode requires modern 3D graphics capabilities).
60 </p>
61
62 <p>There is a <uri link="https://live.gnome.org/GnomeShell/Tour">quick
63 tour</uri> of standard mode's GNOME Shell available on the GNOME website.
64 For an in-depth guide to using GNOME Shell, see
65 <uri link="https://live.gnome.org/GnomeShell/CheatSheet">the GNOME Shell
66 cheat sheet</uri>. GNOME Shell at first may feel alien and limited to an
67 experienced GNOME 2 user. We strongly encourage users to persist and make
68 themselves use it for a few days; those who take the time to get used to GNOME
69 Shell's behavior usually grow to love it and don't want to go back to a
70 GNOME 2-like desktop environment.
71 </p>
72 </body>
73 </section>
74 </chapter>
75
76 <chapter>
77 <title>Changes affecting current GNOME 3.4 or GNOME 2 users</title>
78
79 <section>
80 <title>Keyboard layouts and input methods</title>
81 <body>
82 <p>GNOME 3.6 does not use traditional <c>xorg.conf</c> keyboard layout settings.
83 Instead, keyboard layouts and input methods are configured via <c>ibus</c>
84 which is integrated into GNOME Shell.</p>
85
86 <p>To add a keyboard layout, open System Settings (or <path>gnome-control-center</path>
87 from the terminal) and go to <e>Region &amp; Language &rarr; Input Sources</e>.</p>
88
89 <p>Unfortunately, in GNOME 3.6 the System Settings GUI does not allow setting
90 the usual shortcuts (e.g. <c>Alt Shift</c>) for switching keyboard layouts.
91 Users who use multiple keyboard layouts and need to switch between them from
92 the keyboard will need to use <c>gnome-tweak-tool</c> and select their desired
93 shortcut from the <e>Typing &rarr; Modifiers-only input sources switcher shortcut</e>
94 menu. Alternatively, from a terminal:</p>
95
96 <pre caption="Use left Alt Shift to switch between keyboard layouts">
97 $ <i>gsettings set org.gnome.settings-daemon.peripherals.keyboard input-sources-switcher alt-shift-l</i>
98 </pre>
99 </body>
100 </section>
101
102 <section>
103 <title>Suspend menu item</title>
104 <body>
105 <p>
106 GNOME Shell 3.6 (unlike earlier GNOME 3 releases) always shows a <e>Power Off</e>
107 menu item by default in the upper-right corner menu. However (unlike earlier GNOME
108 releases) it now <uri
109 link="http://library.gnome.org/misc/release-notes/3.6/users-user-menu.html.en">no
110 longer shows a Suspend menu item</uri> by default. The <e>Suspend</e> menu item
111 becomes visible after clicking on the upper right corner menu and holding down
112 the <c>Alt</c> key. Laptops can also be suspended simply by shutting the lid.
113 </p>
114
115 <p>
116 If you need an easily discoverable GUI for suspending the machine, you can install
117 the alternative-status-menu extension. To do so, emerge
118 <c>gnome-extra/gnome-shell-extensions</c> and run</p>
119 <pre caption="Enabling the alternative-status-menu extension">
120 # <i>eselect gnome-shell-extensions enable 'alternative-status-menu@××××××××××××××××××××××××××××.org'</i>
121 </pre>
122 <p>
123 to enable the extension for all users by default, or use <c>gnome-tweak-tool</c>
124 (<e>Shell Extensions</e> tab) to enable it on a per-user basis.
125 </p>
126
127 </body>
128 </section>
129
130 <section>
131 <title>Evolution 3.6 plugins</title>
132 <body>
133 <p>Current versions of <c>evolution-exchange</c> and <c>evolution-groupwise</c>
134 are incompatible with Evolution 3.6, and you will need to uninstall them before
135 upgrading to GNOME 3.6. Users of <c>evolution-exchange</c> should try switching
136 to <c>evolution-ews</c>.</p>
137 </body>
138 </section>
139
140 </chapter>
141
142 <chapter>
143 <title>Changes affecting current GNOME 2 users</title>
144
145 <section>
146 <title>Languages and encodings</title>
147 <body>
148
149 <p>
150 GNOME 3 obtains user language settings from <c>sys-apps/accountsservice</c>.
151 The language can be set in GNOME from the <e>My Account</e> entry in the upper
152 right corner menu. Alternatively, you can directly edit AccountsService user
153 files. For example, to have user <c>jrandom</c> use British English, you can
154 (as root) edit <path>/var/lib/AccountsService/users/jrandom</path> so it reads
155 the following:
156 </p>
157 <pre caption="Simple example of an AccountsService user file">
158 [User]
159 Language=en_GB.utf8
160 </pre>
161 </body>
162 </section>
163
164 <section>
165 <title>Fonts</title>
166 <body>
167
168 <p>
169 GNOME 3 uses <c>media-fonts/cantarell</c> as its default font. Unfortunately,
170 Cantarell currently only includes a subset of Latin and Cyrillic characters.
171 Users of languages with alphabetic writing systems which are not yet covered by
172 Cantarell will probably want to switch to another font, such as
173 <c>media-fonts/dejavu</c>. This can be done using <c>gnome-tweak-tool</c>
174 (<e>Fonts</e> tab), or from the terminal:
175 </p>
176
177 <pre caption="Set DejaVu (size 10) as the default font">
178 $ <i>gsettings set org.gnome.desktop.interface font-name 'DejaVu Sans 10'</i>
179 $ <i>gsettings set org.gnome.desktop.interface document-font-name 'DejaVu Sans 10'</i>
180 $ <i>gconftool-2 -s -t string /apps/metacity/general/titlebar_font 'DejaVu Sans Bold 10'</i>
181 </pre>
182
183 </body>
184 </section>
185
186 <section>
187 <title>Applets</title>
188 <body>
189 <p>
190 GNOME 2 applets cannot be used in GNOME 3. Fallback mode allows applets,
191 although some have not yet been ported to the new, gtk3-based APIs. In
192 standard mode, there are no applets at all. Some traditional applet
193 functionality can be replicated using third-party GNOME Shell extensions.
194 </p>
195 <p>
196 In order to manage fallback gnome-panel settings (either add/remove or rearrange
197 applet positions) one has to hold down the <c>Alt</c> key when clicking
198 on the panel. This opens relevant menu for changing either panel or applet
199 settings.
200 </p>
201 </body>
202 </section>
203
204 <section>
205 <title>Suspend on laptop lid close</title>
206 <body>
207
208 <p>
209 GNOME 3 will, by default, suspend a laptop when the lid is closed. If you
210 do not like this behavior, you can change it via the <c>gnome-tweak-tool</c>
211 GUI (<e>Shell</e> tab), or using <c>gsettings</c> from the terminal:
212 </p>
213
214 <pre caption="Only turn off the screen when laptop lid is closed on AC power">
215 $ <i>gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action blank</i>
216 </pre>
217
218 <p>
219 One of the most common reasons for not wanting to suspend on laptop lid close
220 is to carry a laptop to another room without losing the network connection. To
221 do so, you can install <c>gnome-extra/office-runner</c>, which allows temporarily
222 inhibiting GNOME's suspend-on-lid-close behavior for up to 10 minutes.
223 </p>
224
225 </body>
226 </section>
227
228 <section>
229 <title>Icons on the desktop</title>
230 <body>
231
232 <p>
233 In GNOME 3, Nautilus by default no longer manages the desktop, and the
234 <path>~/Desktop</path> folder is simply treated as a normal folder with files.
235 </p>
236
237 <p>
238 If you want to have Nautilus manage the desktop like in GNOME 2, you can change
239 the corresponding setting in the <c>gnome-tweak-tool</c> GUI (<e>Desktop</e> tab),
240 or use the <c>gsettings</c> command from the terminal:
241 </p>
242 <pre caption="Making Nautilus manage the desktop">
243 $ <i>gsettings set org.gnome.desktop.background show-desktop-icons true</i>
244 </pre>
245
246 </body>
247 </section>
248
249 <section>
250 <title>Compiz</title>
251 <body>
252
253 <p>
254 GNOME 3 standard mode (i.e. GNOME Shell) is incompatible with Compiz.
255 </p>
256
257 </body>
258 </section>
259
260 <section>
261 <title>PulseAudio</title>
262 <body>
263
264 <p>
265 GNOME 3 requires <c>media-sound/pulseaudio</c> for audio support. Ensure that
266 you have the <c>pulseaudio</c> USE flag enabled globally (it will be enabled by
267 default if you use the <c>desktop/gnome</c> portage profile). For troubleshooting
268 PulseAudio problems, see
269 <uri link="http://www.pulseaudio.org/wiki/Documentation">documentation on pulseaudio.org</uri>.
270 </p>
271 </body>
272 </section>
273
274 <section>
275 <title>Touchpad and other input device customization</title>
276 <body>
277
278 <p>
279 In GNOME 3.6, if you have "disable touchpad while typing" selected, the touchpad
280 will be disabled for 1 second after a keyboard key is pressed. In GNOME 2,
281 this interval was 500 milliseconds. If you like to disable the touchpad
282 while typing, but prefer the shorter timeout interval like in GNOME 2, you can
283 emerge <c>gnome-base/gnome-settings-daemon</c> with the
284 <c>short-touchpad-timeout</c> USE flag enabled.
285 </p>
286
287 <p>
288 GNOME 3 allows setting a custom command for advanced customization of input
289 device settings. For example, suppose that you want to configure your touchpad
290 to enable two-finger scrolling (both vertical and horizontal) <e>and</e> edge
291 scrolling (vertical only). You could do
292 </p>
293
294 <pre caption="Setting a new GNOME input device hotplug script">
295 $ <i>cp /usr/share/gnome-settings-daemon-3.0/input-device-example.sh ~/input-device.sh</i>
296 $ <i>chmod +x ~/input-device.sh</i>
297 $ <i>gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command ~/input-device.sh</i>
298 </pre>
299
300 <p>
301 and edit <path>input-device.sh</path> so it ends as follows:
302 </p>
303
304 <pre caption="">
305 # If the device is a touchpad ...
306 if [[ -z "${device#*TouchPad*}" ]]; then
307 # ... enable two-finger scrolling (vertical and horizontal) ...
308 xinput set-prop "${device}" "Synaptics Two-Finger Scrolling" 1 1
309 # ... and edge scrolling (vertical only, no horizontal, no coasting) ...
310 xinput set-prop "${device}" "Synaptics Edge Scrolling" 1 0 0
311 fi
312 # All further processing will be disabled if $retval == 0
313 exit $retval
314 </pre>
315
316 <note>
317 If the custom hotplug command does not terminate with exit value 0,
318 <c>gnome-settings-daemon</c> will set its own settings on the input device,
319 likely clobbering the settings that the hotplug command had changed.
320 </note>
321
322 <p>
323 If, for whatever reason, you want to completely prevent GNOME 3 from
324 automatically modifying your mouse and touchpad settings (note that this will
325 <e>also</e> prevent custom input hotplug commands, such as
326 <path>input-device.sh</path> above, from modifying mice and touchpads!), you
327 can run the following:
328 </p>
329
330 <pre caption="Prevent GNOME from managing the mouse and touchpad">
331 $ <i>gsettings set org.gnome.settings-daemon.plugins.mouse active false</i>
332 </pre>
333
334 </body>
335 </section>
336
337 <section>
338 <title>General configurability and extensions</title>
339 <body>
340
341 <p>
342 GNOME 3 is designed to appear significantly less configurable than GNOME 2.
343 For example, by default there is no easily discoverable GUI for changing the
344 Gtk+ theme. Many configuration settings are hidden, but can still be changed
345 using the <c>gnome-extra/gnome-tweak-tool</c> GUI, or from gsettings (can be
346 explored using <c>dconf-editor</c>, part of <c>gnome-base/dconf</c>) or gconf
347 (can be explored using <c>gnome-extra/gconf-editor</c>).
348 Discussion of most of these settings is outside the scope of this guide.
349 </p>
350
351 <p>
352 GNOME Shell's behavior can be significantly altered using <uri
353 link="https://live.gnome.org/GnomeShell/Extensions">extensions</uri>. Gentoo
354 packages the extensions from the official GNOME repository as
355 <c>gnome-extra/gnome-shell-extensions</c>. GNOME Shell comes with a browser
356 plugin that allows users to install extensions from the
357 <uri>https://extensions.gnome.org/</uri> web interface; there are also numerous
358 developers publishing extensions on various third-party websites.
359 </p>
360
361 <p>
362 Gentoo uses <c>eselect gnome-shell-extensions</c> to manage system defaults that
363 control whether extensions that were installed systemwide (i.e. in
364 <path>/usr/share/gnome-shell/extensions</path>) should be enabled.
365 Newly-installed systemwide extensions start out disabled by default.
366 </p>
367 <pre caption="Enabling alternative status menu and dock extensions by default for all users">
368 # <i>eselect gnome-shell-extensions enable \</i>
369 <i>alternative-status-menu@××××××××××××××××××××××××××××.org dock@××××××××××××××××××××××××××××.org</i>
370 </pre>
371
372 <p>
373 Defaults managed by <c>eselect gnome-shell-extensions</c> can be overridden on a
374 per-user basis using the <uri link="https://extensions.gnome.org/">extensions.gnome.org</uri>
375 web interface, via <c>gnome-tweak-tool</c> (<e>Shell Extensions</e> tab), or
376 from the command line using <c>gsettings</c>. For example, to load the
377 alternative status menu and dock extensions, and disabling all other extensions,
378 a user can run
379 </p>
380 <pre caption="Enabling alternative status menu and dock extensions (and disabling all others!) for the current user">
381 $ <i>gsettings set org.gnome.shell enabled-extensions \</i>
382 <i>'["alternative-status-menu@××××××××××××××××××××××××××××.org", "dock@××××××××××××××××××××××××××××.org"]'</i>
383 </pre>
384
385 <impo>
386 Extension code quality is highly variable. Some extensions contain memory leaks
387 and others can render GNOME completely unusable. Gentoo cannot offer support for
388 problems caused by third-party extensions.
389 </impo>
390
391 </body>
392 </section>
393
394
395 </chapter>
396 </guide>