<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5845321515990016322</id><updated>2012-01-30T14:56:53.063Z</updated><category term='Reviews'/><category term='Network'/><category term='NTFS'/><category term='KDE'/><category term='Fedora'/><category term='Enemy Territory'/><category term='Multimedia'/><category term='Debian'/><category term='Samba'/><category term='VirtualBox'/><category term='Ports'/><category term='OpenOffice'/><category term='FreeBSD'/><category term='Security'/><category term='BSD'/><category term='RIPLinux'/><category term='NVIDIA'/><category term='Gnome'/><category term='Gentoo'/><category term='Vim'/><category term='NFS'/><category term='Rsync'/><category term='sudo'/><category term='MLDonkey'/><category term='FTP'/><category term='Linux'/><category term='OpenSUSE'/><category term='IPFW'/><category term='MPD'/><category term='Audigy 4'/><category term='P2P'/><category term='X11'/><category term='Books'/><title type='text'>Linux/BSD: sharing experiences</title><subtitle type='html'>Notes, tips, tutorials, how-tos, etc... All related to Unix-like OS namely FreeBSD and Linux.

My way of giving a bit back to the community. ;)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>87</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7554491279585479431</id><published>2012-01-26T22:43:00.008Z</published><updated>2012-01-26T22:57:31.138Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='NTFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>HowTo: Mounting NTFS partition in write mode on FreeBSD</title><content type='html'>&lt;div&gt;My brother's old laptop died and I got to keep its hard-drive. Being a Windows machine, it had a bunch of NTFS partitions. So this post explains how to identify a NTFS partition, mount it as read-only and finally learn how to mount it in write mode.  I should mention that the FreeBSD machine run FreeBSD 7.4 but the same step should apply to latter versions of the OS.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Physically attached the hard-drive (in my case I plugged an USB HDD) and have a look at &lt;i&gt;/var/log/messages&lt;/i&gt; to identify the harddrive.&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;% su&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;# tail -n 20 /var/log/messages&lt;/div&gt;&lt;div&gt;&lt;i&gt;Jan 26 21:40:03 flumen kernel: da0: &lt;generic external="" 13=""&gt; Fixed Direct Access SCSI-4 device&lt;/generic&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Jan 26 21:40:03 flumen kernel: da0: 40.000MB/s transfers&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Jan 26 21:40:03 flumen kernel: da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)&lt;/i&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Similar information can be collected from dmesg.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;# dmesg&lt;/div&gt;&lt;div&gt;&lt;i&gt;umass0: &lt;generic class="" 0="" rev="" 00="" addr="" 2=""&gt; on uhub4&lt;/generic&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;da0 at umass-sim0 bus 0 target 0 lun 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;da0: &lt;generic external="" 13=""&gt; Fixed Direct Access SCSI-4 device&lt;/generic&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;da0: 40.000MB/s transfers&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C)&lt;/i&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Let's find out which is the NTFS partition:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;# fdisk /dev/da0&lt;/div&gt;&lt;div&gt;&lt;i&gt;******* Working on device /dev/da0 *******&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;parameters extracted from in-core disklabel are:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Figures below won't work with BIOS for partitions not in cyl 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;parameters to be used for BIOS calculations are:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Media sector size is 512&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Warning: BIOS sector numbering starts with sector 1&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Information from DOS bootblock is:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;The data for partition 1 is:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;sysid 18 (0x12),(Compaq diagnostics)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;start 63, size 16611147 (8110 Meg), flag 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;beg: cyl 0/ head 1/ sector 1;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;end: cyl 1023/ head 254/ sector 63&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;The data for partition 2 is:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;start 16611210, size 117194175 (57223 Meg), flag 80 (active)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;beg: cyl 1023/ head 0/ sector 1;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;end: cyl 1023/ head 254/ sector 63&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;The data for partition 3 is:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;sysid 15 (0x0f),(Extended DOS (LBA))&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;start 133805385, size 100631160 (49136 Meg), flag 0&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;beg: cyl 1023/ head 0/ sector 1;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;end: cyl 1023/ head 254/ sector 63&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;The data for partition 4 is:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;unused&gt;&lt;/unused&gt;&lt;/i&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;Issuing the following command will mount a NTFS partition in read-only mode:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;# mount -t ntfs /dev/da0s2 /mnt/&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;To be able to write into a NTFS partition it is required to install the &lt;a href="http://www.freshports.org/sysutils/fusefs-ntfs/"&gt;sysutils/fuse-ntfs&lt;/a&gt; port:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;# cd /usr/ports/sysutils/fusefs-ntfs/ &amp;amp;&amp;amp; make install clean&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;If you use, as described in the man page, &lt;i&gt;mount -t ntfs-3g&lt;/i&gt; an error will occurr:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;# mount -t ntfs-3g /dev/da0s2 /mnt/&lt;/div&gt;&lt;div&gt;&lt;i&gt;mount: /dev/da0s2 : Operation not supported by device&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;To mount the NTFS partition in write mode issue:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;# ntfs-3g /dev/da0s2 /mnt/&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Let's make sure that the partition is mounted:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;#mount&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;/dev/ad4s1a on / (ufs, local)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;devfs on /dev (devfs, local)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;/dev/ad4s1e on /tmp (ufs, local, soft-updates)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;/dev/ad4s1f on /usr (ufs, local, soft-updates)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;/dev/ad4s1d on /var (ufs, local, soft-updates)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;/dev/ad5s1d on /mnt/1 (ufs, local, soft-updates)&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;/dev/fuse0 on /mnt/2 (fusefs, local, synchronous)&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;i&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ntfs-3g&amp;amp;manpath=FreeBSD+7.4-RELEASE+and+Ports"&gt;man ntfs-3g&lt;/a&gt; contains some Linuxisms and as such read the man page with a grain of salt ;)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7554491279585479431?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7554491279585479431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7554491279585479431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7554491279585479431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7554491279585479431'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2012/01/howto-mounting-ntfs-partition-in-write.html' title='HowTo: Mounting NTFS partition in write mode on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1639060858878178323</id><published>2011-07-09T11:06:00.008+01:00</published><updated>2011-07-20T16:18:05.217+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><title type='text'>Tip: Fixing Atheros L2 driver attachment on FreeBSD</title><content type='html'>My personal server, a low-powered system based on an integrated motherboard ASUS I220GC, is using a D-Link DGE-528 Ethernet PCI card which runs fine on FreeBSD 7.4. However while toying with the system I decided to active the integrated Atheros L2 10/100 Ethernet device that I had disabled a long time ago.&lt;br /&gt;&lt;br /&gt;Upon enabling the device on the BIOS and booting the system I came across an odd situation: &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ae&amp;amp;sektion=4&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;ae(4)&lt;/a&gt; which is Atheros L2 driver wasn't loading properly.&lt;br /&gt;&lt;blockquote&gt;# dmesg | less&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Jul  8 22:07:22 flumen kernel: pci2: &lt;acpi pci="" bus=""&gt; on pcib2&lt;/acpi&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Jul  8 22:07:22 flumen kernel: pci2: &lt;network, ethernet=""&gt; at device 0.0 (no driver attached)&lt;/network,&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;# pciconf -lv&lt;br /&gt;&lt;span style="font-style: italic;"&gt;none2@pci0:2:0:0:       class=0x020000 card=0x82331043 chip=0x20481969 rev=0xa0 hdr=0x00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    vendor     = 'Attansic (Now owned by Atheros)'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    device     = 'Fast Ethernet 10/100 Base-T Controller (Atheros L2)'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    class      = network&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    subclass   = ethernet&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;To fix this &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ae&amp;amp;sektion=4&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;ae(4)&lt;/a&gt; driver has to be loaded and then it will attach himself to the PCI device (pci2 in my system):&lt;br /&gt;&lt;blockquote&gt;# kldload -v if_ae&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ae0: &lt;attansic technology="" l2="" fastethernet=""&gt; mem 0xdffc0000-0xdfffffff irq 17 at device 0.0 on pci2&lt;/attansic&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ae0: Using MSI messages.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;miibus1: &lt;mii bus=""&gt; on ae0&lt;/mii&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;atphy0: &lt;atheros f2="" 10="" 100="" phy=""&gt; PHY 0 on miibus1&lt;/atheros&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;atphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ae0: Ethernet address: 00:1f:c6:dd:15:72&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ae0: [FILTER]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Loaded if_ae, id=5&lt;/span&gt;&lt;/blockquote&gt;By running &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=pciconf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;pciconf&lt;/a&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=pciconf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;(8)&lt;/a&gt; we can confirm that the driver is now successfully attached:&lt;br /&gt;&lt;blockquote&gt;# pciconf -lv&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ae0@pci0:2:0:0: class=0x020000 card=0x82331043 chip=0x20481969 rev=0xa0 hdr=0x00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    vendor     = 'Attansic (Now owned by Atheros)'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    device     = 'Fast Ethernet 10/100 Base-T Controller (Atheros L2)'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    class      = network&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    subclass   = ethernet&lt;/span&gt;&lt;/blockquote&gt;To load the driver as a module at boot time &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=loader.conf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;loader.conf(5)&lt;/a&gt; needs to be edited.&lt;br /&gt;&lt;blockquote&gt;# echo 'if_ae_load="YES"' &amp;gt;&amp;gt; /boot/loader.conf&lt;/blockquote&gt;Now that the driver attachment at boot is solved &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=rc.conf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;rc.conf(5)&lt;/a&gt; needs to be edited so that FreeBSD assigns an interface to Atheros L2 device at boot:&lt;br /&gt;&lt;blockquote&gt;# vim /etc/rc.conf&lt;br /&gt;ifconfig_ae0="inet 192.168.1.1 netmask 255.255.255.0"&lt;/blockquote&gt;The next time the system is booted the next settings are applied and Atheros L2 is properly working (make sure you use your own network settings namely netmask and inet).&lt;br /&gt;&lt;br /&gt;Sources:&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ae&amp;amp;sektion=4&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;man ae&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ifconfig&amp;amp;sektion=8&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;man ifconfig&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=loader.conf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;man loader.conf&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=pciconf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;man pciconf&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=rc.conf&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;man rc.conf&lt;/a&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ifconfig&amp;amp;sektion=8&amp;amp;manpath=FreeBSD+7.4-RELEASE"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1639060858878178323?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1639060858878178323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1639060858878178323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1639060858878178323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1639060858878178323'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2011/07/tip-fixing-atheros-l2-driver-attachment.html' title='Tip: Fixing Atheros L2 driver attachment on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6869622342647753966</id><published>2010-04-23T10:54:00.006+01:00</published><updated>2010-04-23T11:21:37.476+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>Tip: Fixing xorg-server 1.7.6 keyboard and mouse issues on Gentoo</title><content type='html'>I came across a weird issue on my Gentoo box: both keyboard and mouse weren't working. I immediately though of hal and X11...&lt;br /&gt;&lt;br /&gt;A quick stroll to the &lt;a href="http://forums.gentoo.org/index.php"&gt;Gentoo Forums&lt;/a&gt; pointed to &lt;a href="http://gentoo-portage.com/x11-drivers/xf86-input-keyboard"&gt;&lt;span&gt;x11-drivers/xf86-input-keyboard&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://gentoo-portage.com/x11-drivers/xf86-input-mouse"&gt;&lt;span&gt;x11-drivers/xf86-input-mouse&lt;/span&gt;&lt;/a&gt;&lt;span&gt; and &lt;/span&gt;&lt;a href="http://gentoo-portage.com/x11-drivers/xf86-input-evdev"&gt;&lt;span&gt;x11-drivers/xf86-input-evdev&lt;/span&gt;&lt;/a&gt; has the culprits!&lt;br /&gt;&lt;br /&gt;Here's how to fix the issue:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;/li&gt;&lt;li&gt;# emerge -1 $(qlist -IC x11-drivers)&lt;/li&gt;&lt;/ol&gt;This will rebuild X11 drivers in you system and have you using your keyboard and mouse again. If you don't have &lt;span style="font-style: italic;"&gt;qlist&lt;/span&gt; installed in your system just emerge &lt;a href="http://gentoo-portage.com/app-portage/portage-utils"&gt;app-portage/portage-utils&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now wasn't that fun?&lt;br /&gt;&lt;br /&gt;;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6869622342647753966?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6869622342647753966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6869622342647753966' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6869622342647753966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6869622342647753966'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2010/04/tip-fixing-xorg-server-176-keyboard-and.html' title='Tip: Fixing xorg-server 1.7.6 keyboard and mouse issues on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5534075111628713558</id><published>2010-03-25T13:48:00.002Z</published><updated>2010-03-25T13:51:08.797Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Upgrade FreeBSD 7.2 to 7.3</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;Disclaimer:&lt;/span&gt;&lt;span style="font-style: italic;"&gt; this post is for those that instead of  using FreeBSD's excellent documentation maintain the bad habit of  googling for things already covered in the project's official  documentation. This is more or less a copy-paste of the &lt;a href="http://www.freebsd.org/releases/7.3R/announce.html"&gt;FreeBSD 7.3-RELEASE Announcement&lt;/a&gt; &lt;/span&gt;&lt;span style="font-style: italic;"&gt;instructions  for upgrading 7.2 to 7.3.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;These are needed steps to  upgrade, through the binary upgrade method, the kernel and userland  utilities to 7.3-RELEASE:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# freebsd-update  upgrade -r 7.3-RELEASE&lt;/li&gt;&lt;li&gt;# freebsd-update install&lt;/li&gt;&lt;li&gt;#  shutdown -r now&lt;br /&gt;&lt;/li&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;#  freebsd-update install&lt;/li&gt;&lt;li&gt;  # shutdown -r now&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;On step 1 we've started of by becoming  the superuser. Step 2 initiates the &lt;span style="font-style: italic;"&gt;freebsd-update&lt;/span&gt;  utility pointing the upgrade to 7.3-RELEASE, after that we proceed with  the installation of the kernel on step 3.&lt;br /&gt;&lt;br /&gt;Upon rebooting the new  kernel is enabled and we move into step 6. Here we end the upgrade  process by updating the userland utilities.&lt;br /&gt;&lt;br /&gt;That's it!&lt;br /&gt;&lt;br /&gt;If  you found this post useful that's actually a bad news: you aren't  reading the project's official documentation! So please point to &lt;a href="http://www.freebsd.org/"&gt;http://www.freebsd.org&lt;/a&gt; and educate  yourself on FreeBSD ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5534075111628713558?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5534075111628713558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5534075111628713558' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5534075111628713558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5534075111628713558'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2010/03/howto-upgrade-freebsd-72-to-73.html' title='HowTo: Upgrade FreeBSD 7.2 to 7.3'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4905454131614257288</id><published>2010-03-06T09:54:00.007Z</published><updated>2010-03-25T09:47:34.540Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='VirtualBox'/><title type='text'>Tip: Dealing with virtualbox-ose PUEL license on Gentoo</title><content type='html'>I came across a peculiar message from portage when trying to install &lt;span style="font-style: italic;"&gt;virtualbox-ose&lt;/span&gt; in Gentoo:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;/li&gt;&lt;li&gt;# emerge --tree --ask --verbose virtualbox-ose&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;These are the packages that would be merged, in reverse order:&lt;br /&gt;&lt;br /&gt;Calculating dependencies... done!&lt;br /&gt;&lt;br /&gt;!!! All ebuilds that could satisfy "~app-emulation/virtualbox-ose-additions-3.1.4" have been masked.&lt;br /&gt;!!! One of the following masked packages is required to complete your request:&lt;br /&gt;- app-emulation/virtualbox-ose-additions-3.1.4 (masked by: PUEL license(s))&lt;br /&gt;A copy of the 'PUEL' license is located at '/usr/portage/licenses/PUEL'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(dependency required by "app-emulation/virtualbox-ose-3.1.4" [ebuild])&lt;br /&gt;(dependency required by "virtualbox-ose" [argument])&lt;br /&gt;&lt;br /&gt;For more information, see the MASKED PACKAGES section in the emerge&lt;br /&gt;man page or refer to the Gentoo Handbook.&lt;/blockquote&gt;The solution is to add the PUEL license to the &lt;span style="font-style: italic;"&gt;/etc/portage/package.license&lt;/span&gt; file:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# echo "app-emulation/virtualbox-ose-additions PUEL" &gt;&gt; /etc/portage/package.license&lt;/li&gt;&lt;li&gt;# echo "app-emulation/virtualbox-ose PUEL" &gt;&gt; /etc/portage/package.license&lt;/li&gt;&lt;/ol&gt;Now can finally get to emerge VirtualBox.&lt;br /&gt;&lt;br /&gt;As a side note you can also use &lt;span style="font-style: italic;"&gt;/etc/make.conf&lt;/span&gt; and make use of the ACCEPT_LICENSE variable. For instances adding ACCEPT_LICENSE="*" to &lt;span style="font-style: italic;"&gt;/etc/make.conf&lt;/span&gt; unmasks all licenses. Alternatively you can unmask licenses one by one.&lt;br /&gt;&lt;br /&gt;More information can be obtained reading make.conf and portage's man pages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4905454131614257288?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4905454131614257288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4905454131614257288' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4905454131614257288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4905454131614257288'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2010/03/tip-dealing-with-virtualbox-ose-puel.html' title='Tip: Dealing with virtualbox-ose PUEL license on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7558537555674302079</id><published>2010-01-12T10:54:00.010Z</published><updated>2010-01-15T15:51:25.523Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='NVIDIA'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Dealing with nvidia-driver-195.22 on FreeBSD 7.2-RELEASE</title><content type='html'>I haven't migrated to FreeBSD 8.0 as I came across visual artefacts while running 8.0, nvidia-driver-195.22 and Enemy Territory on a test install.&lt;br /&gt;&lt;br /&gt;To update my installed ports I use for the most part &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=csup&amp;amp;manpath=FreeBSD+7.2-RELEASE+and+Ports"&gt;csup&lt;/a&gt; to update the ports collection and &lt;a href="http://www.freshports.org/sysutils/portmaster"&gt;sysutils/portmaster&lt;/a&gt; to actually update the ports with new versions.&lt;br /&gt;&lt;br /&gt;Recently nvidia-driver-195.22 hit the Ports tree and upon running &lt;span style="font-style: italic;"&gt;portmaster -a&lt;/span&gt; I found out that Nvidia's latest driver version requires FreeBSD-STABLE or FreeBSD-CURRENT. Guess who's running RELEASE?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Symptoms:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# csup -L 2 -h cvsup2.uk.freebsd.org /usr/share/examples/cvsup/ports-supfile&lt;/li&gt;&lt;li&gt;# portmaster -L&lt;/li&gt;&lt;/ul&gt;===&gt;&gt;&gt; nvidia-driver-185.18.36&lt;br /&gt;      ===&gt;&gt;&gt; New version available: nvidia-driver-195.22&lt;br /&gt;      ===&gt;&gt;&gt; This port is marked IGNORE&lt;br /&gt;      ===&gt;&gt;&gt; requires fairly recent FreeBSD-STABLE, or FreeBSD-CURRENT&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# portmaster -a&lt;/li&gt;&lt;/ul&gt;===&gt;&gt;&gt; Launching child to update nvidia-driver-185.18.36 to nvidia-driver-195.22&lt;br /&gt;&lt;br /&gt;===&gt;&gt;&gt; Port directory: /usr/ports/x11/nvidia-driver&lt;br /&gt;      ===&gt;&gt;&gt; This port is marked IGNORE&lt;br /&gt;      ===&gt;&gt;&gt; requires fairly recent FreeBSD-STABLE, or FreeBSD-CURRENT&lt;br /&gt;&lt;br /&gt;      ===&gt;&gt;&gt; If you are sure you can build it, remove the&lt;br /&gt;             IGNORE line in the Makefile and try again.&lt;br /&gt;&lt;br /&gt;===&gt;&gt;&gt; Update for nvidia-driver-185.18.36 failed&lt;br /&gt;===&gt;&gt;&gt; Aborting update&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cd /var/db/pkg/nvidia-driver-185.18.36/&lt;/li&gt;&lt;li&gt;# touch +IGNOREME&lt;/li&gt;&lt;li&gt;# portmaster -a&lt;/li&gt;&lt;/ul&gt;===&gt;&gt;&gt; Launching child to update nvidia-driver-185.18.36 to nvidia-driver-195.22&lt;br /&gt;&lt;br /&gt;===&gt;&gt;&gt; nvidia-driver-185.18.36 has an +IGNOREME file&lt;br /&gt;&lt;br /&gt;===&gt;&gt;&gt; Update anyway? [n]&lt;br /&gt;&lt;ul&gt;&lt;li&gt;answer "n"&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Now&lt;span style="font-style: italic;"&gt; portmaster -a&lt;/span&gt; ignores updates to the nvidia-driver port until the issue is fixed or I move to 8.0 ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7558537555674302079?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7558537555674302079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7558537555674302079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7558537555674302079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7558537555674302079'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2010/01/tip-dealing-with-nvidia-driver-19522-on.html' title='Tip: Dealing with nvidia-driver-195.22 on FreeBSD 7.2-RELEASE'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-9025564837868807042</id><published>2009-09-18T21:43:00.009+01:00</published><updated>2009-09-22T14:51:57.732+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Mount EXT2FS partitions with inode 256 on FreeBSD</title><content type='html'>Mounting ext2/ext3 slices (or "partitions" in the Linux world) is easy on FreeBSD... if the filesystem was NOT created with &lt;span style="font-style: italic;"&gt;inode 256&lt;/span&gt; that is!&lt;br /&gt;&lt;br /&gt;If you are one of those unlucky bastards this post presents the required steps on how to patch the FreeBSD 7.2 kernel module that mounts ext2/ext3 filesystems.&lt;br /&gt;&lt;br /&gt;First let's begin by installing the &lt;a href="http://www.freshports.org/sysutils/e2fsprogs/"&gt;sysutils/e2fsprogs&lt;/a&gt; application that provides &lt;span style="font-style: italic;"&gt;tune2fs&lt;/span&gt; which  will allow us to confirm that the ext2/ext3 filesystem was in fact created with &lt;span style="font-style: italic;"&gt;inode 256&lt;/span&gt;. Assuming that the target slice is in the &lt;span style="font-style: italic;"&gt;/dev/ad4&lt;/span&gt; disk:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/sysutils/e2fsprogs&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;li&gt;# fdisk /dev/ad4&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;******* Working on device /dev/ad4 *******&lt;br /&gt;parameters extracted from in-core disklabel are:&lt;br /&gt;cylinders=395136 heads=16 sectors/track=63 (1008 blks/cyl)&lt;br /&gt;&lt;br /&gt;Figures below won't work with BIOS for partitions not in cyl 1&lt;br /&gt;parameters to be used for BIOS calculations are:&lt;br /&gt;cylinders=395136 heads=16 sectors/track=63 (1008 blks/cyl)&lt;br /&gt;&lt;br /&gt;Media sector size is 512&lt;br /&gt;Warning: BIOS sector numbering starts with sector 1&lt;br /&gt;Information from DOS bootblock is:&lt;br /&gt;The data for partition 1 is:&lt;br /&gt;sysid 131 (0x83),(Linux native)&lt;br /&gt;start 63, size 80262 (39 Meg), flag 80 (active)&lt;br /&gt;   beg: cyl 0/ head 1/ sector 1;&lt;br /&gt;   end: cyl 4/ head 254/ sector 63&lt;br /&gt;The data for partition 2 is:&lt;br /&gt;sysid 130 (0x82),(Linux swap or Solaris x86)&lt;br /&gt;start 80325, size 1012095 (494 Meg), flag 0&lt;br /&gt;   beg: cyl 5/ head 0/ sector 1;&lt;br /&gt;   end: cyl 67/ head 254/ sector 63&lt;br /&gt;The data for partition 3 is:&lt;br /&gt;sysid 131 (0x83),(Linux native)&lt;br /&gt;start 1092420, size 10008495 (4886 Meg), flag 0&lt;br /&gt;   beg: cyl 68/ head 0/ sector 1;&lt;br /&gt;   end: cyl 690/ head 254/ sector 63&lt;br /&gt;The data for partition 4 is:&lt;br /&gt;sysid 15 (0x0f),(Extended DOS (LBA))&lt;br /&gt;start 11100915, size 350907795 (171341 Meg), flag 0&lt;br /&gt;   beg: cyl 691/ head 0/ sector 1;&lt;br /&gt;   end: cyl 1023/ head 254/ sector 63&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# tune2fs -l /dev/ad4s1 | grep -i 'inode size'&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-style: italic;"&gt; fdisk&lt;/span&gt; is used to list the slices that exist on the disk. &lt;span style="font-style: italic;"&gt;Sysid 131&lt;/span&gt; means that a ext2/ext3 slice exists and this is target for &lt;span style="font-style: italic;"&gt;tune2fs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next let's fetch the patch:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% wget http://pflog.net/~floyd/ext2fs.diff&lt;/li&gt;&lt;/ul&gt;In alternative, get the patch from here:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% wget http://pastebin.ca/raw/1280738&lt;/li&gt;&lt;/ul&gt;Now that we have the patch, let's proceed by applying it and build the patched module:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cd /usr/src/sys/gnu/fs&lt;/li&gt;&lt;li&gt;# patch &lt; /path/to/patch&lt;/li&gt;&lt;li&gt;# cd /usr/src/sys/modules/ext2fs&lt;/li&gt;&lt;li&gt;# make depend ; make obj ; make ; make ; make install ; make unload ; make load ; make clean&lt;/li&gt;&lt;/ul&gt;This way you'll build all dependencies for the module, build the module itself, install it, unload the current loaded module and finally load the new one.&lt;br /&gt;&lt;br /&gt;Having the new module loaded you can now successfully mount your ext2/ext3 filesystem:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# mount -t -v ext2fs /dev/ad6s1 /mnt&lt;/li&gt;&lt;/ul&gt;That's it!&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/query-pr.cgi?pr=124621&amp;amp;cat="&gt;kern/124621: [ext3] [patch] Cannot mount ext2fs partition&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=mount&amp;amp;manpath=FreeBSD+7.2-RELEASE"&gt;man mount&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freshports.org/sysutils/e2fsprogs/"&gt;sysutils/e2fsprogs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-9025564837868807042?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/9025564837868807042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=9025564837868807042' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9025564837868807042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9025564837868807042'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/09/howto-mount-ext2fs-partitions-with.html' title='HowTo: Mount EXT2FS partitions with inode 256 on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5543077070967588867</id><published>2009-09-17T22:42:00.001+01:00</published><updated>2010-01-15T15:49:43.126Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Introducing the PKGDIR environment variable on FreeBSD</title><content type='html'>Though I prefer using the ports tree to install applications on FreeBSD, the fact is that packages are way faster especially if your hardware is old or you just want to bring a test install online as fast as possible.&lt;br /&gt;&lt;br /&gt;If you want to keep the downloaded packages, you need to set the &lt;span style="font-style: italic;"&gt;PKGDIR&lt;/span&gt; environment variable pointing to the place where to store the downloaded &lt;span style="font-style: italic;"&gt;.tbz&lt;/span&gt; files.&lt;br /&gt;&lt;br /&gt;Here's how to set &lt;span style="font-style: italic;"&gt;PKGDIR&lt;/span&gt; with the t/csh shell to &lt;span style="font-style: italic;"&gt;/usr/ports/packages/All&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# setenv PKGDIR /usr/ports/packages/All&lt;/li&gt;&lt;li&gt;# mkdir -p /usr/ports/packages/All&lt;/li&gt;&lt;/ul&gt;To download, store and install a package named &lt;span style="font-style: italic;"&gt;foo&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# pkg_add -Kr foo&lt;/li&gt;&lt;/ul&gt;The &lt;span style="font-style: italic;"&gt;-K&lt;/span&gt; switch informs &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=pkg_add&amp;amp;manpath=FreeBSD+7.2-RELEASE"&gt;pkg_add&lt;/a&gt; that you want to keep the downloaded package on the directory defined by &lt;span style="font-style: italic;"&gt;PKGDIR&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Using packages is all fine and dandy, however not all applications in the ports tree are available as packages due to licensing issues.&lt;br /&gt;&lt;br /&gt;I found out that after setting the &lt;span style="font-style: italic;"&gt;PKGDIR&lt;/span&gt;, every single port that I tried to install failed with the same error: &lt;span style="font-style: italic;"&gt;"Missing pkg-descr"&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To fix the problem simply unset the &lt;span style="font-style: italic;"&gt;PKGDIR&lt;/span&gt; environment variable like so:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# unsetenv PKGDIR&lt;/li&gt;&lt;/ul&gt;And voilá! You can now use the best of both worlds.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5543077070967588867?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5543077070967588867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5543077070967588867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5543077070967588867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5543077070967588867'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/09/tip-introducing-pkgdir-environment.html' title='Tip: Introducing the PKGDIR environment variable on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3013624168277321566</id><published>2009-08-25T08:34:00.000+01:00</published><updated>2009-08-25T13:29:03.804+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Fetch and password-protected web pages</title><content type='html'>In order to make fetch (the FreeBSD downloading tool) ask for username/password when it encounters a password-protected web page, you can set the environment variable HTTP_AUTH to 'basic:*'.&lt;br /&gt;&lt;br /&gt;Users of t/csh shells can temporarily set the environment variable like so:&lt;br /&gt;&lt;blockquote&gt;% setenv HTTP_AUTH='basic:*'&lt;/blockquote&gt;To set it permanetly we need to add it to &lt;span style="font-style: italic;"&gt;.cshrc&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;% vim ~/.cshrc&lt;br /&gt;setenv HTTP_AUTH 'basic:*'&lt;/blockquote&gt;And that's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3013624168277321566?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3013624168277321566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3013624168277321566' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3013624168277321566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3013624168277321566'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/08/tip-fetch-and-password-protected-web.html' title='Tip: Fetch and password-protected web pages'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2056224665636217899</id><published>2009-08-25T01:07:00.006+01:00</published><updated>2009-08-25T01:34:50.360+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>HowTo: Intel PRO/Wireless 3945ABG on Debian</title><content type='html'>I've recently dabbled with Debian Lenny on my Dell D620 and found myself needing to access my wireless network.&lt;br /&gt;&lt;br /&gt;These are the required steps to activate the Intel PRO/Wireless 3945 ABG device on Debian GNU/Linux 5.0 Lenny:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# aptitude install firmware-iwlwifi&lt;/li&gt;&lt;li&gt;# modprobe -r iwl3945 &amp;amp;&amp;amp; modprobe iwl3945&lt;/li&gt;&lt;li&gt;point to the Network Manager icon on Gnome's top panel and enter the details of your wireless network&lt;/li&gt;&lt;/ol&gt;Do notice that &lt;span style="font-style: italic;"&gt;firmware-iwlwifi&lt;/span&gt; is a non-free firmware so you need to enable the non-free repositories. To do so point to System -&gt; Administration -&gt; Software Sources -&gt; Debian Software and enable the non-free and contrib repositories.&lt;br /&gt;&lt;br /&gt;I found the whole process of enabling and using 3945ABG on Debian very simple and straightforward which was a welcome change from the days of the old ipw driver ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2056224665636217899?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2056224665636217899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2056224665636217899' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2056224665636217899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2056224665636217899'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/08/howto-intel-prowireless-3945abg-on.html' title='HowTo: Intel PRO/Wireless 3945ABG on Debian'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8732788362676288075</id><published>2009-08-25T00:08:00.004+01:00</published><updated>2010-01-15T15:50:04.276Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: FreshPorts search plugin for Firefox</title><content type='html'>There are &lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-finding-applications.html"&gt;several ways to find software&lt;/a&gt; available for FreeBSD.&lt;br /&gt;&lt;br /&gt;The FreshPorts website tracks changes to the third party applications in the ports tree as they occur. Users of the Firefox web browser can install a search engine to be able to search through &lt;a href="http://www.freshports.org/"&gt;http://www.freshports.org/&lt;/a&gt; and find software available for FreeBSD on a friendly manner.&lt;br /&gt;&lt;br /&gt;To do so point to &lt;a href="http://www.searchplugins.net/pluginlist.aspx?q=freshports&amp;amp;mode=title"&gt;http://www.searchplugins.net/pluginlist.aspx?q=freshports&amp;amp;mode=title&lt;/a&gt; and click to install the search engine. After installing it go to Firefox's search box where Google's engine usually sits and choose the newly installed FreshPorts search engine.&lt;br /&gt;&lt;br /&gt;By doing so you can search for applications to install on FreeBSD from the comfort of Firefox.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8732788362676288075?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8732788362676288075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8732788362676288075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8732788362676288075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8732788362676288075'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/08/tip-freshports-search-plugin-for.html' title='Tip: FreshPorts search plugin for Firefox'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3614106808929640675</id><published>2009-08-09T19:28:00.001+01:00</published><updated>2009-08-09T19:30:06.979+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>Book Review: X Power Tools</title><content type='html'>Short and to the point books.&lt;br /&gt;&lt;br /&gt;That's the trend you'll notice after reading stuff like The Book of PF, &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/04/book-review-building-server-with.html"&gt;Building a Server with FreeBSD 7&lt;/a&gt; and BSD Unix Toolbox. X Power Tools happily joins the mentioned groups... with distinction.&lt;br /&gt;&lt;br /&gt;The book is divided in 15 sections which are further organized into articles going over subjects such as the history of the Xorg server, configuration (how to build a &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt;), advanced configuration (including multiple displays) and troubleshooting in the book's Part I.&lt;br /&gt;&lt;br /&gt;Client oriented subjects are brought in with Part II, which covers many of the rather unknown applications that are part of Xorg, e.g. &lt;span style="font-style: italic;"&gt;xmag&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;xset&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;xdpyinfo&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;xfontsel&lt;/span&gt; and many others.&lt;br /&gt;&lt;br /&gt;Part III exposes the reader to color, fonts and keyboard configuration.&lt;br /&gt;&lt;br /&gt;Using X remotely is covered to a reasonable extent in the book's Part III. Here X tunneling with SSH and VNC are discussed alongside XDMCP and &lt;span style="font-style: italic;"&gt;xauth&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;In a rather unexpected way, the author chose to wrap-up the book by going over the details of configuring X for a kiosk.&lt;br /&gt;&lt;br /&gt;As a side note it was nice to see that the author didn't focus only on Linux but also took into account FreeBSD when writing the book (&lt;span style="font-style: italic;"&gt;moused&lt;/span&gt; settings are analysed).&lt;br /&gt;&lt;br /&gt;It should be pointed out that the book was printed in late 2007, so HAL device configuration of keyboard, mouse and displays aren't discussed. However, in my opinion anyone wanting to read this book has already dealt with the situation and is looking into expanding his knowledge of Xorg into less focused things such as fonts, raw X terminal, &lt;span style="font-style: italic;"&gt;xinit&lt;/span&gt;, etc.&lt;br /&gt;&lt;br /&gt;X Power Tools is very handy and well structured making it a good alternative to those that avoid reading Xorg's extensive man page (such as yours truly).&lt;br /&gt;&lt;br /&gt;If the Xorg subject appeals to you buy the book. Though a bit expensive, the book is a must have if you want to dwell on Xorg from a very hands-on approach.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3614106808929640675?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3614106808929640675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3614106808929640675' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3614106808929640675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3614106808929640675'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/08/book-review-x-power-tools.html' title='Book Review: X Power Tools'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8003777574542460301</id><published>2009-07-01T19:25:00.001+01:00</published><updated>2010-01-15T15:50:56.229Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Fix portaudit database error</title><content type='html'>I use portaudit to check installed packages on my FreeBSD systems for knwon vulnerabilities. However the tool behaved quite ackwardy today.&lt;br /&gt;&lt;br /&gt;By running:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# portaudit -Fda&lt;/li&gt;&lt;/ul&gt;It outputed:&lt;br /&gt;&lt;blockquote&gt;auditfile.tbz                                 100% of   53 kB   56 kBps&lt;br /&gt;portaudit: Database too old.&lt;br /&gt;Old database restored.&lt;br /&gt;portaudit: Download failed.&lt;/blockquote&gt;The workaround was posted on freebsd-questions mailing list and consists of editing portaudit's configuration file and changing the mirror address:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# cp /usr/local/etc/portaudit.conf.sample /usr/local/etc/portaudit.conf&lt;/li&gt;&lt;li&gt;# vim /usr/local/etc/portaudit.conf&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;portaudit_sites="http://www.FreeBSD.org/ports/"&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# portaudit -Fda&lt;/li&gt;&lt;/ul&gt;In a couple of days the mirror issues should be fixed so by then you can revert to the default &lt;span style="font-style: italic;"&gt;portaudit_sites="http://portaudit.FreeBSD.org/".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For more info have a look at portaudit's man page and at &lt;a href="http://docs.freebsd.org/cgi/getmsg.cgi?fetch=933878+0+current/freebsd-questions"&gt;http://docs.freebsd.org/cgi/getmsg.cgi?fetch=933878+0+current/freebsd-questions&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8003777574542460301?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8003777574542460301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8003777574542460301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8003777574542460301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8003777574542460301'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/07/tip-fix-portaudit-database-error.html' title='Tip: Fix portaudit database error'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-529166794658341404</id><published>2009-06-30T19:13:00.000+01:00</published><updated>2009-07-02T13:15:35.076+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Scroll console output on FreeBSD</title><content type='html'>People coming from Linux will find that they can't scroll back through the console output the same way on FreeBSD.&lt;br /&gt;&lt;br /&gt;In FreeBSD you need to press "Scroll Lock" and use the arrow keys, PageUp and PageDown to be able to scroll backwards and forwards the console output. To go back to the prompt press "Scroll Lock" again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-529166794658341404?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/529166794658341404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=529166794658341404' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/529166794658341404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/529166794658341404'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/06/tip-scroll-console-output-on-freebsd.html' title='Tip: Scroll console output on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5457755732642615098</id><published>2009-05-13T18:04:00.001+01:00</published><updated>2009-05-14T09:24:03.042+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Book Review: The Best of FreeBSD Basics</title><content type='html'>Having read &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/01/book-review-absolute-freebsd-complete.html"&gt;Lucas' Absolute FreeBSD&lt;/a&gt; any other BSD book I read ends up being measured against it.&lt;br /&gt;&lt;br /&gt;The Best of FreeBSD Basics (TBFB) is essentially a compilation of Dru Lavigne's articles at O'Reilly Media and this is exactly the books weakness: there is no backbone, no underlying purpose or scope. When one picks up &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/01/book-review-absolute-freebsd-complete.html"&gt;Absolute FreeBSD BSD&lt;/a&gt; that person will know that network/system administration is the book's focus, when one pick &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/04/book-review-building-server-with.html"&gt;Builing a Server with FreeBSD 7&lt;/a&gt; service installation and configuration is the core, with BSD Unix Toolbox the reader will acquire knowledge on tons of system configuration commands.&lt;br /&gt;&lt;br /&gt;However with TBFB its purpose isn't discernible; sometimes it's a tip, on occasion a tutorial, at times advices, all in a very disconnected way between each other. Also, sometimes during the book you'll come across stuff that is just duplicated from a previous section/chapter which is just wrong.&lt;br /&gt;&lt;br /&gt;The book does have its shinning stops. It brinks with Dru's love for the operating system by presenting small details that you won't find in any other BSD book. In this perspective the book is an adventure through the wonderful world of FreeBSD much like a blog dealing with one's notes of his adventure in exploring a new OS (like my own blog for instances).&lt;br /&gt;&lt;br /&gt;Noticeable is the fact that some of the articles were &lt;span style="font-style: italic;"&gt;"updated from FreeBSD 4 and 5 to reflect the usage on FreeBSD 6 and 7"&lt;/span&gt; as the book's back states. And that just comes back to haunt you, namely when &lt;span style="font-style: italic;"&gt;csup&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;supfile&lt;/span&gt; usage is discussed in a way that's just outdated for FreeBSD 7.&lt;br /&gt;&lt;br /&gt;Now... do I recommend it? First get &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/01/book-review-absolute-freebsd-complete.html"&gt;Absolute FreeBSD&lt;/a&gt;. Next if you are into system administration get BSD Unix Toolbox and get yourself &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/04/book-review-building-server-with.html"&gt;Building a Server with FreeBSD 7&lt;/a&gt; if you are planning on building a personal server. After you've gone through these dive ahead and get The Best of FreeBSD Basics.&lt;br /&gt;&lt;br /&gt;As an end note, I'd really like to see a BSD book by Dru written from scratch maybe even focusing on the BSD certification initiative. Now that would be pure gold ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5457755732642615098?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5457755732642615098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5457755732642615098' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5457755732642615098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5457755732642615098'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/book-review-best-of-freebsd-basics.html' title='Book Review: The Best of FreeBSD Basics'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8090918871165437775</id><published>2009-05-04T08:55:00.004+01:00</published><updated>2009-06-05T09:46:03.170+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Enemy Territory on FreeBSD</title><content type='html'>Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.&lt;br /&gt;&lt;br /&gt;The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was cancelled, Activision however decided to release it during 2003 for free.&lt;br /&gt;&lt;br /&gt;In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;1) Install and update Enemy Territory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Become the superuser:&lt;br /&gt;&lt;blockquote&gt;% su&lt;/blockquote&gt;And install the required port:&lt;br /&gt;&lt;blockquote&gt;# cd /usr/ports/games/linux-enemyterritory&lt;br /&gt;# make install clean&lt;/blockquote&gt;This will pull Enemy Territory's installer from the web. If any port options pop up stick with the defaults and choose OK to continue.&lt;br /&gt;&lt;br /&gt;If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;2) Enable the Linux Compatibility Environment&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-style: italic;"&gt;linux-enemyterritory port&lt;/span&gt; pulls in &lt;span style="font-style: italic;"&gt;linux_base-fc4&lt;/span&gt; so we just need to load the Linux kernel module at boot time. To do so run:&lt;br /&gt;&lt;blockquote&gt;# echo 'linux_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;3) Install Linux X.Org libraries&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Wolfentein: Enemy Territory requires Linux X.Org libraries to load properly. To install them run the following command:&lt;br /&gt;&lt;blockquote&gt;# cd /usr/ports/x11/linux-xorg-libs&lt;br /&gt;# make install clean&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;4) Install the ET Pro mod&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next let's install Enemy Territory's best mod: ET Pro.&lt;br /&gt;&lt;blockquote&gt;# cd /usr/ports/games/linux-enemyterritory-etpro&lt;br /&gt;# make install clean&lt;br /&gt;&lt;/blockquote&gt;Now ET Pro will show under the Mods options in the games' main menu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;5) Update PunkBuster&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now start the game, create a player profile and quit. By doing so a &lt;span style="font-style: italic;"&gt;.etwolf&lt;/span&gt; directory will be created in your home directory which includes a folder containing PunkBuster.&lt;br /&gt;&lt;br /&gt;Point to &lt;a href="http://www.evenbalance.com/index.php?page=pbsetup.php"&gt;http://www.evenbalance.com/index.php?page=pbsetup.php&lt;/a&gt; scroll down and follow the Linux download to download PunkBuster update application.&lt;br /&gt;&lt;br /&gt;Change directory to where you've downloaded the &lt;span style="font-style: italic;"&gt;pbsetup.run&lt;/span&gt; and:&lt;blockquote&gt;# su&lt;br /&gt;# chmod +x pbsetup.run&lt;br /&gt;# exit&lt;br /&gt;% cp pbsetup.run ~/.etwolf/pb&lt;br /&gt;% ./pbsetup.run&lt;/blockquote&gt;PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to &lt;span style="font-style: italic;"&gt;"Add a Game option&lt;/span&gt;", choose Enemy Territory and its installation path.&lt;br /&gt;&lt;br /&gt;On the main PunkBuster window click on Enemy Territory to select it and press &lt;span style="font-style: italic;"&gt;"Check for Updates"&lt;/span&gt;. Quit PunkBuster after updating it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;6) Install XQF&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One can use the in game browser to search for server. However I recommend installing and using the &lt;a href="http://www.linuxgames.com/xqf/index.shtml"&gt;XQF Game Server Browser&lt;/a&gt; as it a lot more flexible and complete:&lt;br /&gt;&lt;blockquote&gt;# cd /usr/ports/games/xqf&lt;br /&gt;# make install clean&lt;br /&gt;&lt;/blockquote&gt;XQF should identify the installed Enemy Territory so select the game and press &lt;span style="font-style: italic;"&gt;"Update&lt;/span&gt;" to have XQF pull an updated server list.&lt;br /&gt;&lt;br /&gt;I tend to play on &lt;span style="font-style: italic;"&gt;www.Enemy-Territory.com by www.4netplayers.de&lt;/span&gt; server ;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;7) Fix sound issues&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:&lt;br /&gt;&lt;blockquote&gt;% su&lt;br /&gt;# sysctl hw.snd.compat_linux_mmap=1&lt;br /&gt;# echo  "hw.snd.compat_linux_mmap=1" &gt;&gt; /etc/sysctl.conf&lt;br /&gt;# exit&lt;/blockquote&gt;With the above commands sound will be enabled immediately and also at boot time.&lt;br /&gt;&lt;br /&gt;And we're done!&lt;br /&gt;&lt;br /&gt;See you on the battlefield I'll be the one with the tangram"FreeBSD~ name :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8090918871165437775?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8090918871165437775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8090918871165437775' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8090918871165437775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8090918871165437775'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/05/howto-enemy-territory-on-freebsd.html' title='HowTo: Enemy Territory on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2475813710097320481</id><published>2009-05-04T08:40:00.001+01:00</published><updated>2009-05-20T09:27:53.240+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Upgrade FreeBSD 7.1 to 7.2</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;Disclaimer:&lt;/span&gt;&lt;span style="font-style: italic;"&gt; this post is for those that instead of using FreeBSD's excellent documentation maintain the bad habit of googling for things already covered in the project's official documentation. This is more or less a copy-paste of the &lt;a href="http://www.freebsd.org/releases/7.2R/announce.html"&gt;FreeBSD 7.2-RELEASE Announcement&lt;/a&gt; &lt;/span&gt;&lt;span style="font-style: italic;"&gt;instructions for upgrading 7.1 to 7.2.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;These are needed steps to upgrade, through the binary upgrade method, the kernel and userland utilities to 7.2-RELEASE:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# freebsd-update upgrade -r 7.2-RELEASE&lt;/li&gt;&lt;li&gt;# freebsd-update install&lt;/li&gt;&lt;li&gt;# shutdown -r now&lt;br /&gt;&lt;/li&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;#  freebsd-update install&lt;/li&gt;&lt;li&gt; # shutdown -r now&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;On step 1 we've started of by becoming the superuser. Step 2 initiates the &lt;span style="font-style: italic;"&gt;freebsd-update&lt;/span&gt; utility pointing the upgrade to 7.2-RELEASE, after that we proceed with the installation of the kernel on step 3.&lt;br /&gt;&lt;br /&gt;Upon rebooting the new kernel is enabled and we move into step 6. Here we end the upgrade process by updating the userland utilities.&lt;br /&gt;&lt;br /&gt;That's it!&lt;br /&gt;&lt;br /&gt;If you found this post useful that's actually a bad news: you aren't reading the project's official documentation! So please point to &lt;a href="http://www.freebsd.org/"&gt;http://www.freebsd.org&lt;/a&gt; and educate yourself on FreeBSD ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2475813710097320481?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2475813710097320481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2475813710097320481' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2475813710097320481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2475813710097320481'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/05/howto-upgrade-freebsd-71-to-72.html' title='HowTo: Upgrade FreeBSD 7.1 to 7.2'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2432802791172274088</id><published>2009-04-29T13:18:00.004+01:00</published><updated>2009-04-29T13:41:39.162+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Using DenyHosts to help thwart SSH attacks on FreeBSD</title><content type='html'>DenyHosts is a script intended to be run by UNIX-like  system administrators to help  thwart SSH server attacks (also known as dictionary based attacks and brute force  attacks).&lt;br /&gt;&lt;br /&gt;I've used it before on Gentoo Linux and liked it, so today I'll lay out the steps required to install and configure it on FreeBSD:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/security/denyhosts&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# echo 'denyhosts_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'syslogd_flags="-s -c"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo "sshd : /etc/hosts.deniedssh : deny" &gt;&gt; /etc/hosts.allow&lt;/li&gt;&lt;li&gt;# echo "sshd : ALL : allow" &gt;&gt; /etc/hosts.allow&lt;/li&gt;&lt;li&gt;# touch /etc/hosts.deniedssh&lt;/li&gt;&lt;li&gt;Edit &lt;span style="font-style: italic;"&gt;/usr/local/etc/denyhosts.conf&lt;/span&gt; and uncoment the &lt;span style="font-style: italic;"&gt;BLOCK_SERVICE  = sshd&lt;/span&gt; entry.&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/denyhosts onestart&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Steps 1 to 3 deal with the installation procedure.&lt;br /&gt;&lt;br /&gt;From step 4 to 9,&lt;span style="font-style: italic;"&gt; rc.conf&lt;/span&gt; is updated so that DenyHosts is started at boot time and can act as a daemon monitoring SSH unauthorized login attempts registering them in &lt;span style="font-style: italic;"&gt;hosts.deniedssh&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Finally, step 10 starts DenyHosts imediattely.&lt;br /&gt;&lt;br /&gt;If you wish to learn more about DenyHosts have a look at the project's homepage at &lt;a href="http://denyhosts.sourceforge.net"&gt;http://denyhosts.sourceforge.net&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2432802791172274088?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2432802791172274088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2432802791172274088' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2432802791172274088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2432802791172274088'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/howto-using-denyhosts-to-help-thwart.html' title='HowTo: Using DenyHosts to help thwart SSH attacks on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1543381133805026347</id><published>2009-04-24T11:50:00.001+01:00</published><updated>2009-04-28T11:51:56.314+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><title type='text'>HowTo: Enemy Territory on Gentoo Linux</title><content type='html'>Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.&lt;br /&gt;&lt;br /&gt;In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Gentoo Linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;1) Install and update Enemy Territory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Become the superuser:&lt;br /&gt;&lt;blockquote&gt;$ su&lt;/blockquote&gt;And emerge the needed package:&lt;br /&gt;&lt;blockquote&gt;# emerge enemy-territory&lt;br /&gt;&lt;/blockquote&gt;The game's License Agreement will appear to which you must press the &lt;span style="font-style: italic;"&gt;q&lt;/span&gt; key so that the following prompt appears:&lt;br /&gt;&lt;blockquote&gt;Do you accept the terms of this license (RTCW-ETEULA)? [yes/no]&lt;/blockquote&gt;Type &lt;span style="font-style: italic;"&gt;yes&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Now start the game, create a player profile and quit. By doing so a &lt;span style="font-style: italic;"&gt;.etwolf&lt;/span&gt; directory will be created in your home directory which includes a folder containing PunkBuster.&lt;br /&gt;&lt;br /&gt;Inside the game you can check the installed version by pulling the console down by pressing &lt;span style="font-style: italic;"&gt;~ &lt;/span&gt;and typing version. It should output the following:&lt;br /&gt;&lt;blockquote&gt;]\version&lt;/blockquote&gt;&lt;blockquote&gt;"version" is:"ET 2.60 linux-i386 Mar 10 2005" default:"ET 2.60 linux-i386 Mar 10 2005"&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;2) Install the ET Pro mod&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To do so run:&lt;br /&gt;&lt;blockquote&gt;# emerge enemy-territory-etpro&lt;br /&gt;&lt;/blockquote&gt;Now ET Pro will show under the Mods options in the games' main menu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;3) Update PunkBuster&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Point to &lt;a href="http://www.evenbalance.com/index.php?page=pbsetup.php"&gt;http://www.evenbalance.com/index.php?page=pbsetup.php&lt;/a&gt; scroll down and follow the Linux download to download PunkBuster update application.&lt;br /&gt;&lt;br /&gt;Change directory to where you've downloaded the &lt;span style="font-style: italic;"&gt;pbsetup.run&lt;/span&gt; and:&lt;blockquote&gt;# su&lt;br /&gt;# chmod +x pbsetup.run&lt;br /&gt;# exit&lt;br /&gt;$ cp pbsetup.run ~/.etwolf/pb&lt;br /&gt;$ ./pbsetup.run&lt;/blockquote&gt;PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to &lt;span style="font-style: italic;"&gt;"Add a Game option&lt;/span&gt;", choose Enemy Territory and its installation path (&lt;span style="font-style: italic;"&gt;/opt/enemy-territory&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;On the main PunkBuster window click on Enemy Territory to select it and press &lt;span style="font-style: italic;"&gt;"Check for Updates"&lt;/span&gt;. Quit PunkBuster after updating it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;4) Install XQF&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To browse and filter server I recommend installing and using the &lt;a href="http://www.linuxgames.com/xqf/index.shtml"&gt;XQF Game Server Browser&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;$ su&lt;br /&gt;# emerge xqf&lt;/blockquote&gt;XQF will identify the installed Enemy Territory so select the game and press &lt;span style="font-style: italic;"&gt;"Update&lt;/span&gt;" to have XQF pull an updated server list.&lt;br /&gt;&lt;br /&gt;I tend to play on &lt;span style="font-style: italic;"&gt;www.Enemy-Territory.com by www.4netplayers.de&lt;/span&gt; server ;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;5) Fix sound issues&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ET uses Linux's OSS sound infrastructure so you might come across issues. If so please consult the &lt;a href="http://www.gentoo.org/doc/en/alsa-guide.xml"&gt;Gentoo Linux Alsa Guide&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And we're done! See you on the battlefield :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1543381133805026347?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1543381133805026347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1543381133805026347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1543381133805026347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1543381133805026347'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/howto-enemy-territory-on-gentoo-linux.html' title='HowTo: Enemy Territory on Gentoo Linux'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-41451724182466901</id><published>2009-04-22T00:29:00.015+01:00</published><updated>2011-04-20T16:17:14.499+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>HowTo: Enemy Territory on Debian Linux</title><content type='html'>Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.&lt;br /&gt;&lt;br /&gt;In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Debian GNU/Linux. As a bonus I'll also describe how to workaround sound problems with Enemy Territory on Debian.&lt;br /&gt;&lt;br /&gt;These steps can be pretty much be reproduced in any Linux distribution. It should be noted that the steps were performed on Debian Lenny but should translate to newer releases.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;1) Install and update Enemy Territory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let's start by fetching the games' installer, make the downloaded file executable and run it to install the game:&lt;br /&gt;&lt;blockquote&gt;$ wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run&lt;br /&gt;$ su&lt;br /&gt;# chmod +x et-linux-2.60.x86.run&lt;br /&gt;#./et-linux-2.60.x86.run&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;Press OK in the popup.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Agree with the License Agreement by pressing ENTER at the License Agreement prompt and choosing YES on "Do you agree with the license?" popup that follows.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Choose NO at the "Would you like to read the CHANGES file?" popup. You can allways read the CHANGES file latter on if you want.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Choose the installation path. And press in the Symlink path popup press ENTER.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Install both Enemy Territory and Punkbuster by pressing the TAB key to move to the OK option.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The License Agreement for Punkbuster shows up. Press ENTER twice.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Choose to install the startup menu entries.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After this the game installs. Don't choose to start the game imediatlely as we haven't finished installing everything.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Now download its update:&lt;br /&gt;&lt;blockquote&gt;$ wget -c http://darkstar.ist.utl.pt/games/et-2.60b.zip&lt;/blockquote&gt;Unzip the file:&lt;br /&gt;&lt;blockquote&gt;$ unzip et-2.60b.zip&lt;br /&gt;&lt;/blockquote&gt;Change directory of the unziped directory and copy the update files to games' directory:&lt;br /&gt;&lt;blockquote&gt;$ cd Enemy\ Territory\ 2.60b/linux&lt;br /&gt;$ su&lt;br /&gt;# cp * /usr/local/games/enemy-territory/&lt;br /&gt;&lt;/blockquote&gt;Logout from the root account:&lt;br /&gt;&lt;blockquote&gt;# exit&lt;/blockquote&gt;Now start the game, create a player profile and quit. By doing so a &lt;span style="font-style: italic;"&gt;.etwolf&lt;/span&gt; directory will be created in your home directory which includes a folder containing PunkBuster.&lt;br /&gt;&lt;br /&gt;Inside the game you can check the installed version by pulling the console down by pressing &lt;span style="font-style: italic;"&gt;~ &lt;/span&gt;and typing version. It should output the following:&lt;br /&gt;&lt;blockquote&gt;]\version&lt;br /&gt;&lt;br /&gt;"version" is:"ET 2.60b linux-i386 May  8 2006" default:"ET 2.60b linux-i386 May  8 2006"&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;2) Install the ET Pro mod&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next let's install Enemy Territory's best mod: ET Pro.&lt;br /&gt;&lt;blockquote&gt;$ wget -c http://bani.anime.net/etpro/etpro-3_2_6.zip&lt;br /&gt;$ unzip etpro-3_2_6.zip&lt;br /&gt;$ et&lt;br /&gt;$ cp -R etpro ~/.etwolf&lt;br /&gt;&lt;/blockquote&gt;Now ET Pro will show under the Mods options in the games' main menu.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Note&lt;/u&gt;: If have other users using ET I suggest copying &lt;i&gt;etpro&lt;/i&gt; to &lt;i&gt;/usr/local/games/enemy-territory&lt;/i&gt; instead thus making the mod available to every user.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;3) Update PunkBuster&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Point to &lt;a href="http://www.evenbalance.com/index.php?page=pbsetup.php"&gt;http://www.evenbalance.com/index.php?page=pbsetup.php&lt;/a&gt; scroll down and follow the Linux download to download PunkBuster update application.&lt;br /&gt;&lt;br /&gt;Change directory to where you've downloaded the &lt;span style="font-style: italic;"&gt;pbsetup.run&lt;/span&gt; and:&lt;blockquote&gt;# su&lt;br /&gt;# chmod +x pbsetup.run&lt;br /&gt;# exit&lt;br /&gt;$ cp pbsetup.run ~/.etwolf/pb&lt;br /&gt;$ ./pbsetup.run&lt;/blockquote&gt;PunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to &lt;span style="font-style: italic;"&gt;"Add a Game option&lt;/span&gt;" and choose Enemy Territory. Punkbuster will point the installation path to your username's &lt;span style="font-style: italic;"&gt;.etwolf&lt;/span&gt; directory.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Note&lt;/u&gt;: If you want all your users to have Punkbuster updated run the above steps as root and point to the game's install directory which should be &lt;span style="font-style: italic;"&gt;/usr/local/games/enemy-territory&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;On the main PunkBuster window click on Enemy Territory to select it and press &lt;span style="font-style: italic;"&gt;"Check for Updates"&lt;/span&gt;. Quit PunkBuster after updating it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;4) Install XQF&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To browse and filter server I recommend installing and using the &lt;a href="http://www.linuxgames.com/xqf/index.shtml"&gt;XQF Game Server Browser&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;$ su&lt;br /&gt;# aptitude install xqf&lt;/blockquote&gt;XQF will identify the installed Enemy Territory so select the game and press &lt;span style="font-style: italic;"&gt;"Update&lt;/span&gt;" to have XQF pull an updated server list.&lt;br /&gt;&lt;br /&gt;I tend to play on &lt;span style="font-style: italic;"&gt;www.Enemy-Territory.com by www.4netplayers.de&lt;/span&gt; server ;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;"&gt;5) Fix sound issues&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ET uses Linux's OSS sound infrastructure. If you don't have sound here's how to enable the needed kernel module at boot time:&lt;blockquote&gt;$ su&lt;br /&gt;# echo "snd_pcm_oss" &amp;gt;&amp;gt; /etc/modules&lt;br /&gt;# modprobe snd_pcm_oss&lt;br /&gt;&lt;/blockquote&gt;And we're done! See you on the battlefield :D&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 21px; font-weight: bold; "&gt;Bonus section: etpro launch script&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you play etpro if can repeat the following steps to launch etpro directly (I'm assuming your shell is Bash):&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;$ echo 'export PATH=$PATH:$HOME/bin' &amp;gt;&amp;gt; ~/.bashrc&lt;/div&gt;&lt;div&gt;$ mkdir ~/bin&lt;/div&gt;&lt;div&gt;$ touch ~/bin/et-pro&lt;/div&gt;&lt;div&gt;$ chmod +x ~/bin/et-pro&lt;/div&gt;&lt;div&gt;$ vim ~/bin/et-pro&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Add the following lines:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;div&gt;cd "/usr/local/games/enemy-territory/"&lt;/div&gt;&lt;div&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.&lt;/div&gt;&lt;div&gt;exec ./et.x86 "$@" +set fs_game etpro&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Now you can launch etpro simply by:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;$ et-pro&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-41451724182466901?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/41451724182466901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=41451724182466901' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/41451724182466901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/41451724182466901'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/howto-enemy-territory-on-debian-linux.html' title='HowTo: Enemy Territory on Debian Linux'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1456302644336936049</id><published>2009-04-16T13:23:00.002+01:00</published><updated>2009-04-16T13:28:33.438+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Book Review: Building a Server with FreeBSD 7</title><content type='html'>I just love this book. Refreshing concept, clean, straight to the point and very very lean. In it you won't find any desktop related topics, this is an 100% server oriented book.&lt;br /&gt;&lt;br /&gt;This is the book to get if you want to step up a server running services such as Apache, FTP, SAMBA, DNS, DHCP, NTP, VPN and so on. Chapter 1, presents the reader on clear and very straight to the option instructions on how to install FreeBSD and perform core administrative actions.&lt;br /&gt;&lt;br /&gt;After this chapter we move to the core of the book: services. For here on the reader can choose the service he wants to install/configure and jump right to it.&lt;br /&gt;&lt;br /&gt;For each service the author describes the application's background and history, software version used in the book, needed dependencies, install and configurations instructions. The book also shows how to test the service and points to further information. All this is a very systematic and streamlined manner.&lt;br /&gt;&lt;br /&gt;BASWF7 is 288 pages long and makes a nice companion to set up services on FreeBSD for anyone acquainted with UNIX like systems. It's also a good complement to FreeBSD's own Handbook by moving into the territory where the Handbook falls short: third parties application configuration.&lt;br /&gt;&lt;br /&gt;The book however isn't perfect. It should have in my opinion instructions on how to set up NFS and provide security hardening instructions/advice such as how to build a simple firewall to protect the server.&lt;br /&gt;&lt;br /&gt;To sum up: I full hearty recommend this book to anyone wanting to build a server with FreeBSD.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1456302644336936049?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1456302644336936049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1456302644336936049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1456302644336936049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1456302644336936049'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/book-review-building-server-with.html' title='Book Review: Building a Server with FreeBSD 7'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4126270333895831106</id><published>2009-04-16T08:56:00.001+01:00</published><updated>2009-04-16T08:57:18.189+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: D-Link DGE-528 on FreeBSD</title><content type='html'>Here's how to enable 1000baseTX full-duplex on a D-Link DGE-528 network card:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# pciconf -lv&lt;/li&gt;&lt;li&gt;# ifconfig&lt;/li&gt;&lt;li&gt;# ifconfig -m re0&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# ifconfig re0 media 1000baseTX mediaopt full-duplex&lt;/li&gt;&lt;li&gt;# vim /etc/rc.conf&lt;/li&gt;&lt;li&gt;ifconfig_re0="inet 192.168.1.3  netmask 255.255.255.0 media 1000baseTX mediaopt full-duplex"&lt;/li&gt;&lt;/ol&gt;Start by becoming the superuser.&lt;br /&gt;&lt;br /&gt;Steps 2, 3 and 4 help you determine where the card is (in my case re0) and collect more info on it.&lt;br /&gt;&lt;br /&gt;On step 5 use &lt;span style="font-style: italic;"&gt;ifconfig&lt;/span&gt; to apply the new setting and test the card out. If everything is ok add the &lt;span style="font-style: italic;"&gt;ifconfig&lt;/span&gt; setting to &lt;span style="font-style: italic;"&gt;/etc/rc.conf&lt;/span&gt; (steps 6 and 7) so that the next time you boot the next settings are applied.&lt;br /&gt;&lt;br /&gt;Sources:&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=re&amp;amp;sektion=4&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;man 4 re&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ifconfig&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;man 8 ifconfig&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4126270333895831106?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4126270333895831106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4126270333895831106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4126270333895831106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4126270333895831106'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/tip-d-link-dge-528-on-freebsd.html' title='Tip: D-Link DGE-528 on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4555095753197447966</id><published>2009-04-15T14:00:00.006+01:00</published><updated>2009-04-15T21:04:47.711+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NVIDIA'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Tip: Fixing NVIDIA mismatched kernel module on Debian</title><content type='html'>I've installed Debian 5 Lenny a few day ago and imagine my surprise when yesterday I decided to update it and came across a broken Xorg.&lt;br /&gt;&lt;br /&gt;Upon boot X11 didn't load and presented the following error message:&lt;br /&gt;&lt;blockquote style="font-style: italic;"&gt;Failed to load the NVIDIA kernel module!&lt;/blockquote&gt;One of the updated packages was the Linux kernel, so I suspected that the problem was with the NVIDIA package and a mismatched Linux kernel.&lt;br /&gt;&lt;br /&gt;I had &lt;span style="font-style: italic;"&gt;nvidia-kernel-2.6.26-1-686&lt;/span&gt; installed and the new kernel was 2.6.26-2-686 so I needed a matching NVIDIA kernel module.&lt;br /&gt;&lt;br /&gt;So here are the steps that I took to fix things up:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# aptitude search ~i~nvidia&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# aptitude update&lt;/li&gt;&lt;li&gt;# aptitude purge nvidia-glx&lt;/li&gt;&lt;li&gt;# aptitude install nvidia-kernel-2.6-686&lt;/li&gt;&lt;li&gt;# aptitude install nvidia-glx&lt;/li&gt;&lt;li&gt;# /etc/init.d/gdm restart&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;On step 1 let's us check exactly what we have installed related with &lt;span style="font-style: italic;"&gt;nvidia&lt;/span&gt;. Next we update the apt's database and proceed removing the &lt;span style="font-style: italic;"&gt;nvidia-glx&lt;/span&gt; on setp 3.&lt;br /&gt;&lt;br /&gt;With steps 4 &lt;span style="font-style: italic;"&gt;nvidia-kernel-2.6.26-2-686&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;nvidia-kernel-common &lt;/span&gt;are pulled in and you'll be syncronized with the installed Linux kernel.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-style: italic;"&gt;nvidia-glx&lt;/span&gt; package is installed in step 5 and finnally &lt;span style="font-style: italic;"&gt;gdm&lt;/span&gt; (replace &lt;span style="font-style: italic;"&gt;gdm&lt;/span&gt; by the login manager you are using) is restarted bringing X11 back online.&lt;br /&gt;&lt;br /&gt;And we're done. Bloodly kernel upgrades ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4555095753197447966?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4555095753197447966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4555095753197447966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4555095753197447966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4555095753197447966'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/tip-fixing-nvidia-mismatched-kernel.html' title='Tip: Fixing NVIDIA mismatched kernel module on Debian'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8076461585079464735</id><published>2009-04-09T10:10:00.003+01:00</published><updated>2009-04-09T10:14:38.759+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Tip: Updating packages that don't want to be updated on Debian</title><content type='html'>In my desktop I have a series of operating systems including Debian GNU/Linux. Having spent most of my time in FreeBSD running XFCE4 I figured I'd update my Debian Sid install whose last update as performed more that 6 months ago.&lt;br /&gt;&lt;br /&gt;So after performing apt-get update, apt-get upgrade and apt-get dist-upgrade a few packages insisted on not wanting to be updated with APT screaming &lt;span style="font-style: italic;"&gt;"The following packages have been kept back"&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;A quick jump to the Debian's own APT HOWTO at &lt;a href="http://www.debian.org/doc/manuals/apt-howto/index.en.html#contents"&gt;http://www.debian.org/doc/manuals/apt-howto/index.en.html#contents&lt;/a&gt; presented some APT stuff that I were unaware.&lt;br /&gt;&lt;br /&gt;So to know what's keeping a package from being updated you may use:&lt;br /&gt;&lt;blockquote&gt;apt-get -o Debug::pkgProblemResolver=yes dist-upgrade&lt;/blockquote&gt;Running this command helped me out in figuring what to do, which involved removing and re-installing some packages in a specific order.&lt;br /&gt;&lt;br /&gt;APT does have some interesting thing into it doesn't it?&lt;br /&gt;&lt;br /&gt;;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8076461585079464735?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8076461585079464735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8076461585079464735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8076461585079464735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8076461585079464735'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/04/tip-updating-packages-that-dont-want-to.html' title='Tip: Updating packages that don&apos;t want to be updated on Debian'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6344506769432139587</id><published>2009-03-24T15:16:00.003Z</published><updated>2010-01-15T15:52:24.826Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Build ports on multiple processing cores</title><content type='html'>Ports framework supports building ports on multiple processing cores as announced today in the project's mailing list. This is achieved by passing -jX flag to &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=make&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;make(1)&lt;/a&gt; running on vendor code.&lt;br /&gt;&lt;br /&gt;Do notice that not all ports support this feature so ports that support this feature have their Makefile updated with MAKE_JOBS_SAFE=yes.&lt;br /&gt;&lt;br /&gt;This feature is now enabled by default with the level of parallelization being equal to a number of processing cores in your computer. This value can however be overridden, for example if you want 6 jobs:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# echo "MAKE_JOBS_NUMBER=6" &gt;&gt; /etc/make.conf&lt;/li&gt;&lt;/ul&gt;However if you want to disable this feature:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;% echo "DISABLE_MAKE_JOBS=yes" &gt;&gt; /etc/make.conf&lt;/li&gt;&lt;/ul&gt;You can read the announcement at &lt;a href="http://lists.freebsd.org/pipermail/freebsd-ports/2009-March/053736.html"&gt;http://lists.freebsd.org/pipermail/freebsd-ports/2009-March/053736.html&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6344506769432139587?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6344506769432139587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6344506769432139587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6344506769432139587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6344506769432139587'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-build-ports-on-multiple-processing.html' title='Tip: Build ports on multiple processing cores'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-456012861071753411</id><published>2009-03-24T10:22:00.021Z</published><updated>2009-03-26T13:59:41.904Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='NVIDIA'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Install and configure NVIDIA drivers on FreeBSD</title><content type='html'>FreeBSD's Ports collection contains the official NVIDIA binary drivers for hardware OpenGL rendering in X, using the GLX extensions.The x11/nvidia-driver points to NVIDIA's latest stable driver set.&lt;br /&gt;&lt;br /&gt;If you are using a legacy card check NVIDIA's site to see which driver set supports your card and browse the Ports tree for the suitable driver version and install that instead.&lt;br /&gt;&lt;br /&gt;Bellow are the steps needed to install NVIDIA drivers on i386 FreeBSD 7.1:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# portsnap fetch update&lt;/li&gt;&lt;li&gt;# cd /usr/ports/x11/nvidia-drivers&lt;/li&gt;&lt;li&gt;# make config&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# echo 'nvidia_load="YES"' &gt;&gt; /boot/loader.conf&lt;/li&gt;&lt;li&gt;# echo 'linux_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'hint.agp.0.disabled="1"' &gt;&gt; boot/device.hints&lt;/li&gt;&lt;/ul&gt;Basically start by updating your ports tree, installing the driver and preparing FreeBSD to load the NVIDIA kernel module it at boot time. Consider selecting ACPI (enable support for ACPI Power Management) and LINUX (build with support for Linux compatibility) port options.&lt;br /&gt;&lt;br /&gt;Now let's proceed by editing &lt;span style="font-style: italic;"&gt;/etc/X11/xorg.conf&lt;/span&gt; to have it use the NVIDIA driver and add some options to increase performance:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;edit /etc/X11/xorg.conf and change the driver value from &lt;span style="font-style: italic;"&gt;"nv"&lt;/span&gt; to &lt;span style="font-style: italic;"&gt;"nvidia"&lt;/span&gt;:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Driver  "nvidia"&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;under the &lt;span style="font-style: italic;"&gt;Device&lt;/span&gt; section of &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt; add the following options:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Option "RenderAccel" "True"&lt;br /&gt;Option "NoRenderExtension" "False"&lt;br /&gt;Option "NoFlip" "False"&lt;br /&gt;Option "UseEdid" "True"&lt;br /&gt;Option "NvAGP" "1"&lt;/blockquote&gt;Additional performance options can be enabled, however these might affect stability. To enable Side Band Addressing and Fast Writes add the following sysctls to /etc/sysctl.conf:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# echo "hw.nvidia.registry.EnableAGPSBA=1" &gt;&gt; /etc/sysctl.conf&lt;/li&gt;&lt;li&gt;# echo "hw.nvidia.registry.EnableAGPFW=1" &gt;&gt; /etc/sysctl.conf&lt;/li&gt;&lt;/ul&gt;Finally:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# reboot&lt;/li&gt;&lt;/ul&gt;Further reading material can be found at:&lt;br /&gt;&lt;a href="http://www.freebsd.org/doc/en/books/handbook/x11.html"&gt;http://www.freebsd.org/doc/en/books/handbook/x11.html&lt;/a&gt;&lt;br /&gt;/usr/local/share/doc/NVDIA_GLX-1.0/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-456012861071753411?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/456012861071753411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=456012861071753411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/456012861071753411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/456012861071753411'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/howto-install-and-configure-nvidia.html' title='HowTo: Install and configure NVIDIA drivers on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2347997356681432287</id><published>2009-03-23T14:34:00.005Z</published><updated>2010-01-15T15:53:20.929Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Use SUB_LIST to discover a port's VAR paths on FreeBSD</title><content type='html'>I was looking for man pages, READMEs and assorted information on the nvidia-driver port and couldn't recall where I'd seen the port's installed documentation.&lt;br /&gt;&lt;br /&gt;Enter SUB_LIST for the rescue:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% cd /usr/ports/x11/nvidia-driver&lt;/li&gt;&lt;li&gt;% make -V SUB_LIST&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local  DATADIR=/usr/local/share/nvidia-driver DOCSDIR=/usr/local/share/doc/NVIDIA_GLX-1.0 EXAMPLESDIR=/usr/local/share/examples/nvidia-driver  WWWDIR=/usr/local/www/nvidia-driver ETCDIR=/usr/local/etc/nvidia-driver&lt;/blockquote&gt;SUB_LIST kindly outputs a list of VAR=VALUE pairs, showing useful information such as PREFIX and DOCSDIR.&lt;br /&gt;&lt;br /&gt;Pretty nice eh? ;)&lt;br /&gt;&lt;br /&gt;Point to &lt;a href="http://www.freebsd.org/doc/en/books/porters-handbook/using-sub-files.html"&gt;http://www.freebsd.org/doc/en/books/porters-handbook/using-sub-files.html&lt;/a&gt; for further information on ports and SUB_LIST.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2347997356681432287?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2347997356681432287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2347997356681432287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2347997356681432287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2347997356681432287'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-use-sublist-to-discover-ports-var.html' title='Tip: Use SUB_LIST to discover a port&apos;s VAR paths on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-49140426294827721</id><published>2009-03-23T10:21:00.011Z</published><updated>2011-10-27T16:50:24.397+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Fix SATA DMA timeout issues on FreeBSD</title><content type='html'>&lt;div&gt;&lt;i&gt;&lt;b&gt;Update: added instructions for those using FreeBSD 8.x.&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;I've experienced heavy problems with a recently purchased 1TB SATA drive from Samsung on ICH7 motherboard running a fresh FreeBSD 7.1 install. The system was issuing loads of SATA timeout errors that culminated in system crashes, drive disconnection and data loss.&lt;br /&gt;&lt;br /&gt;Here's a snip of my &lt;span style="font-style: italic;"&gt;/var/log/messages&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;kernel: ad4: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=26003999&lt;br /&gt;kernel: ad4: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=56856991&lt;br /&gt;kernel: ad4: WARNING - WRITE_DMA UDMA ICRC error (retrying request) LBA=57609503&lt;br /&gt;kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry left) LBA=174249023&lt;br /&gt;kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry left) LBA=190428031&lt;br /&gt;kernel: ad4: WARNING - WRITE_DMA48 UDMA ICRC error (retrying request) LBA=1351930207&lt;br /&gt;kernel: ad4: TIMEOUT - WRITE_DMA48 retrying (0 retries left) LBA=1351930207&lt;/blockquote&gt;Upon searching for solutions I came across Jeremy Chadwick's page on &lt;a href="http://wiki.freebsd.org/"&gt;wiki.freebsd.org&lt;/a&gt;. Jeremy has been registering issues that are commonly reported by FreeBSD users and also published troubleshooting methods for ATA/SATA issues.&lt;br /&gt;&lt;br /&gt;Jeremy informs that Volker Theile of the FreeNAS project had solved most of the problems by increasing a hard-coded arbitrary timeout value of 5 (seconds) in the ATA code to 10 or 15, while simultaneously making the timeout value adjustable via &lt;span style="font-style: italic;"&gt;sysctl&lt;/span&gt;.&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;So I thought to myself "Might as well try the patch out and hope for the best". And I'm glad that I went along and tried it out as it fixed all of my issues.&lt;br /&gt;&lt;br /&gt;Bellow are the needed steps to fetch the patch, apply it and compile a patched kernel:&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;% fetch http://freenas.svn.sourceforge.net/viewvc/freenas/trunk/build/kernel-patches/ata/files/patch-ata.diff&lt;/li&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# csup -h cvsup2.uk.freebsd.org -L 2 /usr/share/examples/cvsup/standard-supfile&lt;/li&gt;&lt;li&gt;# cd /usr/src/sys/dev&lt;/li&gt;&lt;li&gt;# patch &amp;lt; /path/to/patch&lt;/li&gt;&lt;li&gt;# cd /usr/src&lt;/li&gt;&lt;li&gt;# make kernel&lt;/li&gt;&lt;li&gt;# cp -Rp /boot/kernel.old /boot/kernel.SATA-ISSUES&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# reboot&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Start by fetching the patch (step 1), next change to root and fetch FreeBSD's  source code as detailed in step3.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Note:&lt;/b&gt; if you are running FreeBSD 8.x fetch the patch file using this URL instea&lt;span&gt;&lt;span&gt;d &lt;a href="http://www.avenard.org/files/ata_timeout.patch"&gt;http://www.avenard.org/files/ata_timeout.patch&lt;/a&gt;. Replace the step 1 URL with this one.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next, with steps 4 and 5 patch the source code with FreeNAS' patch and build a patched kernel. Do notice that I used &lt;span style="font-style: italic;"&gt;csup&lt;/span&gt; pointing to &lt;span style="font-style: italic;"&gt;/usr/share/examples/cvsup/standard-supfile&lt;/span&gt; as I'm running FreeBSD 7.1 (of simply use your own supfile). Further information on how to build a kernel can be found at &lt;a href="http://www.freebsd.org/handbook/kernelconfig.html"&gt;http://www.freebsd.org/handbook/kernelconfig.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As a safety precaution back up the old kernel as described in step 9.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally reboot to the new kernel and monitor &lt;span style="font-style: italic;"&gt;/var/log/messages&lt;/span&gt; for SATA timeout issues. After I've applied the patch my problems have stopped.&lt;br /&gt;&lt;br /&gt;Props to:&lt;/div&gt;&lt;div&gt;Jeremy Chadwick and Volker Theile for the FreeBSD 7.x patch.&lt;/div&gt;&lt;div&gt;Jean-Yves Avenard for providing the URL a FreeBSD 8.x patch.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;Sources:&lt;br /&gt;&lt;a href="http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting"&gt;http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting&lt;/a&gt;&lt;br /&gt;&lt;a href="http://freenas.svn.sourceforge.net/viewvc/freenas/trunk/build/kernel-patches/ata/files/patch-ata.diff?view=markup"&gt;http://freenas.svn.sourceforge.net/viewvc/freenas/trunk/build/kernel-patches/ata/files/patch-ata.diff?view=markup&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html"&gt;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/handbook/kernelconfig.html"&gt;http://www.freebsd.org/handbook/kernelconfig.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-49140426294827721?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/49140426294827721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=49140426294827721' title='65 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/49140426294827721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/49140426294827721'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/howto-fix-sata-dma-timeout-issues-on.html' title='HowTo: Fix SATA DMA timeout issues on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>65</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5988069700023643573</id><published>2009-03-17T11:01:00.005Z</published><updated>2009-03-17T11:23:26.946Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Add color to man pages with most on FreeBSD</title><content type='html'>&lt;span style="font-style: italic;"&gt;&lt;/span&gt;man pages are formatted using FreeBSD &lt;span style="font-style: italic;"&gt;less&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;more&lt;/span&gt; utilities which display text in blank and white colors. &lt;span style="font-style: italic;"&gt;most&lt;/span&gt; on the other hand introduces the ability to view man pages formatted with colors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;most&lt;/span&gt; is a pager (like &lt;span style="font-style: italic;"&gt;less&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;more&lt;/span&gt;) that displays, one windowful at a time, the contents of a file on a terminal.  It pauses after each windowful and prints the following on the window status line: the screen, the file name, current line number, and the percentage of the file so far displayed.&lt;br /&gt;&lt;br /&gt;Let's install &lt;span style="font-style: italic;"&gt;most&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/sysutils/most&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;/ul&gt;Users of csh or tcsh shells can try most out by setting the &lt;span style="font-style: italic;"&gt;PAGER&lt;/span&gt; environment variable like so:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% setenv PAGER most&lt;/li&gt;&lt;/ul&gt;Those that use the zsh shell can set the &lt;span style="font-style: italic;"&gt;PAGER&lt;/span&gt; environment variable like this:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% export PAGER=most&lt;/li&gt;&lt;/ul&gt;If you like it editing you user shell configuration file and set the &lt;span style="font-style: italic;"&gt;PAGER&lt;/span&gt; variable to &lt;span style="font-style: italic;"&gt;most&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;As &lt;span style="font-style: italic;"&gt;most&lt;/span&gt; is a third party application I'd suggest that you don't use it as the default pager for the root account. I'm sure you don't want to find yourself in single user mode with only the root partition mounted and realize that your &lt;span style="font-style: italic;"&gt;.cshrc&lt;/span&gt; defines &lt;span style="font-style: italic;"&gt;most&lt;/span&gt; has the pager ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5988069700023643573?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5988069700023643573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5988069700023643573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5988069700023643573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5988069700023643573'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-add-color-to-man-pages-with-most-on.html' title='Tip: Add color to man pages with most on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1129665103694314594</id><published>2009-03-11T11:04:00.012Z</published><updated>2010-01-25T12:53:30.965Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>HowTo: Determine the fastest CVSup mirror on FreeBSD</title><content type='html'>fastest_cvsup is a Perl script to find fastest CVSup server. Amongst it's feature it:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;uses socket connections not just 'pings'&lt;/li&gt;&lt;li&gt;takes notice of server responses&lt;/li&gt;&lt;li&gt;connects to servers in countries specified on the command line - or - connects to the 'local' servers defined in the script  - or - connects to ALL the servers in ALL the countries&lt;/li&gt;&lt;li&gt;returns either fastest server or top 3 (useful for scripts)&lt;/li&gt;&lt;li&gt;returns exit codes (useful for scripts)&lt;/li&gt;&lt;li&gt;can re-write itself to update the CVSup server list, obtained  from the online FreeBSD Handbook&lt;/li&gt;&lt;li&gt;can easily add other CVSup servers (NetBSD/OpenBSD...etc)&lt;/li&gt;&lt;/ul&gt;Here's how to identify the fastest CVSup mirror:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/sysutils/fastest_cvsup&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;li&gt;% fastest_cvsup -Q -r -c all&lt;/li&gt;&lt;/ol&gt;We've started by becoming the superuser,  proceeded by installing the port and finally ran it. After running the last command, the application will prompt the fastest mirror.&lt;br /&gt;&lt;br /&gt;Change your &lt;span style="font-style: italic;"&gt;/etc/make.conf&lt;/span&gt; or supfiles with the new mirror. In alternative pass the determined mirror at the command line when running &lt;span style="font-style: italic;"&gt;csup&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;For more options run:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% fastest_cvsup -h&lt;/li&gt;&lt;li&gt;% man fastest_cvsup&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Some further examples of the script's usage:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;times the FreeBSD CVSup servers in the United Kingdom, France and Germany:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;% fastest_cvsup -c uk,fr,de&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;times the OpenBSD and NetBSD CVSup servers:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;% fastest_cvsup -c openbsd,netbsd&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;shell script, finds the fastest UK FreeBSD CVSup server, then runs csup using that server:&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;#!/bin/sh&lt;br /&gt;if SERVER=`fastest_cvsup -q -c uk`; then&lt;br /&gt;csup -h $SERVER /usr/share/examples/cvsup/standard-supfile&lt;br /&gt;fi&lt;/blockquote&gt;The project's website can be found at &lt;a href="http://fastest-cvsup.sourceforge.net/"&gt;http://fastest-cvsup.sourceforge.net/&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1129665103694314594?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1129665103694314594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1129665103694314594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1129665103694314594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1129665103694314594'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-identify-fastest-cvsup-mirror-on.html' title='HowTo: Determine the fastest CVSup mirror on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2762774477281695759</id><published>2009-03-09T14:22:00.006Z</published><updated>2009-03-09T14:42:22.307Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Enable sudo completion in tcsh/csh shell</title><content type='html'>Having &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/03/howto-using-sudo-on-freebsd.html"&gt;installed and setup sudo&lt;/a&gt; I realized that the C shell (e.g. tcsh/csh) didn't autocomplete commands issued after typing sudo.&lt;br /&gt;&lt;br /&gt;Place the following in your .cshrc file:&lt;br /&gt;&lt;blockquote&gt;set complete    =    enhance&lt;br /&gt;complete sudo    'n/-l/u/' 'p/1/c/'&lt;br /&gt;&lt;/blockquote&gt;And finally source the changes:&lt;br /&gt;&lt;blockquote&gt;% source .cshrc&lt;/blockquote&gt;For more information visit &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=tcsh&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;tcsh(1)&lt;/a&gt; in the REFERENCE section under complete.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2762774477281695759?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2762774477281695759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2762774477281695759' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2762774477281695759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2762774477281695759'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-enable-sudo-completion-in-tcshcsh.html' title='Tip: Enable sudo completion in tcsh/csh shell'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6938964810985516635</id><published>2009-03-09T11:01:00.007Z</published><updated>2009-03-09T11:21:14.880Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Allow users to shutdown the system on FreeBSD</title><content type='html'>Operations such as shutdown and rebooting usually require root privileges. However, one may allow other users to run these commands with success.&lt;br /&gt;&lt;br /&gt;To allow users to shutdown a FreeBSD system you basically have two options: add the user to the &lt;span style="font-style: italic;"&gt;operator&lt;/span&gt; group or install and configure &lt;span style="font-style: italic;"&gt;sudo&lt;/span&gt; to allow usage of the administrative command. I've already covered the latter option in a &lt;a href="http://linux-bsd-sharing.blogspot.com/2009/03/howto-using-sudo-on-freebsd.html"&gt;previous post&lt;/a&gt; so I'll only go over the remaining option here.&lt;br /&gt;&lt;br /&gt;The steps consist in becoming root and using &lt;span style="font-style: italic;"&gt;pw&lt;/span&gt; to add the user (in the example bellow &lt;span style="font-style: italic;"&gt;username&lt;/span&gt;) to the &lt;span style="font-style: italic;"&gt;operator&lt;/span&gt; group:&lt;br /&gt;&lt;blockquote&gt;% su&lt;br /&gt;# pw groupmod operator -m username&lt;br /&gt;# exit&lt;br /&gt;&lt;/blockquote&gt;To reboot the system login to the user account that belongs to the &lt;span style="font-style: italic;"&gt;operator&lt;/span&gt; group and run:&lt;br /&gt;&lt;blockquote&gt;% shutdown -r now&lt;/blockquote&gt;If you want to power down the system run this instead:&lt;br /&gt;&lt;blockquote&gt;% shutdown -p now&lt;/blockquote&gt;Do take a look at &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=pw&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;pw(8)&lt;/a&gt; and &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=shutdown&amp;amp;manpath=FreeBSD+7.1-RELEASE"&gt;shutdown(8)&lt;/a&gt; manual pages for further information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6938964810985516635?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6938964810985516635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6938964810985516635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6938964810985516635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6938964810985516635'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-allow-users-to-shutdown-system-on.html' title='Tip: Allow users to shutdown the system on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-616562757742491122</id><published>2009-03-06T17:38:00.008Z</published><updated>2009-03-06T18:18:30.420Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Solving the sudo redirect "problem"</title><content type='html'>Upon using sudo more frequently I came across an issue while using redirects, for example:&lt;br /&gt;&lt;blockquote&gt;% sudo echo WITHOUT_IPFILTER=yes &gt; /etc/make.conf&lt;br /&gt;root: Permission denied.&lt;/blockquote&gt;The key to solve the "problem" was to run the command in a sub-shell to make the redirection work, like so:&lt;br /&gt;&lt;blockquote&gt;% sudo sh -c 'echo WITHOUT_IPFILTER=yes &gt; /etc/make.conf'&lt;/blockquote&gt;The answer to this lies in man sudo ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-616562757742491122?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/616562757742491122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=616562757742491122' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/616562757742491122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/616562757742491122'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-solving-sudo-redirect-problem.html' title='Tip: Solving the sudo redirect &quot;problem&quot;'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5742769958540375183</id><published>2009-03-05T00:50:00.014Z</published><updated>2009-04-29T13:42:43.012+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Using sudo on FreeBSD</title><content type='html'>sudo is a great tool for granting specific privileges to users other that the root user. This application allows a permitted user to execute a command as the superuser or another user, as specified in the &lt;span style="font-style: italic;"&gt;sudoers&lt;/span&gt; file.&lt;br /&gt;&lt;br /&gt;Today I'll detail the steps needed to install and configure sudo on FreeBSD from a desktop/workstation perspective, in other words I'll dwell more on less on the common user.&lt;br /&gt;&lt;br /&gt;Let's start by install the application and then proceed to configure the &lt;span style="font-style: italic;"&gt;sudoers&lt;/span&gt; file with &lt;span style="font-style: italic;"&gt;visudo&lt;/span&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/security/sudo ; make install clean&lt;/li&gt;&lt;li&gt;# visudo /usr/local/etc/sudoers&lt;/li&gt;&lt;/ol&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;Uncomment the following line to allow users in the &lt;span style="font-style: italic;"&gt;wheel&lt;/span&gt; group to run all commands:&lt;br /&gt;&lt;blockquote&gt;%wheel    ALL=(ALL) ALL &lt;/blockquote&gt;By enabing this line, users in &lt;span style="font-style: italic;"&gt;wheel&lt;/span&gt; group will have full root privileges on the computer by providing their password in order to use administrative commands.&lt;br /&gt;&lt;br /&gt;If you wish that users in the &lt;span style="font-style: italic;"&gt;wheel&lt;/span&gt; to acquire these privileges without using a password then uncomment the next line instead:&lt;br /&gt;&lt;blockquote&gt;%wheel    ALL=(ALL) NOPASSWD: ALL&lt;/blockquote&gt;sudo can also be used to allow more restrictive usage, for instance to allow the user &lt;span style="font-style: italic;"&gt;freebsduser&lt;/span&gt; to mount and unmount &lt;span style="font-style: italic;"&gt;/cdrom&lt;/span&gt; the following line could be added to &lt;span style="font-style: italic;"&gt;/usr/local/etc/sudoers&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;freebsduser    ALL=/sbin/mount /cdrom,/sbin/umount /cdrom&lt;/blockquote&gt;To allow members of the &lt;span style="font-style: italic;"&gt;users&lt;/span&gt; group shutdown the computer add the following to the&lt;span style="font-style: italic;"&gt; sudoers&lt;/span&gt; file:&lt;br /&gt;&lt;blockquote&gt;%users  localhost=/sbin/shutdown -h now&lt;/blockquote&gt;&lt;strong style="font-weight: normal;"&gt;Add the following line to let user &lt;span style="font-style: italic;"&gt;freebsduser&lt;/span&gt; access all privileges without entering password:&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;freebsduser ALL=(ALL) NOPASSWD: ALL   &lt;/blockquote&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;After editing the &lt;span style="font-style: italic;"&gt;sudoers&lt;/span&gt; file you'll need to issue a &lt;span style="font-style: italic;"&gt;:w!&lt;/span&gt; command in &lt;span style="font-style: italic;"&gt;visudo&lt;/span&gt; as the file is read-only. To use sudo just prefix &lt;span style="font-style: italic;"&gt;sudo&lt;/span&gt; before the command with specific privileges. For the &lt;/span&gt;&lt;span style="font-style: italic;"&gt;%wheel    ALL=(ALL) ALL &lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;example, if you are in the &lt;span style="font-style: italic;"&gt;wheel&lt;/span&gt; group and want to shutdown the computer you'd type:&lt;br /&gt;&lt;blockquote&gt;# sudo shutdown -h now&lt;/blockquote&gt;And insert your passoword.&lt;br /&gt;&lt;br /&gt;Once you enter a correct passwo&lt;/span&gt;rd, sudo records&lt;span name="intelliTxt" id="intelliTxt"&gt; the time and for the next 5 minutes&lt;code&gt;&lt;/code&gt; it won't ask you for a password. After those 5 minutes you &lt;/span&gt;&lt;span name="intelliTxt" id="intelliTxt"&gt;must re-authenticate. You can change the timeout value from 5 to another value by setting the &lt;span style="font-style: italic;"&gt;password_timeout&lt;/span&gt; value in the &lt;span style="font-style: italic;"&gt;/usr/local/etc/sudoers&lt;/span&gt; file).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Every use of sudo is logged in &lt;span style="font-style: italic;"&gt;/var/log/messages&lt;/span&gt;, so do take a look and check for yourself.&lt;br /&gt;&lt;br /&gt;I've only touched the tip of the iceberg on sudo so do take a look at its man page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5742769958540375183?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5742769958540375183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5742769958540375183' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5742769958540375183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5742769958540375183'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/howto-using-sudo-on-freebsd.html' title='HowTo: Using sudo on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2157980244599622486</id><published>2009-03-03T10:10:00.004Z</published><updated>2009-03-05T01:51:05.120Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenOffice'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Disable OpenOffice splash screen in FreeBSD</title><content type='html'>With time OpenOffice's splash screen becomes annoying so end up disabling it on all my machines. Today in FreeBSD mailing list I replied to fellow user who was asking on how to due this on FreeBSD so thought I should share the tip here also.&lt;br /&gt;&lt;br /&gt;Here are the needed steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vim /usr/local/openoffice.org-3.0.0/openoffice.org3/program/sofficerc &lt;/li&gt;&lt;li&gt;Change the Logo variable from 1 to 0 like so&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;[Bootstrap]&lt;br /&gt;Logo=0&lt;/blockquote&gt;We've started by becoming the superuser on step 1, and proceeded to change the &lt;span style="font-style: italic;"&gt;Logo&lt;/span&gt; variable value defined in &lt;span style="font-style: italic;"&gt;/usr/local/openoffice.org-3.0.0/openoffice.org3/program/sofficerc&lt;/span&gt; so that the splash is disabled.&lt;br /&gt;&lt;br /&gt;If by any chance you want to renable the splash screen just change the &lt;span style="font-style: italic;"&gt;Logo&lt;/span&gt; variable value back to 1.&lt;br /&gt;&lt;br /&gt;Simple eh?&lt;br /&gt;&lt;br /&gt;;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2157980244599622486?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2157980244599622486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2157980244599622486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2157980244599622486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2157980244599622486'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/03/tip-disable-openoffice-splash-screen-in.html' title='Tip: Disable OpenOffice splash screen in FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-9133778957297743802</id><published>2009-02-09T15:47:00.005Z</published><updated>2009-04-21T09:34:09.956+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>Tip: Fix keyboard layout problem with Xorg Server 1.5.3 under FreeBSD</title><content type='html'>The Xorg Server was updated to version 1.5.3 and with it came much controversy.&lt;br /&gt;&lt;br /&gt;I had a nice &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt; customized for my hardware and it served me for over a year, however all of a sudden my keyboard layout options weren't read by Xorg. The way input devices were configured in Xorg changed, now being configured by hal.&lt;br /&gt;&lt;br /&gt;Browsing the mailing lists, &lt;span style="font-style: italic;"&gt;/usr/ports/UPDATING&lt;/span&gt; and forum I came across several solutions here's the one I decided to implement:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vi /etc/xorg.conf&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;Section "ServerFlags"&lt;br /&gt;  Option "AllowEmptyInput" "off"&lt;br /&gt;  Option "AutoAddDevices" "off"&lt;br /&gt;EndSection&lt;/blockquote&gt;Basically I've edited &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt; and added options to disable Xorg's use of hal features. Do take notice that I use a window manager (lately Fluxbox) so I don't need hal.&lt;br /&gt;&lt;br /&gt;Anyone needing hal will need to resort to other options. Browse FreeBSD's mailing lists between late January and early February for more info.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-9133778957297743802?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/9133778957297743802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=9133778957297743802' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9133778957297743802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9133778957297743802'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/02/tip-fix-keyboard-layout-problem-with.html' title='Tip: Fix keyboard layout problem with Xorg Server 1.5.3 under FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6483792555857954982</id><published>2009-01-29T10:51:00.004Z</published><updated>2009-01-29T11:13:53.574Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Mount ReiserFS partitions in FreeBSD</title><content type='html'>My desktop dual boots Gentoo Linux and FreeBSD. When I installed Gentoo at the time I decided on splitting certain directories in distinct partition, so the I created a partition strictly for portage and opted for the ReiserFS filesystem.&lt;br /&gt;&lt;br /&gt;Today I wanted to cut down on the bandwith and decided to copy over a needed distfile from the ReiserFS partition to FreeBSD.&lt;br /&gt;&lt;br /&gt;Bellow you'll find the procedure to mount a ReiserFS in read-only mode. Do notice than the entire procedure is performed only on the FreeBSD system:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% man reiserfs&lt;/li&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# kldload reiserfs.ko&lt;/li&gt;&lt;li&gt;# mount -t reiserfs -o ro /dev/ad4s5 /mnt&lt;/li&gt;&lt;/ol&gt;On step 1 read reiserfs' man page, next become the superuser and proceeded to load the kernel module and finally mount the filesystem.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-style: italic; font-weight: bold;"&gt;-t&lt;/span&gt; switch lets you specify the filesystem and with &lt;span style="font-style: italic; font-weight: bold;"&gt;-o&lt;/span&gt; decide in which mode should the filesystem be mounted (in this case in read-only mode).&lt;br /&gt;&lt;br /&gt;My target partition was &lt;span style="font-style: italic; font-weight: bold;"&gt;/dev/ad4s5&lt;/span&gt; so change accordingly to your system. In my case I just viewed Gentoo's &lt;span style="font-style: italic; font-weight: bold;"&gt;/etc/fstab&lt;/span&gt; and ran &lt;span style="font-style: italic; font-weight: bold;"&gt;ls /dev/ad*&lt;/span&gt; to check if it added up ok.&lt;br /&gt;&lt;br /&gt;Pretty simple eh?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6483792555857954982?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6483792555857954982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6483792555857954982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6483792555857954982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6483792555857954982'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/tip-mount-reiserfs-partitions-in.html' title='Tip: Mount ReiserFS partitions in FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6251778018949379874</id><published>2009-01-26T11:52:00.010Z</published><updated>2009-01-26T13:13:53.577Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Book Review: Absolute FreeBSD: The Complete Guide to FreeBSD, 2nd Edition</title><content type='html'>In the past holidays I bought a few books about FreeBSD: Absolute FreeBSD: The Complete Guide to FreeBSD 2nd Edition, The Best of FreeBSD Basics, The Book of PF and Building a Server with FreeBSD 7.&lt;br /&gt;&lt;br /&gt;I'm pretty happy with all of them and I recommend them, under certain criteria, to anyone looking into FreeBSD. Why under certain criteria? If you're looking for a book on desktop usage of FreeBSD you'll find The Book of PF pretty disapointing.&lt;br /&gt;&lt;br /&gt;Absolute FreeBSD: The Complete Guide to FreeBSD, 2nd Edition is the perfect combination for FreeBSD's own Handbook. At times the Handbook might seem too straightforward by not offering advices or sharing experiences. Michael Lucas' Absolute FreeBSD on the other hand presents the reader with rich information, background, advice and reasoning although focusing on the network administrator and setting aside the desktop user.&lt;br /&gt;&lt;br /&gt;If you are looking into a nice FreeBSD book to get your feet wet on Unix-like systems so that you can carry out mundane desktop tasks then I'm afraid that Absolute FreeBSD simply isn't for you. If you on the other hand enjoy FreeBSD, know Unix basics and want to expand your horizons and maybe setup a personal server and even make a living out of FreeBSD, Absolute FreeBSD is definitely for you.&lt;br /&gt;&lt;br /&gt;I don't have an IT background though I know my way around Unix-like systems so I've found chapters like Chapter 6: The Network extremely useful to cement some disperse concepts that I have (had thanks to Lucas' book).&lt;br /&gt;&lt;br /&gt;People new to FreeBSD and Unix-like systems in general will find the first two chapters filled with helpful advices on how to prepare yourself for the tasks of installing FreeBSD and seeking help, especially the Preinstall Decisions section. To help explore FreeBSD Chapter 10: Exploring /etc is simply golden as it goes over the files available in /etc while describing what each does.&lt;br /&gt;&lt;br /&gt;I found Chapter 3: Start me Up! The Boot Process very insightful. Chapter 4 brought RCS to my bag of tricks. The security chapters (7 and 9) were also very interesting reading namely the part regarding Jails.&lt;br /&gt;&lt;br /&gt;Personal favorites were Chapter 5: Kernel Games, Chapter8: Disks and Filesystems, Chapter 11: making your system useful, Chapter 12: Advanced Software Management, Chapter 13: Upgrading FreeBSD, Chapter 18: Disk Tricks with GEOM. These are the chapters I'll ended reading time and time again and are largely FreeBSD focused.&lt;br /&gt;&lt;br /&gt;Chapters 15 and 17 focus on adding services to FreeBSD and go over SSH, FTP, NTP, Inetd and Apache web server. Pretty useful as I'm planning on setting up some personal web serving stuff.&lt;br /&gt;&lt;br /&gt;I'm not much into email and DNS stuff so I didn't payed much attention to chapters 14 and 16, however if the reader is into the subjects I'm sure he'll find both chapters very important.&lt;br /&gt;&lt;br /&gt;Props to chapter 20, 21 and the Afterword expand on what FreeBSD is, what it can be, how can you interact with it and what can you do to improve it.&lt;br /&gt;&lt;br /&gt;To sum up, just go out and buy the book. It's worth every penny and more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6251778018949379874?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6251778018949379874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6251778018949379874' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6251778018949379874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6251778018949379874'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/book-review-absolute-freebsd-complete.html' title='Book Review: Absolute FreeBSD: The Complete Guide to FreeBSD, 2nd Edition'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4968777074250856634</id><published>2009-01-20T14:22:00.004Z</published><updated>2010-10-06T14:56:09.841+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Ports'/><title type='text'>Tip: Remove all installed packages and ports on FreeBSD</title><content type='html'>This post provides the steps required to remove every installed package and port on a FreeBSD system. By following the bellow steps you'll end up with a barebones system composed by FreeBSD's userland and kernel without any third party applications.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# pkg_delete -f -a&lt;/li&gt;&lt;li&gt;# rm -rf /var/db/pkg /var/db/ports /usr/local&lt;/li&gt;&lt;/ol&gt;We've started by using pkg_delete to remove all packages and ports and finished by deleting every traces of them in the system (including ports selected build options).&lt;br /&gt;&lt;br /&gt;And that's it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4968777074250856634?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4968777074250856634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4968777074250856634' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4968777074250856634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4968777074250856634'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/tip-remove-all-installed-packages-and.html' title='Tip: Remove all installed packages and ports on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7603194688063067431</id><published>2009-01-19T14:40:00.013Z</published><updated>2009-01-29T14:26:58.239Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Using ccache on FreeBSD</title><content type='html'>ccache  is  a compiler cache. It speeds up re-compilation of C/C++ code by caching previous compiles and detecting when  the  same  compile  is being done again.&lt;br /&gt;&lt;br /&gt;The following is a step by step guide to how to enable and use ccache on FreeBSD 7.1:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/devel/ccache&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# vim /etc/make.conf&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) &amp;amp;&amp;amp; !defined(NOCCACHE)&lt;br /&gt;CC=/usr/local/libexec/ccache/world-cc&lt;br /&gt;CXX=/usr/local/libexec/ccache/world-c++&lt;br /&gt;.endif&lt;/blockquote&gt;Basically we've started by installing ccache (steps 1 through 3) and proceeded by editing /etc/make.conf as to enable ccache on builds.&lt;br /&gt;&lt;br /&gt;Now we need to update the environment.&lt;br /&gt;&lt;br /&gt;If you are using csh/tcsh shell add the following to &lt;span style="font-style: italic;"&gt;/root/.cshrc&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;setenv PATH /usr/local/libexec/ccache:$PATH&lt;br /&gt;setenv CCACHE_PATH /usr/bin:/usr/local/bin&lt;br /&gt;setenv CCACHE_DIR /var/tmp/ccache&lt;br /&gt;setenv CCACHE_LOGFILE /var/log/ccache.log&lt;/blockquote&gt;If you are using zsh add the following to your &lt;span style="font-style: italic;"&gt;/root/.zshrc&lt;/span&gt; file:&lt;br /&gt;&lt;blockquote&gt;export PATH=/usr/local/libexec/ccache:$PATH&lt;br /&gt;export CCACHE_PATH=/usr/bin:/usr/local/bin&lt;br /&gt;export CCACHE_DIR=/var/tmp/ccache&lt;br /&gt;export CCACHE_LOGFILE=/var/log/ccache.log&lt;/blockquote&gt;After updating the dotfiles we update the environment. Users of csh/tcsh shells can update by:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# source /root/.cshrc&lt;/li&gt;&lt;/ul&gt;Anyone using zsh can update the environment by running the following command:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# source /root/.zshrc&lt;/li&gt;&lt;/ul&gt; And that's it: ccache is installed and the environment is updated. Your next build will be performed with ccache enabled.&lt;br /&gt;&lt;br /&gt;To display statistics summary:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% ccache -s&lt;/li&gt;&lt;/ul&gt;To zero statistics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% ccache -z&lt;/li&gt;&lt;/ul&gt;To check out the help file for a list of ccache options:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% ccache -h&lt;/li&gt;&lt;/ul&gt;If you come across a port that fails to build, disable ccache and try again:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# make NOCCACHE=yes install clean&lt;/li&gt;&lt;/ul&gt;You can find more information regarding ccache through:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% man ccache&lt;/li&gt;&lt;li&gt;% ccache -h&lt;br /&gt;&lt;/li&gt;&lt;li&gt;% less /ur/local/share/doc/ccache/ccache-howto-freebsd.txt&lt;/li&gt;&lt;li&gt;% links /ur/local/share/doc/ccache/index.html&lt;/li&gt;&lt;li&gt;&lt;a href="http://forums.freebsd.org/showthread.php?t=174"&gt;http://forums.freebsd.org/showthread.php?t=174&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7603194688063067431?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7603194688063067431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7603194688063067431' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7603194688063067431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7603194688063067431'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/howto-using-ccache-on-freebsd.html' title='HowTo: Using ccache on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2537182217506085004</id><published>2009-01-15T16:32:00.005Z</published><updated>2009-01-20T11:35:18.193Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><title type='text'>Tip: Disable beep in Fedora</title><content type='html'>The first thing I realized I just had to change on Fedora 10 was the bloody beep. Fedora ships with a kernel module for the PC speaker named pcspkr.ko that if left loaded will drive you mad.&lt;br /&gt;&lt;br /&gt;With this module loaded you get to hear a lovely beep while using a terminal. To turn off the beep, simply remove the kernel module and blacklist it to have it gone for good.&lt;br /&gt;&lt;br /&gt;Here's how:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# rmmod -v pcspkr&lt;/li&gt;&lt;li&gt;# echo "blacklist pcspkr" &gt;&gt; /etc/modprobe.d/blacklist&lt;/li&gt;&lt;/ol&gt;On step 1 become superuser, on step 2 we've removed the module for the running session and on step 3 we've prevented it from loading at boot.&lt;br /&gt;&lt;br /&gt;These steps can be performed similarly in other distros.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2537182217506085004?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2537182217506085004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2537182217506085004' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2537182217506085004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2537182217506085004'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/tip-disable-beep-in-fedora.html' title='Tip: Disable beep in Fedora'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1665066166779364087</id><published>2009-01-15T16:24:00.004Z</published><updated>2009-01-29T15:13:03.805Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Disable shutdown beep in FreeBSD</title><content type='html'>Beeps are annoying and the one at shutdown is no different.&lt;br /&gt;&lt;br /&gt;Here's how to get rid of shutdown beeps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# sysctl hw.syscons.bell=0&lt;/li&gt;&lt;li&gt;# echo "hw.syscons.bell=0" &gt;&gt; /etc/sysctl.conf&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;/ol&gt;We've started by becoming the superuser and then on step 2 we've disable the console bell. To guarantee that on next boot that horrible beep doesn't crop up we've added a &lt;span style="font-style: italic;"&gt;sysctl&lt;/span&gt; to disable it in &lt;span style="font-style: italic;"&gt;/etc/sysctl.conf.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1665066166779364087?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1665066166779364087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1665066166779364087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1665066166779364087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1665066166779364087'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/tip-disable-shutdown-beep-in-freebsd.html' title='Tip: Disable shutdown beep in FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7738397880007673445</id><published>2009-01-13T14:53:00.003Z</published><updated>2009-01-20T13:53:47.464Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Log console messages in FreeBSD</title><content type='html'>If you run FreeBSD without X11 you've noticed already that messages are presented in the console. Well you can log these messages with the help of syslog.&lt;br /&gt;&lt;br /&gt;Here's how:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# touch /var/log/console.log&lt;/li&gt;&lt;li&gt;# chmod 600 /var/log/console.log&lt;/li&gt;&lt;li&gt;# vim /etc/syslog.conf&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Make sure that that the console.info /var/log/console.log is uncommented.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# /etc/rc.d/syslogd restart&lt;/li&gt;&lt;/ul&gt;And that's it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7738397880007673445?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7738397880007673445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7738397880007673445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7738397880007673445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7738397880007673445'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/tip-log-console-messages-in-freebsd.html' title='Tip: Log console messages in FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4654792645936776123</id><published>2009-01-07T10:26:00.010Z</published><updated>2009-05-20T09:29:32.499+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Upgrade FreeBSD 7.0 to 7.1</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;Disclaimer:&lt;/span&gt;&lt;span style="font-style: italic;"&gt; this post is for those that instead of using FreeBSD's excellent documentation maintain the bad habit of googling for things already covered in the project's official documentation. This is more or less a copy-paste of the &lt;/span&gt;&lt;a style="font-style: italic;" href="http://www.freebsd.org/releases/7.1R/announce.html"&gt;FreeBSD 7.1-RELEASE Announcement&lt;/a&gt;&lt;span style="font-style: italic;"&gt; instructions for upgrading 7.0 to 7.1.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;These are needed steps to upgrade, through the binary path, the kernel and userland utilities to 7.1-RELEASE:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# freebsd-update upgrade -r 7.1-RELEASE&lt;/li&gt;&lt;li&gt;# freebsd-update install&lt;/li&gt;&lt;li&gt;# reboot&lt;/li&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;#  freebsd-update install&lt;/li&gt;&lt;li&gt; # reboot&lt;/li&gt;&lt;/ol&gt;On step 1 we've started of by becoming the superuser. Step 2 initiates the freebsd-update utility pointing the upgrade to 7.1-RELEASE, after that we proceed with the installation of the kernel on step 3.&lt;br /&gt;&lt;br /&gt;Upon rebooting the new kernel is enabled and we move into step 6. Here we end the upgrade process by updating the userland utilities.&lt;br /&gt;&lt;br /&gt;That's it!&lt;br /&gt;&lt;br /&gt;If you found this post useful that's actually a bad news: you aren't reading the project's official documentation! So please point to &lt;a href="http://www.freebsd.org/"&gt;http://www.freebsd.org&lt;/a&gt; and educate yourself on FreeBSD ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4654792645936776123?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4654792645936776123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4654792645936776123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4654792645936776123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4654792645936776123'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2009/01/howto-upgrade-freebsd-70-to-71.html' title='HowTo: Upgrade FreeBSD 7.0 to 7.1'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3939435380734900640</id><published>2008-12-17T21:55:00.004Z</published><updated>2008-12-17T22:05:44.113Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Updating FreeBSD with freebsd-update with full filesystem</title><content type='html'>My old 266 Mhz Celeron (soon to be replaced my an ASUS I220GC motherboard with integrated Celern 220 CPU) is installed on a 4GB HDD which leaves about 297Mb for the &lt;span style="font-style: italic;"&gt;/var&lt;/span&gt; filesytem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;freebsd-update&lt;/span&gt;, the base tool to perform binary system updates, uses by default the &lt;span style="font-style: italic;"&gt;/var&lt;/span&gt; filesystem. While updating to the recent FreeBSD 7.1-RC1 I couldn't finish the update due to a full filesystem.&lt;br /&gt;&lt;br /&gt;Here's how solve the issue and fully update the system:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# freebsd-update -d &lt;i class="moz-txt-slash"&gt;&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;path/to/big/path/directory&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;&lt;/i&gt; upgrade -r 7.1-RC1&lt;/li&gt;&lt;li&gt;# freebsd-update -d &lt;i class="moz-txt-slash"&gt;&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;path/to/big/path/directory&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;&lt;/i&gt; install&lt;/li&gt;&lt;li&gt;# shutdown -r now&lt;/li&gt;&lt;li&gt;# freebsd-update -d &lt;i class="moz-txt-slash"&gt;&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;path/to/big/path/directory&lt;span class="moz-txt-tag"&gt;/&lt;/span&gt;&lt;/i&gt; install&lt;/li&gt;&lt;li&gt;# shutdown -r now&lt;/li&gt;&lt;/ul&gt;In other words, simply use freebsd-update's &lt;span style="font-style: italic;"&gt;-d&lt;/span&gt; option. &lt;span style="font-style: italic;"&gt;man freebsd-update&lt;/span&gt; and &lt;a href="http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047014.html"&gt;http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047014.html&lt;/a&gt; for more info.&lt;br /&gt;&lt;br /&gt;Happy updating ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3939435380734900640?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3939435380734900640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3939435380734900640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3939435380734900640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3939435380734900640'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/12/tip-updating-freebsd-with-freebsd.html' title='Tip: Updating FreeBSD with freebsd-update with full filesystem'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7757773157321009945</id><published>2008-12-17T10:19:00.003Z</published><updated>2008-12-17T10:26:48.911Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Fix freebsd-update problems</title><content type='html'>I tried to update my desktop from FreeBSD 7.1-PRERELEASE to 7.1-RC1 however I came across an error along the lines of &lt;span style="font-style: italic;"&gt;"No mirrors remaining, giving up"&lt;/span&gt; .&lt;br /&gt;&lt;br /&gt;Here's how to fix the issue:&lt;br /&gt;&lt;br /&gt;% su&lt;br /&gt;# env UNAME_r=7.1-PRERELEASE freebsd-update upgrade -r 7.1-RC1&lt;br /&gt;&lt;br /&gt;Substitute the current and target versions according to you particular system and you should be able to update the system as usual.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7757773157321009945?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7757773157321009945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7757773157321009945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7757773157321009945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7757773157321009945'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/12/tip-fix-freebsd-update-problems.html' title='Tip: Fix freebsd-update problems'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7180413301755634137</id><published>2008-12-05T00:53:00.006Z</published><updated>2009-01-02T00:56:31.217Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tip: Enable sound on Enemy Territory under FreeBSD</title><content type='html'>&lt;p&gt;Enemy Territory is available in FreeBSD's ports system under /usr/ports/games/linux-enemyterritory. The port's Makefile makes no mention that if you install the game and run it you'll be playing without sound.&lt;/p&gt;&lt;p&gt;Here's a quick tip on how to enable sound on Enemy Territory under FreeBSD 7.0: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# sysctl hw.snd.compat_linux_mmap=1&lt;/li&gt;&lt;li&gt;# echo  "hw.snd.compat_linux_mmap=1" &gt;&gt; /etc/sysctl.conf&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Step 2 enables sound immediately and with step 3 sound will be enabled at boot time.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And that's it. Now hurry and go play the world great first-person shoot ever. &lt;/p&gt;&lt;p&gt;d^.^b&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7180413301755634137?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7180413301755634137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7180413301755634137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7180413301755634137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7180413301755634137'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/12/tip-enable-sound-on-enemy-territory.html' title='Tip: Enable sound on Enemy Territory under FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2851169772903497008</id><published>2008-11-19T22:16:00.004Z</published><updated>2009-01-20T10:40:28.394Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>HowTo: Logitech MX500 under FreeBSD</title><content type='html'>I have both a Logitech MX500 and a MX518, however I've loaned the MX518 to my brother. So I took my &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/08/logitech-mx518-under-freebsd.html"&gt;previous post on MX518&lt;/a&gt; and mirrored it to MX500.&lt;br /&gt;&lt;br /&gt;Being an Enemy Territory (ET) old timer I need to make full use of the MX500 mouse under FreeBSD, which means having the Back, Forward and the other weird button below the wheel working as available binds while playing ET.&lt;br /&gt;&lt;br /&gt;The bellow &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;settings were tested under FreeBSD 7.0 and X.Org X Server 1.4.2.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vim /etc/X11/xorg.conf&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;Section "InputDevice"&lt;br /&gt;Identifier  "Mouse0"&lt;br /&gt;Driver      "mouse"&lt;br /&gt;Option      "Protocol" "auto"&lt;br /&gt;Option      "Device" "/dev/sysmouse"&lt;br /&gt;Option      "ZAxisMapping" "4 5"&lt;br /&gt;Option      "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"&lt;br /&gt;Option "Emulate3Buttons" "false"&lt;br /&gt;EndSection&lt;/blockquote&gt;With these settings you're free to bind MOUSE4, MOUSE5 and KP_EQUALS to Enemy Territory.&lt;br /&gt;&lt;br /&gt;As a bonus, you can now use the Back and Forward buttons under Opera.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2851169772903497008?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2851169772903497008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2851169772903497008' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2851169772903497008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2851169772903497008'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/11/howto-logitech-mx500-under-freebsd.html' title='HowTo: Logitech MX500 under FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1264467028439303485</id><published>2008-11-19T13:20:00.002Z</published><updated>2008-11-19T13:22:39.127Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Activate keyboard numlock on KDE under Gentoo</title><content type='html'>Having finished compiling KDE 3.5.9 as described &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html"&gt;here&lt;/a&gt; I proceeded fine tuning it which involves among other things enabling the keyboard numlock.&lt;br /&gt;&lt;br /&gt;In this post I'll lay down some alternatives that will allow you to activate the keyboard numlock on the KDE desktop environment:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;on a per user basis using KDE's autostart mechanism&lt;/li&gt;&lt;li&gt;through the KDM login manager&lt;/li&gt;&lt;li&gt;installing the &lt;span style="font-style: italic;"&gt;kxkb&lt;/span&gt; package and graphically using the Kcontrol center&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Alternative 1&lt;/span&gt;&lt;br /&gt;You can activate the keyboard numlock on peer use basis like so:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# emerge --ask --tree --verbose numlockx&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;li&gt;$ vim .kde3.5/Autostart/numlockx&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;#!/bin/sh&lt;br /&gt;numlockx on&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;$ chmod +x .kde3.5/Autostart/numlockx&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Alternative 2&lt;/span&gt;&lt;br /&gt;In alternative if you use KDM as your login manager you can set it on system wide:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# echo "/usr/bin/numlockx on" &gt;&gt; /usr/kde/3.5/share/config/kdm/Xsetup&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Alternative 3&lt;/span&gt;&lt;br /&gt;Yet another alternative is to install &lt;span style="font-style: italic;"&gt;kde-base/kxkb&lt;/span&gt; if you've installed KDE using split ebuilds (like I did &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# emerge --ask --tree --verbose kxkb&lt;/li&gt;&lt;li&gt;browse to KDE's Control Center &gt; Peripherals &gt; Keyboard &gt; NumLock &gt; Turn on&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;As a side note the above procedures can easily be mirrored to any Unix like system.&lt;br /&gt;&lt;br /&gt;Now go ahead and fully use your keyboard ;-)&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://www.gentoo-wiki.info/TIP_Numlock"&gt;http://www.gentoo-wiki.info/TIP_Numlock&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.archlinux.org/index.php/Activating_Numlock_on_Bootup"&gt;http://wiki.archlinux.org/index.php/Activating_Numlock_on_Bootup&lt;/a&gt;&lt;br /&gt;&lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html"&gt;http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1264467028439303485?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1264467028439303485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1264467028439303485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1264467028439303485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1264467028439303485'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/11/howto-activate-keyboard-numlock-on-kde.html' title='HowTo: Activate keyboard numlock on KDE under Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7437927158828130694</id><published>2008-11-19T09:48:00.011Z</published><updated>2008-11-19T12:09:17.160Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Tip: Fixing e2fsprogs block on Gentoo</title><content type='html'>A portage block as popped up lately on the portage tree. The block regards &lt;span style="font-style: italic;"&gt;sys-fs/e2fsprogs&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;sys-libs/e2fsprogs-libs&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;sys-libs/ss&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;sys-libs/com_err.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Normally when facing with blocks on world it just a matter of unmerging the blocking packages, resuming and running &lt;span style="font-style: italic;"&gt;revdep-rebuild&lt;/span&gt; just in case. However in this particular block were dealing with the system set. This means that while unmerging the blocking packages there a good chance you'll break something... badly.&lt;br /&gt;&lt;br /&gt;Here's how to deal with the &lt;span style="font-style: italic;"&gt;e2fsprogs&lt;/span&gt; block:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# emerge --fetchonly e2fsprogs e2fsprogs-libs&lt;/li&gt;&lt;li&gt;# emerge --unmerge com_err ss e2fsprogs&lt;/li&gt;&lt;li&gt;# emerge --oneshot e2fsprogs&lt;/li&gt;&lt;/ol&gt;Basically on step 3 we've fetched the source for &lt;span style="font-style: italic;"&gt;e2fsprogs&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;e2fsprogs-libs&lt;/span&gt;. On step 4 we've unmerged the blockers and finally on step 5 emerge &lt;span style="font-style: italic;"&gt;e2fsprogs&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Notice that by unmerging &lt;span style="font-style: italic;"&gt;com_err&lt;/span&gt; or &lt;span style="font-style: italic;"&gt;ss&lt;/span&gt; you'd break &lt;span style="font-style: italic;"&gt;wget&lt;/span&gt; making it impossible to fetch the &lt;span style="font-style: italic;"&gt;e2fsprogs&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;ef2progs-libs&lt;/span&gt; packages through portage (though you could fetch them manually). The&lt;span style="font-style: italic;"&gt; --oneshot&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;/span&gt;option is used on step 5 as &lt;span style="font-style: italic;"&gt;e2fprogs&lt;/span&gt; is a system package and should not be in world.&lt;br /&gt;&lt;br /&gt;Also consider as a safety precaution adding &lt;span style="font-style: italic;"&gt;buildsyspkg&lt;/span&gt; to the FEATURES variables in &lt;span style="font-style: italic;"&gt;/etc/make.conf&lt;/span&gt; as this enables the build of binary packages for just packages in the system set.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7437927158828130694?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7437927158828130694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7437927158828130694' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7437927158828130694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7437927158828130694'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/11/tip-fixing-e2fsprogs-block-on-gentoo.html' title='Tip: Fixing e2fsprogs block on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-664022456293595152</id><published>2008-10-29T14:49:00.000Z</published><updated>2008-10-29T14:50:17.637Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Samba'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Using Fstab entries to mount Samba shares on Linux</title><content type='html'>&lt;a href="http://us3.samba.org/samba/"&gt;Samba&lt;/a&gt; is an Open Source/Free Software        suite that provides file and print services to all manner of SMB/CIFS clients. Samba is freely available, and allows for interoperability between Linux/Unix servers and Windows-based clients.&lt;br /&gt;&lt;br /&gt;Samba shares can be accessed in several ways, such as issuing the &lt;span style="font-style: italic;"&gt;mount&lt;/span&gt; command, using &lt;span style="font-style: italic;"&gt;/etc/fstab&lt;/span&gt; entries, accessing it through file browsers such as Konqueror, Midnight Commander and Nautilus.&lt;br /&gt;&lt;br /&gt;The current post addresses &lt;span style="font-style: italic;"&gt;/etc/fstab&lt;/span&gt; entries on Linux systems.&lt;br /&gt;&lt;br /&gt;To automatically mount a Samba share at boot time we need to edit the &lt;span style="font-style: italic;"&gt;/etc/fstab&lt;/span&gt; file and add the necessary entry:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# vim /etc/fstab&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;//192.168.0.1/share     /mnt/samba     smbfs username=username,password=yourpassword     0     0&lt;/blockquote&gt;Due to security issues it’s not a good idea to put username/password in the &lt;span style="font-style: italic;"&gt;/etc/fstab&lt;/span&gt; file. So you can change the &lt;span style="font-style: italic;"&gt;username=username,password=password&lt;/span&gt; section and replace it with &lt;span style="font-style: italic;"&gt;credentials=/root/.fstabcredentials&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/fstab&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt;//192.168.0.1/share     /mnt/samba     smbfs credentials=/root/.fstabcredentials     0     0&lt;/blockquote&gt;Next we create the &lt;span style="font-style: italic;"&gt;/root/.fstabcredentials&lt;/span&gt; file and add the needed information:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /root/.fstabcredentials&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;    username=username&lt;br /&gt;password=password&lt;/blockquote&gt;Substitute the &lt;span style="font-style: italic;"&gt;username&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;password&lt;/span&gt; arguments according to your system.&lt;br /&gt;&lt;br /&gt;To further close access to the file we change it's permissions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# chmod 600 /root/.fstabcredentials&lt;/li&gt;&lt;/ul&gt;And that's it!&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://us3.samba.org/samba/"&gt;http://us3.samba.org/samba/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-664022456293595152?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/664022456293595152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=664022456293595152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/664022456293595152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/664022456293595152'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-using-fstab-entries-to-mount.html' title='HowTo: Using Fstab entries to mount Samba shares on Linux'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3511747158617055609</id><published>2008-10-29T10:24:00.006Z</published><updated>2008-11-11T17:30:47.563Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Network traffic &amp; bandwidth monitoring with darkstat on Gentoo</title><content type='html'>Following the footsteps on &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth.html"&gt;installing darkstat on my old 266 Mhz FreeBSD machine&lt;/a&gt; I've mirrored the install procedures on my 1.3 Ghz Pentium-M Gentoo Hardened server. This post will cover the installation and configuration of darkstat on a x86 machine running Gentoo Hardened stable.&lt;br /&gt;&lt;br /&gt;Darstat captures network traffic, calculates   statistics about usage, and   serves reports over HTTP.&lt;br /&gt;&lt;br /&gt;Darstat provides the following features:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Traffic graphs,   reports per host, shows ports for each host.&lt;/li&gt;&lt;li&gt;Embedded web-server with deflate compression.&lt;/li&gt;&lt;li&gt;Asynchronous reverse DNS resolution using a child process.&lt;/li&gt;&lt;li&gt;Small.  Portable.  Single-threaded.  Efficient.  Uncomplicated.&lt;/li&gt;&lt;/ul&gt;Follow the bellow steps to update the portage tree and install darkstat:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;/li&gt;&lt;li&gt;# emerge --ask --tree --verbose darkstat&lt;/li&gt;&lt;/ul&gt;To enable darkstat at boot time add it to the default runlevel by:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# rc-update add darkstat default&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Now let's edit &lt;span style="font-style: italic;"&gt;/etc/conf.d/darkstat&lt;/span&gt; to identify the network interface (in my case eth0) that we wish to monitor and enable logging:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/conf.d/darkstat&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;INTERFACE="eth0"&lt;br /&gt;DAYLOGFILE="darkstat.log"&lt;br /&gt;&lt;/blockquote&gt;The next step is to start darkstat by running the following command:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /etc/init.d/darkstat start&lt;/li&gt;&lt;/ul&gt;To check darkstat daemon status:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /etc/init.d/darkstat status&lt;/li&gt;&lt;/ul&gt;By default darkstat serves graphs to &lt;span style="font-style: italic;"&gt;http://localhost:667&lt;/span&gt;, so fire up your browser and point to the location. If you are planning (like me) on accessing to the graphs for another location add port 667 (you can choose another port number in &lt;span style="font-style: italic;"&gt;/etc/conf.d/darkstat&lt;/span&gt;) to your router Port Forwarding settings.&lt;br /&gt;&lt;br /&gt;Hope you enjoy darkstat. I find it extremely useful and refreshing.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;man darkstat&lt;br /&gt;&lt;a href="http://dmr.ath.cx/net/darkstat/"&gt;http://dmr.ath.cx/net/darkstat/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth.html"&gt;http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3511747158617055609?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3511747158617055609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3511747158617055609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3511747158617055609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3511747158617055609'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth_29.html' title='HowTo: Network traffic &amp; bandwidth monitoring with darkstat on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-171657754245251407</id><published>2008-10-28T13:28:00.013Z</published><updated>2008-10-29T15:19:56.691Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Rsync'/><title type='text'>HowTo: Setup a Rsync server on Gentoo</title><content type='html'>I've been invited to write for &lt;a href="http://tuxtraining.com/"&gt;TuxTraining&lt;/a&gt; and help it become a reference for open source users, so this and future posts will most likely be available at TuxTraining.&lt;br /&gt;&lt;br /&gt;If you are looking for tutorials, tips and guides covering not only Linux but also BSD and Solaris visit the site. It's updated on a daily basis so I'm sure you'll find it to be very useful.&lt;br /&gt;&lt;br /&gt;The goal of this tutorial is to detail the needed steps to setup a general purpose rsync server on Gentoo. &lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt;: this guide doesn't focus on setting up your own Gentoo local rsync mirror, for that please consult Gentoo's official documentation on the matter, namely &lt;a href="http://www.gentoo.org/doc/en/rsync.xml"&gt;Gentoo Linux rsync Mirrors Policy and Guide&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://samba.anu.edu.au/rsync/"&gt;rsync&lt;/a&gt; is an open source utility that provides fast incremental file transfer, available in multiple platforms such as Linux, *BSD and Solaris.&lt;br /&gt;&lt;br /&gt;Let's begin by becoming the superuser, synchronize the portage tree and install rsync:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;/li&gt;&lt;li&gt;# emerge --ask --tree --verbose net-misc/rsync&lt;/li&gt;&lt;/ul&gt;Having installed rsync let's add it to the default runlevel so that it automatically starts at boot time:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# rc-update add rsync default&lt;/li&gt;&lt;/ul&gt;Now we move into the rsync server configuration. The rsync server works with modules with are defined in the &lt;span style="font-style: italic;"&gt;/etc/rsyncd.conf&lt;/span&gt; file. Let's set up a general purpose module:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/rsyncd.conf&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;motd file = /usr/local/etc/rsync.motd&lt;br /&gt;log file = /var/log/rsyncd.log&lt;br /&gt;pid file = /var/log/rsyncd.pid&lt;br /&gt;lock file = /var/log/rsyncd.lock&lt;br /&gt;transfer logging = true&lt;br /&gt;use chroot = yes&lt;/blockquote&gt;&lt;blockquote&gt;[backup]&lt;br /&gt;path = /home/username&lt;br /&gt;read only = yes&lt;br /&gt;list = yes&lt;br /&gt;comment = Example of a rsync backup module&lt;br /&gt;hosts allow = 192.168.1.0/24&lt;/blockquote&gt;It should be noted that a list of modules is returned from a rsync server when the server is queried:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ rsync example.no-ip.org::&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;backup              Example of a rsync backup module&lt;/blockquote&gt;To start the rsync server immediately:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# /etc/init.d/rsyncd start&lt;/li&gt;&lt;/ul&gt;An example of a client side synchronization:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ rsync -av example.no-ip.org::backup/ /destination/&lt;/li&gt;&lt;/ul&gt;This would recursively transfer all files from the backup module directory on the &lt;span style="font-style: italic;"&gt;example.no-ip.org&lt;/span&gt; machine into the &lt;span style="font-style: italic;"&gt;/destination&lt;/span&gt; directory on the local machine. The files are transfered in "archive mode", which ensures that symbolic links, devices, attributes, permissions, ownership, etc are preserved in the transfer. Also, compression is used to reduce the size of data portions of the transfer.&lt;br /&gt;&lt;br /&gt;Take a look at the utility's website for ideas on how to use rsync in useful ways.&lt;br /&gt;&lt;br /&gt;Additional sources of information:&lt;br /&gt;&lt;a href="http://samba.anu.edu.au/rsync/"&gt;rsync website&lt;/a&gt;&lt;br /&gt;&lt;a href="http://samba.anu.edu.au/ftp/rsync/rsync.html"&gt;man rsync&lt;/a&gt;&lt;br /&gt;&lt;a href="http://samba.anu.edu.au/ftp/rsync/rsyncd.conf.html"&gt;man rsyncd.conf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-171657754245251407?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/171657754245251407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=171657754245251407' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/171657754245251407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/171657754245251407'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-setup-rsync-server-on-gentoo.html' title='HowTo: Setup a Rsync server on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-349236231654584744</id><published>2008-10-21T12:10:00.013+01:00</published><updated>2009-04-29T13:42:17.674+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='IPFW'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: IPFW firewall setup on FreeBSD</title><content type='html'>Today I'll lay down the steps needed to enable and configure FreeBSD' IPFW firewall.&lt;br /&gt;&lt;br /&gt;The IPFIREWALL (IPFW) is a FreeBSD sponsored firewall software application authored and maintained by FreeBSD volunteer staff members. It uses the legacy stateless rules and a legacy rule coding technique to achieve what is referred to as Simple Stateful logic.&lt;br /&gt;&lt;br /&gt;I'm running FreeBSD 7.0 and use &lt;span style="font-style: italic;"&gt;freebsd-update&lt;/span&gt; to update the system side of FreeBSD so this guide assumes that your using a stock kernel. However if you're running a custom kernel that a look &lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html"&gt;here&lt;/a&gt; (Section 31.6.1) before using the current guide.&lt;br /&gt;&lt;br /&gt;Let's start by becoming the superuser and enable IPFW at boot time:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vi /etc/rc.conf&lt;/li&gt;&lt;/ul&gt;&lt;code&gt;&lt;/code&gt;&lt;blockquote&gt;firewall_enable="YES"&lt;br /&gt;firewall_script="/usr/local/etc/ipfw.rules"&lt;br /&gt;firewall_logging="YES"&lt;br /&gt;&lt;/blockquote&gt;Now we define an IPFW rule set. Bellow you'll find a rule set shamefully stolen from &lt;a href="http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/"&gt;here&lt;/a&gt; and adapted to my needs:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vi /usr/local/etc/ipw.rules&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;IPF="ipfw -q add"&lt;br /&gt;ipfw -q -f flush&lt;br /&gt;&lt;br /&gt;#loopback&lt;br /&gt;$IPF 10 allow all from any to any via lo0&lt;br /&gt;$IPF 20 deny all from any to 127.0.0.0/8&lt;br /&gt;$IPF 30 deny all from 127.0.0.0/8 to any&lt;br /&gt;$IPF 40 deny tcp from any to any frag&lt;br /&gt;&lt;br /&gt;# statefull&lt;br /&gt;$IPF 50 check-state&lt;br /&gt;$IPF 60 allow tcp from any to any established&lt;br /&gt;$IPF 70 allow all from any to any out keep-state&lt;br /&gt;$IPF 80 allow icmp from any to any&lt;br /&gt;&lt;br /&gt;# open port ftp (21), ssh (22), mail (25)&lt;br /&gt;# http (80), dns (53), mldonkey (4080, 21452, 6882),&lt;br /&gt;# darstat (667)&lt;br /&gt;$IPF 110 allow tcp from any to any 21 in&lt;br /&gt;$IPF 120 allow tcp from any to any 21 out&lt;br /&gt;$IPF 130 allow tcp from any to any 22 in&lt;br /&gt;$IPF 140 allow tcp from any to any 22 out&lt;br /&gt;$IPF 150 allow tcp from any to any 25 in&lt;br /&gt;$IPF 160 allow tcp from any to any 25 out&lt;br /&gt;$IPF 170 allow udp from any to any 53 in&lt;br /&gt;$IPF 175 allow tcp from any to any 53 in&lt;br /&gt;$IPF 180 allow udp from any to any 53 out&lt;br /&gt;$IPF 185 allow tcp from any to any 53 out&lt;br /&gt;$IPF 200 allow tcp from any to any 80 in&lt;br /&gt;$IPF 210 allow tcp from any to any 80 out&lt;br /&gt;$IPF 220 allow tcp from any to any 4080 in&lt;br /&gt;$IPF 230 allow udp from any to any 4080 out&lt;br /&gt;$IPF 240 allow tcp from any to any 21452 in&lt;br /&gt;$IPF 245 allow udp from any to any 21452 in&lt;br /&gt;$IPF 250 allow tcp from any to any 21452 out&lt;br /&gt;$IPF 255 allow udp from any to any 21452 out&lt;br /&gt;$IPF 260 allow tcp from any to any 6882 in&lt;br /&gt;$IPF 270 allow tcp from any to any 6882 out&lt;br /&gt;$IPF 280 allow tcp from any to any 667 in&lt;br /&gt;$IPF 290 allow tcp from any to any 667 out&lt;br /&gt;$IPF 300 allow tcp from any to any 1024-65000 keep-state&lt;br /&gt;&lt;br /&gt;# deny and log everything&lt;br /&gt;$IPF 500 deny log all from any to any&lt;/blockquote&gt;If you aren't planning to use FTP remove the &lt;span style="font-style: italic;"&gt;$IPF 300 allow tcp from any to any 1024-65000 keep-state&lt;/span&gt; line. This line circumvents IPFW troubles with FTP connections.&lt;br /&gt;&lt;br /&gt;To enable logging run the following commands:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/syslog.conf&lt;/li&gt;&lt;/ul&gt; &lt;blockquote&gt;!ipfw&lt;br /&gt;*.*     /var/log/ipfw/ipfw.log&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# mkdir /var/log/ipfw&lt;/li&gt;&lt;li&gt;# touch /var/log/ipfw/ipfw.log&lt;/li&gt;&lt;li&gt;# killall -HUP syslogd&lt;/li&gt;&lt;/ul&gt;The &lt;span style="font-style: italic;"&gt;firewall_logging&lt;/span&gt; variable sets the &lt;span style="font-style: italic;"&gt;net.inet.ip.fw.verbose_limit=5&lt;/span&gt; to the value of 1. To increase the verbose level to the value of 5:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# echo "net.inet.ip.fw.verbose_limit=5" &gt;&gt; /etc/sysctl.conf&lt;/li&gt;&lt;li&gt;# sysctl net.inet.ip.fw.enable=1&lt;/li&gt;&lt;li&gt;# sysctl net.inet.ip.fw.verbose=1&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# sysctl net.inet.ip.fw.verbose_limit=5&lt;/li&gt;&lt;/ul&gt;To start IPFW and load the rules set:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/rc.d/ipfw start&lt;/li&gt;&lt;li&gt;# sh /usr/local/etc/ipfw.rules&lt;/li&gt;&lt;/ul&gt;The following command shows the rules list that is currently loaded:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# ipfw list&lt;/li&gt;&lt;/ul&gt;And we're done. In future I plan to try OpenBSD's PF firewall so stay tuned ;-)&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html"&gt;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO"&gt;http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO&lt;/a&gt;&lt;br /&gt;&lt;a href="http://tuxtraining.com/2008/10/16/setting-up-firewall-using-ipfw-in-freebsd"&gt;http://tuxtraining.com/2008/10/16/setting-up-firewall-using-ipfw-in-freebsd&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/"&gt;http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-349236231654584744?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/349236231654584744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=349236231654584744' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/349236231654584744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/349236231654584744'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-ipfw-firewall-setup-on-freebsd.html' title='HowTo: IPFW firewall setup on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5872651482137346437</id><published>2008-10-20T14:54:00.008+01:00</published><updated>2008-11-11T17:25:12.034Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Network traffic &amp; bandwidth monitoring with darkstat on FreeBSD</title><content type='html'>My old Celeron 266 Mhz runs a couple of network related services, namely MLDonkey and FTP.&lt;br /&gt;&lt;br /&gt;With the goal of monitoring network and bandwidth traffic I used &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with.html"&gt;vnStat&lt;/a&gt;. vnStat is small and efficent console based application however I wanted something that could serve the statistic over HTTP and this is where darkstat fills the bill.&lt;br /&gt;&lt;br /&gt;Darstat captures network traffic, calculates   statistics about usage, and   serves reports over HTTP.&lt;br /&gt;&lt;br /&gt;Darstat provides the following features:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Traffic graphs,   reports per host, shows ports for each host.&lt;/li&gt;&lt;li&gt;Embedded web-server with deflate compression.&lt;/li&gt;&lt;li&gt;Asynchronous reverse DNS resolution using a child process.&lt;/li&gt;&lt;li&gt;Small.  Portable.  Single-threaded.  Efficient.  Uncomplicated.&lt;/li&gt;&lt;/ul&gt;Follow the bellow steps to install darkstat on FreeBSD 7.0:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/net-mgmt/darkstat&lt;/li&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;/ul&gt;To enable darkstat at boot time add the following lines to &lt;span style="font-style: italic;"&gt;/etc/rc.conf&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;darkstat_enable="YES"&lt;br /&gt;darkstat_interface="rl0"&lt;/blockquote&gt;Change the &lt;span style="font-style: italic;"&gt;darkstat_interface&lt;/span&gt; to reflect your network interface (mine is &lt;span style="font-style: italic;"&gt;rl0&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;Bellow you'll find a set of optional configurations flags that can be added to &lt;span style="font-style: italic;"&gt;/etc/rc.conf&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;darkstat_dir="/var/run/darkstat"&lt;br /&gt;darkstat_pidname="darkstat.pid"&lt;br /&gt;darkstat_dropuser="nobody"&lt;br /&gt;darkstat_flags=""&lt;/blockquote&gt;Now that we have darkstat installed and configured let's start it:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /usr/local/etc/rc.d/darkstat start&lt;/li&gt;&lt;/ul&gt;To check darkstat daemon status:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /usr/local/etc/rc.d/darkstat status&lt;/li&gt;&lt;/ul&gt;By default darkstat serves graphs to &lt;span style="font-style: italic;"&gt;http://localhost:667&lt;/span&gt;, so fire up your browser and point to the location. If you are planning (like me) on accessing to the graphs for another location add port 667 to your router Port Forwarding settings.&lt;br /&gt;&lt;br /&gt;Hope you enjoy darkstat. I find it extremely useful and refreshing.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://dmr.ath.cx/net/darkstat/"&gt;http://dmr.ath.cx/net/darkstat/&lt;/a&gt;&lt;br /&gt;man darkstat&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5872651482137346437?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5872651482137346437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5872651482137346437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5872651482137346437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5872651482137346437'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth.html' title='HowTo: Network traffic &amp; bandwidth monitoring with darkstat on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1172369257898606724</id><published>2008-10-20T00:33:00.019+01:00</published><updated>2008-10-20T16:14:03.530+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FTP'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Setup a Pure-FTPd server with virtual users on FreeBSD</title><content type='html'>Having &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-setup-and-anonymous-ftp-server-on.html"&gt;setup a FTP server using FreeBSD's own FTPd&lt;/a&gt; I decided to explore other FTP server options, namely Pure-FTPd.&lt;br /&gt;&lt;br /&gt;Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server.&lt;br /&gt;&lt;br /&gt;This guide provides instructions for using the virtual user system to manage and control users. By using virtual users, FTP accounts can be administrated without affecting system accounts.&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Let'&lt;/span&gt;&lt;/span&gt;s initiate Pure-FTPd's installation by entering the following commands:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/ftp/pure-ftpd&lt;/li&gt;&lt;li&gt;# make config&lt;/li&gt;&lt;/ul&gt;A menu containing Pure-FTPd options will pop-up. In my case, I've opted to leave these options at their defaults.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# make install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;/ul&gt;Having finished the installation process we now move into the configuration stage.  We'll start by copying the sample configuration file and set the configuration options:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cd /usr/local/etc&lt;/li&gt;&lt;li&gt;# cp pure-ftpd.conf.sample pure-ftpd.conf&lt;/li&gt;&lt;li&gt;# chmod 644 pure-ftpd.conf&lt;/li&gt;&lt;/ul&gt;The &lt;span style="font-style: italic;"&gt;chmod&lt;/span&gt; command was run to be able to edit the file (default permissions are set to -r--r--r--).&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vi pure-ftpd.conf&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;VerboseLog yes&lt;br /&gt;PureDB               /usr/local/etc/pureftpd.pdb&lt;br /&gt;CreateHomeDir        yes&lt;/blockquote&gt;The &lt;span style="font-style: italic;"&gt;CreateHomeDir&lt;/span&gt; option makes adding virtual users more easy by creating a user's home directory upon login (if it doesn't already exist).&lt;br /&gt;&lt;br /&gt;We can either import users with system-level accounts (defined in /etc/master.passwd) at once or create new users manually. To import users that already exist on your system into  the virtual user database, enter these commands:&lt;p class="docList"&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;# pure-pwconvert &gt;&gt; /usr/local/etc/pureftpd.passwd&lt;/li&gt;&lt;li&gt;# chmod 600 /usr/local/etc/pureftpd.passwd&lt;/li&gt;&lt;li&gt;# pure-pw mkdb&lt;/li&gt;&lt;/ul&gt;It should be noted that &lt;span style="font-style: italic;"&gt;pure-pwconvert&lt;/span&gt; only imports accounts that have shell access. Accounts with the shell set to &lt;span style="font-style: italic;"&gt;nologin&lt;/span&gt; have to be added manually.&lt;br /&gt;&lt;p class="docList"&gt;&lt;a name="virtual user"&gt;&lt;/a&gt;&lt;/p&gt;To add users to the Pure-FTPd  virtual user database manually, we need to create a system-level account that  will be associated with virtual users. Create a new user named &lt;span style="font-style: italic;"&gt;vftp&lt;/span&gt; like  this:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# pw useradd vftp -s /sbin/nologin -w no -d /usr/home/vftp\&lt;/li&gt;&lt;li&gt;? -c "Virtual FTP user" -m&lt;/li&gt;&lt;/ul&gt; Having done this we can now add users to  the virtual users database using the commands below:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# pure-pw useradd user -u vftp -g vftp -d /usr/home/vftp/user&lt;/li&gt;&lt;li&gt;# pure-pw mkdb&lt;/li&gt;&lt;/ul&gt; Replace &lt;span style="font-style: italic;"&gt;user&lt;/span&gt; with the desired username. With -d flag, the user will be chrooted. If you want to give &lt;span style="font-style: italic;"&gt;user&lt;/span&gt; access to the whole filesystem, use -D instead of -d.&lt;br /&gt;&lt;br /&gt;If you want to add additional users, just repeat the  commands above with a different user.&lt;br /&gt;&lt;br /&gt;To remove a user:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# pure-pw userdel user&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="docList"&gt;Now to start Pure-FTPd:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;# /usr/local/etc/rc.d/pure-ftpd onestart&lt;/li&gt;&lt;/ul&gt;&lt;p class="docList"&gt;Initiate a FTP connection to test the server:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;% ftp localhost&lt;/li&gt;&lt;/ul&gt;&lt;p class="docList"&gt;&lt;/p&gt;&lt;blockquote&gt;Trying 127.0.0.1...&lt;br /&gt;Connected to localhost.&lt;br /&gt;220---------- Welcome to Pure-FTPd [TLS] ----------&lt;br /&gt;220-You are user number 2 of 50 allowed.&lt;br /&gt;220-Local time is now 13:39. Server port: 21.&lt;br /&gt;220-IPv6 connections are also welcome on this server.&lt;br /&gt;220 You will be disconnected after 15 minutes of inactivity.&lt;br /&gt;Name (localhost:username):&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;Now log in with a user account created as explained above. Commands such as &lt;span style="font-style: italic;"&gt;ls&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;cp&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;pwd&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;less&lt;/span&gt; work just like in tcsh and bash shells. To quit the FTP session type &lt;span style="font-style: italic;"&gt;exit&lt;/span&gt;.&lt;p&gt;&lt;/p&gt;&lt;p class="docList"&gt;To configure Pure-FTPd to start at boot time:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;# echo 'pureftpd_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;/ul&gt;To restart Pure-FTPd and determine if it is running:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /usr/local/etc/rc.d/pure-ftpd restart&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/pure-ftpd status&lt;/li&gt;&lt;/ul&gt;&lt;p class="docList"&gt;Pure-FTPd provides useful features for personal users as well as hosting providers. I've only touched the tip of the iceberg so do take a look at the project's website for the excellent documentation that is available.&lt;/p&gt;&lt;p class="docList"&gt;That's it for now. On a future post I'll explain how to setup Pure-FTPd for anonymous FTP access.&lt;br /&gt;&lt;/p&gt;Resources:&lt;br /&gt;&lt;a href="http://www.pureftpd.org/project/pure-ftpd/doc"&gt;http://www.pureftpd.org/project/pure-ftpd/doc&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1172369257898606724?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1172369257898606724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1172369257898606724' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1172369257898606724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1172369257898606724'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-setup-pure-ftpd-server-with.html' title='HowTo: Setup a Pure-FTPd server with virtual users on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8623208491872290951</id><published>2008-10-17T11:47:00.010+01:00</published><updated>2009-03-16T13:38:13.226Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='MLDonkey'/><category scheme='http://www.blogger.com/atom/ns#' term='P2P'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Install and setup MLDonkey on Gentoo</title><content type='html'>MLDonkey is an open source, free software multi-network peer-to-peer application. Currently the following protocols are supported: eDonkey, Overnet, Bittorrent, Gnutella, Gnutella2, Fasttrack, FileTP and Kademlia.&lt;br /&gt;&lt;br /&gt;To cater to my brother's P2P needs I decided to install MLDonkey without X11 support leaving only the core with both telnet and web interfaces. The target computer was my 1.3GHz Pentium-M laptop headless server (faulty display) running Gentoo Hardened located at my parents house.&lt;br /&gt;&lt;br /&gt;Bellow are the steps needed to install MLDonkey on Gentoo with Bittorrent, eDonkey and Overnet support:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# eix-sync&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# echo "net-p2p/mldonkey ocamlopt -doc -fasttrack -gd -gnutella -gtk -guionly -magic" &gt;&gt; /etc/portage/package.use&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# emerge -tav mldonkey&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Now that MLDonkey is installed let's activate it at boot time and start the service:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# rc-update add mldonkey default&lt;/li&gt;&lt;li&gt;# /etc/init.d/mldonkey start&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now we are going to modify the MLDonkey configuration&lt;span style="font-weight: bold;"&gt;:&lt;/span&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;# /etc/init.d/mldonkey status&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;li&gt;$ telnet 127.0.0.1 4000&lt;/li&gt;&lt;li&gt;&gt; auth admin ""&lt;/li&gt;&lt;li&gt;&gt; passwd &lt;span style="font-style: italic;"&gt;newpassword&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; set allowed&lt;/span&gt;&lt;span&gt;_&lt;/span&gt;&lt;span&gt;ips "&lt;/span&gt;&lt;span&gt;127.0.0.1 192.168.1.0/24"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; save&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; exit &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Basically, we've checked to see if MLDonkey was running and accessed it through its telnet interface. Initially the application is configured without an admin password, so step 5 takes care of that. On step 6 we set the ips that are allowed to connect to the application, in the example the localhost and all clients in the local network.&lt;br /&gt;&lt;br /&gt;MLDonkey's web server can be accessed on &lt;span style="font-style: italic;"&gt;http://localhost:4080&lt;/span&gt;, so fire-up your browser and point to the address. If your planning to access the server from another computer replace &lt;span style="font-style: italic;"&gt;localhost&lt;/span&gt; bit by the server's ip or hostname.&lt;br /&gt;&lt;br /&gt;The following are a few useful commands that can be passed on to MLDonkey:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# /etc/init.d/mldonkey start&lt;/li&gt;&lt;li&gt;# /etc/init.d/mldonkey stop&lt;/li&gt;&lt;li&gt;# /etc/init.d/mldonkey restart&lt;/li&gt;&lt;li&gt;# /etc/init.d/mldonkey status&lt;/li&gt;&lt;/ol&gt;&lt;password&gt;&lt;/password&gt;There are tons of configuration options available both in the telnet and web interfaces so I've opted to mention only the basic stuff. For more information I suggest browsing the project's website at &lt;a href="http://mldonkey.sourceforge.net/"&gt;http://mldonkey.sourceforge.net/&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8623208491872290951?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8623208491872290951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8623208491872290951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8623208491872290951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8623208491872290951'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-mldonkey-on.html' title='HowTo: Install and setup MLDonkey on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6174783905496161274</id><published>2008-10-14T21:15:00.004+01:00</published><updated>2008-10-16T09:37:48.587+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><title type='text'>Tip: Konqueror with Flash support (YouTube) on Gentoo</title><content type='html'>Following the footsteps of my previous post on how to &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html"&gt;install and setup KDE 3.5.x&lt;/a&gt; on Gentoo I'll explain bellow how to get Flash support for Konqueror and with it YouTube heaven.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# emerge --ask --tree nsplugins netscape-flash&lt;/li&gt;&lt;li&gt;open Konqueror and point to &lt;span style="font-style: italic;"&gt;Settings &lt;/span&gt;-&gt; &lt;span style="font-style: italic;"&gt;Configure Konqueror&lt;/span&gt; -&gt; &lt;span style="font-style: italic;"&gt;Plugins -&gt; Scan for New Plugins&lt;/span&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;We started becoming superuser, on step 2 the plugins packages were installed and on the final step we told Konqueror to re-scan all plugin directories.&lt;br /&gt;&lt;br /&gt;It's done ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6174783905496161274?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6174783905496161274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6174783905496161274' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6174783905496161274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6174783905496161274'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/tip-konqueror-with-flash-support.html' title='Tip: Konqueror with Flash support (YouTube) on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5907384527709133025</id><published>2008-10-14T12:16:00.024+01:00</published><updated>2008-11-11T17:31:54.624Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Install and setup KDE 3.5.x on Gentoo</title><content type='html'>&lt;a href="http://www.kde.org/"&gt;&lt;/a&gt;&lt;a href="http://www.kde.org/"&gt;KDE&lt;/a&gt; is a powerful Open Source graphical desktop environment for Unix and Unix-like workstations. It combines ease of use and unparalel functionality.&lt;br /&gt;&lt;br /&gt;Having married I can't "afford" running cool window managers such as dwm and Xmonad, so I began moving into desktop environments such as Gnome and KDE. KDE was there on my first contact with Linux and truth be said I prefer it over Gnome.&lt;br /&gt;&lt;br /&gt;Bellow you'll find the steps I took to install and setup KDE 3.5.9 on Gentoo. Why 3.5.9? Because in my opinion KDE 4 is lacking taking into account the mature 3.5.x versions.&lt;br /&gt;&lt;br /&gt;Let's begin by becoming the superuser:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;/ul&gt;Edit your &lt;span style="font-style: italic;"&gt;/etc/make.conf&lt;/span&gt; file and make sure that the &lt;span style="font-style: italic;"&gt;qt3&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;kde&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;hal&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;dbus&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;arts&lt;/span&gt; flags are enabled. If you access Samba shares consider adding the &lt;span style="font-style: italic;"&gt;samba&lt;/span&gt; flag also.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/make.conf&lt;/li&gt;&lt;/ul&gt;Now we update the portage tree:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# eix-sync&lt;/li&gt;&lt;/ul&gt;List and select a desktop profile:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# eselect profile list&lt;br /&gt;[1]   default-linux/x86/2006.1&lt;br /&gt;[2]   default-linux/x86/2006.1/desktop&lt;br /&gt;[3]   default-linux/x86/2007.0&lt;br /&gt;[4]   default-linux/x86/2007.0/desktop&lt;br /&gt;[5]   hardened/x86/2.6&lt;br /&gt;[6]   selinux/2007.0/x86&lt;br /&gt;[7]   selinux/2007.0/x86/hardened&lt;br /&gt;[8]   default/linux/x86/2008.0&lt;br /&gt;[9]   default/linux/x86/2008.0/desktop *&lt;br /&gt;[10]  default/linux/x86/2008.0/developer&lt;br /&gt;[11]  default/linux/x86/2008.0/server&lt;br /&gt;[12]  hardened/linux/x86&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# eselect profile set 9&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Now let's update our system along with all package dependencies, removing unneeded dependencies in the process:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# emerge --ask --verbose  --tree --update --newuse --deep world &amp;amp;&amp;amp; emerge --depclean &amp;amp;&amp;amp; revdep-rebuild&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;The fun stuff begins: the installation of &lt;span style="font-style: italic;"&gt;kdebase-startkde&lt;/span&gt;. I choose this over &lt;span style="font-style: italic;"&gt;kde-meta&lt;/span&gt; because I really don't need the full KDE environment. This takes around 2 hours on my desktop, a 2.2Ghz Athon XP-M.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# emerge --ask kdebase-startkde&lt;/li&gt;&lt;/ul&gt;Having installed the base environment I proceeded by installing the individual KDE applications that I like:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# emerge --ask --tree konsole kdm kpdf ktorrent ksnapshot amarok k3b kaffeine kmix kate kopete kcalc kolourpaint ark media-gfx/gwenview kget knetattach kchmviewer yakuake&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;From the previous package list special attention should be given to &lt;span style="font-style: italic;"&gt;knetattach&lt;/span&gt; as this package allows &lt;span style="font-style: italic;"&gt;Konqueror&lt;/span&gt; access to Samba shares.&lt;br /&gt;&lt;br /&gt;Also, if you are planning on customizing KDE's look consider installing the following packages:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# emerge --ask --tree kdmtheme nuvox polymer qtcurve gtk-engines-qt gtk-engines-qtcurve x11-themes/crystal&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;After emerging the KDM graphical login manager let's activate it by editing the &lt;span style="font-style: italic;"&gt;/etc/conf.d/xdm&lt;/span&gt; file and add it to the boot scripts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/conf.d/xdm&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;DISPLAYMANAGER="kdm"&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# rc-update add xdm default&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To have KDE automatically mount CDROMs and USB sticks, we need to add &lt;span style="font-style: italic;"&gt;hal&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;dbus&lt;/span&gt; to the default runlevel and add yourself to the &lt;span style="font-style: italic;"&gt;plugdev&lt;/span&gt; group.&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;# rc-update add dbus default&lt;/li&gt;&lt;li&gt;# rc-update add hald default&lt;/li&gt;&lt;li&gt;# gpasswd -a &lt;user&gt; plugdev&lt;/user&gt;&lt;/li&gt;&lt;/ul&gt;&lt;user&gt;As I also want to access Samba shares I've also added samba to the default runlevel:&lt;br /&gt;&lt;/user&gt;&lt;ul&gt;&lt;li&gt;# rc-update add samba default&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;user&gt;And that's it. Reboot your system and gaze upon the wonderful desktop environment that KDE is.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://www.gentoo.org/proj/en/desktop/kde/kde-config.xml"&gt;http://www.gentoo.org/proj/en/desktop/kde/kde-config.xml&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kde.org/"&gt;http://www.kde.org/&lt;/a&gt;&lt;/user&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5907384527709133025?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5907384527709133025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5907384527709133025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5907384527709133025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5907384527709133025'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-install-and-setup-kde-35x-on.html' title='HowTo: Install and setup KDE 3.5.x on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6702386401011999175</id><published>2008-10-13T21:24:00.003+01:00</published><updated>2008-10-13T21:32:20.129+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Tip: Getting Flash working on Debian</title><content type='html'>I've been running Debian Testing (Lenny) for a while with Gnome and Iceweasel however only recently I've been using it regularly.&lt;br /&gt;&lt;br /&gt;So I reached a point where I wanted to check a TV schedule and the TV station's website needed Flash. Latter on I've also found that YouTube required a Flash Player also.&lt;br /&gt;&lt;br /&gt;To fix this and get myself Iceweasel working with Flash websites:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# apt-get install flashplayer-mozilla&lt;/li&gt;&lt;/ol&gt;Just fire up Firefox and happy YouTube browsing ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6702386401011999175?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6702386401011999175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6702386401011999175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6702386401011999175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6702386401011999175'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/tip-getting-flash-working-on-debian.html' title='Tip: Getting Flash working on Debian'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4756875484898206831</id><published>2008-10-10T00:08:00.019+01:00</published><updated>2010-05-21T13:27:43.070+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FTP'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Setup an Anonymous FTP server on FreeBSD</title><content type='html'>To test the speed differences between SFTP and FTP I decided to setup an anonymous FTP server on my trusted old 266 Mhz Celeron running FreeBSD 7.0.&lt;br /&gt;&lt;br /&gt;The File Transfer Protocol (FTP) provides a simple and classic method for transferring files from one computer to another across the internet.&lt;br /&gt;&lt;br /&gt;FreeBSD base install includes FTP server software, namely ftpd.&lt;br /&gt;&lt;br /&gt;I'm fully aware of the security implications regarding FTP's transmission of usernames and passwords in clear text hence the choice of an anonymous FTP server in real-only mode.&lt;br /&gt;&lt;br /&gt;Let's start by creating a ftp user:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# adduser&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Username: ftp&lt;br /&gt;Full name: Anonymous FTP user&lt;br /&gt;Uid (Leave empty for default):&lt;br /&gt;Login group [ftp]:&lt;br /&gt;Login group is ftp. Invite ftp into other groups? []:&lt;br /&gt;Login class [default]:&lt;br /&gt;Shell (sh csh tcsh bash rbash zsh nologin) [sh]: nologin&lt;br /&gt;Home directory [/home/ftp]: /var/ftp&lt;br /&gt;Use password-based authentication? [yes]: no&lt;br /&gt;Lock out the account after creation? [no]: no&lt;br /&gt;Username   : ftp&lt;br /&gt;Password   : &lt;disabled&gt;&lt;br /&gt;Full Name  : Anonymous FTP user&lt;br /&gt;Uid        : 1004&lt;br /&gt;Class      :&lt;br /&gt;Groups     : ftp&lt;br /&gt;Home       : /var/ftp&lt;br /&gt;Shell      : /usr/sbin/nologin&lt;br /&gt;Locked     : no&lt;br /&gt;OK? (yes/no): yes&lt;br /&gt;adduser: INFO: Successfully added (ftp) to the user database.&lt;br /&gt;Add another user? (yes/no): no&lt;br /&gt;Goodbye!&lt;br /&gt;&lt;/disabled&gt;&lt;/blockquote&gt;&lt;disabled&gt;Anonymous FTP restricts access to the home directory of the user ftp. So let's create an additional directory:&lt;/disabled&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# mkdir -p /var/ftp/pub&lt;/disabled&gt;&lt;/li&gt;&lt;li&gt;# chown ftp:ftp /var/ftp/pub&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;From the point of view of the user &lt;span style="font-style: italic;"&gt;/var/ftp&lt;/span&gt; is the root directory, and he cannot access any files outside of the ftp directory.&lt;br /&gt;&lt;br /&gt;To display a welcome notice before users login edit the &lt;span style="font-style: italic;"&gt;/etc/ftpwelcome&lt;/span&gt; file:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# vi /etc/ftpwelcome&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;After a successful login the contents of the &lt;span style="font-style: italic;"&gt;/etc/ftpmod&lt;/span&gt; file are displayed to the user.&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# vi /etc/ftpmod&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;Next let's proceed by enabling the ftpd server in &lt;span style="font-style: italic;"&gt;/etc/inetd.conf&lt;/span&gt;:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# echo "ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -S -A -r" &gt;&gt; /etc/inetd.conf&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;In which:&lt;br /&gt;&lt;/disabled&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;disabled&gt;&lt;/disabled&gt;&lt;blockquote&gt;&lt;disabled&gt; -l default flag&lt;/disabled&gt;&lt;disabled&gt;&lt;/disabled&gt;&lt;br /&gt;&lt;disabled&gt;-r read-only mode&lt;/disabled&gt;&lt;br /&gt;&lt;disabled&gt;-o write-only mode&lt;/disabled&gt;&lt;br /&gt;&lt;disabled&gt;-A anonymous FTP connections only&lt;br /&gt;-S logging of all anonymous FTP activity&lt;br /&gt;&lt;/disabled&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;disabled&gt;&lt;/disabled&gt;&lt;/div&gt;&lt;disabled&gt;The -S flag allows logging to &lt;span style="font-style: italic;"&gt;/var/log/ftpd&lt;/span&gt;, however the file needs to exist before ftpd can use it:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;# touch /var/log/ftpd&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;To start ftpd at boot time:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# echo 'inetd_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;Having finished the configurations steps we can start ftpd immediately by:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# /ect/rc.d/inetd start&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;You can now log on to your FTP server by typing:&lt;br /&gt;&lt;/disabled&gt;&lt;ul&gt;&lt;li&gt;&lt;disabled&gt;# exit&lt;/disabled&gt;&lt;/li&gt;&lt;li&gt;&lt;disabled&gt;% ftp localhost&lt;/disabled&gt;&lt;/li&gt;&lt;/ul&gt;&lt;disabled&gt;In which the username can be either ftp or anonymous and the password can be anything. Commands such as &lt;span style="font-style: italic;"&gt;ls&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;cp&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;pwd&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;less&lt;/span&gt; work just like in tcsh and bash shells. To quit the FTP session type &lt;span style="font-style: italic;"&gt;exit&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;And we're done ;)&lt;br /&gt;&lt;br /&gt;Additional information:&lt;br /&gt;&lt;/disabled&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/"&gt;FreeBSD Handbook&lt;/a&gt;&lt;br /&gt;&lt;disabled&gt;man ftpchroot&lt;br /&gt;man ftpd&lt;br /&gt;man chroot&lt;br /&gt;man inetd&lt;br /&gt;&lt;br /&gt;&lt;/disabled&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4756875484898206831?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4756875484898206831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4756875484898206831' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4756875484898206831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4756875484898206831'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/10/howto-setup-and-anonymous-ftp-server-on.html' title='HowTo: Setup an Anonymous FTP server on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7428101979051183291</id><published>2008-09-26T21:46:00.004+01:00</published><updated>2008-09-26T21:57:13.448+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Tip: Matching Ktorrent for KDE 3.5.9 on OpenSUSE</title><content type='html'>I like KTorrent and I like KDE 3.5.9 on OpenSUSE. But I dislike the default KTorrent that came with the KDE 3.5.9 install: KTorrent 3.1.2 for KDE4.&lt;br /&gt;&lt;br /&gt;So I decided to fix the issue. To do so I performed a &lt;span style="font-style: italic;"&gt;zypper se ktorrent&lt;/span&gt; and found out that there is a ktorrent2 package with version 2.2.7 and a ktorrent package with version 3.1.2. A quick browse to &lt;a href="http://ktorrent.org/"&gt;http://ktorrent.org/&lt;/a&gt; showed me that version 3.1.2 is for KDE4 while 2.2.7 is directed to KDE3.&lt;br /&gt;&lt;br /&gt;To sum up:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# zypper rm ktorrent&lt;/li&gt;&lt;li&gt;# zypper in ktorrent2&lt;/li&gt;&lt;/ol&gt;End result is the right KTorrent for the right KDE ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7428101979051183291?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7428101979051183291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7428101979051183291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7428101979051183291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7428101979051183291'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/tip-matching-ktorrent-for-kde-359-on.html' title='Tip: Matching Ktorrent for KDE 3.5.9 on OpenSUSE'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-457278506686867947</id><published>2008-09-26T16:04:00.006+01:00</published><updated>2008-10-22T08:45:03.960+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Tip: Multimedia codecs on OpenSUSE 11.0</title><content type='html'>Support for some multimedia formats isn't on the openSUSE install media because they're proprietary, patented, Restricted Formats. Some of these include MP3, MPEG-4, playing of Encrypted DVDs, etc.&lt;br /&gt;&lt;br /&gt;To enable support for multimedia codecs on OpenSUSE 11.0 point your web browser to &lt;a href="http://opensuse-community.org/Multimedia"&gt;http://opensuse-community.org/Multimedia&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you are using the Gnome desktop environment refer to &lt;a href="http://opensuse-community.org/codecs-gnome.ymp"&gt;http://opensuse-community.org/codecs-gnome.ymp&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you prefer the KDE desktop then point to &lt;a href="http://opensuse-community.org/codecs-kde.ymp"&gt;http://opensuse-community.org/codecs-kde.ymp&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Both links point to a '1-Click' of the codec pack. If you prefer to perform the codec pack install manually:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# zypper in &lt;style type="text/css"&gt; white-space: pre-wrap; }&lt;/style&gt;ffmpeg&lt;/li&gt;&lt;li&gt;# zypper in flash-player&lt;/li&gt;&lt;li&gt; &lt;div style="text-align: left;"&gt;# zypper in &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;# zypper in gst-fluendo-mp3&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;# zypper in java-1_5_0-sun-plugin&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;# zypper in k3b-codecs&lt;/div&gt;&lt;/li&gt;&lt;li&gt;# zypper in libdvdcss&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;# zypper in libxine1&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;# zypper in w32codec-all&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;Now go dig into your media collection for some stuff ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-457278506686867947?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/457278506686867947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=457278506686867947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/457278506686867947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/457278506686867947'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/tip-multimedia-codecs-on-opensuse-110.html' title='Tip: Multimedia codecs on OpenSUSE 11.0'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-519148806726968958</id><published>2008-09-22T14:07:00.012+01:00</published><updated>2008-11-11T17:26:17.481Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='MLDonkey'/><category scheme='http://www.blogger.com/atom/ns#' term='P2P'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Install and setup MLDonkey on FreeBSD</title><content type='html'>MLDonkey is an open source, free software multi-network peer-to-peer application. Currently the following protocols are supported: eDonkey, Overnet, Bittorrent, Gnutella, Gnutella2, Fasttrack, FileTP and Kademlia.&lt;br /&gt;&lt;br /&gt;I wanted to put my 266 Mhz Celeron to good use so I've decided to install MLDonkey without X11 support leaving only the core with both telnet and web interfaces.&lt;br /&gt;&lt;br /&gt;Bellow are the steps needed to install MLDonkey on FreeBSD 7.0:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/net-p2p/mldonkey&lt;/li&gt;&lt;li&gt;# make WITHOUT_GUI=yes WITHOUT_X11="YES" WITHOUT_TK="YES" install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;/ol&gt;Now that MLDonkey is installed let's activate it at boot time:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# echo 'mlnet_enable="YES"' &gt;&gt; /etc/rc.conf&lt;span class="content"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;# echo 'mlnet_user="p2p"' &gt;&gt; /etc/rc.conf&lt;span class="content"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Notice the &lt;span style="font-style: italic;"&gt;mlnet_user&lt;/span&gt; option, for added security we'll create a p2p user:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# pw user add p2p&lt;/li&gt;&lt;li&gt;# mkdir /home/p2p&lt;/li&gt;&lt;li&gt;# chown p2p:p2p /home/p2p&lt;/li&gt;&lt;/ol&gt;Restart the system for the changes to apply.&lt;br /&gt;&lt;p&gt;Now we are going to modify the MLDonkey configuration&lt;span style="font-weight: bold;"&gt;:&lt;/span&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;% su&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/mlnet status&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;li&gt;% telnet 127.0.0.1 4000&lt;/li&gt;&lt;li&gt;&gt; auth admin ""&lt;/li&gt;&lt;li&gt;&gt; passwd &lt;span style="font-style: italic;"&gt;newpassword&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; set allowed&lt;/span&gt;&lt;span&gt;_&lt;/span&gt;&lt;span&gt;ips "&lt;/span&gt;&lt;span&gt;127.0.0.1 192.168.1.0/24"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; save&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&gt; exit &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Basically, we've checked to see if MLDonkey was running and accessed it through its telnet interface. Initially the application is configured without an admin password, so step 6 takes care of that. On step 7 we set the ips that are allowed to connect to the application, in the example the localhost and all clients in the local network.&lt;br /&gt;&lt;br /&gt;MLDonkey's web server can be accessed on &lt;span style="font-style: italic;"&gt;http://localhost:4080&lt;/span&gt;, so fire-up your browser and point to the address. If your planning to access the server from another computer replace &lt;span style="font-style: italic;"&gt;localhost&lt;/span&gt; bit by the server's ip or hostname.&lt;br /&gt;&lt;br /&gt;The following are a few useful commands that can be passed on to MLDonkey:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# /usr/local/etc/rc.d/mlnet start&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/mlnet stop&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/mlnet restart&lt;/li&gt;&lt;li&gt;# /usr/local/etc/rc.d/mlnet status&lt;/li&gt;&lt;/ol&gt;&lt;disabled&gt;&lt;password&gt;&lt;/password&gt;There are tons of configuration options available both in the telnet and web interfaces so I've opted to mention only the basic stuff. For more information I suggest browsing the project's website at &lt;a href="http://mldonkey.sourceforge.net/"&gt;http://mldonkey.sourceforge.net/&lt;/a&gt;.&lt;br /&gt;&lt;/disabled&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-519148806726968958?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/519148806726968958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=519148806726968958' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/519148806726968958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/519148806726968958'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-install-and-setup-mldonkey-on.html' title='HowTo: Install and setup MLDonkey on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-369077550836307318</id><published>2008-09-18T22:53:00.009+01:00</published><updated>2008-09-18T23:13:25.543+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Tip: Add OpenSUSE Community repositories</title><content type='html'>&lt;div style="float: left;"&gt;&lt;a href="http://opensuse-community.org/Image:Packages.png" class="image" title="Image:Packages.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;To use OpenSUSE to a fuller experience its more or less required that you add a few third-party software repositories. These repositories provide loads more packages, as well as some non-free formats which may be of use.&lt;br /&gt;&lt;br /&gt;To enable the Community repository starting from the Gnome desktop environment, point to &lt;b&gt;Computer -&gt; YaST -&gt; Software -&gt; Software Management&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Then, in the menu: &lt;b&gt;Repositories -&gt; Repository Manager&lt;/b&gt;. Once there hit the &lt;b&gt;Add -&gt; Community Repositories&lt;/b&gt;, and select:  &lt;ul&gt;&lt;li&gt; Main Repository (OSS) &lt;/li&gt;&lt;li&gt; Main Repository (Non-OSS) &lt;/li&gt;&lt;li&gt; Packman &lt;/li&gt;&lt;li&gt; Main Update Repository &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;And we're set. Lots of goodies just &lt;span style="font-style: italic;"&gt;zypper install&lt;/span&gt; away. ;)&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-369077550836307318?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/369077550836307318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=369077550836307318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/369077550836307318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/369077550836307318'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/add-opensuse-community-repositories.html' title='Tip: Add OpenSUSE Community repositories'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7436088223773570677</id><published>2008-09-18T22:53:00.003+01:00</published><updated>2008-09-18T23:04:22.430+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Tip: Add Google Linux software repository to OpenSUSE</title><content type='html'>To add the Google repository start by becoming the superuser:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;/ul&gt;Add the repository using the Zypper package manager:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# zypper sa -t YUM http://dl.google.com/linux/rpm/stable/i386 google &lt;/li&gt;&lt;/ul&gt;Update the repositories and force Google repository's key import:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# zypper up&lt;/li&gt;&lt;/ul&gt;After running the above command you are prompted to answer yes/no twice, say yes on both ocasions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7436088223773570677?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7436088223773570677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7436088223773570677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7436088223773570677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7436088223773570677'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/tip-add-google-linux-software.html' title='Tip: Add Google Linux software repository to OpenSUSE'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8866835742390298323</id><published>2008-09-18T10:53:00.011+01:00</published><updated>2008-09-18T11:21:04.089+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Setup a NFS server on Gentoo</title><content type='html'>To share the content of my P2P workhorse (1.3Ghz Pentium-M laptop running Gentoo Hardened) across my other Unix like machine I've decided to use NFS (&lt;a href="http://nfs.sourceforge.net/"&gt;Network File System&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;To serve as reminder if I ever need to setup a NFS server on Gentoo and to help anyone seeking help I'll lay down the need steps to achieve success.&lt;br /&gt;&lt;br /&gt;First become superuser:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;/ul&gt;Before setting the sever we need to make sure that client and server machines have support for NFS volumes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cd /usr/src/linux&lt;/li&gt;&lt;li&gt;# make menuconfig&lt;/li&gt;&lt;li&gt;check if the following options are enabled in the kernel config:&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;File Systems ---&gt;&lt;br /&gt;Network File Systems ---&gt;&lt;br /&gt;&lt;*&gt; NFS file system support&lt;br /&gt;[*]   Provide NFSv3 client support&lt;br /&gt;&lt;*&gt; NFS server support&lt;br /&gt;[*]   Provide NFSv3 server support&lt;/blockquote&gt;Save your kernel config and re-compile the kernel. If you need help on this please refer to Gentoo's documentation as kernel configuration isn't the focus of this post.&lt;br /&gt;&lt;br /&gt;Now install the &lt;span style="font-style: italic;"&gt;nfs-utils&lt;/span&gt; package from portage:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# emerge nfs-utils&lt;/li&gt;&lt;/ul&gt;Editing the /etc/exports file to identify what are your sharing and to whom:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vim /etc/exports&lt;/li&gt;&lt;li&gt;to share the &lt;span style="font-style: italic;"&gt;/downloads&lt;/span&gt; directory to all computers on 192.168.1 network add the following line:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;/downloads 192.168.1.1/24(rw,sync,no_subtree_check)&lt;/blockquote&gt;Let's start the &lt;span style="font-style: italic;"&gt;nfs&lt;/span&gt; service:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /etc/init.d/nfs start&lt;/li&gt;&lt;/ul&gt;To have the &lt;span style="font-style: italic;"&gt;nfs&lt;/span&gt; service starting at boot time:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# rc-update add nfs default&lt;/li&gt;&lt;/ul&gt;Also, the &lt;span style="font-style: italic;"&gt;showmount&lt;/span&gt; command can be used to display the exports on the server:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# showmount -e&lt;/li&gt;&lt;/ul&gt;If you perform any changes changes to the &lt;span style="font-style: italic;"&gt;/etc/exports&lt;/span&gt; file, reload it by:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /etc/init.d/nfs reload&lt;/li&gt;&lt;/ul&gt;I've focused on the basis to setup a home network NFS share on Gentoo, however there are loads of performance tunning flags that can be set on both server and client sides.&lt;br /&gt;&lt;br /&gt;For more detailed documentation take a look into:&lt;br /&gt;&lt;a href="http://nfs.sourceforge.net/nfs-howto/index.html"&gt;http://nfs.sourceforge.net/nfs-howto/index.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS"&gt;http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7"&gt;http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.gentoo.org/doc/en/kernel-upgrade.xml"&gt;http://www.gentoo.org/doc/en/kernel-upgrade.xml&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8866835742390298323?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8866835742390298323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8866835742390298323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8866835742390298323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8866835742390298323'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-setup-nfs-server-on-gentoo.html' title='HowTo: Setup a NFS server on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1156957147526391134</id><published>2008-09-17T16:44:00.005+01:00</published><updated>2008-11-19T12:10:00.912Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='RIPLinux'/><title type='text'>HowTo: Install and boot RIPLinux</title><content type='html'>&lt;a href="http://www.tux.org/pub/people/kent-robotti/looplinux/rip/"&gt;RPLinux&lt;/a&gt; is a sysadmin distribution which comes with a vast array of tools for disk management, backup and troubleshooting. Despite the impressive number of tools it is still slim, fast and very well put together.&lt;br /&gt;&lt;br /&gt;Bellow are the steps I took to install it from Windows XP to an USB flash drive and boot it in my laptop.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;download the archive from http://www.tux.org/pub/people/kent-robotti/looplinux/rip/linux.exe&lt;/li&gt;&lt;li&gt;create a folder and move linux.exe into it&lt;br /&gt;&lt;/li&gt;&lt;li&gt;double-click to auto extract the contents of linux.exe  (notice that a new &lt;span style="font-style: italic;"&gt;linux&lt;/span&gt; folder was created)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;insert an USB flash drive in the computer&lt;/li&gt;&lt;li&gt;click &lt;span style="font-weight: bold;"&gt;START -&gt; MY COMPUTER -&gt;&lt;/span&gt; right-click on the USB flash drive and select &lt;span style="font-weight: bold;"&gt;FORMAT -&gt;&lt;/span&gt; choose &lt;span style="font-weight: bold;"&gt;FAT32 -&gt;&lt;/span&gt; click &lt;span style="font-weight: bold;"&gt;OK&lt;/span&gt;&lt;/li&gt;&lt;li&gt; take notice of the drive letter of the USB flash drive&lt;/li&gt;&lt;li style="font-weight: bold;"&gt;START -&gt; Run&lt;/li&gt;&lt;li&gt;change directory of the created &lt;span style="font-style: italic;"&gt;linux&lt;/span&gt; folder, typically it should be something like &lt;span style="font-style: italic;"&gt;cd Desktop\linux&lt;/span&gt;&lt;/li&gt;&lt;li&gt;on the prompt type &lt;span style="font-style: italic; font-weight: bold;"&gt;mkusb.bat h:&lt;/span&gt; in which &lt;span style="font-style: italic; font-weight: bold;"&gt;h&lt;/span&gt; is the drive letter&lt;/li&gt;&lt;/ul&gt;Now we've created an USB flash drive capable of booting into RPLinux.&lt;br /&gt;&lt;br /&gt;To boot it up, restart the computer and follow your BIOS instructions on how to boot from an USB device. On my laptop, a Dell Latitude D620, I simply press F12 and select the USB device and press ENTER; this of course changes from laptop to laptop so read your computer motherboard manual.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://www.tux.org/pub/people/kent-robotti/looplinux/rip/"&gt;http://www.tux.org/pub/people/kent-robotti/looplinux/rip/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1156957147526391134?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1156957147526391134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1156957147526391134' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1156957147526391134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1156957147526391134'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-install-and-boot-riplinux.html' title='HowTo: Install and boot RIPLinux'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6817895176556734319</id><published>2008-09-17T14:08:00.011+01:00</published><updated>2008-10-16T09:42:31.238+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo: Monitor network traffic with vnStat on Gentoo</title><content type='html'>Following an install of &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with.html"&gt;vnStat on FreeBSD&lt;/a&gt; I took the opportunity and had it installed also in my 1.3 Ghz Pentium-M laptop running Gentoo Hardened. This laptop serves my p2p needs namely runs MLDonkey, SSH, Samba and NFS making it the perfect machine to monitor network traffic on.&lt;br /&gt;&lt;br /&gt;Let's proceed with the steps needed to install vnStat from portage:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# emerge vnstat&lt;/li&gt;&lt;/ul&gt;Now let's find out the system network interface(s) in use, which in my case is eth0.&lt;ul&gt;&lt;li&gt;# ifconfig -a&lt;/li&gt;&lt;/ul&gt;To create vnStat's database we run:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# vnstat -u -i eth0&lt;/li&gt;&lt;/ul&gt;Finally, to activate the cron job to feed vnStat's database uncomment lines 7 through 9 on &lt;span style="font-style: italic;"&gt;/etc/cron.hourly/vnstat&lt;/span&gt; as instructed by the file itself.&lt;br /&gt;&lt;br /&gt;A nice list of switches can be viewed typing the following command:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ vnstat --help&lt;/li&gt;&lt;/ul&gt;To display the default statistics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ vnstat&lt;/li&gt;&lt;/ul&gt;To display daily traffic statistics use the &lt;span style="font-style: italic;"&gt;-d&lt;/span&gt; switch:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ vnstat -d&lt;/li&gt;&lt;/ul&gt;Monthly traffic statistics can be viewed with the &lt;span style="font-style: italic;"&gt;-m&lt;/span&gt; switch:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ vnstat -m&lt;/li&gt;&lt;/ul&gt;To display current transfer rate in real time until interrupted:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ vnstat -l &lt;/li&gt;&lt;/ul&gt;Further info on vnStat can be obtained in the &lt;a href="http://humdi.net/vnstat/"&gt;project's homepage&lt;/a&gt; and in my &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with.html"&gt;previous post&lt;/a&gt; regarding vnStat on FreeBSD.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6817895176556734319?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6817895176556734319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6817895176556734319' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6817895176556734319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6817895176556734319'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with_17.html' title='HowTo: Monitor network traffic with vnStat on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-9127377601198029414</id><published>2008-09-17T00:30:00.004+01:00</published><updated>2008-09-17T13:45:34.967+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MPD'/><category scheme='http://www.blogger.com/atom/ns#' term='Multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>HowTo: Install and configure MPD on OpenSUSE</title><content type='html'>Following a &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/08/howto-musicpd-music-player-daemon-on.html"&gt;previous post&lt;/a&gt; on how to install &lt;a href="http://www.musicpd.org/"&gt;Music Player Daemon (MPD)&lt;/a&gt; on FreeBSD I'll be presenting the steps need to install it this time on OpenSUSE.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;$ sudo su&lt;/li&gt;&lt;li&gt;# zypper ar http://packman.links2linux.de packman&lt;/li&gt;&lt;li&gt;# zypper mr -r packman&lt;/li&gt;&lt;li&gt;# zypper ref&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# zypper install mpd&lt;/li&gt;&lt;li&gt;# vim /etc/mpd.conf&lt;/li&gt;&lt;li&gt;# /etc.init.d/mpd start&lt;/li&gt;&lt;li&gt;# chkconfig mpd on&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;With steps 2 to 4 we've added the Packman community repository and enable its auto-refresh and taken the opportunity to refresh the remaining repositories.&lt;br /&gt;&lt;br /&gt;Step 6 deals with the configuration of MPD. Point to &lt;span style="font-style: italic;"&gt;music_directory&lt;/span&gt; and type in the path of you music library.&lt;br /&gt;&lt;br /&gt;On steps 7 and 8 we've started the MPD service and set MPD to start at each reboot.&lt;br /&gt;&lt;br /&gt;If need you can update the database at any time by running:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# mpd --create-db&lt;/li&gt;&lt;/ul&gt;Now that we have the MPD server installed let's proceed by installing my favourite client: &lt;a href="http://hem.bredband.net/kaw/ncmpc/"&gt;ncmpc&lt;/a&gt;.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;# zypper install ncmpc&lt;/li&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;li&gt;$ ncmpc -c&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;As a side note, the Packman Repository's ncmpc rpm was built without the clock and search build options. You can rebuild the rpm yourself if you really want to use the mentioned options.&lt;br /&gt;&lt;br /&gt;An heads-up: don't end you Gnome session with ncmpc paused. It seems that the next time you restart your system the &lt;span style="font-style: italic;"&gt;/dev/dsp&lt;/span&gt; device will be in use effectively stopping you from using programs that use the device, such as Mplayer. Simply stop ncmpc before exiting it, press &lt;span style="font-style: italic;"&gt;Backspace&lt;/span&gt; to do so.&lt;br /&gt;&lt;br /&gt;Additional and extremely useful information can be found under /usr/share/doc/mpd and /usr/share/doc/ncmpc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-9127377601198029414?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/9127377601198029414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=9127377601198029414' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9127377601198029414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/9127377601198029414'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-install-and-configure-mpd-on.html' title='HowTo: Install and configure MPD on OpenSUSE'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1932719602144147684</id><published>2008-09-15T10:19:00.011+01:00</published><updated>2008-10-20T15:27:15.763+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Monitor network traffic with vnStat on FreeBSD</title><content type='html'>vnStat is a console-based network traffic monitor. It keeps a log of&lt;br /&gt;hourly, daily and monthly network traffic for the selected interface(s).&lt;br /&gt;&lt;br /&gt;Bellow you'll find the needed steps for its installation and setup on FreeBSD 7.0:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/net/vnstat ; make install clean&lt;br /&gt;&lt;/li&gt;&lt;li&gt;# rehash&lt;/li&gt;&lt;li&gt;# ifconfig -a&lt;/li&gt;&lt;li&gt;# vnstat -u -i rl0&lt;/li&gt;&lt;li&gt;# cat /usr/local/share/doc/vnstat/vnstat-cron &gt;&gt; /etc/crontab&lt;/li&gt;&lt;/ol&gt;On steps 1 to 3 we basically became to the superuser, changed to the vnStat's port directory, proceeded by compiling the port and rehashing the shell.&lt;br /&gt;&lt;br /&gt;Step 4 purpose is to find out the system network interface(s) in use, which in my case is rl0.&lt;br /&gt;&lt;br /&gt;Finally with step 6 we've activated the cron job to feed vnStat's database following the port's supplied example.&lt;br /&gt;&lt;br /&gt;To display the default statistics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% vnstat&lt;/li&gt;&lt;/ul&gt;To display daily traffic statistics use the &lt;span style="font-style: italic;"&gt;-d&lt;/span&gt; switch:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% vnstat -d&lt;/li&gt;&lt;/ul&gt;Monthly traffic statistics can be viewed with the &lt;span style="font-style: italic;"&gt;-m&lt;/span&gt; switch:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% vnstat -m&lt;/li&gt;&lt;/ul&gt;To display current transfer rate for the selected interface in real time until interrupted:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% vnstat -l -i rl0&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;A nice list of switches can be viewed typing the following command:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% vnstat --help&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;And we're done. ;)&lt;br /&gt;&lt;br /&gt;Further documentation is available at &lt;a href="http://humdi.net/vnstat/"&gt;http://humdi.net/vnstat/&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1932719602144147684?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1932719602144147684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1932719602144147684' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1932719602144147684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1932719602144147684'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with.html' title='HowTo: Monitor network traffic with vnStat on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-444105614202253564</id><published>2008-09-12T17:37:00.012+01:00</published><updated>2009-01-19T09:13:41.713Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Install Vim WITHOUT X11</title><content type='html'>I like Vim and I like using those cool colour schemes available for the editor.&lt;br /&gt;&lt;br /&gt;So in my ingenuity I changed directory to &lt;span style="font-style: italic;"&gt;/usr/ports/editors/vim&lt;/span&gt; and ran &lt;span style="font-style: italic;"&gt;make install clean&lt;/span&gt;... big mistake! It tried to install all sorts of X11 related stuff and of course X11 itself. Normally this wouldn't be a problem, however on a 266 MHZ headless server I really don't want a GUI of any sorts.&lt;br /&gt;&lt;br /&gt;To address the situation I read the port's Makefile and noticed several options that could be passed on the &lt;span style="font-style: italic;"&gt;make&lt;/span&gt; step, namely &lt;span style="font-style: italic;"&gt;WITHOUT_X11&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Here's how to install Vim without X11:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/editors/vim&lt;/li&gt;&lt;li&gt;# make WITHOUT_X11=yes NO_GUI=yes LITE=yes install clean&lt;/li&gt;&lt;li&gt;# rehash&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;And that's it.&lt;br /&gt;&lt;br /&gt;Now I can finally use those cool colour schemes again. :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-444105614202253564?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/444105614202253564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=444105614202253564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/444105614202253564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/444105614202253564'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-install-vim-without-x11.html' title='HowTo: Install Vim WITHOUT X11'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7037459966651825379</id><published>2008-09-11T21:40:00.005+01:00</published><updated>2008-09-11T21:50:55.633+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Fix: Touchpad not working on OpenSUSE 11.0</title><content type='html'>All of a sudden the touchpad on my Dell D620 stopped working. After googling for an answer I came across a post on LinuxQuestions.org pointing to the &lt;a href="http://www.linuxquestions.org/questions/susenovell-60/touchpad-not-working-in-opensuse-11.0-652685/"&gt;solution&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;To sum up, browse to &lt;span style="font-weight: bold; font-style: italic;"&gt;Control Center&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &gt; &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Sessions&lt;/span&gt; and deselect &lt;span style="font-weight: bold; font-style: italic;"&gt;Touchpad&lt;/span&gt; from the &lt;span style="font-weight: bold; font-style: italic;"&gt;Startup Programs&lt;/span&gt; tab. After restarting your session you'll be able to use the touchpad once again.&lt;br /&gt;&lt;br /&gt;Note that the KDE desktop enviornment on OpenSUSE is unaffected by this bug, it only affects GNOME.&lt;br /&gt;&lt;br /&gt;Props to LinuxQuestion.org user &lt;a href="http://www.linuxquestions.org/questions/user/swampdog2002-193667/"&gt;swampdog20002&lt;/a&gt; having posed the question and posting updates on how he was solving the problem. That's the opensource spirit!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7037459966651825379?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7037459966651825379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7037459966651825379' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7037459966651825379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7037459966651825379'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/fix-touchpad-not-working-on-opensuse.html' title='Fix: Touchpad not working on OpenSUSE 11.0'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-4406578855777354038</id><published>2008-09-11T11:33:00.008+01:00</published><updated>2008-11-11T17:28:59.086Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='NFS'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Setup a NFS server on FreeBSD</title><content type='html'>On a previous &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/09/mount-nfs-shares-on-freebsd.html"&gt;post&lt;/a&gt; I went through the needed steps to enable NFS client operations on FreeBSD 7.0 so now lets wrap up with the need steps to setup a NFS server.&lt;br /&gt;&lt;br /&gt;Lets begin:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# echo 'nfs_server_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'rpcbind_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'mountd_flags="-r"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'rpc_lockd_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'rpc_statd_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;/ol&gt;By passing these options we guarantee that NFS related daemons are started at boot time. Steps 2 to 4 are mandatory and enable the NFS daemons, steps 5 and 6 are optional and are used to guarantee file locking operations over NFS and monitor NFS client so that the NFS server can free resources when the host disappears.&lt;br /&gt;&lt;br /&gt;Lets proceed by identifying what we want to share:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vi /etc/exports&lt;/li&gt;&lt;li&gt;add the following line:&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;/usr/ports/distfiles -network 192.168.1 -mask 255.255.255.0&lt;/blockquote&gt;Step 3 shares the &lt;span style="font-style: italic;"&gt;/usr/ports/distfiles&lt;/span&gt; directory and make it available to any client with an IP address beginning in 192.168.1 and netmask of 255.255.255.0.&lt;br /&gt;&lt;br /&gt;Now that we've enabled the NFS server settings and configured the exports file, lets start the server by:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# rpcbind&lt;/li&gt;&lt;li&gt;# nfsd -u -t -n 4&lt;/li&gt;&lt;li&gt;# mountd -r&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;If you perform any changes changes to the &lt;span style="font-style: italic;"&gt;exports&lt;/span&gt; file, reload it by:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/mountd onereload&lt;/li&gt;&lt;/ol&gt;Also, the &lt;span style="font-style: italic;"&gt;showmount&lt;/span&gt; command can be used to display the exports on the server:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# showmount -e&lt;/li&gt;&lt;/ol&gt;I've focused on the basis to setup a home network NFS share, however there are loads of performance tunning flags that can be set on both server and client sides.&lt;blockquote&gt;&lt;/blockquote&gt;For more detailed documentation take a look into:&lt;br /&gt;&lt;a href="http://www.freebsd.org/doc/en/books/handbook/network-nfs.html"&gt;http://www.freebsd.org/doc/en/books/handbook/network-nfs.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nfs.sourceforge.net/nfs-howto/index.html"&gt;http://nfs.sourceforge.net/nfs-howto/index.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-4406578855777354038?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/4406578855777354038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=4406578855777354038' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4406578855777354038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/4406578855777354038'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/howto-setup-nfs-server-on-freebsd.html' title='HowTo: Setup a NFS server on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-5953049211641644594</id><published>2008-09-10T13:41:00.013+01:00</published><updated>2008-11-11T17:24:40.576Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='NFS'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Mount NFS shares on FreeBSD</title><content type='html'>NFS (Network File System) is a nice and easy way to share files across Unix like systems such as *BSD, Solaris and Linux.&lt;br /&gt;&lt;br /&gt;Here are the steps I took to enable the NFS client:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# echo 'nfs_client_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# echo 'nfs_client_flags="-n 4"' &gt;&gt; /etc/rc.conf&lt;/li&gt;&lt;li&gt;# nfsiod -n 4&lt;/li&gt;&lt;/ol&gt;Basically steps 2 and 3 enable the NFS client at boot time, while step 4 starts the client immediately. In alternative to step 4 you can &lt;span style="font-style: italic;"&gt;reboot&lt;/span&gt; or run &lt;span style="font-style: italic;"&gt;/etc/rc.d/nfsclient start&lt;/span&gt; as root.&lt;br /&gt;&lt;br /&gt;Now that we have the NFS client running we can proceed to accessing NFS shares. To mount NFS shares issue the following commands on the client:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# mkdir /mnt/downloads&lt;/li&gt;&lt;li&gt;# mount -v 192.168.1.101:/usr/local/downloads /mnt/downloads&lt;/li&gt;&lt;/ol&gt;Step 2 creates a directory in which to mount the remote share. On step 3 I've mounted a NFS share available on the 192.168.1.101 server (if you have hosts information properly configured you can use the server hostname instead).&lt;br /&gt;&lt;br /&gt;And that's it. Pretty simple and straightforward.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-5953049211641644594?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/5953049211641644594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=5953049211641644594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5953049211641644594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/5953049211641644594'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/mount-nfs-shares-on-freebsd.html' title='HowTo: Mount NFS shares on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6032436140700459392</id><published>2008-09-10T12:14:00.012+01:00</published><updated>2009-03-12T14:25:47.687Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Start, stop and restart the network on FreeBSD</title><content type='html'>Having moved my old 266 Mhz Celeron to our apartment and facing a new (actually pretty old) router I needed to make adjustments to the FreeBSD 7.0 install, namely network related adjustments.&lt;br /&gt;&lt;br /&gt;So here is a series of commands on how to start, stop and restart the network service on FreeBSD:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Start&lt;/span&gt; the network service:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/netif start&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Stop&lt;/span&gt; the network service:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/netif stop&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Restart&lt;/span&gt; the network service:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/netif restart&lt;/li&gt;&lt;/ul&gt;When performing network setting changes it's often necessary to &lt;span style="font-weight: bold;"&gt;restart the routing service&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/routing restart&lt;/li&gt;&lt;/ul&gt;To &lt;span style="font-weight: bold;"&gt;restart both the network and routing services&lt;/span&gt; simply combine the commands:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# /etc/rc.d/netif  restart &amp;amp;&amp;amp; /etc/rc.d/routing restart&lt;/li&gt;&lt;/ul&gt;If you come accross a status: no carrier message, run the following (substitute re0 by your interface):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;ifconfig re0 down &lt;/li&gt;&lt;li&gt;ifconfig re0 up&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Documentation on how to setup network interfaces can be found at &lt;a href="http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html"&gt;http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6032436140700459392?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6032436140700459392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6032436140700459392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6032436140700459392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6032436140700459392'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/having-moved-my-old-266-mhz-celeron-to.html' title='HowTo: Start, stop and restart the network on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8720297407279151730</id><published>2008-09-01T11:01:00.016+01:00</published><updated>2009-01-26T15:35:31.068Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Book Review: SUSE Linux Toolbox (follow-up)</title><content type='html'>Roughly a month after buying the book I've finished reading it.&lt;br /&gt;&lt;br /&gt;All my &lt;a href="http://linux-bsd-sharing.blogspot.com/2008/08/book-review-suse-linux-toolbox.html"&gt;initial impressions&lt;/a&gt; were right on the spot: it is really a great book and was worth every euro.&lt;br /&gt;&lt;br /&gt;During the holidays I managed to read the remaining chapters and learned a lot and also refreshed some concepts. Loved chapters 3 "Using the shell", 4 "Working with files" and 5 "Manipulating text". All 3 chapters were really useful and covered with tips applicable to the everyday use of the shell.&lt;br /&gt;&lt;br /&gt;Chapter 6 "Playing with multimedia" was one of those chapters that I left for the end as the subject didn't appeal much and thought I wouldn't enjoy it. Well I was wrong, it was very enjoyable and didn't regret reading it one bit.&lt;br /&gt;&lt;br /&gt;The only chapter I found lacking was the last one "Locking down security". I was expecting security tips to harden my server but the entire chapter was very light and shallow, and ended up not learning anything new or helpful for that matter.&lt;br /&gt;&lt;br /&gt;Appendix A, B and C are top notch specially for anyone using Vim.&lt;br /&gt;&lt;br /&gt;When at the computer during my holidays I did browse it as a quick-reference whenever I couldn't remember that exact command in Vim and also used it to fine tune some aspects of a recent OpenSUSE 11.0 install. The book's straight to the point approach is very practical, which aligned with the fact that the book is around 300 pages makes it ideal to carry around and quickly consult it.&lt;br /&gt;&lt;br /&gt;Now I'll be searching for another gem but if I don't manage to find anything in the local bookstore I'll probably order something online. Absolute FreeBSD, FreeBSD Basics and Building a Server with FreeBSD have caught my eye so I'll try to get my hands on them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8720297407279151730?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8720297407279151730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8720297407279151730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8720297407279151730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8720297407279151730'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/09/book-review-suse-linux-toolbox.html' title='Book Review: SUSE Linux Toolbox (follow-up)'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-548171555687653610</id><published>2008-08-29T09:49:00.008+01:00</published><updated>2008-08-29T11:52:35.168+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><title type='text'>HowTo: Widescreen resolutions on Enemy Territory</title><content type='html'>&lt;div style="text-align: left;"&gt;One of the most often technical questions posed on ET servers are "How do I get ET to use a widescreen resolution?" "I have an new monitor but ET sucks on it. How do I fix it?".&lt;br /&gt;&lt;br /&gt;ET, Quake 3, SOF2, RTCW, RTCW-demo and Tremulous use the same game engine, more precisely Quake 3's engine. So the bellow instructions also apply to those games.&lt;br /&gt;&lt;br /&gt;Assuming you using a 19" monitor with a native resolution of 1440x900, add the following cvars to your autoexec.cfg:&lt;br /&gt;&lt;blockquote&gt;set r_mode                           "-1"&lt;br /&gt;set r_customwidth              "1440"&lt;br /&gt;set r_customheight             "900"&lt;br /&gt;&lt;/blockquote&gt;If your want a different resolution changes the r_customheight and r_customwidht accordingly, e.g. on a 22" monitor with a native resolution of 1680x1050 you'd get r_customwidth "1680" and r_customheight "1050".&lt;br /&gt;&lt;br /&gt;In alternative type the above commands in ET's console. Pull the console by pressing \ on an European keyboard or press ~ if you are using an US keyboard (or run the game under Linux or BSD).&lt;br /&gt;&lt;br /&gt;When typing on the console make sure that there is a \ before typing or else when you hit enter it will come out as global chat instead of a command. Also when using the console there is no need for &lt;span style="font-weight: bold;"&gt;set&lt;/span&gt; or the &lt;span style="font-weight: bold;"&gt;"&lt;/span&gt;. A simple vid_restart command will get you up and running with the new resolution.&lt;br /&gt;&lt;br /&gt;In a future post I'll explain the purpose of autoexec.cfg which is one of the cornerstones of setting up a proper config and scripting.&lt;br /&gt;&lt;br /&gt;Happy frags. :D&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-548171555687653610?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/548171555687653610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=548171555687653610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/548171555687653610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/548171555687653610'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/enemy-territory-on-widescreen-monitor.html' title='HowTo: Widescreen resolutions on Enemy Territory'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1690927276994006426</id><published>2008-08-25T14:55:00.012+01:00</published><updated>2008-08-25T15:14:37.623+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Tip: Getting flash (YouTube) to work on OpenSUSE 11.0 KDE 3.5.9</title><content type='html'>During my vacations I decided to install OpenSUSE's KDE (3.5.9) flavor on my desktop.&lt;br /&gt;&lt;br /&gt;My laptop is running OpenSUSE (Gnome flavor) since 11.0 came out and I must that it impressed me. So having liked the Gnome environment I decided to install KDE 3.5.9 starting from the net install disk.&lt;br /&gt;&lt;br /&gt;Surprisingly when I fired up Firefox and pointed to YouTube I came across a warming telling me that I didn't have the flash plugin installed.&lt;br /&gt;&lt;br /&gt;Here's how to fix the issue:&lt;br /&gt;&lt;br /&gt;First make sure that you have the Non-OSS repository enabled.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;li&gt;# zypper lr&lt;/li&gt;&lt;/ul&gt; If the list doesn't contain the Non-OSS repository add it by:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# zypper ar http://download.opensuse.org/distribution/11.0/repo/non-oss/ non-oss&lt;/li&gt;&lt;/ul&gt; To install the flashplayer package:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# zypper in flashplayer-player&lt;/li&gt;&lt;/ul&gt;Now fire up Firefox and happy YouTube browsing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1690927276994006426?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1690927276994006426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1690927276994006426' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1690927276994006426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1690927276994006426'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/tip-getting-flash-youtube-to-work-on.html' title='Tip: Getting flash (YouTube) to work on OpenSUSE 11.0 KDE 3.5.9'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-7797284599444464877</id><published>2008-08-16T18:55:00.016+01:00</published><updated>2009-08-31T09:20:02.527+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>HowTo: Codecs and DVD support for Debian Lenny</title><content type='html'>In this time and age we can't "survive" without multimedia support in our personal computers. To help those struggling to get codecs and DVD support under Debian Lenny I've compiled a series of steps to follow.&lt;br /&gt;&lt;br /&gt;Let's start be becoming superuser:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;/ul&gt;Next we add the needed repositories to sources.list:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# echo "deb http://debian-multimedia.org/ lenny main" &gt;&gt; /etc/apt/sources.list&lt;/li&gt;&lt;li&gt;# echo "deb-src http://debian-multimedia.org/ lenny main" &gt;&gt; /etc/apt/sources.list&lt;/li&gt;&lt;li&gt;# apt-get update&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Now let's get the gpg key for the repository:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# wget http://debian-multimedia.org/gpgkey.pub -O - | apt-key add - &amp;amp;&amp;amp; apt-get install debian-multimedia-keyring&lt;/li&gt;&lt;/ul&gt;If the above step fails, do the following as alternative:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# exit&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;$ cd ~&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;$ wget -c http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2007.02.14_all.deb&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;$ su&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;# dpkg -i debian-multimedia-keyring_2007.02.14_all.deb&lt;/li&gt;&lt;/ul&gt;After getting the key we move onto updating the database:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# apt-get update&lt;/li&gt;&lt;/ul&gt;Install the codecs and DVD support packages:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# apt-get install w32codecs libdvdcss2&lt;/li&gt;&lt;/ul&gt;If you plan on watching YouTube movies on Firefox I'd suggest:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# apt-get install flashplayer-mozilla&lt;/li&gt;&lt;/ul&gt;Finally we need a movie player. Here you have several options raging from Mplayer (my favorite) to VLC. Choose one and install it or try them all ;):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# apt-get install mplayer&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;# apt-get gnome-mplayer&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;# apt-get install smplayer&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;# apt-get install vlc&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;# apt-get install kaffeine&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;/blockquote&gt;And we're done.&lt;br /&gt;&lt;br /&gt;Resources:&lt;br /&gt;&lt;a href="http://debian-multimedia.org/faq.php"&gt;http://debian-multimedia.org/faq.php&lt;/a&gt;&lt;br /&gt;&lt;a href="http://vivapinkfloyd.blogspot.com/2008/07/how-to-install-codecs-and-dvd-support.html"&gt;http://vivapinkfloyd.blogspot.com/2008/07/how-to-install-codecs-and-dvd-support.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-7797284599444464877?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/7797284599444464877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=7797284599444464877' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7797284599444464877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/7797284599444464877'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/howto-codes-and-dvd-support-under.html' title='HowTo: Codecs and DVD support for Debian Lenny'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6636117661950257978</id><published>2008-08-16T14:00:00.011+01:00</published><updated>2009-05-15T01:09:40.591+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Audigy 4'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Creative Audigy 4 under FreeBSD</title><content type='html'>The &lt;span style="font-style: italic;"&gt;snd_emu10kx&lt;/span&gt; driver provides support for Creative SoundBlaster Live! and Audigy sound cards, namely for Audigy 4.&lt;br /&gt;&lt;br /&gt;Assuming that you are running FreeBSD 7's generic kernel it's simply a matter of loading the driver as a module at boot time.&lt;br /&gt;&lt;br /&gt;To do so :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# echo 'snd_emu10kx_load="YES"' &gt;&gt; /etc/loader.conf&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;If you are planning on compiling your own custom kernel, place the following lines in your kernel configuration file:&lt;br /&gt;&lt;blockquote&gt;device sound&lt;br /&gt;device snd_emu10kx&lt;/blockquote&gt;Just to be sure if the sound driver was correctly loaded run:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% cat /dev/sndstat&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)&lt;br /&gt;Installed devices:&lt;br /&gt;pcm0: &lt;emu10kx&gt; on emu10kx0 [MPSAFE] (4p:1v/1r:1v channels duplex default)&lt;br /&gt;pcm1: &lt;emu10kx&gt; on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels)&lt;br /&gt;pcm2: &lt;emu10kx&gt; on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels)&lt;br /&gt;pcm3: &lt;emu10kx&gt; on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels)&lt;br /&gt;pcm4: &lt;emu10kx&gt; on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels)&lt;/emu10kx&gt;&lt;/emu10kx&gt;&lt;/emu10kx&gt;&lt;/emu10kx&gt;&lt;/emu10kx&gt;&lt;/blockquote&gt;To  setup sound output levels for various audio sources and frequency ranges you can use the FreeBSD mixer. To display the current mixer values do the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% mixer&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Mixer vol      is currently set to  75:75&lt;br /&gt;Mixer pcm      is currently set to  75:75&lt;br /&gt;Mixer speaker  is currently set to  75:75&lt;br /&gt;Mixer line     is currently set to  75:75&lt;br /&gt;Mixer mic      is currently set to   0:0&lt;br /&gt;Mixer cd       is currently set to  75:75&lt;br /&gt;Mixer rec      is currently set to   0:0&lt;br /&gt;Mixer igain    is currently set to   0:0&lt;br /&gt;Mixer ogain    is currently set to  50:50&lt;br /&gt;Mixer line1    is currently set to  75:75&lt;br /&gt;Mixer line2    is currently set to   0:0&lt;br /&gt;Mixer line3    is currently set to   0:0&lt;br /&gt;Mixer dig1     is currently set to   0:0&lt;br /&gt;Mixer dig2     is currently set to   0:0&lt;br /&gt;Mixer dig3     is currently set to   0:0&lt;br /&gt;Mixer phin     is currently set to   0:0&lt;br /&gt;Mixer phout    is currently set to   0:0&lt;br /&gt;Mixer video    is currently set to  75:75&lt;br /&gt;Recording source: mic&lt;/blockquote&gt;To change mixer values you can type &lt;span style="font-weight: bold;"&gt;mixer&lt;/span&gt; followed by the name of the device and the desired level. If you wanted to change the CD output volume to 95 percent on left channel and 85 on the right channel:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# mixer cd 95:85&lt;/li&gt;&lt;/ul&gt;And were all done.&lt;br /&gt;&lt;br /&gt;If you want additional information on the driver take a look at&lt;span style="font-style: italic;"&gt; snd_emu10kx&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;mixer&lt;/span&gt;'s man pages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6636117661950257978?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6636117661950257978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6636117661950257978' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6636117661950257978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6636117661950257978'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/creative-audigy-4-under-freebsd.html' title='HowTo: Creative Audigy 4 under FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3433177717394851494</id><published>2008-08-16T01:36:00.012+01:00</published><updated>2009-01-20T10:41:07.580Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Enemy Territory'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>HowTo: Logitech MX518 under FreeBSD</title><content type='html'>I have both a Logitech MX500 and a MX518. Being an Enemy Territory old timer I need to make full use of the MX518 mouse under FreeBSD, which means having the Back, Forward and the other weird button below the wheel working.&lt;br /&gt;&lt;br /&gt;The bellow &lt;span style="font-style: italic;"&gt;xorg.conf&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;settings were tested under FreeBSD 7.0 and X.Org X Server 1.4.2.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# vim /etc/X11/xorg.conf&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Section "InputDevice"&lt;br /&gt;Identifier  "Mouse0"&lt;br /&gt;Driver      "mouse"&lt;br /&gt;Option      "Protocol" "auto"&lt;br /&gt;Option      "Device" "/dev/sysmouse"&lt;br /&gt;Option      "Buttons" "10"&lt;br /&gt;Option      "ZAxisMapping" "4 5"&lt;br /&gt;Option      "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"&lt;br /&gt;Option "Emulate3Buttons" "false"&lt;br /&gt;EndSection&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;With these settings you're free to bind MOUSE4, MOUSE5 and KP_EQUALS to Enemy Territory.&lt;br /&gt;&lt;br /&gt;The sensitivity buttons work as their intended purpose: change the sensitivity on-the-fly. It was possible under Windows XP to change their behavior and bind them to keyboard keys however I'm not aware of how to do this under a *NIX system.&lt;br /&gt;&lt;br /&gt;As a bonus, you can now use the Back and Forward buttons under Opera.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3433177717394851494?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3433177717394851494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3433177717394851494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3433177717394851494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3433177717394851494'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/logitech-mx518-under-freebsd.html' title='HowTo: Logitech MX518 under FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-8714829112353765038</id><published>2008-08-16T00:24:00.012+01:00</published><updated>2008-11-11T17:23:31.564Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='MPD'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Musicpd (Music Player Daemon) on FreeBSD</title><content type='html'>MPD stands for Music Player Daemon. It is made to control music through a very unique way. MPD has support for MP3, Ogg, FLAC, AAC, Mod, and wav files.&lt;br /&gt;&lt;br /&gt;Let's proceed with the steps needed to install musicpd from ports:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;% su&lt;/li&gt;&lt;li&gt;# cd /usr/ports/audio/musicpd ; make install clean&lt;/li&gt;&lt;li&gt;if you want select additional audio formats such as AAC and MOD files&lt;/li&gt;&lt;/ul&gt;Now let's move onto the configuration by copying the port's supplied example and editing from there:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cp /usr/local/share/doc/mpd/mpdconf.example /usr/local/etc/mpd.conf&lt;/li&gt;&lt;li&gt;# chmod 644 /usr/local/etc/mpd.conf&lt;/li&gt;&lt;li&gt;# vi /usr/local/etc/mpd.conf &lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote&gt;music_directory        "/mnt/music"&lt;br /&gt;playlist_directory    "~/playlists"&lt;br /&gt;db_file            "~/database"&lt;br /&gt;log_file        "~/log"&lt;br /&gt;error_file        "~/error"&lt;br /&gt;pid_file        "~/pid"&lt;br /&gt;state_file        "~/state"&lt;br /&gt;user            "musicpd"&lt;br /&gt;&lt;br /&gt;port                             "6600"&lt;br /&gt;bind_to_address        "127.0.0.1"&lt;br /&gt;&lt;br /&gt;audio_output {&lt;br /&gt;type        "oss"&lt;br /&gt;name        "OSS"&lt;br /&gt;}&lt;/blockquote&gt;&lt;/div&gt;To prevent MPD running as root we can setup a new user (musicpd):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# adduser&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Username: musicpd&lt;br /&gt;Full name: Music Player Daemon&lt;br /&gt;Uid (Leave empty for default):&lt;br /&gt;Login group [musicpd]:&lt;br /&gt;Login group is musicpd. Invite mpd into other groups? []:&lt;br /&gt;Login class [default]: daemon&lt;br /&gt;Shell (sh csh tcsh bash rbash nologin) [sh]: nologin&lt;br /&gt;Home directory [/home/musicpd]:&lt;br /&gt;Use password-based authentication? [yes]: no&lt;br /&gt;Lock out the account after creation? [no]: yes&lt;br /&gt;Username   : musicpd&lt;br /&gt;Password   : &lt;disabled&gt;&lt;br /&gt;Full Name  : Music Player Daemon&lt;br /&gt;Uid        : 1002&lt;br /&gt;Class      : daemon&lt;br /&gt;Groups     : musicpd&lt;br /&gt;Home       : /home/musicpd&lt;br /&gt;Shell      : /usr/sbin/nologin&lt;br /&gt;Locked     : yes&lt;br /&gt;OK? (yes/no): yes&lt;br /&gt;Add another user? (yes/no): no&lt;br /&gt;Goodbye!&lt;/disabled&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;# mkdir -p /home/musicpd/playlists&lt;/li&gt;&lt;li&gt;# chown muiscpd:musicpd /home/musicpd/playlists&lt;/li&gt;&lt;/ul&gt;To start MPD at boot time:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# echo 'musicpd_enable="YES"' &gt;&gt; /etc/rc.conf&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Finally we start MPD and create the database:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# /usr/local/bin/mpd --create-db /usr/local/etc/mpd.conf&lt;/li&gt;&lt;/ul&gt;Now that we have the daemon up and running we need to put it to good use. I use the NCMPC client for the job.&lt;br /&gt;&lt;br /&gt;To install NCMPC from ports:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# cd /usr/ports/audio/ncmpc ; make install clean&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;That's it. ;)&lt;br /&gt;&lt;br /&gt;I suggest the following websites to further research information on MPD:&lt;br /&gt;&lt;a href="http://musicpd.org/"&gt;http://musicpd.org/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mpd.wikia.com/wiki/Main_Page"&gt;http://mpd.wikia.com/wiki/Main_Page&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.bsdforen.de/howto/mpd_einrichten"&gt;http://wiki.bsdforen.de/howto/mpd_einrichten&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.bsdforen.de/howto/mpd_einrichten"&gt;http://www.freebsdwiki.net/index.php/Icecast_and_Musicpd&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-8714829112353765038?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/8714829112353765038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=8714829112353765038' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8714829112353765038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/8714829112353765038'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/howto-musicpd-music-player-daemon-on.html' title='HowTo: Musicpd (Music Player Daemon) on FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-3697364498371272547</id><published>2008-08-06T11:59:00.005+01:00</published><updated>2008-08-06T17:45:12.255+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Books'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenSUSE'/><title type='text'>Book Review: SUSE Linux Toolbox</title><content type='html'>I like reading and I like Linux/BSD/Unix. So when I hop to the bookstore I have a tendency to check out any book related to Unix-like operating systems.&lt;br /&gt;&lt;br /&gt;In the past Monday I came across SUSE Linux Toolbox on the Linux section. As the Linux section is always very small it caught my attention and decided to flip a couple of pages.&lt;br /&gt;&lt;br /&gt;As I picked up the book I thought "A book for dummies, full of stupid GUI screenshot with no depth I bet". Well I couldn't be more wrong!&lt;br /&gt;&lt;br /&gt;As flipped through I was amazed: the book was entirely focused on the CLI on a very straight to the point fashion. It was love at first sight and I ended up spending about 15 minutes in the bookstore reading a couple sections/topics.&lt;br /&gt;&lt;br /&gt;My girlfriend was also checking out a book and as we were leaving she gazed upon my sad face as I took the book back to the shelf and suggested that I should buy it. I just thought "It's a book about SUSE and that's not exactly my favorite distro" so decided to place it back in the shelf. As I got there the bookstore guy had just finished re-arranging the shelf and there wasn't any room where the book originally was. It was destiny: I just had to buy the book!&lt;br /&gt;&lt;br /&gt;So I did. For the past days I've gone through 4 of its 14 chapters and read several sections/topics of a couple more chapters and so far haven't come across a single incongruence.&lt;br /&gt;&lt;br /&gt;It really is a great book and a wonderful purchase.&lt;br /&gt;&lt;br /&gt;I've been running Linux for about one and a half years and gone through distros such as Debian, Gentoo, OpenSUSE, Ubuntu, PCLinuxOS and on the BSD side FreeBSD. I know my way around, I'm no guru but nor am I a newbie, and SUSE Linux Toolbox fits like a glove to anyone who enjoy tinkering with their system and learning.&lt;br /&gt;&lt;br /&gt;The book contains tons of information that aren't distro specific while identifying SUSE only things such as the zypper's use on chapters 1 and 2.&lt;br /&gt;&lt;br /&gt;Chapter 3 is all about the shell and how to use it. Chapters 4 and 5 expand on subjects like working with files and manipulating text.&lt;br /&gt;&lt;br /&gt;From chapter 7 onwards it focuses on my main area of interest which is administration and does a damn good job at it in my humble opinion.&lt;br /&gt;&lt;br /&gt;To sum up, great buy for anyone into Linux, CLI and widely applicable to any other distro. I for one am glad of the purchase.&lt;br /&gt;&lt;br /&gt;On a final note there are 2 other books on the series: Ubuntu Linux Toolbox and Fedora Linux Toolbox.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-3697364498371272547?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/3697364498371272547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=3697364498371272547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3697364498371272547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/3697364498371272547'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/08/book-review-suse-linux-toolbox.html' title='Book Review: SUSE Linux Toolbox'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-6916070515817261191</id><published>2008-07-28T15:20:00.009+01:00</published><updated>2008-11-19T12:07:35.311Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>HowTo: Add a new disk to FreeBSD</title><content type='html'>I needed to add a 120GB IDE drive to my FreeBSD 7.0 install on the old Celeron 266.&lt;br /&gt;&lt;br /&gt;Here are the steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;become superuser&lt;/li&gt;&lt;li&gt;# mkdir /mnt/data&lt;/li&gt;&lt;li&gt;# sysinstall&lt;/li&gt;&lt;li&gt;Choose &lt;span style="font-weight: bold;"&gt;Configure&lt;/span&gt; -&gt; &lt;span style="font-weight: bold;"&gt;Fdisk&lt;/span&gt;&lt;/li&gt;&lt;li&gt;If there are existing partitions press &lt;span style="font-weight: bold;"&gt;D&lt;/span&gt; to delete them&lt;/li&gt;&lt;li&gt;To create a slice press &lt;span style="font-weight: bold;"&gt;C&lt;/span&gt;. To use the entire disk press &lt;span style="font-weight: bold;"&gt;A&lt;/span&gt;&lt;/li&gt;&lt;li&gt;To commit changes press &lt;span style="font-weight: bold;"&gt;W&lt;/span&gt;. A warning pops up, choose &lt;span style="font-weight: bold;"&gt;YES&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;When asked to install a boot manager choose &lt;span style="font-weight: bold;"&gt;STANDARD&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Leave Fdisk by pressing Q&lt;/li&gt;&lt;li&gt;Choose &lt;span style="font-weight: bold;"&gt;Configure&lt;/span&gt; -&gt; &lt;span style="font-weight: bold;"&gt;Label&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Create a new partition by press &lt;span style="font-weight: bold;"&gt;C&lt;/span&gt;. Choose &lt;span style="font-weight: bold;"&gt;FS&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Type in the mountpoint, e.g. /mnt/data. Take note of  the drive device node, e.g. /dev/ad4s1d&lt;/li&gt;&lt;li&gt;Commit changes by pressing &lt;span style="font-weight: bold;"&gt;W&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Exist the sysinstall.&lt;/li&gt;&lt;li&gt;# vi /etc/fstab accordingly, e.g. /dev/sda4s1d /mnt/data ufs rw 2 2 in my case&lt;/li&gt;&lt;/ol&gt;I essentially used my 120GB drive to be entirely by FreeBSD and mounted under /mnt/data.&lt;br /&gt;&lt;br /&gt;Take a look on section 18.3 "Adding disks" of the official FreeBSD Handbook for finner details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-6916070515817261191?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/6916070515817261191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=6916070515817261191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6916070515817261191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/6916070515817261191'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/07/add-new-disk-to-freebsd.html' title='HowTo: Add a new disk to FreeBSD'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-1587688900726481505</id><published>2008-07-12T14:37:00.008+01:00</published><updated>2009-04-21T15:01:09.926+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Tip: Fix GCC upgrade problems on Gentoo</title><content type='html'>Here's a typical problem on gcc upgrades:&lt;br /&gt;&lt;blockquote&gt;configure:error: installation or configuration problem: C complier cannot create executables.&lt;/blockquote&gt;To solve the problem perform the following:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;become superuser&lt;/li&gt;&lt;li&gt;gcc-config -l&lt;br /&gt;&lt;/li&gt;&lt;li&gt;gcc-config 1&lt;/li&gt;&lt;li&gt;source /etc/profile&lt;/li&gt;&lt;/ol&gt;Step 2 lists the available gcc versions. On step 3 select one from the list by number or typing the full name (in my case I only had one available).&lt;br /&gt;&lt;br /&gt;Problem fixed. Happy emerging ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-1587688900726481505?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/1587688900726481505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=1587688900726481505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1587688900726481505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/1587688900726481505'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/07/fixing-gcc-upgrade-problems-on-gentoo.html' title='Tip: Fix GCC upgrade problems on Gentoo'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5845321515990016322.post-2833381048635592051</id><published>2008-07-12T14:10:00.003+01:00</published><updated>2008-09-12T09:23:41.666+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>HowTo: Changing default mouse cursor in Debian</title><content type='html'>Having just finished installing XFCE4 on Debian Lenny I've came across with X11's default cursor: an ugly jagged black cursor.&lt;br /&gt;&lt;br /&gt;Here's the procedure on installing my favourite mouse cursor theme (DMZ-white) and how to change the cursor in Debian with update-alternatives:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;become superuser&lt;/li&gt;&lt;li&gt;apt-get install dmz-cursor-theme&lt;/li&gt;&lt;li&gt;update-alternatives --config x-cursor-theme&lt;/li&gt;&lt;li&gt;enter selection number for DMZ-White&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Under XFCE4, browse to Settings -&gt; Mouse Preferences -&gt; Cursor and select DMZ-White.&lt;br /&gt;&lt;br /&gt;Logout from XFCE4 to commit the changes, Quit -&gt; Logout.&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5845321515990016322-2833381048635592051?l=linux-bsd-sharing.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-bsd-sharing.blogspot.com/feeds/2833381048635592051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5845321515990016322&amp;postID=2833381048635592051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2833381048635592051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5845321515990016322/posts/default/2833381048635592051'/><link rel='alternate' type='text/html' href='http://linux-bsd-sharing.blogspot.com/2008/07/changing-default-mouse-cursor-in-debian.html' title='HowTo: Changing default mouse cursor in Debian'/><author><name>tangram</name><uri>http://www.blogger.com/profile/06588030231546523539</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
