File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / how_to_install_modular_xorg.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Sun May 12 18:25:40 2019 UTC (2 years, 6 months ago) by maya
Branches: MAIN
CVS tags: HEAD
Try to guess whitespace better

    1: **Contents**
    2: 
    3: [[!toc levels=2]]
    4: 
    5: #  No X installed
    6: 
    7: Assuming you have just made a clean install of NetBSD and you have not installed the X11 sets, you should do the following: 
    8: 
    9: ##  /etc/mk.conf
   10: 
   11: Edit your /etc/mk.conf and add the following line: 
   12:     
   13:     X11_TYPE=modular
   14:     
   15: 
   16: ##  Install xorg
   17: 
   18: Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type: 
   19:     
   20:     # cd /usr/pkgsrc/meta-pkgs/modular-xorg
   21:     # make install
   22:     
   23: 
   24: ##  Configure Xorg
   25: 
   26: Usually no configuration is necessary. To start X you use:
   27: 
   28:     $ startx
   29: 
   30: ## Additional configuration
   31: 
   32: Additional adjustments can be made in ~/.xinitrc and ~/.Xresources.
   33: For example, you may want to use a different terminal emulator font, such as pkgsrc/fonts/overpass.
   34: 
   35: ## ~/.Xresources
   36: 
   37: To do so, we can add this line to ~/.Xresources:
   38: 
   39:     *font: xft:overpass mono:size=12
   40: 
   41: For this to take effect, we must do merge it into the database.
   42: 
   43:     $ xrdb -merge ~/.Xresources
   44: 
   45: To do this at every X startup, we can add it to ~/.xinitrc.
   46: 
   47: <!-- XXX refer to further documentation on .xinitrc -->
   48: 
   49: ## ~/.xinitrc
   50: 
   51: An example ~/.xinitrc to run a window manager and configure keyboard layout:
   52: 
   53:     xrdb merge ~/.Xresources						# respect ~/.Xresources configuration
   54: 
   55:     setxkbmap -option grp:alt_shift_toggle us,il	# two keyboard options, US keyboard and IL,
   56:     									# with alt+shift as a toggle option
   57:     
   58:     openbox								# run your favourite window manager.
   59: 
   60: 

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