<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lioks&#039; &#187; Xorg</title>
	<atom:link href="http://lioks.buffout.org/?feed=rss2&#038;tag=xorg" rel="self" type="application/rss+xml" />
	<link>http://lioks.buffout.org</link>
	<description>FreeBSD tutorials &#38; tips for beginners</description>
	<lastBuildDate>Tue, 01 Dec 2009 14:58:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to have X at startup on FreeBSD using xdm</title>
		<link>http://lioks.buffout.org/?p=14</link>
		<comments>http://lioks.buffout.org/?p=14#comments</comments>
		<pubDate>Mon, 02 Nov 2009 10:09:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=14</guid>
		<description><![CDATA[This may be obvious for most Un*x users but this is a question I&#8217;m asked so frequently&#8230;
If you don&#8217;t have Xorg already installed, it may be a good idea to start by installing it:

# cd /usr/ports/x11/xorg &#038;&#038; make config-recursive install clean

The FreeBSD ports system will take care of building and installing needed dependencies, using the [...]]]></description>
			<content:encoded><![CDATA[<p>This may be obvious for most Un*x users but this is a question I&#8217;m asked so frequently&#8230;</p>
<p>If you don&#8217;t have <code>Xorg</code> already installed, it may be a good idea to start by installing it:<br />
<code><br />
# cd /usr/ports/x11/xorg &#038;&#038; make config-recursive install clean<br />
</code><br />
The FreeBSD ports system will take care of building and installing needed dependencies, using the <code>config-recursive</code> rule will ask the port system to bring you all the dependencies&#8217; config menu before starting any compilation operation.<br />
This should work smoothly but sometimes there is still a config menu that <code>config-recursive</code> did not find, so don&#8217;t be surprised if one pop up in the middle of the dependencies compilation.</p>
<p>Once X is built and installed, let&#8217;s try to auto-generate a <code>xorg.conf</code> file and start X with this brand new conf:<br />
<code><br />
# Xorg -configure<br />
# Xorg -config /root/xorg.conf.new<br />
</code><br />
If you can see that the X server is running, then move this working <code>xorg.conf</code> to his default place and give <code>startx</code> a try:<br />
<code><br />
# mkdir -p /etc/X11/<br />
# cp /root/xorg.conf.new /etc/X11/xorg.conf<br />
# startx<br />
</code><br />
You should have <code>twm</code> launched, a very basic window manager, for some reason on my machine my mouse and keyboard were disabled and I had to add this to my <code>xorg.xonf</code> to get them running properly:<br />
<code><br />
Section "ServerFlags"<br />
        Option "AllowEmptyInput" "false"<br />
EndSection<br />
</code></p>
<p>I personnaly dislike <code>twm</code> and I want to use <code>fluxbox</code> as my window manager:<br />
<code><br />
# cd /usr/ports/x11-wm/fluxbox &#038;&#038; make install clean<br />
# echo "exec startfluxbox" > ~/.xinitrc<br />
</code><br />
startx looks in the user&#8217;s home folder for this <code>.xinitrc</code> to know which window manager you want to use.<br />
Using <code>startx</code>, you should be now in the fluxbox window manager (good bye twm).</p>
<p>Your X server is up and running a nice window manager, but you want more !<br />
I&#8217;m a lazy guy and typing <code>startx&#038; ; exit</code> after each boot is too much for me, so let&#8217;s install <code>xdm</code>:<br />
<code><br />
# cd /usr/ports/x11/xdm/ &#038;&#038; make install clean<br />
</code><br />
Just like <code>startx</code>, <code>xdm</code> look for a file named <code>.xsession</code> in the user&#8217;s home directory to know which window manager you want to be launched after authentication:<br />
<code><br />
# echo "exec startfluxbox" > ~/.xsession<br />
</code><br />
This will add fluxbox for the root user, don&#8217;t forget to create one in each user&#8217;s home specifying the WM that user wants to use.</p>
<p>The last step is to activate the preconfigured tty in <code>/etc/ttys</code>.<br />
In this file you should see a line like this one:<br />
<code><br />
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off   secure<br />
</code><br />
Simply change it to look like this:<br />
<code><br />
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   on   secure<br />
</code><br />
And that&#8217;s it, reboot your computer and you should see a nice (?) X window prompting you for your login &#038; password and launching your favorite window manager once authenticated.</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=14</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
