startx Ö»ÊÇxinitµÄÒ»¸öÇ°¶Ë¹¤¾ß£¬ËüËù×öµÄÖ»ÊÇÉèÖúÃһЩ±äÁ¿£¬×ÊÔ´¡£È»ºóÔÙÓÃxinit Æô¶¯X window.
xinitµÄÃüÁî¸ñʽ£º
xinit [ [client] clientargs] [-- [server] [display] serverargs]
startxËù×öµÄ¹¤×÷:
Ò».»ñÈ¡ÃüÁîÐвÎÊý
1.client¶Î
clientargs:
ÍêÈ«´ÓÃüÁîÐÐÖлñÈ¡£¬ÎÞĬÈÏÖµ
client:
Èç¹ûûÓÐÖ¸¶¨£¬µ«ÊÇÒѾָ¶¨clientargs,ÔòʹÓÃ/usr/X11R6/bin/xterm
Èç¹ûûÓÐÖ¸¶¨£¬ÇÒûÓÐÖ¸¶¨clientargs,ÔòʹÓÃ./defaultclientargs,¼´°´ÒÔÏÂ˳ÐòÈ¡Öµ£º
$HOME/.xinitrc -> /usr/X11R6/lib/X11/xinit/xinitrc
/usr/X11R6/lib/X11/xinit/xinitrcÆäʵ¾ÍÊÇÖ´ÐÐ/etc/X11/XsessionsÕâ¸ö½Å±¾
¶ø/etc/X11/XsessionÓÖ»á¼ì²é$HOME/.xsession,Èç¹û´æÔÚÔò°ÑËü×÷Ϊclient.
ËùÒÔÈç¹û$HOME/.xinitrc²»´æÔÚʱ£¬Ëü¿ÉÒÔʹÓÃ$HOME/.xsession;¶øµ±$HOME/.xinitrc´æÔÚ
ʱ£¬Ëü²¢²»»áʹÓÃ$HOME/.xsession
2.server¶Î
¸úclientÀàËÆ
Ôö¼ÓÒ»¸ödisplayµÄÉèÖã¬Ä¬ÈÏΪ":0"
¶þ.ÉèÖñêÖ¾ÈÏÖ¤
Èý.ͨ¹ýxinitÆô¶¯X
ËÄ.¹Ø±ÕXʱ£¬½øÐÐһЩÊÕβ¹¤×÷¡£
¶ÔxinitÀ´Ëµ£¬Èç¹ûûÓÐÖ¸¶¨client£¬ÔòʹÓÃ$HOME/.xinitrc£¬Èç¹ûÕâ¸öÒ²²»´æÔÚÔòʹÓÃxterm£»Èç¹ûûÓÐÖ¸¶¨server,ÔòʹÓÃ$HOME/.xserverc,Èç¹ûÕâÕâ¸ö²»´æÔڵĻ°ÔòʹÓÃX :0¡£
ËùÒÔµ±ÓÉstartxÆô¶¯Xʱ
clientµÄ˳ÐòÊÇ: ÃüÁîÐÐ -> $HOME/.xinitrc -> $HOME/.xsession -> /usr/X11R6/lib/X11/xinit/xinitrc
serverµÄ˳ÐòÊÇ: ÃüÁîÐÐ -> $HOME/.xserverrc -> /usr/X11R6/lib/X11/xinit/xserverrc
ÒÔÉÏ"->"±íʾ£ºµ±Ç°Ò»¸ö²»´æÔÚʱ£¬ÔòÈ¡ÏÂÃæÒ»¸ö£¬Ö±µ½´æÔÚ¡£