CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

X11R7 ports for CRUX

Author:Tilman Sauerbeck


I have been running these X11R7 ports for nearly four months now, without any major problems. Still the migration might not go smoothly, so better allocate some hours of your time to it :) If anything goes wrong, feel free to contact me (IRC preferred).

Getting the ports

The X11R7 (aka xorg7) ports are available by rsync:

Get that file, put it in /etc/ports, and run ports -u xorg

Setting up prt-get

Installing the X11R7 ports manually isn't recommended, since you're probably going to install ~100 ports. I suggest to use prt-get instead. To do so, edit /etc/prt-get.conf and add prtdir /usr/ports/xorg at the top, before the first existing prtdir entry. That way, you'll tell prt-get to give the X11R7 ports a higher priority than the others. This is important because the X11R7 repository provides adjusted versions of ports that are also in opt for example.

Uncomment the line saying "runscripts yes", to make prt-get run the pre-install and post-install scripts.

Note: Omitting this step _will_ cause problems, so make sure you set up prt-get.conf correctly!

Removing X11R6

Having both X11R6 and X11R7 on the system doesn't make a whole lot of sense and will probably just cause confusion and errors. Therefore, run pkgrm x11 to get rid of X11R6 now. You can also remove the X11R6 entry from /etc/ now.

Installing the ports

To install the minimum ports you'll need to be able to successfully startx, run prt-get depinst xorg and go have a few cups of coffee. Installing X11R7 from a running X11R6 session should work, but it hasn't been tested yet.

This will only install the xorg-xf86-video-vesa video driver, so you'll want to install the video driver that's specific for your video hardware. Run ports -l|grep xorg-xf86-video- to get a list of available driver ports.

Chances are that you'll need xorg-xf86-video-nv (NVidia) or xorg-xf86-video-ati (ATI).

Adjusting xorg.conf

If you want to use your existing /etc/X11/xorg.conf, there are a couple of points to keep in mind. Whereas opt/x11 installs into /usr/X11R6, the X11R7 ports install into /usr directly, so if your xorg.conf references /usr/X11R6, you'll have to change those references to /usr.

If you specified the ModulePath in xorg.conf, it's recommended to remove it, chances are that the default will work just fine.

Installing cursor themes

Cursor themes are installed in /usr/share/icons with X11R7. Once placed in the right location, creating a default directory and index.theme inside it in the same location will allow the user to easily select the desired theme. For example:

[Icon Theme]

Installing Fonts

You'll probably want to install some nice fonts that X applications can make use of. Things like WindowMaker won't even start without certain fonts installed. To list the available fonts:

prt-get list | grep xorg-font-

You'll probably want to (at least) install the following:

$ prt-get listinst | grep xorg-font-

Note: Some applications use fontconfig and the default configuration of fontconfig does not source the correct directory where xorg fonts are installed to. Add the following line to your fonts.conf file in /etc/fonts/fonts.conf