Diff for /wikisrc/pkgsrc/how_to_install_modular_xorg.mdwn between versions 1.1 and 1.5

version 1.1, 2011/11/20 20:28:27 version 1.5, 2019/05/12 18:27:09
Line 1 Line 1
 **Contents**  **Contents**
   
 [[!toc levels=2]]  [[!toc levels=2]]
   
 #  Introduction  #  No X installed
   
 The purpose of this document is to guide the reader on how to install the modular Xorg.  Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following: 
   
 #  No X installed  ##  /etc/mk.conf
   
 Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following:  Edit your /etc/mk.conf and add the following line: 
       
 ##  /etc/mk.conf      X11_TYPE=modular
       
 Edit your /etc/mk.conf and add the following line:  
      ##  Install xorg
     X11_TYPE=modular  
      Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type: 
       
 ##  Install xorg server      # cd /usr/pkgsrc/meta-pkgs/modular-xorg
       # make install
 Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type:      
      
     # cd /usr/pkgsrc/x11/modular-xorg-server  ##  Configure Xorg
     # make install  
      Usually no configuration is necessary. To start X you use:
   
 ##  Install xorg apps      $ startx
      
     # cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps  ## Additional configuration
     # make install  
      Additional adjustments can be made in ~/.xinitrc and ~/.Xresources.
   For example, you may want to use a different terminal emulator font, such as pkgsrc/fonts/overpass.
 ##  Install xorg fonts  
      ## ~/.Xresources
     # cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts  
     # make install  To do so, we can add this line to ~/.Xresources:
      
       *font: xft:overpass mono:size=12
 ##  Install xorg input device  
      For this to take effect, we must do merge it into the database.
     # cd /usr/pkgsrc/x11/xf86-input-keyboard  
     # make install      $ xrdb -merge ~/.Xresources
      
   To do this at every X startup, we can add it to ~/.xinitrc.
 And:  
      <!-- XXX refer to further documentation on .xinitrc -->
     # cd /usr/pkgsrc/x11/xf86-input-mouse  
     # make install  ## ~/.xinitrc
      
   An example ~/.xinitrc to run a window manager and configure keyboard layout:
 ##  Install xorg video driver  
       xrdb merge ~/.Xresources                                            # respect ~/.Xresources configuration
 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:  
          setxkbmap -option grp:alt_shift_toggle us,il        # two keyboard options, US keyboard and IL,
     # ls -ld xf86-video-* | grep nv                                                                                  # with alt+shift as a toggle option
     # drwxr-r-x  4 root wheel  512 Aug 26 16:17 xf86-video-nv      
          openbox                                                                     # run your favourite window manager.
   
 and then install it:  
      
     # cd /usr/pkgsrc/x11/xf86-video-nv  
     # make install  
      
   
 ##  Configure Xorg  
   
 Run as root the xorgconfig(1) utility to create an xorg.conf file. Or use command:  
      
     # X -configure  
      
   
 This will create /root/xorg.conf.new, which should be copied to /etc/X11/xorg.conf and possibly edited.  
   

Removed from v.1.1  
changed lines
  Added in v.1.5


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