HOWTO: xorg/x11 without hald/dbus and with CTRL-ALT-BACKSPACE working
来源:互联网 发布:怎么在淘宝买日本片 编辑:程序博客网 时间:2024/05/22 16:54
http://forums.freebsd.org/showthread.php?t=7956
There were many questions regarding the oldschool xorg/x11 setup without hald/dbus and with old usefull terminate method by ctrl-alt-backspace, here is a short howto how to achieve this.
1. Install FreeBSD along with x11/xorg or add it by package.
1. Install OpenBSD along with xenocara/x11.
2. Basic client configuration.
ADDED 2009/11/16
----------------
If you would like to disable CAPS LOCK key, then you should make the folllowing change in the xorg.conf file:
If you would like to also set other then default keyboard layout, then add this to xorg.conf file:
1. Install FreeBSD along with x11/xorg or add it by package.
root # pkg_add -r xorg1.1. Enable and start moused(8) daemon if you already do not have it running.
root # echo moused_enable=/"YES/" >> /etc/rc.conf2. Generate new config.
root # /etc/rc.d/moused start
root # X -configure3. Move config to its proper place.
root # mv /root/xorg.conf.new /usr/local/etc/X11/xorg.conf4. Add needed options to config in sections ServerFlags and InputDevice.
root # vi /usr/local/etc/X11/xorg.conf5. Basic client configuration.Code:Section "ServerFlags" (...) Option "DontZap" "off" Option "AllowEmptyInput" "off" Option "AutoAddDevices" "off"EndSectionSection "InputDevice" (...) Option "XkbOptions" "terminate:ctrl_alt_bksp"EndSection
The following options are needed to have working x11 without hald/dbus:Code:Section "ServerFlags" (...) Option "AllowEmptyInput" "off" Option "AutoAddDevices" "off"EndSection
... and following for "three kings" or CTRL-ALT-BACKSPACE terminate keyboard shrtcut:Code:Section "ServerFlags" (...) Option "DontZap" "off"EndSectionSection "InputDevice" (...) Option "XkbOptions" "terminate:ctrl_alt_bksp"EndSection
user % cat > ${HOME}/.xinitrc << EOF6. Start x11/xorg.
xterm &
twm
EOF
user % xinit -- -dpi 75Example full xorg.conf config:
For comparision, for OpenBSD its like that:Code:Section "ServerFlags" Option "DontZap" "off" Option "AllowEmptyInput" "off" Option "AutoAddDevices" "off"EndSectionSection "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbOptions" "terminate:ctrl_alt_bksp"EndSectionSection "ServerLayout" Identifier "xorg0" Screen 0 "screen0" 0 0 InputDevice "mouse0" "CorePointer" InputDevice "keyboard0" "CoreKeyboard"EndSectionSection "Module" Load "dbe" Load "dri" Load "extmod" Load "glx"EndSectionSection "InputDevice" Identifier "mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7"EndSectionSection "Monitor" Identifier "monitor0" Option "DPMS"EndSectionSection "Device" Identifier "gfx0" Driver "intel" Option "DPMS"EndSectionSection "Screen" Identifier "screen0" Device "gfx0" Monitor "monitor0" SubSection "Display" Modes "1440x900" EndSubSectionEndSectionSection "Files" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/"EndSection
1. Install OpenBSD along with xenocara/x11.
2. Basic client configuration.
user % cat > ${HOME}/.xinitrc << EOF3. Start x11/xorg.
xterm &
twm
EOF
user % xinit -- -dpi 75
ADDED 2009/11/16
----------------
If you would like to disable CAPS LOCK key, then you should make the folllowing change in the xorg.conf file:
Code:
Section "InputDevice" Identifier "Keyboard0" Driver "kbd"- Option "XkbOptions" "terminate:ctrl_alt_bksp"+ Option "XkbOptions" "terminate:ctrl_alt_bksp,ctrl:nocaps" EndSection
Code:
Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbOptions" "terminate:ctrl_alt_bksp"+ Option "XkbLayout" "pl"EndSection
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds
- HOWTO: xorg/x11 without hald/dbus and with CTRL-ALT-BACKSPACE working
- HOWTO: xorg/x11 without hald/dbus and with CTRL-ALT-BACKSPACE working
- HOWTO: xorg/x11 without hald/dbus and with CTRL-ALT-BACKSPACE working
- Ubuntu 9.04 启用 Ctrl+Alt+Backspace
- X window的CTRL+ALT+BACKSPACE无效
- ubuntu 中使ctrl +alt + backspace 退出图形界面
- Ubuntu 中启用 Ctrl + Alt + BackSpace 及死机处理
- Disable Keyboard Shortcuts and Combination Keys with C# (3): Disable Ctrl + Alt + Del
- xorg-x11-drv-vmware
- Ubuntu 下 Swap left ctrl and alt
- openstack DBusException:Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
- Working with Fun and Interests
- Working with promise and generators
- 在ubuntu9.10(karmic koala)中重新启用Ctrl-Alt-Backspace来重启X系统
- DCE HOWTO linux netlink working with routing table
- X11,xorg.conf配置详解
- X11,xorg.conf配置详解
- X11,xorg.conf配置详解
- sqlplus得到执行计划的统计信息
- rolePermissionService.java ( 编号:20110622A1610 )
- c/c++解析字符串-加引号
- 让你终身受益的小故事
- 仿android桌面左右滑动
- HOWTO: xorg/x11 without hald/dbus and with CTRL-ALT-BACKSPACE working
- 变量 转发
- 谁欠谁的幸福(高考满分作文)
- Building Indexes Concurrently
- activity-alias的使用
- btree
- java NIO处理大对象传输的例子
- query graph
- index