Configuring X in FreeBSD.
April 13th, 2006With normal configuratiom it will not work mostly. Below are the steps for configuring X in Freebsd
1 ) Become root and execute the below commands according to the presence of Xorg or XFree86 both are present. Xorg is the default one I suppose. First of all I giving the correct things or commands which are to be executed normally. And towards the end of the mail I will be giving you a recommended method for successfully doing the X configuration with 100 % sucess result.
For Xorg
—————
# Xorg -configure Configuring
# Xorg -config xorg.conf.new Testing the configuration ( If a black and grey grid and an X mouse cursor appear, the configuration was successful. To exit the test, just press Ctrl+Alt+Backspace simultaneously. )
# cp xorg.conf.new /etc/X11/xorg.conf
# startx & or xdm &
For XFree86
——————–
# XFree86 -configure
# XFree86 -xf86config XF86Config.new Testing the configuration ( If a black and grey grid and an X mouse cursor appear, the configuration was successful. To exit the test, just press Ctrl+Alt+Backspace simultaneously. )
# cp XF86Config.new /etc/X11/XF86Config
# startx & or xdm &
These are the basic configurations. In both case you may have to update the setting of the particular configuration file. Most of the details which you need to update would be related to the horizotal and vertical sync of the monitor.
Hope this helps in successfully configuring X on your freebsd machine.
More Reference
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
Recommended
————————–
# xorgcfg -textmode (exclusive text mode) or # xorgcfg ( Graphical Mode ) — > try the graphical mode first, it may hang at times. in that case use the textmode.
# xf86cfg
Here also you need to have a good idea about the h/w. You can get some details from boot log by using the below command
# dmesg
Also you can check the details with the below command
# less /var/log/dmesg ( This is a better command )
Hope these helps.







Tech Blog