Sunday, October 25, 2009

Linux: X.org Kdrive Server on Debian 6.0 Squeeze

Kdrive is a minimal X11 server that runs as a single executable with little dependencies. I use Kdrive for my Web-only/Rescue Linux systems. Before compiling Kdrive, I installed the following packages on my box running Debian 6.0 Squeeze:
  • bison
  • g++-4.3
  • libexpat1-dev
  • libpciaccess-dev
  • libpixman-1-dev
  • libssl-dev
  • libxdamage-dev
  • libxfont-dev
  • libxi-dev
  • libxkbfile-dev
  • libxmu-dev
  • libxxf86vm-dev
  • make
  • x11proto-bigreqs-dev
  • x11proto-composite-dev
  • x11proto-render-dev
  • x11proto-resource-dev
  • x11proto-scrnsaver-dev
  • x11proto-video-dev
  • x11proto-xcmisc-dev
  • x11proto-xf86dga-dev
  • x11proto-xinerama-dev
  • xkb-data

Installing X Protocol Headers

  1. I installed xproto like this:
    tar xzf x11proto-core_7.0.22.orig.tar.gz
    cd xproto-7.0.15
    ./configure
    make install

Compiling Xfbdev

The following commands will get the job done:
tar xzf xorg-server_1.9.3.tar.bz2
cd xorg-server-1.9.3/
./configure --disable-xorg --enable-kdrive --enable-kdrive-evdev --enable-config-udev --disable-aiglx --disable-glx --disable-dri --disable-dri2 --with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb --with-xkb-bin-directory=/usr/bin --with-default-xkb-rules=xorg --with-default-xkb-model=pc105 --with-default-xkb-layout=us
make
make install

To Use Xfbdev

An executable file Xfbdev will be created in /usr/local/bin. To be able to use the Xfbdev server, framebuffer video must be enabled either in the kernel or as a module. If VESAFB feature was enabled in the kernel, you can use GRUB bootloader in the following way to boot Linux in a framebuffer video mode:
kernel (hd0,3)/boot/grub/vmlinuz-2.6.31.5 vga=0x314 video=vesafb:mtrr
initrd (hd0,3)/boot/grub/initrd.bin
Once framebuffer video has been enabled, Xfbdev can be started in the following way:
/usr/local/bin/Xfbdev :0 vt7 dpms -ac -br +bs -dpi 96 -mouse evdev,5,device=/dev/input/event2 -2button -keybd evdev,,device=/dev/input/event3 -fp /usr/local/share/fonts,/usr/share/fonts/X11/Type1,/usr/share/fonts/truetype/ttf-dejavu -nolisten TCP
Here is my recent Xfbdev build:

About This Blog

KBlog logo This blog seeks to provide useful information to people, based on the author's knowledge and experience. Thanks for visiting the blog and posting your comments.

© Contents by KBlog

© Blogger template by Emporium Digital 2008

Follow by Email

Total Pageviews