<?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;</title>
	<atom:link href="http://lioks.buffout.org/?feed=rss2" 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>FreeBSD as a Host for Windows XP using VirtualBox</title>
		<link>http://lioks.buffout.org/?p=71</link>
		<comments>http://lioks.buffout.org/?p=71#comments</comments>
		<pubDate>Tue, 01 Dec 2009 14:56:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=71</guid>
		<description><![CDATA[Although I mostly use FreeBSD to perform many tasks, it can also be useful to have access to Windows binaries. Multiple choices are available: emulation, dual booting and virtualization. I personally dislike wine since it is not capable to run every binaries and even the ones he can emulate sometimes need hard tweaking to get [...]]]></description>
			<content:encoded><![CDATA[<p>Although I mostly use FreeBSD to perform many tasks, it can also be useful to have access to Windows binaries. Multiple choices are available: emulation, dual booting and virtualization. I personally dislike <strong>wine</strong> since it is not capable to run every binaries and even the ones he can emulate sometimes need hard tweaking to get them work correctly. Dual booting is not an option for me because I want to be able to run simultaneously FreeBSD and Windows binary. For those reasons I prefer to use <strong>VirtualBox</strong> to get a full Windows operating system, it may seem like a waste of ressources but by now, virtualization is easily supported by most of the modern computers.<br />
I already see people ready to burn me with reflexion like &#8220;Don&#8217;t be stupid, there is an open source solution for what you need !&#8221;, that&#8217;s mostly true but there are many reasons to want to use a particular closed source software including compatibility issues or company restriction to some software and this debate is not the point of this post. :P</p>
<p>As usual we start with the compilation of the port, don&#8217;t forget to activate the &#8220;Enable Guest Additions&#8221; on the config screen, we will use this later:<br />
<code><br />
# cd /usr/ports/emulators/virtualbox &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>To be able to use <code>VirtualBox</code>, we need to do some settings to our system, starting by loading a kernel module:<br />
<code><br />
# kldload vboxdrv<br />
</code></p>
<p>It will be ok if you want to use <code>VirtualBox</code> once, but I assume you want to use it regularly, so get the module loaded at boot by adding this line to /boot/loader.conf:<br />
<code><br />
vboxdrv_load="YES"<br />
</code></p>
<p><code>VirtualBox</code> will also need to have the proc filesystem mounted.<br />
Edit /etc/fstab:<br />
<code><br />
proc   /proc   procfs  rw  0   0<br />
</code><br />
and mount this new entry:<br />
<code><br />
# mount /proc<br />
</code></p>
<p>Last step is to add yourself and the users you want to be able to use <code>VirtualBox</code> to the <code>vboxusers</code> group:<br />
<code><br />
# pw groupmod vboxusers -m lioks<br />
</code></p>
<p>We are now ready to use <code>VirtualBox</code>:<br />
<code><br />
% VirtualBox<br />
</code></p>
<p>Now create a new virtual machine, specifying the type of the OS you are about to install (i.e. Windows XP).<br />
Set the memory size you want it to have, and create a new virtual hard drive.<br />
I chose &#8220;Dynamically expanding storage&#8221; as my hard drive type, it allows the virtual drive to expand on the real hard drive as you need more space in your virtual machine. The maximum size you set for the disk will be used by the guest OS to determine the virtual size of this disk.</p>
<p>You should by now have a new machine available on the side menu of <code>VirtualBox</code>, right-click on it and go to the settings menu. In the CDROM/DVDROM option you can attach to this machine a cd/dvd drive or an iso file.<br />
I&#8217;ll skip the Windows installation steps since there is almost no human intervention needed :P</p>
<p>Once your fresh Windows Xp is up and running in your box, click on the <code>Devices</code> menu and select <code>Install Guest Additions</code>.<br />
Follow the instructions (Windows-style :p) and reboot your virtual machine.<br />
These additions will provide you with video drivers which allow you to have a real resolution, full-screen mode, the possibility to integrate windows from your guest OS in your host OS and a smooth focus switching.</p>
<p>You also can set up access to directories in your host OS using the Devices->Shared Folders menu, they will appear in your guest Windows Xp as network folders.</p>
<p>That&#8217;s it, now you should not have any problem installing and using softwares like <strong>Office</strong> or <strong>VisualStudio</strong>, I did not have to configure anything to get network work properly, it was working just fine the first time I launched my new virtual machine :)</p>
<p>You can even launch your virtual machine without using the <code>VirtualBox</code> interface:<br />
<code><br />
% VBoxManage startvm "vm name here"<br />
</code></p>
<p>I had a bunch of screenshots for this tutorial but I can&#8217;t manage to find where i put them, so I hope you will find what you need without visual support ;)<br />
(I will upload them if I ever find them again&#8230;)<br />
See you.</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=71</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Firefox plugins in FreeBSD (and yes, even flash and java are working)</title>
		<link>http://lioks.buffout.org/?p=39</link>
		<comments>http://lioks.buffout.org/?p=39#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=39</guid>
		<description><![CDATA[I often hear from people who don&#8217;t use FreeBSD that it&#8217;s an operating system only dedicated to server/production purposes.
In a way, yes, FreeBSD is not as user-friendly than popular Linux distributions and it&#8217;s sometimes hard to get what you want working the way you want but I don&#8217;t think that people who use FreeBSD would [...]]]></description>
			<content:encoded><![CDATA[<p>I often hear from people who don&#8217;t use FreeBSD that it&#8217;s an operating system only dedicated to server/production purposes.<br />
In a way, yes, FreeBSD is not as user-friendly than popular Linux distributions and it&#8217;s sometimes hard to get what you want working the way you want but I don&#8217;t think that people who use FreeBSD would be satisfied with an <code>apt-get everything_you_need-any-version</code> ;)<br />
Computers are now expected to browse the web correctly, allowing you to watch youtube video, play flash games and be flooded by plugin-based ads..<br />
Of course, FreeBSD can!</p>
<p>You must have Mozilla Firefox installed:<br />
<code><br />
# cd /usr/ports/www/firefox35 &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>Since some of the plugins are using linux emulation, we have to install it and get it running ;<br />
<code><br />
# cd /usr/ports/emulators/linux_base-f10/ &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>If you don&#8217;t have the linux kernel module loaded, <code>linux_base-f10</code> won&#8217;t build:<br />
<code><br />
# kldload linux<br />
</code></p>
<p>You also have to get it loaded every time you start your computer by adding this line to <code>/etc/rc.conf</code>:<br />
<code><br />
linux_enable="YES"<br />
</code></p>
<p>Since we will need it later, let&#8217;s mount the linux proc filesystem at boot time.<br />
Add this line to <code>/etc/fstab</code>:<br />
<code><br />
linproc         /usr/compat/linux/proc  linprocfs               rw      0       0<br />
</code><br />
Reboot is not needed to mount the linux proc filesystem:<br />
<code><br />
# mount /usr/compat/linux/proc<br />
</code></p>
<p>Second step is to install <code>nspluginwrapper</code>, a tool that helps you link plugins to your current browser (i.e. firefox):<br />
<code><br />
# cd /usr/ports/www/nspluginwrapper &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>Ok let&#8217;s start with <code><strong>Flash</strong> Player 9</code>, I also have tested flash 10 and it was working for me but I prefer flash 9 for some retro-compatibility issues.<br />
First we have to install it from the ports:<br />
<code><br />
# cd /usr/ports/www/linux-flashplugin9 &#038;&#038; make install clean<br />
</code></p>
<p>I have <strong>Mplayer</strong> already installed with a large bunch of options activated (i&#8217;ll maybe cover it in a future post), that&#8217;s why I want to install <code>mplayer</code> plugin.<br />
Although most of the videos on Internet are in flv (flash) format, there are still some exotic format videos and mplayer will play them:<br />
<code><br />
# /usr/ports/www/mplayer-plugin &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>If you don&#8217;t want to be asked to download each time you open a link to a pdf, linux emulation of <strong>Adobe Reader</strong> support a plugin which allows embedded view of pdf files in firefox.<br />
For some reason I was unable to get <code>acroread9</code> working with firefox, so let&#8217;s install <code>acroread8</code><br />
<code><br />
# /usr/ports/print/acroread8 &#038;&#038; make install clean<br />
</code></p>
<p><code>librsvg</code> is an open source <strong>SVG</strong> rendering library which (probably) provides to Firefox a better handling of SVG graphics but I cover this plugin&#8217;s installation only because I like to read the funny description in <code>about:plugins</code> ;)<br />
<code><br />
# cd /usr/ports/graphics/librsvg2 &#038;&#038; make config-recursive install clean<br />
</code></p>
<p><strong>Java</strong> plugin can also be useful but compilation of this port is long and painful.<br />
<code><br />
# /usr/ports/java/jdk16 &#038;&#038; make config-recursive install clean<br />
</code><br />
As you can see, the FreeBSD port system don&#8217;t fetch neither build this port !<br />
Due to license restriction, you will have to fetch manually almost every needed file, and even create an account on Sun website to be able to get them all. :P<br />
Here is the list of the files I had do download manually and move to <code>/urs/ports/distfiles/</code>:<br />
<code><br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar<br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar<br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar<br />
http://www.FreeBSDFoundation.org/cgi-bin/download?download=diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2<br />
</code><br />
from <code>http://java.sun.com/javase/downloads/index.jsp</code>:<br />
<code><br />
tzupdater-1_3_18-2009k.zip<br />
</code><br />
from <code>http://www.eyesbeyond.com/freebsddom/java/jdk16.html</code>:<br />
<code><br />
bsd-jdk16-patches-4.tar.bz2<br />
</code></p>
<p><code>nspluginwrapper</code> will now link all the plugins it finds with your user&#8217;s specific firefox plugin folder, so you have to use it with each user your want to be able to access new plugins:<br />
<code><br />
% nspluginwrapper -v -a -i<br />
% nspluginwrapper -i /usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Browser/intellinux/nppdf.so<br />
</code><br />
The second line is needed because <code>nspluginwrapper</code> didn&#8217;t find Adobe Reader plugin.</p>
<p>Unfortunately, <code>nspluginwrapper</code> was unable to link the Java plugin so I created a symlink:<br />
<code><br />
% ln -s /usr/local/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/<br />
</code></p>
<p>(Re-)start <code>firefox3</code> and you should be able to list all those plugins by giving <code>about:plugins</code> in the navigation bar.</p>
<p>Oh, I almost forgot it but I encountered a strange problem using <code>libflashplayer.so</code>, Flash wasn&#8217;t working properly (no sound on some machines and no Flash at all for some others) and by checking the needed dependencies with Linux <code>ldd</code> I noticed that Flash library is unable to find <code>libssl.so.5</code>.<br />
By checking in <code>/usr/compat/linux/lib/</code>, <code>libssl.so.0.9.8g</code> is present though and symlinking it as <code>libssl.so.5</code> just don&#8217;t work. :P<br />
In desperation I copied it:<br />
<code><br />
# cp /usr/compat/linux/lib/libssl.so.0.9.8g /usr/compat/linux/lib/libssl.so.5<br />
</code><br />
And it works! Another mystery of Linux compatibily, I guess&#8230; ;)</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Mounting usb drives / iso images in FreeBSD without root privileges</title>
		<link>http://lioks.buffout.org/?p=24</link>
		<comments>http://lioks.buffout.org/?p=24#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:01:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Tips & tricks]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=24</guid>
		<description><![CDATA[Mounting usb devices is a common task and many system take care of it without user&#8217;s intervention.
Under FreeBSD you can use hald (Hardware Abstraction Layer daemon) which use D-Bus objects for each device and mount your usb devices automatically, but you can also do it directly with the mount command.
Connect your device and take a [...]]]></description>
			<content:encoded><![CDATA[<p>Mounting usb devices is a common task and many system take care of it without user&#8217;s intervention.<br />
Under FreeBSD you can use hald (Hardware Abstraction Layer daemon) which use D-Bus objects for each device and mount your usb devices automatically, but you can also do it directly with the <code>mount</code> command.</p>
<p>Connect your device and take a look to the 10 last lines of your system console:<br />
<code><br />
% dmesg | tail -n 10<br />
</code></p>
<p>You should see something like that:<br />
<code><br />
da0 at umass-sim0 bus 0 target 0 lun 0<br />
da0: <JetFlash TS8GJFV10 8.07> Removable Direct Access SCSI-2 device<br />
da0: 40.000MB/s transfers<br />
da0: 7799MB (15974398 512 byte sectors: 255H 63S/T 994C)<br />
</code></p>
<p>Name of the device node and label may vary but we can see here that an usb device named <code>JetFlash TS8GJFV10 8.07</code> is connected to my machine and referenced as <code>da0</code>.<br />
Next step is to mount the first partition (slice) on the device to your filesystem (i.e. a directory):<br />
<code><br />
# mount -t msdosfs /dev/da0s1 /mnt<br />
</code></p>
<p>The -t option specifies the type of the filesystem to mount, for a FAT flash drive use <code>msdosfs</code>, for a NTFS hard drive you have to specify <code>ntfs</code> and so on. For more informations about exotic filesystems, you should take a look at the mount(8) manpage.<br />
The data on your drive can now be accessed in your filesystem through <code>/mnt</code>.</p>
<p>Reverting the process is quite easy:<br />
<code><br />
# umount /mnt<br />
</code></p>
<p>Mounting iso files can be a bit more tricky, you have to create a  virtual device attached to an iso image and mount it using the <code>mount</code> command:<br />
<code><br />
# mdconfig -a -t vnode -f ~/file.iso -u 1<br />
# mount -t cd9660 /dev/md1 /mnt<br />
</code><br />
The first line creates a device node linked to <code>~/file.iso</code> in <code>/dev</code> named <code>md1</code>.<br />
The second line is a classic mount command specifying a cd9660 filesystem, the filesystem used by cdrom/dvdrom drives.</p>
<p>When you finished using your iso file, you can unmount the device, but don&#8217;t forget to destroy the virtual device:<br />
<code><br />
# umount /mnt<br />
# mdconfig -d -u 1<br />
</code></p>
<p>Ok, now you can mount usb drives or iso images but you have to perform the mount operation as root using <code>su</code> or <code>sudo</code>.<br />
It can be useful to create a group of users able to mount usb and virtual devices:<br />
<code><br />
# pw groupadd mounters<br />
</code></p>
<p>You can now add the users you want to be able to mount to this group:<br />
<code><br />
# pw groupmod mounters -m lioks<br />
</code></p>
<p>Edit <code>/etc/devfs.rules</code> to add these new devices rules:<br />
<code><br />
[localrules=10]<br />
add path 'da*' mode 0660 group mounters<br />
add path 'md*' mode 0660 group mounters<br />
</code></p>
<p>&#8230; and <code>rc.conf</code> to add this ruleset:<br />
<code><br />
devfs_system_ruleset="localrules"<br />
</code></p>
<p>The last thing to do is to tune your kernel to allow any user to use the <code>mount</code> command:<br />
<code><br />
# sysctl vfs.usermount=1<br />
</code></p>
<p>To have this done each time your start your system, add the following line to <code>/etc/sysctl.conf</code>:<br />
<code><br />
vfs.usermount=1<br />
</code></p>
<p>Done ! Next time you will log in as an user member of the mounters group you should be able to use usb devices (and iso images) without any root privileges.<br />
Don&#8217;t forget to make sure you have read/write permissions on the target directory :P</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=24</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling and securing sshd in FreeBSD</title>
		<link>http://lioks.buffout.org/?p=18</link>
		<comments>http://lioks.buffout.org/?p=18#comments</comments>
		<pubDate>Mon, 02 Nov 2009 13:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=18</guid>
		<description><![CDATA[sshd is the Secure Shell Daemon and allows an user to gain a remote shell on a foreign machine.
Unlike telnet, it allows one to exchange data on a secure way over the internet/a private network.
Although it&#8217;s often configured for simple password authentication, it can also be set up for a stronger security mechanism by using [...]]]></description>
			<content:encoded><![CDATA[<p>sshd is the Secure Shell Daemon and allows an user to gain a remote shell on a foreign machine.<br />
Unlike telnet, it allows one to exchange data on a <strong>secure</strong> way over the internet/a private network.<br />
Although it&#8217;s often configured for simple password authentication, it can also be set up for a stronger security mechanism by using RSA/DSA keypairs.</p>
<p>First you need to generate your clients personnal keypair using <code>ssh-keygen</code>:<br />
<code><br />
% ssh-keygen<br />
</code><br />
After asking you a passphrase for these keys they are placed by default in <code>~/.ssh/</code>:<br />
- <code>~/.ssh/id_rsa.pub</code> is your public key and can be used by anyone to encrypt data<br />
- <code>~/.ssh/id_rsa</code> is your private key and is needed to decrypt data encrypted with the public key</p>
<p>Now we can configure sshd on the machine you want to gain remote access.<br />
All these modifications must be made on <code>/etc/ssh/sshd_config</code>:<br />
<code><br />
PasswordAuthentication no<br />
</code><br />
This should be set to no, since we want RSA key + passphrase authentication.</p>
<p><code><br />
PermitEmptyPasswords no<br />
</code><br />
If you want to use password authentication instead of public keys,  for obvious reasons, you REALLY should set this to no&#8230;</p>
<p><code><br />
ChallengeResponseAuthentication no<br />
</code><br />
This will disable FreeBSD built-in PAM authentication (but not password-based authentication).</p>
<p><code><br />
PermitRootLogin no<br />
</code><br />
It&#8217;s a really a bad habit to log as root on a machine, especially over ssh because you want to be able to log/audit user&#8217;s activity.<br />
A better way is to give some people the privileges they need using groups or login classes and/or sudo.</p>
<p><code><br />
Protocol 2<br />
</code><br />
You must restrict connections to SSHv2 because SSHv1 is now considered obsolete due to MITM vulnerabilities.</p>
<p><code><br />
X11Forwarding no<br />
</code><br />
Since I don&#8217;t need to forward X11 traffic, I like to disable it because it can make the client vulnerable to X11 attacks.<br />
If this is a concern to you, more informations can be found in sshd_config(5) and ssh_config(5) manpages.</p>
<p><code><br />
AllowUsers ...<br />
AllowGroups ...<br />
DenyUsers ...<br />
DenyGoups ...<br />
</code><br />
Last but not least, these powerful options allow you to manually specify who can log in or not by User/Group names.<br />
If you plan to accept very few ssh connections, I strongly recommand you to use these options. Additional security is always welcome&#8230;<br />
These options are processed in this order: DenyUsers, AllowUsers, DenyGroups, AllowGroups.</p>
<p>Now simply copy the public keys (id_rsa.pub, remember ?) of your clients in the authorized_keys file, by default it should be <code>~/.ssh/authorized_keys</code>, ~ being the home directory of the user they want to log as.<br />
Then add the following line to <code>/etc/rc.conf</code> to enable sshd at startup and reboot your host machine:<br />
<code><br />
sshd_enable="YES"<br />
</code></p>
<p>Your clients can now remotely get a shell on your machine, but they must possess the private key associated to the public key in <code>authorized_keys</code> and the passphrase, needless to say that it&#8217;s way more secure than simple password authentication.<br />
One more thing about rsa/dsa keys, only give them if you are sure of the identity of the receiver and please, by more secure way than mail ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=18</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>
		<item>
		<title>make buildblog &amp;&amp; make installblog&#8230;</title>
		<link>http://lioks.buffout.org/?p=9</link>
		<comments>http://lioks.buffout.org/?p=9#comments</comments>
		<pubDate>Fri, 30 Oct 2009 09:55:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=9</guid>
		<description><![CDATA[Ok, there we are, my first post in this blog,
humm I suppose I should explain a bit the why and the how of this&#8230;
My name is Marc Lebrun and I live in France (mostly in Nantes).
After some different (and not really satisfying) jobs/studies, I have decided to go back to my first love and my [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, there we are, my first post in this blog,<br />
humm I suppose I should explain a bit the why and the how of this&#8230;</p>
<p>My name is Marc Lebrun and I live in France (mostly in Nantes).<br />
After some different (and not really satisfying) jobs/studies, I have decided to go back to my first love and my most time-consuming hobby : computing science.<br />
That&#8217;s why I am actually in 2nd year of a 5 year IT expert cursus at EPITECH.</p>
<p>I never really thought I will ever create and maintain a blog, but during the last year I spent much time using and tweaking FreeBSD as a Production Station / Desktop PC and more and more students ask me &#8220;How can I do that ?&#8221;, &#8220;Is it possible to &#8230; ?&#8221;, &#8220;Raaah, why doesn&#8217;t it work properly ??&#8221;.<br />
The main goal of this blog is to get rid of those annoying questions and maybe help some beginners to get a foot in FreeBSD. ;)<br />
This blog is not intended for advanced users of FreeBSD !</p>
<p>As I am not only interested in FreeBSD, I hope I will be able to post some articles about other topics, such as secure programming, OpenBSD, computing singularity and so on.<br />
Well, I hope this blog may help some people and if it&#8217;s not the case or if you see wrong or incomplete information, please let me know and I will do my best to take care of it.</p>
<p>See You !</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
