meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:prepare:x_window [2016/02/14 11:16] – niziak | linux:prepare:x_window [2024/09/19 08:13] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === default window manager === | + | ====== X Window system ====== |
| + | based on XFCE | ||
| + | |||
| + | ==== Font smoothing ==== | ||
| + | * Settings -> Appearance --> | ||
| + | |||
| + | <file xml | ~/ | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | <!-- | ||
| + | <match target=" | ||
| + | <edit name=" | ||
| + | </ | ||
| + | --> | ||
| + | < | ||
| + | use rgb sub-pixel ordering to improve glyph appearance on | ||
| + | LCD screens. | ||
| + | should always use target=" | ||
| + | | ||
| + | < | ||
| + | <edit name=" | ||
| + | <edit name=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | * Chrom browser. Go to [[chrome:// | ||
| + | * Firefox. Go to [[about: | ||
| + | * | ||
| + | ==== Focus stealing ==== | ||
| + | * Settings -> Window Manager -> Focus | ||
| + | * Settings -> Window Manager Tweaks -> Focus | ||
| + | |||
| + | ==== set default window manager | ||
| <code bash> | <code bash> | ||
| update-alternatives --config x-session-manager | update-alternatives --config x-session-manager | ||
| + | # / | ||
| update-alternatives --config x-window-manager | update-alternatives --config x-window-manager | ||
| + | # / | ||
| update-alternatives --config x-terminal-emulator | update-alternatives --config x-terminal-emulator | ||
| + | # / | ||
| + | </ | ||
| + | |||
| + | === Enable CTRL+ALT+DEL to kill X-server === | ||
| + | <code bash> | ||
| + | |||
| + | |||
| + | === XFCE4: restore working TAB key and CTRL+D === | ||
| + | <file | ~/ | ||
| + | < | ||
| + | |||
| + | </ | ||
| + | |||
| + | === misc === | ||
| + | <code bash> | ||
| + | |||
| + | |||
| + | === Power management === | ||
| + | <code bash> | ||
| + | |||
| + | Turn off monitors command and lock: | ||
| + | <code bash> | ||
| + | xset dpms force off | ||
| + | xscreensaver-command --lock | ||
| + | </ | ||
| + | |||
| + | === Control minitor brightness === | ||
| + | <code bash> | ||
| + | xrandr --output HDMI2 --brightness 0.5 | ||
| + | xrandr --output VGA1 --brightness 0.5 | ||
| + | </ | ||
| + | |||
| + | === Enable/ | ||
| + | <code bash> | ||
| + | xrandr --output HDMI2 --off | ||
| + | xrandr --output HDMI2 --auto --right-of VGA1 | ||
| + | </ | ||
| + | ==== Using Brighntess Controller ==== | ||
| + | <code bash> | ||
| + | |||
| + | Download and install latest version from [[http:// | ||
| + | Do not use Ubuntu' | ||
| + | |||
| + | |||
| + | ==== Using Indicator Brightness ==== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install libappindicator1 libdbusmenu-gtk4 libindicator7 python-appindicator python-gobject | ||
| + | apt-get install notify-osd | ||
| + | |||
| + | wget http:// | ||
| + | dpkg -i dpkg -i notify-osd-icons_0.8+15.04.20150202-0ubuntu1_all.deb | ||
| + | |||
| + | wget http:// | ||
| + | dpkg -i indicator-brightness_0.4~bzr11~ubuntu15.04.1_all.deb | ||
| + | |||
| + | |||
| + | sudo apt-get install software-properties-common python-software-properties | ||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install indicator-brightness | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Open PDFs in okular === | ||
| + | Force system to ask how to open file: | ||
| + | <code bash> | ||
| + | or | ||
| + | <code bash> | ||
| + | xdg-mime query filetype document.pdf | ||
| + | xdg-mime query default application/ | ||
| + | xdg-mime default okularApplication_pdf.desktop application/ | ||
| + | # or kde4-okularApplication_pdf.desktop | ||
| + | </ | ||
| + | see | ||
| + | <code bash> | ||
| + | cat / | ||
| + | cat ~/ | ||
| + | </ | ||
| + | |||
| + | sudo update-mime-database / | ||
| + | |||
| + | === Multimonitor === | ||
| + | use xrandr to list available outputs. Example output: | ||
| + | |||
| + | < | ||
| + | Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 | ||
| + | VGA1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm | ||
| + | | ||
| + | ... | ||
| + | HDMI1 disconnected (normal left inverted right x axis y axis) | ||
| + | HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm | ||
| + | | ||
| + | ... | ||
| + | DP1 disconnected (normal left inverted right x axis y axis) | ||
| + | HDMI3 disconnected (normal left inverted right x axis y axis) | ||
| + | </ | ||
| + | |||
| + | To set layout of monitor: | ||
| + | <code bash> | ||
| + | xrandr --output VGA1 --right-of HDMI2 | ||
| + | </ | ||
| + | |||
| + | You need to create startup script with above command, and configure XFCE to run it at start (read more below). | ||
| + | |||
| + | There is also graphical UI available: | ||
| + | <code bash> | ||
| + | |||
| + | To make settings permanent, use **Layout** --> **Save as** | ||
| + | This will create executable script in **~/ | ||
| + | |||
| + | Then add above executable script to autostart of XFCE: | ||
| + | **Application Menu** --> **Settings** --> **Session and Startup** | ||
| + | |||
| + | === remote VNC access === | ||
| + | Start VNC after first user login (from autostart): | ||
| + | |||
| + | <code bash> | ||
| + | $ sudo apt-get install x11vnc | ||
| + | $ mkdir -p ~/ | ||
| + | $ cd ~/ | ||
| + | $ cat > X11VNC.desktop | ||
| + | </ | ||
| + | |||
| + | And paste following content: | ||
| + | |||
| + | <code ini> | ||
| + | [Desktop Entry] | ||
| + | Encoding=UTF-8 | ||
| + | Type=Application | ||
| + | Name=X11VNC | ||
| + | Comment= | ||
| + | Exec=x11vnc -forever -usepw -httpport 5900 | ||
| + | StartupNotify=false | ||
| + | Terminal=false | ||
| + | Hidden=false | ||
| + | </ | ||
| + | |||
| + | Finish pasting with CTRL+D | ||
| + | |||
| + | Password file (~/ | ||
| + | |||
| + | ==== vnc4server ==== | ||
| + | |||
| + | in file ~/ | ||
| + | |||
| + | add before executing x-session: | ||
| + | |||
| + | <file bash ~/ | ||
| + | if test -z " | ||
| + | eval `dbus-launch --sh-syntax –exit-with-session` | ||
| + | echo "D-BUS per-session daemon address is: \ | ||
| + | $DBUS_SESSION_BUS_ADDRESS" | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | Update: | ||
| + | It looks like now vncserver expects that '' | ||
| + | <file bash ~/ | ||
| + | xsession & | ||
| + | dbus-launch --exit-with-session lxsession | ||
| + | </ | ||
| + | |||
| + | === Sound === | ||
| + | < | ||
| + | apt-get install pavucontrol pavumeter | ||
| + | </ | ||
| + | |||
| + | === Trackball/ | ||
| + | <code bash> | ||
| + | For touchscreen, | ||
| + | |||
| + | <code bash> | ||
| + | xinput list # to see device list and ids | ||
| + | xinput list-props 10 # list props for device id=10 | ||
| </ | </ | ||