Xfce
Secondo xfce.org: "Xfce è un ambiente desktop per sistemi operativi Unix-like. Punta ad essere veloce e leggero in termini di risorse di sistema, rimanendo comunque visivamente accattivante e facile da usare."
Prerequisites
Selecting a profile
Read relevant documentation before performing any profile changes.
Using the basic desktop profile will provide a good set of defaults for Xfce. Other profiles can be used, but this gives a good balance between dependencies and usability, all else aside. To select the desktop profile:
root #
eselect profile set default/linux/amd64/13.0/desktop
Evitare dipendenze non necessarie
app-text/poppler e dev-util/cmake hanno +qt4
impostata in maniera predefinita:
/etc/portage/package.use/xfce
Rimuovere la USE flag qt4 per poppler e cmakeapp-text/poppler -qt4 dev-util/cmake -qt4
Naturalmente, -qt4
può essere impostata globalmente in /etc/portage/make.conf se lo si desidera.
xfce4-notifyd
This is an optional step to install xfce-extra/xfce4-notifyd in place of x11-misc/notification-daemon. Skip this section if the choice of notification daemon is unimportant.
Emerging xfce-base/xfce4-meta will pull in the virtual/notification-daemon dependency. This virtual dependency is designed to insure that Xfce will be provided with a notification-daemon, whatever suitable software the user chooses to fulfill this role.
By default, virtual/notification-daemon will satisfy this dependency by drawing in GNOME's x11-misc/notification-daemon package. Xfce users may prefer to use xfce-extra/xfce4-notifyd, if a notification-daemon has not already been installed.
By installing xfce-extra/xfce4-notifyd before emerging Xfce, the virtual package virtual/notification-daemon will use xfce4-notifyd, and pull in no other packages. Use the --oneshot
option to avoid adding xfce4-notifyd to the world file:
root #
emerge --ask --oneshot xfce-extra/xfce4-notifyd
Now proceed with the installation.
Installazione
USE flags
USE flags for xfce-base/xfce4-meta The Xfce Desktop Environment (meta package)
minimal
|
Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features) |
pulseaudio
|
Add support for PulseAudio sound server |
svg
|
Add support for SVG (Scalable Vector Graphics) |
upower
|
Enable power management support |
Emerge
Emerge xfce-base/xfce4-meta for a default set of Xfce packages, to get a reasonably complete desktop environment:
root #
emerge --ask xfce-base/xfce4-meta
The xfce-base/xfce4-meta package will provide the following user-facing applications, plus some libraries and system software:
Pacchetto | Descrizione |
---|---|
x11-terms/xfce4-terminal | Un popolare emulatore di terminale per Xfce; superiore al programma standard xterm. |
xfce-base/xfce4-appfinder | Cercatore di applicazioni. |
xfce-base/thunar | Gestore dei file di Xfce. |
xfce-extra/xfce4-mixer | Controllo del volume. (deprecato e rimosso da Gentoo - gli utenti di Pulseaudio possono installare xfce-extra/xfce4-pulseaudio-plugin. Gli altri possono installare media-sound/volumeicon o simili) |
xfce-extra/thunar-volman | Gestisce dischi e utilità rimovibili. |
xfce-extra/tumbler | Anteprima dei file per Thunar. |
xfce-extra/thunar-archive-plugin | Plugin per Thunar per lavorare con gli archivi; utilizza app-arch/file-roller. |
xfce-extra/xfce4-battery-plugin | Mostra la percentuale della batteria, il tempo rimanente, le sorgenti di alimentazione (corrente o batteria), lo stato della ventola, avvertimenti e può anche essere configurato per eseguire comandi a certi livelli di batteria, che possono essere usati per ibernare un portatile quando la batteria è quasi scarica. |
xfce-extra/xfce4-verve-plugin | Una piccola linea di comando incorporata nel pannello; più veloce rispetto ad aprire un altro terminale per eseguire un comando. |
xfce-extra/xfce4-mount-plugin | Montaggio con un clic dei dispositivi elencati in /etc/fstab. |
xfce-extra/xfce4-sensors-plugin | Monitora i sensori hardware, come la temperatura del processore, i giri delle ventole, la temperatura dei dischi, il voltaggio della scheda madre, e molto altro. |
x11-themes/xfwm4-themes | Numerosi temi per il gestore delle finestre. |
xfce-extra/xfce4-power-manager | Un'applicazione per monitorare e gestire l'utilizzo della batteria (particolarmente importante per i portatili). Scegliere prestazioni massime o modalità a risparmio energetico. Regola la luminosità dello schermo e imposta l'ibernazione, la sospensione e lo spegnimento (per esempio, quando si chiude il pannello o vengono premuti dei bottoni). Può lanciare degli avvertimenti quando la batteria raggiunge certi livelli, o anche spegnere la macchina. Comprende dei plugin per il pannello per mostrare lo stato della batteria e controllare la luminosità. |
To see everything that is installed by xfce-base/xfce4-meta, see the dependency tab for that package on pgo.
Naturalmente, è anche possibile selezionare solo i pacchetti necessari:
Applicazioni aggiuntive
Esiste un gran numero di applicazioni aggiuntive facenti parte di Xfce.
Package | Description |
---|---|
app-cdr/xfburn | CD burning application. |
app-editors/mousepad | Lightweight text editor. |
x11-themes/xfwm4-themes | Several window-manager themes. |
xfce-extra/thunar-archive-plugin | Plugin for Thunar to work with archives; uses app-arch/file-roller. |
xfce-extra/xfce4-battery-plugin | Displays battery percentage, time remaining, power source (AC or battery), fan status, warnings, and can even be configured to execute commands at certain power levels, which can be used to put the laptop into hibernate mode when the battery is almost exhausted. |
xfce-extra/xfce4-mount-plugin | One-click mounting of devices listed in /etc/fstab. |
xfce-extra/xfce4-sensors-plugin | Monitor hardware sensors, such as CPU temperature, fan RPM, hard drive temp, motherboard voltage, and more. |
xfce-extra/xfce4-verve-plugin | A small command line embedded into the panel; quicker than opening up another terminal to run a command. |
This is just a partial selection of packages available in the Gentoo repository, see p.g.o/categories/xfce-extra, or use eix (eix --category xfce-extra), to see packages from the xfce-extra category. See also https://www.xfce.org/projects/ for more information.
Le seguenti applicazioni funzionano bene in Xfce e costituiscono un ambiente desktop di base.
Pacchetto | Descrizione |
---|---|
app-editors/mousepad | Editor di testo leggero. |
app-cdr/xfburn | Applicazione per masterizzare CD. |
x11-misc/alacarte | L'editor del menu di GNOME funziona bene in Xfce. |
x11-terms/tilda | Emulatore di terminale leggero in stile quake. |
app-office/orage | Calendario semplice. |
Usage
Launching Xfce
Xfce can either be run from a terminal after login, launched automatically after login, or be started by a graphical display manager that will greet the user and ask for login details.
Avviare Xfce senza un display manager
startx e startxfce4 sono due delle opzioni immediatamente disponibili per avviare Xfce senza usare un display manager.
startx
Se si usa startx, creare un file ~/.xinitrc con il seguente contenuto:
~/.xinitrc
Avviare xfce4 all'invocazione di startxexec startxfce4
If experiencing authorization or permissions issues, see the troubleshooting section.
startxfce4
Per lanciare il desktop Xfce4 scrivere semplicemente startxfce4 nel terminale e premere invio:
user $
startxfce4
Display manager
È possibile usare un display manager per avviare Xfce. Fare riferimento all'articolo display manager per configurare un display manager.
La maggior parte dei display manager usa file
- .desktop per configurare le sessioni disponibili. Di seguito è riportato un file desktop di esempio:
xfce4.desktop
File desktop di Xfce4 per display manager[Desktop Entry] Encoding=UTF-8 Name=Xfce4 Comment=Usa questa sessione per eseguire Xfce 4 come ambiente desktop Exec=/usr/bin/startxfce4 Icon=/usr/share/pixmaps/xfce4_xicon1.png Type=Application
Il file desktop va posto nel percorso giusto per il display manager.
Configurazione
Xfce è un ambiente desktop e come tale può essere configurato secondo le necessità di (quasi) qualunque utente. In questa sezione viene coperto un gran numero di aspetti popolari (o più difficili).
Tasti del volume
Installare xfce-extra/xfce4-volumed per gestire i tasti del volume:
root #
emerge --ask xfce-extra/xfce4-volumed-pulse
media-sound/tudor-volumed may be an option for systems not using pulseaudio.
Eseguire xfce4-keyboard-settings per collegare i seguenti tasti:
- Tasto volume su: amixer set Master 5%+
- Tasto volume giù: amixer set Master 5%-
- Tasto muto: amixer set Master toggle
Temi GTK+ 3 coerenti
Un'altra opzione consiste nell'usare il tema Greybird, che ha supporto a GTK+ 2, GTK+ 3, xfwm4, emerald e metacity:
root #
emerge --ask x11-themes/greybird
Cliccare su Menù Xfce -> Impostazioni -> Aspetto. Oppure eseguire xfce4-appearance-settings. Selezionare "Greybird" dalla lista "Stile".
Ora le applicazioni GTK+ 2 e GTK+ 3 dovrebbero avere un aspetto coerente.
Altri temi
Altri temi disponibili in Portage che sono compatibili con XFCE possono essere installati seguendo la lista seguente:
root #
emerge --ask x11-themes/clearlooks-phenix x11-themes/gnome-themes-standard x11-themes/gtk-engines-aurora x11-themes/light-themes x11-themes/murrine-themes x11-themes/nimbus x11-themes/oxygen-molecule x11-themes/redhat-artwork x11-themes/shiki-colors x11-themes/tactile3 x11-themes/zukini
Risoluzione dei problemi
Abilitare lo scatto verticale alle finestre
La maggior parte degli ambienti desktop moderni ha lo scatto delle finestre verticali abilitato automaticamente. Ciò esiste anche in Xfce ma non è automatico. Per abilitarlo, navigare in: Impostazioni → Gestore finestre → Tab Avanzate.
- Assicurarsi che la casella "Snap windows to screen border" sia spuntata.
- Assicurarsi che le caselle sotto "Wrap workspaces when reaching the screen edge" NON siano spuntate. Esse interferiscono con lo scatto delle finestre verticali.
Una volta che le caselle sono impostate dovrebbe essere possibile trascinare una finestra a destra o sinistra dello schermo facendo sì che essa si ridimensioni al 50% dell'ampiezza dello schermo.
Le scorciatoie da tastiera possono essere impostate con il tipico comportamento Maiusc+← o Maiusc+→. Navigare su Impostazioni → Gestore finestre → Scheda Tastiera
Impostare "Tile window to the left" e "Tile window to the right" con le combinazioni Maiusc+← e Maiusc+→ rispettivamente.
Il mixer audio si lamenta dell'eseguibile pavucontrol mancante
Cliccando l'icona speaker (audio) nel pannello e poi selezionando Mixer audio... si riceve un messaggio del tipo "eseguibile pavucontrol non trovato".
La soluzione sta nell'installare media-sound/pavucontrol:
root #
emerge --ask media-sound/pavucontrol
Xfce4-screensaver unable to unlock
Xfce-screensaver uses gnome-keyring by default to authenticate. By applying the installation method above, gnome-keyring will not be pulled and pam will be unable to service the default configuration installed in /etc/pam.d/xfce4-screensaver. Either pull gnome-keyring, otherwise the file should be modified to allow system-auth to be used on passwords:
/etc/pam.d/xfce4-screensaver
auth include system-auth password include system-auth
Authorization or permissions issues
When experiencing authorization or permissions issues within xfce4 in an OpenRC profile (symptoms include being unable to open power manager and unable to suspend/hibernate) make sure that sys-auth/elogind is installed and properly configured, and that the elogind
USE flag is globally enabled.
If launching with startx, replace the appropriate line in ~/.xinitrc with the following:
~/.xinitrc
Avviare xfce4 in maniera corretta con startxck-launch-session dbus-launch --sh-syntax --exit-with-session xfce4-session
Dual-monitors get mirrored after monitor suspend
There are (at least) three ways to solve this issue. First is to save the display settings as the default monitor layout profile, then enable that profile as "new monitors connect". There's also the option to show a dialog whenever new monitors are detected, which will default to the profile instead of mirroring, when one is available. Navigate to Settings -> Display -> Advanced to find these options. Remember to configure the display settings before saving the first profile.
2nd way is to kill xfsettingsd after logging to the Xfce session. However this will also make some functionality unavailable, such as global hotkeys. A custom script can be created that kills the service, and add that to the autostarting applications list.
3rd is to have a custom script that can be executed via a .desktop icon on the desktop, panel, or ran manually each time the monitors are turned on.
Review the monitor IDs using the xrandr command.
The custom script could look something like the following:
~/bin/configuremonitors.sh
configuremonitors.shxrandr --output HDMI-A-0 --right-of DisplayPort-0 --auto
Vedere anche
- Desktop environment — provides a list of desktop environments available in Gentoo.
- Guida a Xfce - Una guida all'installazione e alla configurazione altamente dettagliata. Consultarla per ottenere tutti i dettagli succosi relativi a Gentoo!