This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | software:fedora:windowmaker [2022/11/13 12:06] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== What? ===== | ||
+ | Fedora enrolls gnome3 and gdm by default, some things need to be done to run WindowMaker and ibus here for me: | ||
+ | * the NetworkManager applet has by default no place to live on, wmdocker works for this | ||
+ | * ibus to input japanese needs tuning | ||
+ | * for the thinkpad powertunings refer to this document: [[/ | ||
+ | * for the tinkpad x200 specific settings ans Windowmakertunings: | ||
+ | Some other things related to x like detecting and handling multiple monitors (on the road vs. using docking station when I disable the internal screen) are here: [[hardwarerelated/ | ||
+ | |||
+ | ===== Setup windowmaker and xdm ===== | ||
+ | < | ||
+ | # Let's ensure basic xorg is installed. | ||
+ | dnf group list hidden | ||
+ | dnf group install 'LXDE Desktop' | ||
+ | |||
+ | # install | ||
+ | # - windowmaker | ||
+ | # - wmdocker to run the networkmanager applet | ||
+ | # - xdm | ||
+ | # - xorg-x11-xinit-session to run window manager from ~/.xsession | ||
+ | dnf -y install WindowMaker WindowMaker-extra wmdocker \ | ||
+ | xorg-x11-xdm xorg-x11-xinit-session | ||
+ | |||
+ | cd / | ||
+ | rm default.target | ||
+ | ln -s / | ||
+ | rm display-manager.service | ||
+ | ln -s / | ||
+ | |||
+ | # as user configure wmaker: | ||
+ | echo 'exec wmaker' | ||
+ | chmod +x ~/.xsession | ||
+ | |||
+ | # systemctl disable gdm.service | ||
+ | # systemctl enable xdm.service | ||
+ | |||
+ | # did work outofthebox for f16: ensure sound works properly for the user | ||
+ | # add desktopuser to these groups, vi / | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ===== NetworkManager permissions ===== | ||
+ | Traditionally I have permission problems. Usually this works: | ||
+ | < | ||
+ | wmdocker & # run docker, place to have nm-applet | ||
+ | xhost + | ||
+ | su - | ||
+ | export DISPLAY=127.0.0.1: | ||
+ | nm-applet | ||
+ | # now root can input passphrases, | ||
+ | # after this the user can also access the network. | ||
+ | </ | ||
+ | In the past this worked: | ||
+ | < | ||
+ | # Things have changes, this if no longer valid | ||
+ | # now fix permissions for my linuxuser ' | ||
+ | cat >/ | ||
+ | [nm-applet] | ||
+ | Identity=unix-user: | ||
+ | Action=org.freedesktop.NetworkManager.* | ||
+ | ResultAny=yes | ||
+ | ResultInactive=no | ||
+ | ResultActive=yes | ||
+ | EOT | ||
+ | </ | ||
+ | |||
+ | ===== rc.local specifics ===== | ||
+ | < | ||
+ | # configure to have / | ||
+ | # see also https:// | ||
+ | ln -s / | ||
+ | systemctl enable rc-local.service | ||
+ | systemctl start rc-local.service | ||
+ | </ | ||
+ | |||
+ | ===== Enable japanese input using ibus ===== | ||
+ | < | ||
+ | yum -y groupinstall ' | ||
+ | |||
+ | # now in users homedir craft appropriate .xsession file | ||
+ | su - chris | ||
+ | cat > | ||
+ | export TZ=' | ||
+ | |||
+ | pulseaudio --start | ||
+ | ibus-daemon --xim --daemonize | ||
+ | export IMSETTINGS_INTEGRATE_DESKTOP=yes | ||
+ | export IMSETTINGS_MODULE=ibus | ||
+ | export QT_IM_MODULE=ibus | ||
+ | export XMODIFIERS=@im=ibus | ||
+ | export GTK_IM_MODULE=ibus | ||
+ | exec wmaker | ||
+ | EOT | ||
+ | </ | ||
+ | |||
+ | ===== Setup xterm, xinput for scrolling ===== | ||
+ | < | ||
+ | yum -y install xorg-x11-fonts-misc.noarch xterm xterm \ | ||
+ | iso8859-2-misc-fonts.noarch ucs-miscfixed-fonts.noarch xorg-x11-fonts-misc.noarch | ||
+ | |||
+ | # having xterm pick up urls by mouse doubleclick | ||
+ | cat >> | ||
+ | ! Make it easier to grab URLs by double-clicking: | ||
+ | *.charClass: | ||
+ | ! XTerm*charClass: | ||
+ | ! Here is a good test url: | ||
+ | ! http:// | ||
+ | EOT | ||
+ | |||
+ | cd | ||
+ | ln -s .Xdefaults .Xresources | ||
+ | |||
+ | # install xinput to configure scrolling using thinkpad nipple + middle mousebutton | ||
+ | # yum whatprovides ' | ||
+ | yum -y install xorg-x11-apps | ||
+ | </ | ||
+ | |||
+ | ===== screenlocking ===== | ||
+ | < | ||
+ | # yum whatprovides ' | ||
+ | yum -y install xlockmore xautolock | ||
+ | |||
+ | vi ~/.xsession | ||
+ | # bevore wmaker is started run a line like this: | ||
+ | xautolock -locker 'xlock -mode blank' & | ||
+ | </ | ||
+ | |||
+ | ===== thinkpads: using the 2 keys next to cursor-keys ===== | ||
+ | * click the icon for ' | ||
+ | * for ' | ||
+ | * configure these keys to be used for ' | ||
+ | |||
+ | ===== start nm-applet by default ===== | ||
+ | This is not done from .xsession since windowmaker is not running at the time that file is executed. | ||
+ | < | ||
+ | # this runs docker (small empty places for applets on windowmaker) and then nm-applet | ||
+ | # which places itself in docker | ||
+ | cat >> | ||
+ | / | ||
+ | wmdocker & | ||
+ | wmdocker & | ||
+ | gkrellm & | ||
+ | nm-applet & | ||
+ | EOT | ||
+ | </ | ||
+ | |||
+ | ===== no sound on Fedora20 ===== | ||
+ | Without any apparent reason (no updates or changes I am awar of), no longer sound in any applications. Following commands fixed it: | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | DEVICE=' | ||
+ | ACTIVE_SINK=$(pacmd list-sinks | grep ' | ||
+ | if [ " | ||
+ | WHAT=analog-output | ||
+ | echo "[*] Enabling $WHAT on $DEVICE." | ||
+ | pacmd set-sink-port $DEVICE $WHAT > /dev/null | ||
+ | else | ||
+ | WHAT=analog-output-speaker | ||
+ | echo "[*] Enabling $WHAT on $DEVICE." | ||
+ | pacmd set-sink-port $DEVICE $WHAT > /dev/null | ||
+ | fi | ||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | Further workaround (thanks to https:// | ||
+ | < | ||
+ | amixer sset Master on | ||
+ | </ |