Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
xfce:xfce4-session:advanced [2012/01/12 20:09] – created nick | xfce:xfce4-session:advanced [2019/08/06 17:45] – [Kiosk Mode] kevinbowen | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Advanced ====== | ====== Advanced ====== | ||
+ | ===== Auto login from console ===== | ||
+ | |||
+ | Instead of using a desktop manager, you can also auto login from the console. If you use bash, you can put the following in your '' | ||
+ | |||
+ | if [ " | ||
+ | startxfce4 | ||
+ | fi | ||
+ | |||
+ | This will start Xfce if you login from the first console. For properly registering the ConsoleKit session, you probably want to add ''< | ||
+ | |||
+ | ===== SSH and GPG Agents ===== | ||
+ | |||
+ | By default xfce4-session tries to start the gpg- or ssh-agent. To disable this run the following commands: | ||
+ | |||
+ | xfconf-query -c xfce4-session -p / | ||
+ | xfconf-query -c xfce4-session -p / | ||
+ | |||
+ | To force the '' | ||
+ | |||
+ | xfconf-query -c xfce4-session -p / | ||
+ | |||
+ | In case you want to use gnome-keyring enable the {gui> | ||
+ | |||
+ | ===== ConsoleKit ===== | ||
+ | |||
+ | The Xfce Desktop requires an active ConsoleKit session to function properly. ConsoleKit is used for system actions like shutdown, suspend and (un)mounting devices (through Polkit for authorization). In case you use a desktop manager, the DM will take care of that. For console starts this is a bit different. | ||
+ | |||
+ | - If you login on the console (without starting X) run '' | ||
+ | - In 4.10, start Xfce with '' | ||
+ | - When Xfce is started and you run '' | ||
===== Files and Environment Variables ===== | ===== Files and Environment Variables ===== | ||
Line 13: | Line 43: | ||
? ${XDG_CONFIG_DIRS}/ | ? ${XDG_CONFIG_DIRS}/ | ||
! This is the location where the list of applications that should be automatically run on login is stored. Each autostarted application is represented by a .desktop file (see the Desktop Entry Specification for details). | ! This is the location where the list of applications that should be automatically run on login is stored. Each autostarted application is represented by a .desktop file (see the Desktop Entry Specification for details). | ||
- | ! Prior to Xfce 4.3, the list of autostarted applications was stored in '' | + | ! Prior to Xfce 4.3, the list of autostarted applications was stored in '' |
? ${XDG_CONFIG_DIRS}/ | ? ${XDG_CONFIG_DIRS}/ | ||
! This is the location of the configuration file that includes the various settings for xfce4-session, | ! This is the location of the configuration file that includes the various settings for xfce4-session, | ||
Line 22: | Line 52: | ||
? ${sysconfdir}/ | ? ${sysconfdir}/ | ||
! Kiosk mode configuration file. See next section for an explanation. | ! Kiosk mode configuration file. See next section for an explanation. | ||
+ | |||
+ | ===== Kiosk Mode ===== | ||
+ | |||
+ | The session manager offers support for the Kiosk Mode, that helps to prevent users from making changes to their session settings. To use it you have to edit or create the file '' | ||
+ | |||
+ | The way to explain the format of this file is by using an example. The xfce4-session section of your '' | ||
+ | |||
+ | [xfce4-session] | ||
+ | CustomizeSplash=ALL | ||
+ | CustomizeChooser=ALL | ||
+ | CustomizeLogout=ALL | ||
+ | CustomizeCompatibility=%wheel | ||
+ | Shutdown=%wheel | ||
+ | CustomizeSecurity=NONE | ||
+ | |||
+ | This allows all users to change their splash, chooser and logout settings, but allows only users in the group '' | ||
+ | |||
+ | The session manager supports the following KIOSK capabilities: | ||
+ | |||
+ | ? CustomizeSplash | ||
+ | ! Whether or not the user is allowed to customize the splash screen. | ||
+ | ? CustomizeChooser | ||
+ | ! Whether or not the user is allowed to customize the session chooser settings. | ||
+ | ? CustomizeLogout | ||
+ | ! Whether or not the user is allowed to customize the logout settings. | ||
+ | ? CustomizeCompatibility | ||
+ | ! Whether or not the user is allowed to customize the compatibility settings (KDE/Gnome compat) | ||
+ | ? CustomizeSecurity | ||
+ | ! Whether or not the user is allowed to customize the security settings. This is one of the most IMPORTANT settings, since it prevents users (actually libICE) from binding to a TCP port. | ||
+ | ? Shutdown | ||
+ | ! Whether or not the user is allowed to shutdown (reboot or poweroff) the system. If a user lacks this capability the reboot and poweroff options in the shutdown dialog will be greyed out. | ||
+ | |||
+ |