Академический Документы
Профессиональный Документы
Культура Документы
Petr Kov
Jana vrov
Legal Notice
Co pyright 20 15 Red Hat, Inc.
This do cument is licensed by Red Hat under the Creative Co mmo ns Attributio n-ShareAlike 3.0
Unpo rted License. If yo u distribute this do cument, o r a mo dified versio n o f it, yo u must pro vide
attributio n to Red Hat, Inc. and pro vide a link to the o riginal. If the do cument is mo dified, all Red
Hat trademarks must be remo ved.
Red Hat, as the licenso r o f this do cument, waives the right to enfo rce, and agrees no t to assert,
Sectio n 4 d o f CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shado wman lo go , JBo ss, MetaMatrix, Fedo ra, the Infinity
Lo go , and RHCE are trademarks o f Red Hat, Inc., registered in the United States and o ther
co untries.
Linux is the registered trademark o f Linus To rvalds in the United States and o ther co untries.
Java is a registered trademark o f Oracle and/o r its affiliates.
XFS is a trademark o f Silico n Graphics Internatio nal Co rp. o r its subsidiaries in the United
States and/o r o ther co untries.
MySQL is a registered trademark o f MySQL AB in the United States, the Euro pean Unio n and
o ther co untries.
No de.js is an o fficial trademark o f Jo yent. Red Hat So ftware Co llectio ns is no t fo rmally
related to o r endo rsed by the o fficial Jo yent No de.js o pen so urce o r co mmercial pro ject.
The OpenStack Wo rd Mark and OpenStack Lo go are either registered trademarks/service
marks o r trademarks/service marks o f the OpenStack Fo undatio n, in the United States and o ther
co untries and are used with the OpenStack Fo undatio n's permissio n. We are no t affiliated with,
endo rsed o r spo nso red by the OpenStack Fo undatio n, o r the OpenStack co mmunity.
All o ther trademarks are the pro perty o f their respective o wners.
Abstract
The Deskto p Migratio n and Administratio n Guide do cuments the GNOME 3 Deskto p migratio n
planning, deplo yment, co nfiguratio n, and administratio n o n Red Hat Enterprise Linux 7. It is
o riented to wards system administrato rs with a basic understanding o f the Red Hat Enterprise
Linux system.
T able of Contents
. .hapt
C
. . . .er
. .1. .. Int
. . .roducing
. . . . . . . . t.he
. . .G. NO
. . .ME
. . . 3. .Deskt
. . . . .op
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . . . . . . . . .
1.1. What Is G NO ME 3?
3
1.2. What Is G NO ME Shell?
4
1.3. What is G NO ME Clas s ic ?
5
1.4. G etting Mo re Info rmatio n
7
. .art
P
. . .I.. Migrat
. . . . . .ion
. . . Planning
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. . . . . . . . . .
. .hapt
C
. . . .er
. .2. .. logind
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9. . . . . . . . . .
2 .1. G etting Mo re Info rmatio n
10
. .hapt
C
. . . .er
. .3.
. .G. Set
. . . t. ings
. . . . .and
. . . dconf
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 1. . . . . . . . . .
3 .1. G etting Mo re Info rmatio n
11
. .hapt
C
. . . .er
. .4. .. PolicyKit
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 2. . . . . . . . . .
4 .1. Po lic y Co nfig uratio n
12
4 .2. Default Po lic y
4 .3. Chec king Permis s io ns fro m Sc rip ts
12
13
13
. .hapt
C
. . . .er
. .5.
. .G. DM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 4. . . . . . . . . .
5 .1. G etting Mo re Info rmatio n
14
. .hapt
C
. . . .er
. .6. .. G
. .NO
. . ME
. . . .Shell
. . . . Ext
. . . ensions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. 5. . . . . . . . . .
6 .1. Rep lac ement fo r the Clo c k Ap p let
15
. .hapt
C
. . . .er
. .7. .. gnome. . . . . . .session
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 6. . . . . . . . . .
7 .1. G etting Mo re Info rmatio n
16
. .hapt
C
. . . .er
. .8. .. Int
. . .ernat
. . . . ionaliz
. . . . . . at
. .ion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 7. . . . . . . . . .
8 .1. Inp ut Metho d s
17
8 .2. Chang ed File Lo c atio ns
17
. .art
P
. . .II.. .Configurat
. . . . . . . . . ion
. . . and
. . . . Administ
. . . . . . . . rat
. . .ion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 8. . . . . . . . . .
. .hapt
C
. . . .er
. .9. .. Configuring
. . . . . . . . . . . Deskt
. . . . . op
. . .wit
. . .h. G
. .Set
. . .t .ings
. . . .and
. . . .dconf
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1. 9. . . . . . . . . .
9 .1. Termino lo g y Exp lained : G Setting s , g s etting s , and d c o nf
19
9 .2.
9 .3.
9 .4.
9 .5.
19
19
20
21
23
24
. .hapt
C
. . . .er
. .1. 0. .. Default
. . . . . . . Appearance
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. 5. . . . . . . . . .
10 .1. Brand ing Anac o nd a
25
10 .2. Bo o t Lo ad er Sc reen
28
10 .3. Plymo uth
10 .4. Cus to miz ing the Lo g in Sc reen
10 .5. Cus to miz ing Des kto p Bac kg ro und s
10 .6 . Co nfig uring Fo nts
30
32
35
38
. .hapt
C
. . . .er
. .1. 1. .. G
. .NO
. . .ME
. . .Shell
. . . . .Ext
. . .ensions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. 4. . . . . . . . . .
11.1. What Are G NO ME Shell Extens io ns ?
11.2. Enab ling Mac hine-wid e Extens io ns
11.3. Lo c king Do wn Enab led Extens io ns
44
45
46
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
11.3. Lo c king Do wn Enab led Extens io ns
11.4. Setting Up Mand ato ry Extens io ns
46
46
. .hapt
C
. . . .er
. .1. 2. .. Int
. . .egrat
. . . . ing
. . . .Applicat
. . . . . . . ions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. 8. . . . . . . . . .
12.1. Cus to miz ing Menus
48
12.2. Cus to miz ing Default Favo rite Ap p lic atio ns
12.3. Co nfig uring File As s o c iatio ns
52
53
. .hapt
C
. . . .er
. .1. 3.
. . Cust
. . . . omiz
. . . . ing
. . . .G. NO
. . . ME
. . . Deskt
. . . . . op
. . . Feat
. . . .ures
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. 0. . . . . . . . . .
13.1. Allo wing and Dis allo wing O nline Ac c o unts
60
13.2. Enab ling the Ctrl+ Alt+ Bac ks p ac e Sho rtc ut
61
13.3. Enab ling the Co mp o s e Key
13.4. Dis ab ling Co mmand Line Ac c es s
13.5. Lo c king Do wn Printing
13.6 . Lo c king File Saving o n Dis k
62
63
64
64
65
. .hapt
C
. . . .er
. .1. 4. .. Session
. . . . . . . .Management
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. 7. . . . . . . . . .
14.1. What Is G DM?
67
14.2. Authentic atio n
14.3. Us er Ses s io ns
67
69
. .hapt
C
. . . .er
. .1. 5.
. . Virt
. . . ual
. . . File
. . . .Syst
. . . .ems
. . . .and
. . . .Disk
. . . .Management
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. 7. . . . . . . . . .
15.1. G VFS
15.2. Bac k End s fo r G VFS
77
77
78
79
80
15.6 . Exp o s ing G NO ME Virtual File Sys tems to All O ther Ap p lic atio ns
15.7. Pas s wo rd Manag ement o f G VFS Mo unts
80
81
81
83
83
. .hapt
C
. . . .er
. .1. 6. .. Hardware
. . . . . . . . .Configurat
. . . . . . . . . ion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. 6. . . . . . . . . .
16 .1. Tab lets
86
. . . . . . . . . .Red
Accessing
. . . .Hat
. . . .Document
. . . . . . . . .at
. .ion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. 8. . . . . . . . . .
. . . . . . . . .Hist
Revision
. . . ory
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. 9. . . . . . . . . .
B .1. Ac kno wled g ements
89
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
more information, read the section Section 1.3, What is GNOME Classic? .
G Set t in g s
G Set t in g s is a configuration storage system, replacing G C o nf found in older GNOME
versions. For more information about the transition from G C o nf to G Set t in g s, see
Chapter 3, GSettings and dconf. To learn more about configuring your desktop with
G Set t in g s, read Chapter 9, Configuring Desktop with GSettings and dconf.
G VFS
G VFS provides complete virtual file system infrastructure and handles storage in the
GNOME D esktop in general. Through G VFS, GNOME 3 integrates well with online
document-storage services, calendars, and contact lists, so all your data can be accessed
from the same place. Read more about G VFS in Chapter 15, Virtual File Systems and Disk
Management.
G TK+
G T K+ , a multi-platform toolkit for creating graphical user interfaces, provides a highlyusable feature-rich API. Thanks to G T K+ , GNOME 3 is able to change the look of an
application or provide smooth appearance of graphics. In addition, G T K+ contains a
number of features such as object-oriented programming support (GObject), wide support
of international character sets and text layouts (Pango), or a set of accessibility interfaces
(ATK).
The messag e tray is a horizontal bar near the bottom of the screen, and shows when the
user presses Super+M. It provides access to pending notifications.
C o mp o n en t s sp ecif ic t o G N O ME C lassic.
GNOME Classic is the default GNOME Shell mode in Red Hat Enterprise Linux 7. It changes
some of the aspects of GNOME Shell behavior as well as the GNOME Shell appearance.
That includes the bottom bar with the window list, and the Ap p licat io n s and Places
menus on the top bar. For detailed information on GNOME Classic, see Section 1.3, What
is GNOME Classic? .
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
required to run a GNOME Classic session. Because the GNOME Classic extensions are enabled by
default on Red Hat Enterprise Linux 7, GNOME Classic is the default Red Hat Enterprise Linux 7
desktop user interface.
AlternateTab (al ternate-tab@ g no me-shel l -extensi o ns. g campax. g i thub. co m),
Applications Menu (apps-menu@ g no me-shel l -extensi o ns. g campax. g i thub. co m),
Launch new instance (l aunch-new-i nstance@ g no me-shel l extensi o ns. g campax. g i thub. co m),
Places Status Indicator (pl aces-menu@ g no me-shel l extensi o ns. g campax. g i thub. co m),
Window List (wi nd o w-l i st@ g no me-shel l -extensi o ns. g campax. g i thub. co m).
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Chapt er 2 . logind
Chapter 2. logind
l o g i nd (or more specifically systemd -l o g i nd ) is a system service that manages user logins.
This service is responsible for the following:
keeping track of users and sessions, their processes and their idle states,
creating control groups for user processes,
providing PolicyKit-based access for users to operations such as system shutdown or sleep,
implementing a shutdown/sleep inhibition logic for applications,
handling of power/sleep hardware keys,
multi-seat management, session switch management, and device access management for users,
automatic spawning of text logins (gettys) on virtual terminal (console) activation and user
runtime directory management.
The l o g i nd service is deeply integrated with systemd , the new initialization system in Red Hat
Enterprise Linux 7, and replaces the upstart initialization system from Red Hat Enterprise Linux 6.
With this change comes a number of new features and functions. The following is a summary of those
most significant:
C o n so leK it
The C o nso l eKi t framework is deprecated in Red Hat Enterprise Linux 7. Equivalent
functionality is now provided by systemd . Both C o nso l eKi t and l o g i nd are services
for tracking the currently running user sessions.
Note
C o nso l eKi t had the ability to run arbitrary shell scripts any time the active session
on the system changed (using virtual terminal switching). This functionality is no
longer provided.
t h e /var/lo g /C o n so leK it /h ist o ry f ile
Previously, C o nso l eKi t was sending log files to /var/l o g /C o nso l eKi t/hi sto ry,
which the present l o g i nd does not support. The file has been replaced by the traditional
wtmp and utmp files which now keep track of all logins and logouts on the system.
/var/l o g /C o nso l eKi t/hi sto ry provided basically the same information as the wtmp
file, though in a different format. Given the overlap in functionality, l o g i nd only adopted
the wtmp file's role.
seat .d scrip t s
Since C o nso l eKi t is no longer in use, seat. d scripts no longer complement the
C o nso l eKi t framework, and have been replaced by systemd -l o g i nd .
t h e ck- list - sessio n s co mman d
C o nso l eKi t provided the ck-l i st-sessi o ns command, which returned extended
information about recent users, not only regular users but also GUI access with G D M. The
comparable result can now be reached by running the l o g i nctl command:
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
$ l o g i nctl l i st-sessi o ns
mu lt i- seat su p p o rt
l o g i nd along with G D M provide the multi-seat feature with which the user can attach
another monitor, mouse, or keyboard to their machine. D oing so, an additional login
screen appears and the user can log in as if they were using another machine.
To list seats that are available on the system, run the following command:
$ l o g i nctl l i st-seats
To show the status of a specific seat on the system, run the following command:
$ l o g i nctl seat-status seat
where seat is the name of the seat, for example seat0 .
To assign specific hardware to a particular seat, run the following command:
# l o g i nctl attach seat device
where seat is the name of the seat, for example seat1, and device is the device name
specified with the /sys device path, for example
/sys/d evi ces/pci 0 0 0 0 : 0 0 /0 0 0 0 : 0 0 : 0 2. 0 /d rm/card 0 .
To change the assignment, assign the hardware to a different seat, or use the l o g i nctl
fl ush-d evi ces command.
10
11
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Chapter 4. PolicyKit
The P o l i cyKi t utility is a framework, which provides an authorization API used by privileged
programs (mechanisms) offering services to unprivileged programs (subjects). The following are
details on the changes P o l i cyKi t, or its system name po l ki t, has undergone.
p olkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system"
&&
subject.isInGroup("storage")) {
return polkit.Result.YES;
}
} );
Fo r mo re in f o rmat io n , see:
po l ki t(8) The man page for the description of the JavaScript rules and the precedence rules.
pkl a-ad mi n-i d enti ti es(8) and pkl a-check-autho ri zati o n(8) The man pages for
documentation of the . co nf and . pkl a file formats, respectively.
Chapt er 4 . PolicyKit
The default configuration now allows members of the wheel group to authenticate for administrative
actions using their own password instead of asking for the root password. The default policy is
defined in /etc/po l ki t-1/rul es. d /50 -d efaul t. rul es.
In the users panel of GNOME Settings, you can configure an account to to an Ad mi ni strato r.
When you first create the user during the G N O ME In it ial Set u p , by default, you will create an
Ad mi ni strato r account (a member of the wheel group).
Note
While sud o users are allowed to run programs with the security privileges of another user,
Ad mi ni strato r is a member of the wheel group providing additional special system
privileges that empower a user to execute restricted commands.
Important
All scripts that invoke pkcheck need to use the new format to avoid a race condition.
13
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Chapter 5. GDM
G D M is the G NO ME D i spl ay Manag er, which provides a graphical login environment. After the
transition from GNOME 2 to GNOME 3, configuring G D M is only possible through systemd as it no
longer supports other init systems.
t h e g d m p ackag e
The gdm package has replaced xorg-x11-xdm, which provided a legacy display login
manager for the X Window System. As mentioned before, the gdm package provides the
graphical login screen, shown shortly after boot up, log out, and when user-switching.
G D M an d lo g in d
G D M now uses l o g i nd for defining and tracking users. For more information, see
Chapter 2, logind. System administrators can also set up automatic login manually in the
GD M custom configuration file: /etc/g d m/custo m. co nf.
cu st o m.co n f
GD M configuration is now found in /etc/g d m/custo m. co nf. However for backwards
compatibility, if /etc/g d m/g d m. co nf is found it will be used instead of custo m. co nf.
When upgrading, Red Hat recommends removing your old g d m. co nf file and migrating
any custom configuration to custo m. co nf.
14
15
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Chapter 7. gnome-session
The g no me-sessi o n program has also been updated in Red Hat Enterprise Linux 7. It starts the
GNOME D esktop as it used to; nonetheless, some of its components have changed.
g n o me- sessio n - p ro p ert ies
The g n o me- sessio n - p ro p ert ies application is still part of the gnome-session package.
However, its functionality has been limited to managing startup programs for individual
users, and saving currently running applications when logging out. The latter functionality
has been kept from Red Hat Enterprise Linux 6.
n amed sessio n
The Save no w button is able to save a session in a specific time and to name it. The saved
sessions are restored on login. When you click Auto mati cal l y remember runni ng
appl i cati o ns when l o g g i ng o ut in g n o me- sessio n - p ro p ert ies, the list of saved
applications is shown on login as well.
With this update, it is also possible to create multiple layouts and rename them, or to be
able to select multiple user sessions for one user account.
16
Chapter 8. Internationalization
8.1. Input Met hods
The default input framework for the GNOME D esktop in Red Hat Enterprise Linux 7 is IBus (Intelligent
Input Bus). It integrates with GNOME 3 and includes a user interface for input method selection.
17
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
18
19
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Note that both d co n f - ed it o r and the g setti ng s utility are intended to browse and modify the
current user's G Set t in g s database. This means that you should always run these tools as a normal
user.
20
The d co nf system stores its profiles in text files. The $D C O NF_P R O FILE environment variable can
specify a relative path to the file from the /etc/d co nf/pro fi l e/ directory, or an absolute path,
such as in a user's home directory.
Key pairs which are set in a d co nf profile will override the default settings unless there is a problem
with the value that you have set.
Important
The d co nf profile for a session is determined at login, so users will have to log out and log in
to apply a new d co nf user profile to their session.
21
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
# dconf path
[org/gnome/desktop/background]
# GSettings key names and their corresponding values
picture-uri='file:///usr/local/share/backgrounds/wallpaper.jpg'
picture-options='scaled'
primary-color='000000'
secondary-color='FFFFFF'
In the default setting of the keyfile, the following GSettings keys are used:
T ab le 9 .1. o rg .g n o me.d eskt o p .b ackg ro u n d sch emas G Set t in g s K eys
K ey N ame
Po ssib le Valu es
D escrip t io n
pictureoptions
picture-uri
primarycolor
secondarycolor
default: 000000
default: FFFFFF
3. Edit the keyfile according to your preferences. For more information, see Section 9.3,
Browsing GSettings Values for D esktop Applications .
4. Update the system databases:
# d co nf upd ate
Important
When the user profile is created or changed, the user will need to log out and log in again
before the changes will be applied.
If you want to avoid creating a user profile, you can use the d co nf command-line utility to read and
write individual values or entire directories from and to a d co nf database. For more information, see
the d co nf(1) man page.
22
Important
If you do not enforce the system settings using a lockdown, users can easily override the
system settings with their own. Any settings users have made will take precedence over the
system settings unless there is a lockdown enforcing the system settings.
The example below demonstrates how to lock settings for the default wallpaper. Follow the procedure
for any other setting you need to lock.
23
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
# Set the Right Alt key as the Compose key and enable it
xkb-options=['terminate:ctrl_alt_bksp', 'compose:ralt']
24
25
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
3. Change to the pro d uct directory and run the following command on the directory tree:
$ fi nd . | cpi o -c -o | g zi p -9 cv > . . /pro d uct. i mg
This will create a new pro d uct. i mg archive in . . /pro d uct. i mg .
4. Place the pro d uct. i mg file in the i mag es/ directory of the installation image you want to
use for your customized distribution.
26
c lass CustomBaseInstallClass(BaseInstallClass):
sortPriority = 30000
hidden = True
defaultFS = "xfs"
ignoredPackages = ["ntfsprogs"]
installUpdates = False
_l10n_domain = "comps"
efi_dir = "redhat"
help_placeholder = "RHEL7Placeholder.html"
help_placeholder_with_links = "RHEL7PlaceholderWithLinks.html"
bootloaderTimeoutDefault = 5
bootloaderExtraArgs = []
BaseInstallClass.configure(self, anaconda)
BaseInstallClass.setDefaultPartitioning(self,
anaconda.storage)
def __init__(self):
BaseInstallClass.__init__(self)
sortPriority = 30000
27
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
hidden = True
where CustomBaseInstallClass is the name of your installation class, and My Distribution is the
product name you want to use.
so rtP ri o ri ty is used to select one of the available installation classes. Set the priority
more than 20000.
3. Change to the pro d uct directory and run the following command on the directory tree:
$ fi nd . | cpi o -c -o | g zi p -9 cv > . . /pro d uct. i mg
This will create a new pro d uct. i mg archive in . . /pro d uct. i mg .
4. Place the pro d uct. i mg file in the i mag es/ directory of the installation image you want to
use for your customized distribution.
Note that when creating your installation image, the product name specified for the
installation image must be the same as the name specified for your installation class, for
example, My Distribution.
28
Note
You need to update the /etc/d efaul t/g rub directory after every change you make
in there.
Also, you can change the colors or the font of the text displayed at the G R UB 2 screen by modifying
the /etc/g rub. d /4 0 _custo m plain text file or by adding another file in the /etc/g rub. d /
directory. You can choose from the following directives:
set color_normal=foreground/background
set color_highlight=foreground/background
set menu_color_normal=foreground/background
set menu_color_highlight=foreground/background
See the g rub(8) man page for more information on the semantics and accepted values for these
variables.
Now, you can configure a background image for G R UB 2. The image file can reside outside of the
bo o t/ directory. Supported formats are PNG, JPG, JPEG, and TGA.
Pro ced u re 10.5. Ad d in g an Imag e t o t h e B o o t Lo ad er Screen
1. Open the /etc/d efaul t/g rub file as root.
2. Edit the following configuration variables in the file:
GRUB_TERMINAL=gfxterm
29
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
GRUB_BACKGROUND=path_to_the_image.png
The value of this option must be a file readable by GRUB at boot time.
3. Run g rub2-mkco nfi g -o /bo o t/g rub2/g rub. cfg to write the background into the
configuration file.
4. Reboot your system.
If necessary, the image will be scaled to fit the screen.
10.3. Plymout h
P l ymo uth is a graphical boot system and logger for Red Hat Enterprise Linux 7, which makes use of
the kernel-based mode setting (KMS) and D irect Rendering Manager (D RM). P l ymo uth also
handles user interaction during boot.
You can customize the boot screen appearance by choosing from various static or animated
graphical themes. New themes can be created based on the existing ones.
30
3. Rebuild the i ni trd daemon after editing otherwise your theme will not show in the boot
screen. D o so by running:
# d racut -f
31
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Important
Keep in mind that the image format of your branded logo must be of the .png format.
32
1 0 .4 .1 .1 . What if t he Lo go Do e s No t Updat e ?
Make sure that you have run the d co nf upd ate command as root to update the system databases.
In case the logo does not update, try restarting G D M. For more information, see Section 14.1.1,
Restarting GD M .
33
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Important
Keep the banner message reasonably short as longer texts may not fit in the screen.
34
[org/gnome/login-screen]
# Do not show the user list
disable-user-list=true
2. Update the system databases by updating the d co nf utility:
# d co nf upd ate
35
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Po ssib le Valu es
D escrip t io n
pictureoptions
colorshading-type
primary-color
secondarycolor
default: #5789ca
The full range of options is to be found in the d co nf-ed i to r GUI or g setti ng s commandline utility. For more information, see Section 9.3, Browsing GSettings Values for D esktop
Applications .
2. Store the filename.xml file in the /usr/share/g no me-backg ro und -pro perti es/ directory.
When the user clicks their name in the top right corner, chooses Set t in g s, and in the P erso nal
section of the table selects Backg ro und , they will see the new background available.
Look at the example and see how org.gnome.desktop.background GSettings keys are implemented
practically:
<name>Company Background</name>
<name xml:lang="de">Firmenhintergrund</name>
<filename>/usr/local/share/backgrounds/companywallpaper.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
36
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>
< /wallpapers>
In one configuration file, you can specify multiple <wal l paper> elements to add more backgrounds.
See the following example which shows an .xml file with two <wal l paper> elements, adding two
different backgrounds:
<name>Company Background</name>
<name xml:lang="de">Firmenhintergrund</name>
<filename>/usr/local/share/backgrounds/companywallpaper.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<filename>/usr/local/share/backgrounds/company-wallpaper2.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#ff0000</pcolor>
<scolor>#00ffff</scolor>
</wallpaper>
< /wallpapers>
37
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
picture-uri='file:///opt/corp/background.jpg'
Replace /opt/corp/background.jpg with the path to the image file you want to use as the Screen
Shield.
Supported formats are PNG, JPG, JPEG, and TGA. The image will be scaled if necessary to fit
the screen.
2. Update the system databases:
# d co nf upd ate
Next time you log in, the new Screen Shield will show in the background. In the foreground, time, date
and the current day of the week will be displayed.
38
39
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
40
For each locale, Fo n t s T weak T o o l allows the individual users to configure different font aliases:
Sans Serif,
Serif,
Monospace,
Cursive, and
Fantasy.
These aliases are used to represent common types of fonts, such as the serif and monospace types.
Applications as well as users can then refer to these aliases instead of having to specify a particular
font installed on the system.
Users can override system default fonts by selecting a custom font for each of these aliases.
Fo n t s T weak T o o l may not be installed by default on the system, to install it, run the following
command:
# yum i nstal l fo nts-tweak-to o l
41
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
1. Start the Fo n t s T weak T o o l by pressing the Super key to enter the Acti vi ti es
O vervi ew, type Fo nts T weak T o o l , and then press Enter.
2. Click the Fo nt Al i ases tab.
3. Click the + button at the bottom left of the left pane, select or type the name of the locale you
want to configure the font aliases for, and then click Ad d .
To configure default font aliases regardless of the used locale, select D efault from the list of
locales.
4. At the right pane, locate the font alias you want to override the system defaults for, and select
the custom font from the drop-down list.
5. Click C l o se.
Now, you have overriden the system default alias and selected a new custom font.
42
Important
For the user interface, you have now set your preferences in the order in which the languages
are displayed in applications.
When multiple languages are configured, some applications (such as xt erm and other Xft
applications) may not display all characters for the user's languages properly. This is due to
the lack of support for fallback fonts in those applications, or in the rendering libraries the
applications are using.
43
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Important
Before deploying third-party GNOME Shell extensions on Red Hat Enterprise Linux, make sure
to read the following document to learn about the Red Hat support policy for third-party
software:
How does Red Hat Global Support Services handle third-party software, drivers, and/or
uncertified hardware/hypervisors?
To view installed extensions, you can use Lo o kin g G lass, GNOME Shell's integrated debugger and
inspector tool.
Pro ced u re 11.1. View in st alled ext en sio n s
1. Press Al t+F2.
2. Type in l g and press Enter to open Lo o kin g G lass.
44
3. On the top bar of Lo o kin g G lass, click Extensi o ns to open the list of installed extensions.
45
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
# d co nf upd ate
3. Users must log out and back in again before the system-wide settings take effect.
46
In GNOME Shell, you can provide a set of extensions that the user has to use. To do so, install the
extensions in the /usr/share/g no me-shel l /extensi o ns directory and then lock down the
o rg . g no me. shel l . enabl ed -extensi o ns and o rg . g no me. shel l . d evel o pment-to o l s
keys.
Locking down the o rg . g no me. shel l . d evel o pment-to o l s key ensures that the user cannot
use GNOME Shell's integrated debugger and inspector tool (Lo o kin g G lass) to disable any
mandatory extensions.
Pro ced u re 11.4 . Set t in g u p man d at o ry ext en sio n s
1. Create a l o cal database file for machine-wide settings in
/etc/d co nf/d b/l o cal . d /0 0 -extensi o ns-mand ato ry:
[org/gnome/shell]
# List all mandatory extensions
enabled-extensions=['myextension1@myname.example.com',
'myextension2@myname.example.com']
# Disable access to Looking Glass
development-tools=false
The enabl ed -extensi o ns key specifies the enabled extensions using the extensions' uuid
(myextension1@myname.example.com and myextension2@myname.example.com).
The d evel o pment-to o l s key is set to false to disable access to Lo o kin g G lass.
2. Override the user's setting and prevent the user from changing it in
/etc/d co nf/d b/l o cal . d /l o cks/extensi o ns-mand ato ry:
# Lock the list of mandatory extensions and access to Looking Glass
/org/gnome/shell/enabled-extensions
/org/gnome/shell/development-tools
3. Update the system databases:
# d co nf upd ate
4. Users must log out and back in again before the system-wide settings take effect.
47
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
48
The machine-wide . menu files are located in the /etc/xd g /menus/ directory. Userspecific . menu files are located in the ~ /. co nfi g /menus/ directory and can be used to
override the values specified in the machine-wide . menu files.
In particular, the /etc/xd g /menus/appl i cati o ns. menu file contains the definition of
the Ap p licat io n s menu layout.
D irect o ry En t ry Files ( . d i recto ry)
The . d i recto ry files provide data about each menu such as its name, and are located in
the /usr/share/d eskto p-d i recto ri es/.
49
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
< !-- Removes the Calculator from the Accessories submenu -->
<Menu>
<Name>Accessories</Name>
<Exclude>
<Filename>gcalctool.desktop</Filename>
</Exclude>
</Menu>
< !-- END of Calculator removal content -->
< /Menu>
As shown above, the file contains a <Menu> section that specifies the name of the submenu
(Accessories), the name of the . d eskto p file (gcalctool.desktop), and includes the
<Excl ud e> element.
<Menu>
<Name>Accessories</Name>
<Exclude>
<Filename>gcalctool.desktop</Filename>
</Exclude>
</Menu>
50
<Menu>
<Name>System Tools</Name>
<Deleted/>
</Menu>
As shown above, the file contains a <Menu> section that specifies the name of the submenu (System
Tools), and includes the <D el eted /> tag.
51
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
< !-- Removes the System Tools submenu from the Applications menu-->
<Menu>
<Name>System Tools</Name>
<Deleted/>
</Menu>
12.2.1. Set t ing Different Favorit e Applicat ions for Individual Users
You can set the default favorite applications for an individual user by modifying their user database
file found in ~ /. co nfi g /d co nf/user. The following sample uses d co nf to set g ed it , T ermin al
and N au t ilu s as the default favorites for a user. The example code allows users to modify the list
later, if they wish to do so.
Note
You can also lock down the above settings to prevent users from changing them. See
Section 9.5.1, Locking D own Specific Settings for more information.
12.2.2. Set t ing t he Same Favorit e Applicat ions for All Users
In order to have the same favorites for all users, you must modify system database files using d co nf
keyfiles. The following sample edits the d co nf profile and then create a keyfile to set the default
favorite applications for all employees in the first floor of an organization.
52
Note
Settings from the user database file will take precedence over the settings in the
fi rst_fl o o r database file, but locks introduced in the fi rst_fl o o r database file will take
priority over those present in user. For more information about locks, see Section 9.5.1,
Locking D own Specific Settings .
Incorporate your changes into the system databases by running the d co nf upd ate command.
Users must log out and back in again before the system-wide settings take effect.
53
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
<glob pattern="*.xyz"/>
</mime-type>
< /mime-info>
54
The sample appl i cati o n-x-newtype. xml file above defines a new MIME type
appl i cati o n/x-newtype and assigns file names with the . xyz extension to that MIME
type.
2. Create a new . d eskto p file named, for example, myappl i cati o n1. d eskto p, and place it
in the /usr/share/appl i cati o ns/ directory:
[Desktop Entry]
Type=Application
MimeType=application/x-newtype
Name=My Application 1
Exec=myapplication1
The sample myappl i cati o n1. d eskto p file above associates the appl i cati o n/xnewtype MIME type with an application named My Ap p licat io n 1, which is run by a
command myappl i cati o n1.
3. As root, update the MIME database for your changes to take effect:
# upd ate-mi me-d atabase /usr/share/mi me
4. As root, update the application database:
# upd ate-d eskto p-d atabase /usr/share/appl i cati o ns
5. To verify that you have successfully associated *. xyz files with the appl i cati o n/xnewtype MIME type, first create an empty file, for example test. xyz:
$ to uch test. xyz
Then run the g vfs-i nfo command:
$ g vfs-i nfo test. xyz | g rep "stand ard : : co ntent-type"
standard::content-type: application/x-newtype
6. To verify that myappl i cati o n1. d eskto p has been correctly set as the default registered
application for the appl i cati o n/x-newtype MIME type, run the g vfs-mi me --q uery
command:
$ g vfs-mi me --q uery appl i cati o n/x-newtype
Default application for 'application/x-newtype':
myapplication1.desktop
Registered applications:
myapplication1.desktop
Recommended applications:
myapplication1.desktop
55
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
<glob pattern="*.xyz"/>
</mime-type>
< /mime-info>
The sample appl i cati o n-x-newtype. xml file above defines a new MIME type
appl i cati o n/x-newtype and assigns file names with the . xyz extension to that MIME
type.
2. Create a new . d eskto p file named, for example, myappl i cati o n1. d eskto p, and place it
in the ~ /. l o cal /share/appl i cati o ns/ directory:
[Desktop Entry]
Type=Application
MimeType=application/x-newtype
Name=My Application 1
Exec=myapplication1
The sample myappl i cati o n1. d eskto p file above associates the appl i cati o n/xnewtype MIME type with an application named My Ap p licat io n 1, which is run by a
command myappl i cati o n1.
3. Update the MIME database for your changes to take effect:
$ upd ate-mi me-d atabase ~ /. l o cal /share/mi me
4. Update the application database:
$ upd ate-d eskto p-d atabase ~ /. l o cal /share/appl i cati o ns
5. To verify that you have successfully associated *. xyz files with the appl i cati o n/xnewtype MIME type, first create an empty file, for example test. xyz:
$ to uch test. xyz
Then run the g vfs-i nfo command:
$ g vfs-i nfo test. xyz | g rep "stand ard : : co ntent-type"
standard::content-type: application/x-newtype
6. To verify that myappl i cati o n1. d eskto p has been correctly set as the default registered
application for the appl i cati o n/x-newtype MIME type, run the g vfs-mi me --q uery
command:
$ g vfs-mi me --q uery appl i cati o n/x-newtype
56
12.3.4 . Overriding t he Default Regist ered Applicat ion for All Users
The /usr/share/appl i cati o ns/d efaul ts. l i st file specifies which application is registered to
open specific MIME types by default. To override the system defaults for all users on the system, you
need to create a /usr/share/appl i cati o ns/mi meapps. l i st file with a list of MIME types for
which you want to override the default registered application.
Pro ced u re 12.5. O verrid in g t h e D ef au lt R eg ist ered Ap p licat io n f o r All U sers
1. Consult the /usr/share/appl i cati o ns/d efaul ts. l i st file to determine the MIME
types for which you want to change the default registered application. For example, the
following sample of the d efaul ts. l i st file specifies the default registered application for
the text/html and appl i cati o n/xhtml + xml MIME types:
[Default Applications]
text/html=firefox.desktop
application/xhtml+xml=firefox.desktop
The default application (Firef o x) is defined by specifying its corresponding . d eskto p file
(fi refo x. d eskto p). The default location for other applications' . d eskto p files is
/usr/share/appl i cati o ns/.
2. Create the /usr/share/appl i cati o ns/mi meapps. l i st file. In the file, specify the MIME
types and their corresponding default registered applications:
[Default Applications]
text/html=myapplication1.desktop
application/xhtml+xml=myapplication2.desktop
[Added Associations]
text/html=myapplication1.desktop;
application/xhtml+xml=myapplication2.desktop;
This sets the default registered application for the text/html MIME type to
myappl i cati o n1. d eskto p, and the default registered application for the
appl i cati o n/xhtml + xml MIME type to myappl i cati o n2. d eskto p.
For these settings to function properly, ensure that both the myappl i cati o n1. d eskto p
and myappl i cati o n2. d eskto p files are placed in the /usr/share/appl i cati o ns/
directory.
3. You can use the g vfs-mi me --q uery command to verify that the default registered
application has been set correctly:
$ g vfs-mi me --q uery text/html
Default application for 'text/html': myapplication1.desktop
Registered applications:
myapplication1.desktop
57
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
firefox.desktop
Recommended applications:
myapplication1.desktop
firefox.desktop
12.3.5. Overriding t he Default Regist ered Applicat ion for Individual Users
The /usr/share/appl i cati o ns/d efaul ts. l i st file specifies which application is registered to
open specific MIME types by default. To override the system defaults for individual users, you need to
create a ~ /. l o cal /share/appl i cati o ns/mi meapps. l i st file with a list of MIME types for
which you want to override the default registered application.
Pro ced u re 12.6 . O verrid in g t h e D ef au lt R eg ist ered Ap p licat io n f o r In d ivid u al U sers
1. Consult the /usr/share/appl i cati o ns/d efaul ts. l i st file to determine the MIME
types for which you want to change the default registered application. For example, the
following sample of the d efaul ts. l i st file specifies the default registered application for
the text/html and appl i cati o n/xhtml + xml MIME types:
[Default Applications]
text/html=firefox.desktop
application/xhtml+xml=firefox.desktop
The default application (Firef o x) is defined by specifying its corresponding . d eskto p file
(fi refo x. d eskto p). The system default location for other applications' . d eskto p files is
/usr/share/appl i cati o ns/. Individual users' . d eskto p files can be stored in
~ /. l o cal /share/appl i cati o ns/.
2. Create the ~ /. l o cal /share/appl i cati o ns/mi meapps. l i st file. In the file, specify the
MIME types and their corresponding default registered applications:
[Default Applications]
text/html=myapplication1.desktop
application/xhtml+xml=myapplication2.desktop
[Added Associations]
text/html=myapplication1.desktop;
application/xhtml+xml=myapplication2.desktop;
This sets the default registered application for the text/html MIME type to
myappl i cati o n1. d eskto p, and the default registered application for the
appl i cati o n/xhtml + xml MIME type to myappl i cati o n2. d eskto p.
For these settings to function properly, ensure that both the myappl i cati o n1. d eskto p
and myappl i cati o n2. d eskto p files are placed in the /usr/share/appl i cati o ns/
directory.
3. You can use the g vfs-mi me --q uery command to verify that the default registered
application has been set correctly:
$ g vfs-mi me --q uery text/html
Default application for 'text/html': myapplication1.desktop
Registered applications:
myapplication1.desktop
58
firefox.desktop
Recommended applications:
myapplication1.desktop
firefox.desktop
59
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
60
contents:
# Prevent users from changing values for the following key:
/org/gnome/online-accounts
4. Update the system databases for the changes to take effect:
# d co nf upd ate
5. Users must log out and back in again before the system-wide settings take effect.
13.2. Enabling t he
C trl + Al t+ Backspace
Short cut
The C trl +Al t+Backspace shortcut key combination is used for terminating the X server. You might
want to terminate the X server especially when:
a program caused the X server to stop working.
you need to switch from your logged-in session quickly.
you have launched a program that failed.
you cannot operate in the current session for various reason.
your screen freezes.
To enable the C trl +Al t+Backspace shortcut to forcibly terminate the X server by default for all
users, you need to set the o rg . g no me. d eskto p. i nput-so urces. xkb-o pti o ns GSettings key.
(For more information on GSettings keys, see Section 9.6, GSettings Keys Properties .)
Pro ced u re 13.2. En ab lin g t h e C t rl- Alt - B acksp ace Sh o rt cu t
1. Create a l o cal database for machine-wide settings in /etc/d co nf/d b/l o cal . d /0 0 i nput-so urces:
[org/gnome/desktop/input-sources]
# Enable Ctrl-Alt-Backspace for all users
xkb-options=['terminate:ctrl_alt_bksp']
2. Override the user's setting and prevent the user from changing it in
/etc/d co nf/d b/l o cal . d /l o cks/i nput-so urces:
# Lock the list of enabled XKB options
/org/gnome/desktop/input-sources/xkb-options
3. Update the system databases for the changes to take effect:
# d co nf upd ate
4. Users must log out and back in again before the system-wide settings take effect.
The C trl +Al t+Backspace key combination is now enabled. All users can terminate the X server
quickly and easily and doing so bring themselves back to the login prompt.
61
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Note
If you, as a system administrator, set the lock on after editing the local database, users will not
be able to add other xkb options. The lock prevents users from setting a key combination like
Al t+Shi ft to switch keyboard layouts.
62
63
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
E ndSection
2. Restart the X server for your changes to take effect.
Important
This feature will only work in applications which support it. Not all GNOME and third party
applications have this feature enabled. These changes will have no effect on applications
which do not support this feature.
You prevent applications from printing by locking down the
o rg . g no me. d eskto p. l o ckd o wn. d i sabl e-pri nti ng key. Follow the procedure.
Pro ced u re 13.5. Lo ckin g D o wn t h e o rg .g n o me.d eskt o p .lo ckd o wn .d isab le- p rin t in g key
1. Create the user profile if it already does not exist (/etc/d co nf/pro fi l e/user):
user-db:user
system-db:local
2. Create a l o cal database for machine-wide settings in etc/d co nf/d b/l o cal . d /0 0 l o ckd o wn:
[org/gnome/desktop/lockdown]
# Prevent applications from printing
disable-printing=true
3. Override the user's setting and prevent the user from changing it in
/etc/d co nf/d b/l o cal . d /l o cks/l o ckd o wn:
# List the keys used to configure lockdown
org.gnome.desktop.lockdown.disable-printing
4. Update the system databases by running
# d co nf upd ate
Having followed these steps, applications supporting this lockdown key will disable printing. Among
such applications there are Evo lu t io n , Evin ce, Eye o f G N O ME, Ep ip h an y, and G ed it .
64
Important
This feature will only work in applications which support it. Not all GNOME and third party
applications have this feature enabled. These changes will have no effect on applications
which do not support this feature.
You prevent applications from file saving by locking down the
o rg . g no me. d eskto p. l o ckd o wn. d i sabl e-save-to -d i sk key. Follow the procedure:
Pro ced u re 13.6 . Lo ckin g D o wn t h e o rg .g n o me.d eskt o p .lo ckd o wn .d isab le- save- t o - d isk
key
1. Create the user profile in /etc/d co nf/pro fi l e/user unless it already exists:
user-db:user
system-db:local
2. Create a l o cal database for machine-wide settings in the
/etc/d co nf/d b/l o cal . d /0 0 -l o ckd o wn file.
[org/gnome/desktop/lockdown]
# Prevent the user from saving files on disk
disable-save-to-disk=true
3. Override the user's setting and prevent the user from changing it in
/etc/d co nf/d b/l o cal . d /l o cks/l o ckd o wn:
# Lock this key to disable saving files on disk
org.gnome.desktop.lockdown.disable-save-to-disk
4. Update the system databases by running
# d co nf upd ate
Having followed these steps, applications supporting this lockdown key, for example Vid eo s, Imag e
Viewer, Evo lu t io n , D o cu men t Viewer, or G N O ME Sh ell will disable their " Save As" dialogs.
Important
Remember that po l ki t configuration in etc/ overrides that shipped by packages in
usr/share/.
65
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
66
Warning
Keep in mind that restarting the service forcibly interrupts any currently running GNOME
session of any desktop user who is logged in. This can result in users losing unsaved data.
To restart the G D M service, run the following command:
# systemctl restart g d m. servi ce
For more information about managing services on Red Hat Enterprise Linux 7, see the Red Hat
Enterprise Linux 7 System Administrator's Guide, available from
http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/.
1 4 .2 .1 .1 . Cho o sing t o Use Ent e rprise Cre de nt ials During We lco m e Scre e ns
67
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
If you have not yet configured the machine for enterprise credentials, you can do so at the Wel co me
screens that are part of the G N O ME In it ial Set u p program.
Pro ced u re 14 .1. C o n f ig u rin g En t erp rise C red en t ials
1. At the Lo g i n welcome screen, choose Use Enterpri se Lo g i n.
2. Type the name of your domain in the D o mai n field if it is not already prefilled.
3. Type your domain account user and password in the relevant fields.
4. Click Next.
D epending on how the domain is configured, a prompt may show up asking for the domain
administrator's name and password in order to proceed.
1 4 .2 .1 .4 . Ge t t ing Mo re Info rm at io n
Red Hat Enterprise Linux 7 Windows Integration Guide The Windows Integration Guide for Red Hat
Enterprise Linux 7 provides more detailed information about using real md to connect to an
Active D irectory domain.
68
To allow users to log in using their smart cards, use the system-co nfi g -authenti cati o n tool to
enable smart card authentication. The tool is provided by the authconfig-gtk package.
To learn more about smart card authentication and the system-co nfi g -authenti cati o n tool,
see the Red Hat Enterprise Linux 7 System-Level Authentication Guide, available from
http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/.
69
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
g no me-shel l provides the core user interface functionality for GNOME, such as
launching programs, browsing directories, viewing files and so on.
For extended information, see the g no me-shel l (1) man page.
p u lseau d io
Pu lseAu d io is a sound server for Red Hat Enterprise Linux that lets programs output
audio via the Pu lseau d io daemon.
For extended information, see the pul seaud i o (1) man page.
D epending on the user's setup, you may also see some of the following, among others:
d co nf-servi ce
i bus
at-spi 2-d bus-l auncher
at-spi 2-reg i stryd
g no me-shel l -cal end ar-server
g o a-d aemo n
g sd -pri nter
various Evo lu t io n factory processes
various G VFS processes
Note
In GNOME 2, the . d mrc file in the user home directory was used to create default sessions.
This . d mrc file is no longer used.
70
[User]
Language=
XSession=gnome
In this sample, GNOME has been set as the default session, using the
/usr/share/xsessi o ns/g no me. d eskto p file. Note that the system default in Red Hat
Enterprise Linux 7 is GNOME Classic (the /usr/share/xsessi o ns/g no mecl assi c. d eskto p file).
After specifying a default session for the user, that session will be used the next time the user logs in,
unless the user selects a different session from the login screen.
71
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Note
In Red Hat Enterprise Linux 6, the user session log data was stored in the ~ /. xsessi o nerro rs file, which is no longer used.
14 .3.5. Adding an Aut ost art Applicat ion for All Users
To start an application automatically when the user logs in, you need to create a . d eskto p file for
that application in the /etc/xd g /auto start/ directory.
To manage autostart (startup) applications for individual users, use the g n o me- sessio n p ro p ert ies application.
Pro ced u re 14 .5. Ad d in g an Au t o st art ( St art u p ) Ap p licat io n f o r All U sers
1. Create a . d eskto p file in the /etc/xd g /auto start/ directory:
[Desktop Entry]
Type=Application
Name=Files
Exec=nautilus -n
OnlyShowIn=GNOME;
AutostartCondition=GSettings org.gnome.desktop.background showdesktop-icons
2. Replace Files with the name of the application.
3. Replace nautilus -n with the command you wish to use to run the application.
4. You can use the Auto startC o nd i ti o n key to check for a value of a GSettings key.
The session manager runs the application automatically if the key's value is true. If the key's
value changes in the running session, the session manager starts or stops the application,
depending on what the previous value for the key was.
72
Warning
Keep in mind that users can potentially lose unsaved data if an idle session is automatically
ended.
73
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
4. Users must log out and back in again before the system-wide settings take effect.
The following GSettings keys are of interest:
o rg . g no me. setti ng s-d aemo n. pl ug i ns. po wer. sl eep-i nacti ve-ac-ti meo ut
The number of seconds that the computer needs to be inactive before it goes to sleep if it is
running from AC power.
o rg . g no me. setti ng s-d aemo n. pl ug i ns. po wer. sl eep-i nacti ve-ac-type
What should happen when the timeout has passed if the computer is running from AC
power.
o rg . g no me. setti ng s-d aemo n. pl ug i ns. po wer. sl eep-i nacti ve-battery-ti meo ut
The number of seconds that the computer needs to be inactive before it goes to sleep if it is
running from power.
o rg . g no me. setti ng s-d aemo n. pl ug i ns. po wer. sl eep-i nacti ve-battery-type
What should happen when the timeout has passed if the computer is running from battery
power.
You can run the g setti ng s rang e command on a key for a list of values which you can use. For
example:
$ g setti ng s rang e o rg . g no me. setti ng s-d aemo n. pl ug i ns. po wer sl eepi nacti ve-ac-type
enum
'blank'
'suspend'
'shutdown'
'hibernate'
'interactive'
'nothing'
'logout'
74
To change the brightness level, create a l o cal database for machine-wide settings in
/etc/d co nf/d b/l o cal . d /0 0 -po wer, as in the following example, and replace 30 with the
integer value you want to use:
[org/gnome/settings-daemon/plugins/power]
idle-brightness=30
Note
You can also lock down the above settings to prevent users from changing them. For more
information about locks, see Section 9.5.1, Locking D own Specific Settings .
75
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
You must include the ui nt32 along with the integer key values as shown.
2. Override the user's setting and prevent the user from changing it in the
/etc/d co nf/d b/l o cal . d /l o cks/screensaver file:
# Lock desktop screensaver settings
/org/gnome/desktop/session/idle-delay
/org/gnome/desktop/screensaver/lock-enabled
/org/gnome/desktop/screensaver/lock-delay
3. Update the system databases:
# d co nf upd ate
4. Users must log out and back in again before the system-wide settings take effect.
76
D escrip t io n
afc
Similar to MTP (Media Transfer Protocol), exposes files on your Apple iD evice
(connected through USB).
Apple Filing Protocol (AFP) client to access file services of Mac operation
system X and original Mac operation system.
Handles various archiving files (Z IP, TAR) in read-only way.
A virtual back end used by burning applications as a temporary storage for
new CD /D VD /BD medium contents.
Exposes Audio CD through separate Waveform Audio File Format (WAV) files.
Virtual back end consolidating active mounts and physical volumes. Acts
similarly to a signpost. Previously used by Nautilus for its C o mputer view.
WebD AV client, including secure variant. Authentication is possible only
during mount, does not support later re-authentication on per-folder basis.
D NS Service D iscovery Avahi client, used during network browsing, forms
persistent URIs to discovered services.
A fully featured FTP (File Transfer Protocol) client, without FTPS support for
the time being. Supports passive transfers by default.
A Picture Transfer Protocol (PTP) client to access your camera attached via
USB or FireWire.
Handles all HTTP requests; useful for easy downloading files from web in
client applications.
Simple testing back end proxying file:/// URI.; with error injection support.
Media Transfer Protocol back end for accessing media player and smart
phones memory.
For browsing the network, showing nearby Avahi and Samba servers.
A Bluetooth client.
A back end used in G tkFi l eC ho o ser to list recent files used by GNOME
applications.
A fully-featured SFTP (SSH File Transfer Protocol) client.
Access Samba and Windows shares.
A trash back end which allows to restore deleted files.
afp
archive
burn
cdda
computer
dav, davs
dns-sd
ftp
gphoto2
http
locatest
mtp
network
obexftp
recent
sftp
smb
trash
77
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
Note
Some back ends are packaged separately and not installed by default. For installing
additional back ends, use the yum package manager.
To use services of a back end, an URI string must be formed. This string is a basic identifier used in
G VFS, which carries all necessary information needed for unique identification, such as type of
service (back end ID ), absolute path and user name if needed. You can see this information in the
N au t ilu s address bar and GTK+ open or save file dialogs.
The example below is a very basic form of the URI string and points to a root directory (/) of the FTP
(File Transfer Protocol) server running at ftp.myserver.net domain:
The following example points to a text file in a specified path using authentication:
78
Important
D ata may be cached or being slowly written in the background for performance reasons. To
deliver them safely on the device or remote resource, never unplug or disconnect resources.
Mounts are shared between applications and are tracked globally within the running desktop
session, which means that even if you quit an application that triggered the mount, it continues to be
available for any other application. The same way multiple applications may access the mount at the
same time, unless it was limited by a back end (some protocols permit only single channel due to
their design).
Important
G VFS mounts, (and physical volumes as well, are restricted to their owner only, no other user
is permitted to exploit your privacy.
Note
If you have no pages bookmarked yet, the Bo o kmarks label does not display.
Besides Bo o kmarks, all other available G VFS volumes and mounts are listed in the
G tkFi l eC ho o ser sidebar. Sometimes a bookmark and a G VFS volume combine into a single item
to prevent duplication and confusion. Bo o kmarks then can have eject icon just like G VFS mounts.
Bo o kmarks are located in the ~ /. co nfi g /g tk-3. 0 /bo o kmarks file. In the example below, the
bookmarked locations are ~ /Musi c, ~ /P i ctures, ~ /Vi d eo s, ~ /D o wnl o ad s, and ~ /bi n, so the
content of the ~ /. co nfi g /g tk-3. 0 /bo o kmarks file looks as follows:
79
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
file:///home/username/Music
file:///home/username/Pictures
file:///home/username/Videos
file:///home/username/Downloads
file:///home/username/bin
Replace username with the user name you want to use.
Note
XBEL (XML Bookmark Exchange Language) is an XML standard that lets you share URIs
(Uniform Resource Identifiers). In GNOME, XBEL is used to share desktop bookmarks in
applications such as N au t ilu s.
In the example below, N au t ilu s creates a bookmark titled GNOME FTP with the URI
ftp: //ftp. g no me. o rg / in the ~ /. co nfi g /nauti l us/servers file.
xmlns:bookmark="http://www.freedesktop.org/standards/desktopbookmarks"
xmlns:mime="http://www.freedesktop.org/standards/shared-mimeinfo">
<bookmark href="<input>ftp://ftp.gnome.org/</input>">
<title><input>GNOME FTP</input></title>
</bookmark>
< /xbel>
15.6. Exposing GNOME Virt ual File Syst ems t o All Ot her Applicat ions
80
In addition to applications built with the GIO library being able to access GVFS mounts, G VFS also
provides a FUSE daemon which exposes active GVFS mounts. This means that any application can
access active G VFS mounts using the standard POSIX APIs as though they were regular filesystems.
Nevertheless, there are applications in which additional library dependency and new VFS subsystem
specifics may be unsuitable or too complex. For such reasons and to boost compatibility, G VFS
provides a FUSE (Fi l esystem i n Userspace) daemon, which exposes active mounts through its
mount for standard POSIX (Portable Operating System Interface) access. This daemon transparently
translates incoming requests to imitate a local file system for applications.
Important
The translation coming from the different design is not 100% feature-compatible and you may
experience difficulties with certain combinations of applications and G VFS back ends.
The FUSE daemon starts automatically with the G VFS master daemon and places its mount either in
the /run/user/UID/g vfs or ~ /. g vfs files as a fallback. Manual browsing shows that there
individual directories for each G VFS mount. When you are opening documents from G VFS locations
with non-native applications, a transformed path is passed as an argument. Note that native GIO
applications automatically translate this path back to a native URI.
81
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
g vfs-l ess
g vfs-mkd i r
g vfs-mo unt
g vfs-rename
g vfs-set-attri bute
g vfs-co py
g vfs-l s
g vfs-mo ve
g vfs-rm
g vfs-trash
g vfs-i nfo
g vfs-save
g vfs-tree
Some more additional commands are provided for more control of G VFS specifics:
g vfs-mo ni to r-d i r
g vfs-mo ni to r-fi l e
g vfs-mi me
g vfs-o pen
All these commands are native GIO clients, there is no need for the fallback FUSE daemon to be
running. Their purpose is not to be drop-in replacements for POSIX commands, in fact, a very little
range of switches is supported. In their basic form, an URI string (instead of a local path) is taken as
an argument.
This all allows GNOME to be well-supported within xd g -to o l s (a freedesktop.org interoperability
project). For example, the commonly used xd g -o pen actually calls g vfs-o pen when a running
GNOME session is detected, reading file type associations from the correct location.
The following are a few examples of the GVFS commands usage:
To lists all files in /tmp on a local file system, execute:
$ g vfs-l s fi l e: ///tmp
The command below lists contents of a text file from a remote machine:
$ g vfs-cat ssh: //jo e@ ftp. myserver. net/ho me/jo e/to d o . txt
To copy the referenced text file to a local /tmp directory, run:
$ g vfs-co py ssh: //jo e@ ftp. myserver. net/ho me/jo e/to d o . txt /tmp/
82
Note
For user convenience, bash completion is provided as a part of the package.
Note
Removable media are now mounted in the /run/med i a/ instead of the /med i a directory.
To view and manipulate with metadata, you can use:
the g vfs-i nfo command;
the g vfs-set-attri bute command;
or any other native GIO way of working with attributes.
In the following example, a custom metadata attribute is set. Notice the differences between particular
g vfs-i nfo calls and data persistence after a move or rename (note the g vfs-i nfo command
output):
83
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
84
One of the solutions to hide a volume is to uncheck Sho w i n user i nterface in the Mo u n t
O p t io n s window in the D isks application:
1. Open D i sks by pressing the Super key to enter the Acti vi ti es O vervi ew, typing
D i sks, and then pressing Enter.
2. In the Vo lu mes actions menu, click Ed it Mo u n t O p t io n s....
3. Uncheck Sho w i n user i nterface and confirm by clicking O K.
Note
Should the connection be disabled more often, check the settings in the Netwo rk panel in the
GNOME Setti ng s.
85
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
16.1.3. When Sharing Home Direct ories Bet ween Machines, t he Wacom
Set t ings Only Apply t o One Machine
86
This is because the D -Bus machine ID (machine-id) for your Wacom tablet is included in the
configuration path of the /o rg /g no me/setti ng s-d aemo n/peri pheral s/waco m/machineid-device-id GSettings key, which stores your tablet settings.
87
Red Hat Ent erprise Linux 7 Deskt op Migrat ion and Administ rat ion G uide
88
Revision History
R evisio n 0.1- 78
T u e 07 Ap r 2015
Added section Allowing and Disallowing Online Accounts.
Pet r K o v
R evisio n 0.1- 76
T u e 17 Feb 2015
Red Hat Enterprise Linux 7.1 release of the book.
Pet r K o v
R evisio n 0.1- 74
T h u 04 D ec 2014
Red Hat Enterprise Linux 7.1 Beta release of the book.
Pet r K o v
R evisio n 0.1- 6 9
Mo n 02 Ju n 2014
Red Hat Enterprise Linux 7.0 release of the book.
Pet r K o v
R evisio n 0.1- 35
Wed 11 D ec 2013
Red Hat Enterprise Linux 7.0 Beta release of the book.
Pet r K o v
B.1. Acknowledgement s
Certain portions of this text first appeared in the GNOME D esktop System Administration Guide.
Copyright 2014 The GNOME Project, Michael Hill, Jim Campbell, Jeremy Bicha, Ekaterina
Gerasimova, minnie_eg, Aruna Sankaranarayanan, Sindhu S, Shobha Tyagi, Shaun McCance,
D avid King, and others. Licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported
License.
The editors of the Red Hat Enterprise Linux 7 Desktop Migration and Administration Guide would like to
thank the GNOME community members for their valuable contributions to the GNOME Desktop System
Administration Guide.
89