"I hate to wait so much time while ports compiling" or easy Xorg on Efika MX with FreeBSD

Hope you already done everything I wrote in Easy way to do it (try FreeBSD on Efika MX), and now many lazy guys will say “How to start Xorg here without any movements?” Short answer will be “I’m not a Wizard and I don’t have magic stick” :) But I really have few hints for you on how to done it easy and fast.

We need to install packages and Xorg.conf.

Script for packages

#!/bin/sh

export PACKAGESITE=http://people.freebsd.org/~ray/armv6-pkgng/
export ASSUME_ALWAYS_YES=yes

# Install pkgng
pkg
# Update repo (index of packages)
pkg update -f
# Install pre-dependency (dunno why that both ordered wrong, but )
pkg install freetype2 inputproto
# Install everything we need (not we, but need)
pkg install gmake intltool libXaw libXfont libdrm libfontenc libiconv \
    libpciaccess libpthread-stubs libxcb libxkbfile pixman twm xauth \
    xcb-proto xclock xf86-input-keyboard xf86-input-mouse \
    xf86-video-fbdev xf86-video-scfb xinit xorg-fonts xterm

Now run it

sh script_name.sh

Xorg.conf Location /etc/X11/xorg.conf

Section "Files"
EndSection

Section "Module"
    Load        "dbe"
    # We can't do that yet, so disable for now.
    Disable    "dri"
    Disable    "dri2"
    Disable    "glx"
    SubSection  "extmod"
        Option  "omit xfree86-dga"
    EndSubSection
EndSection

Section "ServerFlags"
    Option    "AIGLX"        "false"
    Option    "NoAccel"    "True"
    Option    "NoDRI"        "True"
    Option    "DRI"        "False"
    Option    "DRI2"        "False"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/sysmouse"
EndSection

Section "Monitor"
    Identifier  "Monitor"
    Mode "1024x600"
        DotClock        25.175
        HTimings        1024 1048 1148 1200
        VTimings        600 610 620 700
    EndMode
EndSection

Section "Device"
    Identifier  "Generic FB"
    Driver      "scfb"
    Option    "NoAccel"    "True"
EndSection

Section "Screen"
    Identifier  "Screen"
    Device      "Generic FB"
    Monitor     "Monitor"
    DefaultDepth 16
    SubSection "Display"
        Depth           16
        Modes           "1024x600"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "layout"
    Screen      0 "Screen" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Testing :) Now run:

startx

and you will have:

Best window manager - twm
Best X clock - xclock
and 3 best xterms

Standard startx set :)

Oleksandr Rybalko a.k.a. Ray
Oleksandr Rybalko a.k.a. Ray
SRE/DevOps/Engineer SW/HW

The man who love HW and SW. And know!