Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:handbook:xwindow [2010/07/08 15:14] – external edit 127.0.0.1 | en:handbook:xwindow [2022/07/29 09:59] (current) – sessiondir explained hgt | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| The X Window System or X11 provides a window manager running on top of a X server. | The X Window System or X11 provides a window manager running on top of a X server. | ||
| - | SliTaz 2.0 by default | + | SliTaz |
| - | Slitaz 3.0 by default uses the Xorg server, there is however | + | Slitaz 3.0 by default uses the Xorg server, there is however |
| The X server can be started with the Slim login manager or directly from a Linux console with the command startx, but for this you must first disable the Login Manager. To reconfigure your X session you can use tazx as root or as the current user if you start X from the command line. | The X server can be started with the Slim login manager or directly from a Linux console with the command startx, but for this you must first disable the Login Manager. To reconfigure your X session you can use tazx as root or as the current user if you start X from the command line. | ||
| Line 20: | Line 20: | ||
| ===== Slim - Simple Login Manager ===== | ===== Slim - Simple Login Manager ===== | ||
| - | Slim is a lightweight session manager that is very easy to configure and is customizable using system themes. The configuration file is found in /// | + | Slim is a lightweight session manager that is very easy to configure and is customizable using system themes. |
| - | In LiveCD mode you can disable Slim with the boot option | + | The configuration file is '' |
| - | More details | + | It defines the default user, default theme, |
| - | === Default user === | + | More details and themes can be found on https:// |
| - | Slim offers a way to pre-load a user login name, by default tux is configured for convenience. You can change this by editing the Slim configuration file /// | + | === Choose window manager === |
| - | < | + | In version **1.3.5** available window managers via the F1 key are defined by use of the '' |
| - | ===== Xorg ===== | + | In version **1.3.6** the |
| + | < | ||
| + | statement in ''/ | ||
| + | To choose one, the '' | ||
| - | By default, SliTaz provides | + | Users who use just one window manager should omit the '' |
| + | the '' | ||
| - | There is no GUI configuration which means having | + | <note tip> |
| - | < | + | When updating from 1.3.5 to 1.3.6, **sessions ...** must be replaced by **sessiondir / |
| - | Once installed, you can go directly to the configuration or you can install the correct driver for your card (provided you know it). Example using the Nvidia driver and listing all available drivers: | + | === Disable Slim === |
| - | < | + | |
| - | # tazpkg get-install xorg-xf86-video-nv | + | |
| - | | + | |
| - | # tazpkg search xorg-xf86-video | + | |
| - | </ | + | |
| - | === Automatic configuration of the server === | + | In live mode Slim can be disabled with the boot option '' |
| - | To configure | + | On an installed system |
| - | < | + | === Default user === |
| - | # Xorg -configure | + | |
| - | # cp / | + | |
| - | </ | + | |
| - | Finally you then change the configuration of Slim to use Xorg instead of Xvesa and restart | + | Slim offers a way to pre-load a user name, by default this is the user name with user number 1000 (usually '' |
| + | This can be changed by editing the Slim configuration file ''/ | ||
| + | or just leave the line blank to avoid pre-loading a user name. | ||
| - | === Using Xorg with Slim === | + | Example: |
| - | In the Slim configuration | + | <file> |
| + | |||
| + | ===== Xorg ===== | ||
| + | |||
| + | Xorg is the default server on SliTaz and designed to work out of the box on most systems. It should detect and configure most devices such as keyboards, mice, displays, etc. Once installed, running Tazx allows you to reconfigure/reinstall the xorg-server package and select the correct driver for your card. Example: | ||
| + | |||
| + | First stop the Xorg server using alt-ctrl-backspace, | ||
| + | |||
| + | < | ||
| + | |||
| + | Then select Xorg and select your video driver, this reconfigures Xorg. Then restart the slim login manager: | ||
| + | |||
| + | < | ||
| + | |||
| + | You can also do this by searching for and installing a video driver and reconfiguring | ||
| < | < | ||
| - | default_xserver | + | # tazpkg search xorg-xf86-video |
| - | #default_xserver | + | # |
| - | #xserver_arguments | + | # Xorg -configure |
| </ | </ | ||
| - | Now we can start Slim to return us to an X server session. Slim works likes a daemon, it can be stopped or started from the console: | + | Then copy the newly generated file to /etc/X11: |
| + | |||
| + | < | ||
| + | |||
| + | And restart | ||
| - | |||
| < | < | ||
| - | === xorg.conf - Configuration file === | ||
| - | Xorg uses the configuration file /etc/X11/xorg.conf. | + | === xorg.conf.d - Configuration files === |
| - | Keyboard (en): | + | Xorg uses the configuration files found in the xorg.conf.d directory which are automatically setup when you first boot and can be easily edited with your favorite text editor. The files are configured separately into sections such as modules to be loaded, default screen, mouse, keyboard, etc. This document provides a few examples: |
| - | < | + | 10-ServerLayout.conf: |
| - | Section " | + | |
| - | Identifier | + | |
| - | Driver | + | |
| - | Option | + | |
| - | Option | + | |
| - | Option | + | |
| - | Option | + | |
| - | EndSection | + | |
| - | </ | + | |
| - | Mice with auto detection protocol: | + | <file> |
| - | <code> | + | Section "ServerLayout" |
| - | Section "InputDevice" | + | Identifier |
| - | Identifier | + | Screen |
| - | Driver | + | |
| - | Option | + | |
| - | Option | + | |
| - | Option | + | |
| EndSection | EndSection | ||
| - | </code> | + | </file> |
| - | Composite extensions: | + | 30-Module.conf: |
| + | < | ||
| + | Section " | ||
| + | Load " | ||
| + | Load " | ||
| + | Load " | ||
| + | Load " | ||
| + | Load " | ||
| + | Load " | ||
| + | EndSection | ||
| + | </ | ||
| - | < | + | Note that a xorg.conf file can also be found in /etc/X11 as another way to configure Xorg. This file is read before all files in / |
| - | Section " | + | |
| - | Option | + | |
| - | EndSection | + | |
| - | </code> | + | |
| - | ===== Use Xvesa as X terminal ===== | + | ===== Use Xvesa as X terminal |
| You can use Xvesa as X terminal, if you have a machine on the network that accepts Xdmcp connections. To enable this, you can start the server with the option -query followed by the machine name or IP address. Example of machine 192.168.0.2 on a local network: | You can use Xvesa as X terminal, if you have a machine on the network that accepts Xdmcp connections. To enable this, you can start the server with the option -query followed by the machine name or IP address. Example of machine 192.168.0.2 on a local network: | ||
| Line 115: | Line 122: | ||
| < | < | ||
| - | The use of a graphical remote server can be of great use, although | + | The use of a graphical remote server can be of great use, although |
| ===== Fonts ===== | ===== Fonts ===== | ||
| - | The management of Fonts (fonts) is powered by the package // | + | The management of Fonts (fonts) is powered by the package // |
| === Installing fonts === | === Installing fonts === | ||
| - | At the system level fonts are installed in the directory: /// | + | At the system level fonts are installed in the directory: /// |
| < | < | ||