File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / how_to_install_modular_xorg.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (9 years, 10 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: **Contents**
    2: 
    3: [[!toc levels=2]]
    4: 
    5: #  Introduction
    6: 
    7: The purpose of this document is to guide the reader on how to install the modular Xorg. 
    8: 
    9: #  No X installed
   10: 
   11: Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following: 
   12: 
   13: ##  /etc/mk.conf
   14: 
   15: Edit your /etc/mk.conf and add the following line: 
   16:     
   17:     X11_TYPE=modular
   18:     
   19: 
   20: ##  Install xorg server
   21: 
   22: Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type: 
   23:     
   24:     # cd /usr/pkgsrc/x11/modular-xorg-server
   25:     # make install
   26:     
   27: 
   28: ##  Install xorg apps
   29:     
   30:     # cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps
   31:     # make install
   32:     
   33: 
   34: ##  Install xorg fonts
   35:     
   36:     # cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts
   37:     # make install
   38:     
   39: 
   40: ##  Install xorg input device
   41:     
   42:     # cd /usr/pkgsrc/x11/xf86-input-keyboard
   43:     # make install
   44:     
   45: 
   46: And: 
   47:     
   48:     # cd /usr/pkgsrc/x11/xf86-input-mouse
   49:     # make install
   50:     
   51: 
   52: ##  Install xorg video driver
   53: 
   54: 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: 
   55:     
   56:     # ls -ld xf86-video-* | grep nv
   57:     # drwxr-r-x  4 root wheel  512 Aug 26 16:17 xf86-video-nv
   58:     
   59: 
   60: and then install it: 
   61:     
   62:     # cd /usr/pkgsrc/x11/xf86-video-nv
   63:     # make install
   64:     
   65: 
   66: ##  Configure Xorg
   67: 
   68: Run as root the xorgconfig(1) utility to create an xorg.conf file. Or use command: 
   69:     
   70:     # X -configure
   71:     
   72: 
   73: This will create /root/xorg.conf.new, which should be copied to /etc/X11/xorg.conf and possibly edited. 
   74: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb