Category: X11

Barrier server – client configuration

Server: alpha Server configuration / command: barriers –name alpha –enable-crypto –address :24800 some distributions instead of the command barriers they use the command barrier.server Client: bravo Client configuration / command: barrierc –enable-crypto alpha:24800 some distributions instead of the command barrierc they use the command barrier.client  

Include $HOME/bin in any Desktop Environment

In any Linux Desktop Environment, if you want to be able to run programs and scripts that reside in your own $HOME/bin via the <Alt>+<F2> you may have to do some configuration on your own, as sometimes desktops do not have this preconfigured. Edit or create $HOME/.xsessionrc and add into it the following: if [ -d “$HOME/bin” ]; then { PATH=$HOME/bin:${PATH##$HOME/bin:} }; fi export PATH Log out and log back into X and try to run the program by invoking <Alt>+<F2> and typing the name of your program or script and pressing <Enter>

Quick keyboard layout setting

Say you want to use an additional layout on your keyboard in a terminal, to support Hellenic (gr) along with your English (gb) layout, and also want to be able to switch layouts with <Shift> + <CapsLock> and have the [Scroll Lock] LED light up when the second layout is active In your terminal or console session, run setxkbmap -option grp:switch,grp:shift_caps_toggle,grp_led:scroll gb,gr

X Terminal setup with XDM

The XClient / XServer model, is in a nutshell described as follows: XServer: Is the host that will display the session (also called X-Terminal). Only requires the X11 system to be installed and optionally a display manager (no desktop or window manager are necessary). The Xserver can be invoked by a number of ways: From the command line as root, run: “X :1 -query xclientHost” In the /etc/X11/xdm/Xservers add the following: “:1 local /usr/X11R6/bin/X :1 -query xclient-host” XClient: Is the host that will export its display to the XServer (X-Terminal). Requires a desktop / window manager and optionally a display manager. The following files need modification as follows: /etc/X11/xdm/Xaccess: *.your-domain.ext *.your-domain.ext CHOOSER BROADCAST /etc/X11/xdm/xdm-config: !DisplayManager.requestPort: 0 /etc/X11/xdm/Xservers: #:0 local /usr/X11/bin/X :0 vt9 -depth 15 -nolisten tcp

Configure language switching on keyboard

Say we want to add the Hellenic (el) keyboard layout in X11. Edit /etc/X11/xorg.conf and add the following entries Option “XkbLayout” “gb,el” # British, Hellenic Option “XkbOptions” “grp:alt_shift_toggle” # Switch with Alt-Shift Log out / in your X session and try out the configuration by pressing <Alt>+<Shift>