version 1.1, 2011/11/20 20:28:27
|
version 1.2, 2012/02/05 07:14:36
|
Line 1
|
Line 1
|
**Contents**
|
**Contents** |
|
|
[[!toc levels=2]]
|
[[!toc levels=2]] |
|
|
# Introduction
|
# Introduction |
|
|
The purpose of this document is to guide the reader on how to install the modular Xorg.
|
The purpose of this document is to guide the reader on how to install the modular Xorg. |
|
|
# No X installed
|
# No X installed |
|
|
Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following:
|
Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following: |
|
|
## /etc/mk.conf
|
## /etc/mk.conf |
|
|
Edit your /etc/mk.conf and add the following line:
|
Edit your /etc/mk.conf and add the following line: |
|
|
X11_TYPE=modular
|
X11_TYPE=modular |
|
|
|
|
## Install xorg server
|
## Install xorg server |
|
|
Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type:
|
Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type: |
|
|
# cd /usr/pkgsrc/x11/modular-xorg-server
|
# cd /usr/pkgsrc/x11/modular-xorg-server |
# make install
|
# make install |
|
|
|
|
## Install xorg apps
|
## Install xorg apps |
|
|
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps
|
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps |
# make install
|
# make install |
|
|
|
|
## Install xorg fonts
|
## Install xorg fonts |
|
|
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts
|
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts |
# make install
|
# make install |
|
|
|
|
## Install xorg input device
|
## Install xorg input device |
|
|
# cd /usr/pkgsrc/x11/xf86-input-keyboard
|
# cd /usr/pkgsrc/x11/xf86-input-keyboard |
# make install
|
# make install |
|
|
|
|
And:
|
And: |
|
|
# cd /usr/pkgsrc/x11/xf86-input-mouse
|
# cd /usr/pkgsrc/x11/xf86-input-mouse |
# make install
|
# make install |
|
|
|
|
## Install xorg video driver
|
## Install xorg video driver |
|
|
In order to determine the appropriate driver for you, list the `/usr/pkgsrc/x11/xf86-video-*` files. For example, if you would need the nvidia driver, search for it:
|
In order to determine the appropriate driver for you, list the `/usr/pkgsrc/x11/xf86-video-*` files. For example, if you would need the nvidia driver, search for it: |
|
|
# ls -ld xf86-video-* | grep nv
|
# ls -ld xf86-video-* | grep nv |
# drwxr-r-x 4 root wheel 512 Aug 26 16:17 xf86-video-nv
|
# drwxr-r-x 4 root wheel 512 Aug 26 16:17 xf86-video-nv |
|
|
|
|
and then install it:
|
and then install it: |
|
|
# cd /usr/pkgsrc/x11/xf86-video-nv
|
# cd /usr/pkgsrc/x11/xf86-video-nv |
# make install
|
# make install |
|
|
|
|
## Configure Xorg
|
## Configure Xorg |
|
|
Run as root the xorgconfig(1) utility to create an xorg.conf file. Or use command:
|
Run as root the xorgconfig(1) utility to create an xorg.conf file. Or use command: |
|
|
# X -configure
|
# X -configure |
|
|
|
|
This will create /root/xorg.conf.new, which should be copied to /etc/X11/xorg.conf and possibly edited.
|
This will create /root/xorg.conf.new, which should be copied to /etc/X11/xorg.conf and possibly edited. |
|
|