Annotation of wikisrc/pkgsrc/how_to_install_modular_xorg.mdwn, revision 1.3
1.2 schmonz 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:
1.3 ! maya 16: ## Install xorg
1.2 schmonz 17:
18: Provided that your pkgsrc tree lies in `/usr/pkgsrc`, type:
19:
1.3 ! maya 20: # cd /usr/pkgsrc/meta-pkgs/modular-xorg
1.2 schmonz 21: # make install
22:
23:
1.3 ! maya 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
1.2 schmonz 40:
1.3 ! maya 41: For this to take effect, we must do merge it into the database.
1.2 schmonz 42:
1.3 ! maya 43: $ xrdb -merge ~/.Xresources
1.2 schmonz 44:
1.3 ! maya 45: To do this at every X startup, we can add it to ~/.xinitrc.
1.2 schmonz 46:
1.3 ! maya 47: <!-- XXX refer to further documentation on .xinitrc -->
1.2 schmonz 48:
1.3 ! maya 49: ## ~/.xinitrc
1.2 schmonz 50:
1.3 ! maya 51: An example ~/.xinitrc to run a window manager and configure keyboard layout:
1.2 schmonz 52:
1.3 ! maya 53: xrdb merge ~/.Xresources # respect ~/.Xresources configuration
1.2 schmonz 54:
1.3 ! maya 55: setxkbmap -option grp:alt_shift_toggle us,il # two keyboard options, US keyboard and IL,
! 56: # with alt+shift as a toggle option
1.2 schmonz 57:
1.3 ! maya 58: openbox # run your favourite window manager.
1.2 schmonz 59:
60:
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb