<?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-8832252252001335019</id><updated>2012-01-05T18:40:28.244+08:00</updated><category term='chatzilla'/><category term='virtual network interface'/><category term='nimbus'/><category term='tohtml'/><category term='OpenSuse 11.0'/><category term='D-Link DWA-110'/><category term='dnsmasq'/><category term='FreeBSD6.2'/><category term='source to html'/><category term='VMware Server errors'/><category term='VMware Server cc1plus'/><category term='VMWare Server ubuntu'/><category term='NIC configuration'/><category term='libapache2-mod-php5'/><category term='flash disk'/><category term='iwi'/><category term='USB Wireless adapter'/><category term='multiplte MAC Addresses'/><category term='vim'/><category term='SSL'/><category term='self-signed SSL certificates'/><category term='Vmware Server rui.crt'/><category term='dhcpd.interfaces'/><category term='OpenBSD 4.4'/><category term='router/gateway'/><category term='ufs'/><category term='Vmware Server rui.key'/><category term='VMWare'/><category term='d-link'/><category term='mysql'/><category term='mount'/><category term='dwa-110'/><category term='rc.local'/><category term='OpenBSD 4.3'/><category term='themes'/><category term='sshd'/><category term='FreeBSD 7.0'/><category term='forget password'/><category term='home network'/><category term='Vmware Server serial number'/><category term='NAT'/><category term='Tomcat'/><category term='WEP'/><category term='netgraph'/><category term='Joomla'/><category term='firefox 3'/><category term='wireless'/><category term='https'/><category term='HP500 Notebook'/><category term='rc.conf.local'/><category term='Ubuntu'/><category term='PHP5'/><category term='dhcpclient'/><category term='rum(4)'/><category term='password'/><category term='Apache2'/><category term='DHCP'/><category term='Installation'/><category term='iwi(4)'/><category term='OpenBSD'/><title type='text'>Bits Of Armor</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8832252252001335019.post-5942202264236119772</id><published>2008-12-06T03:33:00.005+08:00</published><updated>2008-12-06T04:03:49.995+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dhcpclient'/><category scheme='http://www.blogger.com/atom/ns#' term='iwi(4)'/><category scheme='http://www.blogger.com/atom/ns#' term='iwi'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD 7.0'/><category scheme='http://www.blogger.com/atom/ns#' term='DHCP'/><category scheme='http://www.blogger.com/atom/ns#' term='WEP'/><title type='text'>Configuring an iwi wireless interface on FreeBSD 7.0</title><content type='html'>&lt;div style="text-align: justify;"&gt;I had a few bumps trying to configure the &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=iwi&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=FreeBSD+7.0-RELEASE&amp;amp;format=html"&gt;iwi(4)&lt;/a&gt; wireless interface on my laptop. What I wanted to do was to let my iwi wireless interface an IP address thru a DHCP. The documentation for this  configuration is quite scarce - as of this writing. So, I'm posting this and perhaps somebody  with the same hardware might stumble upon this post would find some useful hints.&lt;br /&gt;&lt;br /&gt;I'm assuming that you've got your interface running with all the necessary kernel modules, boot loader variables and what-not.&lt;br /&gt;&lt;br /&gt;Givens:&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;SSID (nowires)&lt;br /&gt;WEPKEY - hex (0x042Z923954)&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Edit /etc/rc.conf and add the following:&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ifconfig_iwi0="ssid nowires wepmode mixed weptxkey 1 wepkey 1:0x042Z923954 DHCP"&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;It took me a while to figure out that wepmode, weptxkey and the wepkey index are necessary - at least in the wireless network setup that I was using. I you read &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=ifconfig&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=FreeBSD+7.0-RELEASE&amp;amp;format=html"&gt;ifconfig(8)&lt;/a&gt; for more information about wireless interface options for WEP.&lt;br /&gt;&lt;br /&gt;We'll, that's just about it... network connection without any wires.&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/8832252252001335019-5942202264236119772?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/5942202264236119772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=5942202264236119772' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5942202264236119772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5942202264236119772'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/12/configuring-and-iwi-wireless-interface.html' title='Configuring an iwi wireless interface on FreeBSD 7.0'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-865601459464995888</id><published>2008-11-16T21:02:00.003+08:00</published><updated>2008-11-16T21:15:28.068+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD 4.4'/><category scheme='http://www.blogger.com/atom/ns#' term='rc.conf.local'/><category scheme='http://www.blogger.com/atom/ns#' term='dhcpd.interfaces'/><category scheme='http://www.blogger.com/atom/ns#' term='rc.local'/><category scheme='http://www.blogger.com/atom/ns#' term='dnsmasq'/><title type='text'>small updates on my OpenBSD 4.4 configuration</title><content type='html'>&lt;div style="text-align: justify;"&gt;First, I googled on how to start daemons that are not part of the standard install. Surprisingly, it's not that hard. You only need to edit `/etc/rc.local'.&lt;br /&gt;&lt;br /&gt;In my case, I wanted to run dnsmasq on boot, so I added the following in `/etc/rc.local'&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;if [ -x /usr/local/sbin/dnsmasq ]; then&lt;br /&gt;    echo -n ' dnsmasq'; /usr/local/sbin/dnsmasq&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Second, I noticed that `/etc/dhcpd.interfaces' no longer existed in OpenBSD 4.4 (this used to contain the interfaces you want your dhcp server to listen to). So, instead of using that file, I added the interface name as a flag in `dhcpd_flags`.&lt;br /&gt;&lt;br /&gt;My `/etc/rc.conf.local' now contains this entry&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;dhcpd_flags="rum0"&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;Well this is it for now... these are just small details but I just want to note them down.&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/8832252252001335019-865601459464995888?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/865601459464995888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=865601459464995888' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/865601459464995888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/865601459464995888'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/11/small-updates-on-my-openbsd-44.html' title='small updates on my OpenBSD 4.4 configuration'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-8028688156655964690</id><published>2008-11-14T21:51:00.007+08:00</published><updated>2008-11-14T22:06:46.953+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD 4.4'/><category scheme='http://www.blogger.com/atom/ns#' term='NAT'/><category scheme='http://www.blogger.com/atom/ns#' term='home network'/><category scheme='http://www.blogger.com/atom/ns#' term='router/gateway'/><category scheme='http://www.blogger.com/atom/ns#' term='dnsmasq'/><title type='text'>My home network config (for now)</title><content type='html'>&lt;div style="text-align: justify;"&gt;I configured one of my old desktop as a home router with OpenBSD 4.4 installed. It still needs more polishing but roughly this is what I have,&lt;br /&gt;&lt;br /&gt;1) Wired LAN with static IP addresses connected to my router-desktop's rl0 interface thru a switch with a 10.10.10.0/24 network address.&lt;br /&gt;&lt;br /&gt;2) Wireless LAN interface with DHCP'd addresses coughed up by a USB rum0 interface with a 172.168.255.0/24 network address&lt;br /&gt;&lt;br /&gt;3) Gateway interface (vr0) connected to my ADSL router, acquires IP thru DHCP. The ADSL router's IP adress is 192.168.1.1 sitting on a 192.168.1.0/24 network.&lt;br /&gt;&lt;br /&gt;What I wanted to do with my setup was to simply allow all my LAN (wired/wireless) devices to say "hello world" to the internet using my ADSL router. To do this, I needed a way to do NAT (pf is an obvious choice for doing this) and also, I needed a way for my LAN to get send and receive DNS packets. For the DNS thingie, I opted to use dnsmasq because I think it is the easiest to configure.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;here's my pf.conf&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;LAN_IF="rl0"&lt;br /&gt;WLAN_IF="rum0"&lt;br /&gt;EXT_IF="vr0"&lt;br /&gt;&lt;br /&gt;TRANS_PROTO="{tcp, udp, icmp}"&lt;br /&gt;&lt;br /&gt;table &lt;private&gt; const {10.10.10.0/24, 172.168.255.0/24}&lt;br /&gt;&lt;br /&gt;scrub in all&lt;br /&gt;&lt;br /&gt;no nat on $EXT_IF proto $TRANS_PROTO from &lt;private&gt; to &lt;private&gt;&lt;br /&gt;nat on $EXT_IF proto $TRANS_PROTO from &lt;private&gt; to any -&gt; ($EXT_IF)&lt;br /&gt;&lt;br /&gt;block log all&lt;br /&gt;&lt;br /&gt;pass quick log on lo0&lt;br /&gt;&lt;br /&gt;pass out quick log on $LAN_IF inet proto udp from ($LAN_IF) port 53 to any \&lt;br /&gt;port 53 keep state&lt;br /&gt;pass out quick log on $WLAN_IF inet proto udp from ($WLAN_IF) port 53 to any \&lt;br /&gt;port 53 keep state&lt;br /&gt;&lt;br /&gt;pass in quick log on $LAN_IF inet proto $TRANS_PROTO from &lt;private&gt; to any&lt;br /&gt;pass out quick log on $LAN_IF inet proto $TRANS_PROTO from any to &lt;private&gt; keep state&lt;br /&gt;&lt;br /&gt;pass in quick log on $WLAN_IF inet proto $TRANS_PROTO from &lt;private&gt; to any&lt;br /&gt;pass out quick log on $WLAN_IF inet proto $TRANS_PROTO from any to &lt;private&gt; keep state&lt;br /&gt;pass out quick log on $EXT_IF inet proto $TRANS_PROTO all keep state&lt;br /&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/private&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;And, here's my dnsmasq.conf (actually, it contains more than that but they were commented out, I'm just showing the parts that I uncommented for brevity's sake)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;interface=rl0&lt;br /&gt;interface=rum0&lt;br /&gt;except-interface=vr0&lt;br /&gt;no-dhcp-interface=rl0&lt;br /&gt;no-dhcp-interface=rum0&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;So basically that's it. With this setup, I can connect to the Internet from inside my LANs. Although, I still run dnsmasq manually. I still haven't figured out how to run it on bootup.&lt;br /&gt;&lt;br /&gt;If by some freak of nature somebody else other than myself happen to read this post - I'm refering to YOU, obviously - and found something wrong with the setup, most specially the pf configuration. Please, by all means, feel free to comment on it. Because at this moment, I'm having my beer and I'm too tired to check my configurations again.&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/8832252252001335019-8028688156655964690?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/8028688156655964690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=8028688156655964690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8028688156655964690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8028688156655964690'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/11/my-home-netowrk-config-for-now.html' title='My home network config (for now)'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-8026242340072503914</id><published>2008-11-09T00:54:00.003+08:00</published><updated>2008-11-09T01:01:11.829+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD 4.4'/><category scheme='http://www.blogger.com/atom/ns#' term='D-Link DWA-110'/><category scheme='http://www.blogger.com/atom/ns#' term='USB Wireless adapter'/><title type='text'>Making OpenBSD 4.4 detect a D-Link DWA-110 USB Wireless adapter</title><content type='html'>I previously posted something about how to make &lt;a href="http://bitsofarmor.blogspot.com/2008/09/making-openbsd-43-detect-d-link-dwa-110.html"&gt;OpenBSD 4.3 detect a DWA-110 USB wireless adpater&lt;/a&gt;. Well, I upgraded my box to 4.4 but the code did not make it to that release. So, I had to do the same modifications for the rum driver code.&lt;br /&gt;&lt;br /&gt;I guess I'll just have to wait for future releases to have a working/clean driver out of the box.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-8026242340072503914?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/8026242340072503914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=8026242340072503914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8026242340072503914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8026242340072503914'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/11/making-openbsd-44-detect-d-link-dwa-110.html' title='Making OpenBSD 4.4 detect a D-Link DWA-110 USB Wireless adapter'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-4086714872174575177</id><published>2008-10-19T16:14:00.006+08:00</published><updated>2008-10-19T17:12:47.991+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSuse 11.0'/><category scheme='http://www.blogger.com/atom/ns#' term='SSL'/><category scheme='http://www.blogger.com/atom/ns#' term='https'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache2'/><title type='text'>running Apache2 with SSL on Opensuse 11.0</title><content type='html'>&lt;div style="text-align: justify;"&gt;Gone are the days when we only have to edit a simple httpd.conf for Apache to run and do our bidding. I spent an ample amount of time trying to figure out how to make Apache2 on OpenSuse 11.0 run with SSL. So, I'm writing these down for all my fellow idiots in hopes that whoever is responsible for this travesty would somehow realize that enabling SSL should be simple enough to mere idiots like myself and thousands moreout there.&lt;br /&gt;&lt;br /&gt;So here goes...&lt;br /&gt;&lt;br /&gt;First up, make sure you tell Apache2 that you want SSL. So, add the `SSL' to the global configuration variable `APACHE_SERVER_FLAGS' found in `/etc/sysconfig/apache2'.&lt;br /&gt;&lt;br /&gt;Second, edit `/etc/apache2/listen.conf' and add the IP-port combination of where you want apache2 to listen. In my configuration, I added the following :&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Listen 10.10.10.3:80&lt;br /&gt;Listen 10.10.10.4:443&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Third, make virtual host settings in `/etc/apache2/vhosts.d' (Just copy the templates and go from there, you might want to do other funky things with your virtual hosts). To be more explicit about what I meant about copy, here's what I did on the prompt:&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# cp /etc/apache2/vhosts.d/vhost.template /etc/apache2/vhosts.d/vhost.conf&lt;br /&gt;# cp /etc/apache2/vhosts.d/vhost-ssl.template /etc/apache2/vhosts.d/vhost-ssl.conf&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In my case, the only important thing I wanted to setup on my vhost configs was my DocumentRoot. So, I placed /srv/www/htdocs for non-SLL requests(vhosts.conf) and /srv/www-ssl for SSL requests (vhost-ssl.conf).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fourth, comment out the `Include /etc/apache2/sysconfig.d/include.conf' in `httpd.conf'. It causes Apache2 to not run for reasons that I do not want to know of.&lt;br /&gt;&lt;br /&gt;Fifth and the most important, all configurations that are wrapped in the following tags should be commented out:&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;#60;IfDefine SSL&amp;#62;&lt;br /&gt;&amp;#60;Ifdefine !NOSSL&amp;#62;&lt;br /&gt;&amp;#60;IfModule mod_ssl.c&amp;#62;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;As far as I can remember, these exists in `listen.conf', `ssl-global.conf' and `vhost.d/vhost-ssl.conf'.&lt;br /&gt;&lt;br /&gt;So, here's my sort-of-rant about the whole SSL thing(this is highly influence by the frustration brought about by the comment-out-IfDefines part): First, enabling SSL should be easy (very minimal changes in the configuration). As a matter of fact, it would be so much better if it were already enabled by default.&lt;br /&gt;&lt;br /&gt;Second, for some freak of nature the IfDefines did not work. It caused me to go around in circles trying to find out why apache would not listen to port 443 even if `SSL' was already set in `APACHE_SERVER_FLAGS'. I decided to remove all IfDefines/IfModules around all SSL related configurations and it everything worked smoothly like a well lubricated orifice. I'm guessing this problem is OpenSuse sepcific -OR- it could also be user specific, meaning, I missed something... somewhere... over the firggin' rainbow. &lt;br /&gt;&lt;br /&gt;Anyway, if ever I get the time, I'll try to research more on this issue and if it IS a bug, I'll probably bring this up on OpenSuse's mailing list.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-4086714872174575177?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/4086714872174575177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=4086714872174575177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/4086714872174575177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/4086714872174575177'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/10/running-apache2-with-ssl-on-opensuse.html' title='running Apache2 with SSL on Opensuse 11.0'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-6563603295899161126</id><published>2008-10-19T15:46:00.007+08:00</published><updated>2008-10-19T16:29:57.252+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rum(4)'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD 4.3'/><category scheme='http://www.blogger.com/atom/ns#' term='DHCP'/><category scheme='http://www.blogger.com/atom/ns#' term='wireless'/><title type='text'>Configuring rum(4) Interface for DHCP on OepnBSD 4.3</title><content type='html'>&lt;div style="text-align: justify;"&gt;A couple of posts back, I wrote about making my D-Link USB wireless adapter (DWA-110)  work with OpenBSD 4.3. This time, I'll post how I made it work as an AP and "un-securely" assign IP addresses to any host.&lt;br /&gt;&lt;br /&gt;First, I created a file `/etc/hostname.rum0' and put the necessary information needed for the interface to work as an AP. In my case, I placed this line (this very self-explanatory, no need to explain each part):&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;inet 172.168.255.1 255.255.255.0 172.168.255.255 media autoselect mode 11g mediaopt hostap nwid jakosalem chan 11&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;br /&gt;Second, I wanted DHCP to listen to the rum(4) interface and spew out IP addresses for requesting hosts. I did this by adding the interface name `rum0' to the `/etc/dhcpd.interfaces' file and then, I edited `/etc/dhcpd.conf' and placed the following lines:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%; text-align: justify;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;default-lease-time 3600;&lt;br /&gt;max-lease-time 86400;&lt;br /&gt;&lt;br /&gt;subnet 172.168.255.0 netmask 255.255.255.0 {&lt;br /&gt;option routers 172.168.255.1;&lt;br /&gt;option broadcast-address 172.168.255.255;&lt;br /&gt;range 172.168.255.100 172.168.255.254;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;br /&gt;Lastly, to make DHCP run everytime I boot, I added the line `dhcpd_flags=""` to `/etc/rc.conf.local'.&lt;br /&gt;&lt;br /&gt;And that's about it - DHCP for wireless clients at home. Wohoooo!&lt;br /&gt;&lt;br /&gt;NOTE: This configuration lacks security measures - OBVIOUSLY -  to the point where an any security-pundit would most likely choose to slash his/her wrists rather than think about the sheer absurdity of this configuration. I'll post a more secure configuration when I'm bored enough and have nothing else to do.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-6563603295899161126?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/6563603295899161126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=6563603295899161126' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/6563603295899161126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/6563603295899161126'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/10/configuring-rum4-interface-for-dhcp-on.html' title='Configuring rum(4) Interface for DHCP on OepnBSD 4.3'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-5033509090946053542</id><published>2008-09-27T16:54:00.003+08:00</published><updated>2008-10-04T20:37:34.091+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD 7.0'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='ufs'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>mounting FreeBSD partition(UFS) in Ubuntu</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;`$ sudo mount -r -t ufs -o ufstype=ufs2 /dev/&amp;lt;partition&amp;gt; &amp;lt;mount point&amp;gt;'&lt;br /&gt;&lt;br /&gt;I'm running Ubuntu with Linux kernel version 2.6.24-16 with a FreeBSD 7.0 installed on another partition. The reason why I'm writing this down is that the man pages for the `mount' command on Ubuntu does not show a specific/correct way to mount a UFS parition for new(er) FreeBSDs.&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/8832252252001335019-5033509090946053542?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/5033509090946053542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=5033509090946053542' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5033509090946053542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5033509090946053542'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/09/mounting-freebsd-partitionufs-in-ubuntu.html' title='mounting FreeBSD partition(UFS) in Ubuntu'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-7521541022751982171</id><published>2008-09-17T20:19:00.016+08:00</published><updated>2008-09-17T21:39:21.196+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='d-link'/><category scheme='http://www.blogger.com/atom/ns#' term='dwa-110'/><title type='text'>Making OpenBSD 4.3 detect a D-Link DWA-110 USB Wireless adapter</title><content type='html'>&lt;div style="text-align: justify;"&gt;I bought a D-Link USB Wireless adapater, more specifically, a DWA-110. I wanted to use the device on my very old desktop with OpenBSD 4.3 installed (I'm currently using that box as a "mini" router at home). Before I bouoght the device, I browsed through OpenBSD's  list of supported wireless devices. And, sure enough, DWA-100 has a Ralink chipset that is supported by the &lt;a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rum&amp;amp;arch=i386&amp;amp;sektion=4"&gt;rum&lt;/a&gt; driver. Now, being an idiot that I usually am, I forgot to check the branch (the driver code is still on -current) and bought the device. By now you probably know what happened next...&lt;br /&gt;&lt;br /&gt;Out of sheer desperation, I tried following the commits made to -current that enabled the driver support for this device. Luckily, I got it working - well I haven't really used it much so there could still be quirks along the way.&lt;br /&gt;&lt;br /&gt;Below is a simple diff of the modifications that I applied (I would have given a link to the diff file but unfortunately I don't have any place to upload files... you'll just have to make do with this ugly white on black html version of the diff file):&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="background-color: #000000; color: #FFFFFF;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;diff -ruN src.orig/sys/dev/usb/if_rum.c src/sys/dev/usb/if_rum.c&lt;br /&gt;--- src.orig/sys/dev/usb/if_rum.c       2008-03-05 03:42:04.000000000 +0800&lt;br /&gt;+++ src/sys/dev/usb/if_rum.c    2008-09-17 03:59:44.000000000 +0800&lt;br /&gt;@@ -97,6 +97,7 @@&lt;br /&gt;        { USB_VENDOR_COREGA,            USB_PRODUCT_COREGA_CGWLUSB2GL },&lt;br /&gt;        { USB_VENDOR_DICKSMITH,         USB_PRODUCT_DICKSMITH_CWD854F },&lt;br /&gt;        { USB_VENDOR_DICKSMITH,         USB_PRODUCT_DICKSMITH_RT2573 },&lt;br /&gt;+       { USB_VENDOR_DLINK2,            USB_PRODUCT_DLINK2_DWA110 },&lt;br /&gt;        { USB_VENDOR_DLINK2,            USB_PRODUCT_DLINK2_DWLG122C1 },&lt;br /&gt;        { USB_VENDOR_DLINK2,            USB_PRODUCT_DLINK2_WUA1340 },&lt;br /&gt;        { USB_VENDOR_GIGABYTE,          USB_PRODUCT_GIGABYTE_GNWB01GS },&lt;br /&gt;diff -ruN src.orig/sys/dev/usb/usbdevs src/sys/dev/usb/usbdevs&lt;br /&gt;--- src.orig/sys/dev/usb/usbdevs        2008-03-05 03:42:04.000000000 +0800&lt;br /&gt;+++ src/sys/dev/usb/usbdevs     2008-09-17 03:59:29.000000000 +0800&lt;br /&gt;@@ -1083,6 +1083,7 @@&lt;br /&gt; product DLINK2 DWLG122C1       0x3c03  DWL-G122 rev C1&lt;br /&gt; product DLINK2 WUA1340         0x3c04  WUA-1340&lt;br /&gt; product DLINK DUBE100B1                0x3c05  DUB-E100 rev B1&lt;br /&gt;+product DLINK2 DWA110           0x3c07  DWA-110&lt;br /&gt; product DLINK2 RT2870          0x3c09  RT2870&lt;br /&gt; product DLINK DSB650C          0x4000  10Mbps ethernet&lt;br /&gt; product DLINK DSB650TX1                0x4001  10/100 ethernet&lt;br /&gt;diff -ruN src.orig/sys/dev/usb/usbdevs_data.h src/sys/dev/usb/usbdevs_data.h&lt;br /&gt;--- src.orig/sys/dev/usb/usbdevs_data.h 2008-03-05 03:42:05.000000000 +0800&lt;br /&gt;+++ src/sys/dev/usb/usbdevs_data.h      2008-09-17 04:00:20.000000000 +0800&lt;br /&gt;@@ -1465,6 +1465,10 @@&lt;br /&gt;            "DUB-E100 rev B1",&lt;br /&gt;        },&lt;br /&gt;        {&lt;br /&gt;+           USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWA110,&lt;br /&gt;+           "DWA110",&lt;br /&gt;+       },&lt;br /&gt;+       {&lt;br /&gt;            USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_RT2870,&lt;br /&gt;            "RT2870",&lt;br /&gt;        },&lt;br /&gt;diff -ruN src.orig/sys/dev/usb/usbdevs.h src/sys/dev/usb/usbdevs.h&lt;br /&gt;--- src.orig/sys/dev/usb/usbdevs.h      2008-03-05 03:42:04.000000000 +0800&lt;br /&gt;+++ src/sys/dev/usb/usbdevs.h   2008-09-17 03:59:59.000000000 +0800&lt;br /&gt;@@ -1090,6 +1090,7 @@&lt;br /&gt; #define        USB_PRODUCT_DLINK2_DWLG122C1    0x3c03          /* DWL-G122 rev C1 */&lt;br /&gt; #define        USB_PRODUCT_DLINK2_WUA1340      0x3c04          /* WUA-1340 */&lt;br /&gt; #define        USB_PRODUCT_DLINK_DUBE100B1     0x3c05          /* DUB-E100 rev B1 */&lt;br /&gt;+#define        USB_PRODUCT_DLINK2_DWA110       0x3c07          /* DWA110 */&lt;br /&gt; #define        USB_PRODUCT_DLINK2_RT2870       0x3c09          /* RT2870 */&lt;br /&gt; #define        USB_PRODUCT_DLINK_DSB650C       0x4000          /* 10Mbps ethernet */&lt;br /&gt; #define        USB_PRODUCT_DLINK_DSB650TX1     0x4001          /* 10/100 ethernet */&lt;br /&gt;&lt;/pre&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/8832252252001335019-7521541022751982171?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/7521541022751982171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=7521541022751982171' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/7521541022751982171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/7521541022751982171'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/09/making-openbsd-43-detect-d-link-dwa-110.html' title='Making OpenBSD 4.3 detect a D-Link DWA-110 USB Wireless adapter'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-950883146617778470</id><published>2008-07-05T20:55:00.005+08:00</published><updated>2008-07-05T21:04:57.515+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chatzilla'/><category scheme='http://www.blogger.com/atom/ns#' term='self-signed SSL certificates'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox 3'/><title type='text'>allow chatzilla to accept self-signed or invalid certificates</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;div style=""&gt;&lt;div align="justify"&gt;I have Firefox 3 running a Chatzilla 0.9.83 add-on. I wanted to use Chatzilla to connect to our company's public IRC server. The problem I had was this: the IRC server's SSL certificate was self-signed, therefore considered as invalid. And, due to Firefox3's weird sense of humor, Chatzilla is unable to connect to the server. But there's a work-around.&lt;br /&gt;&lt;br /&gt;First, create an alias,&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;br /&gt;/alias certif eval getService("@mozilla.org/embedcomp/window-watcher\;1","nsIWindowWatcher").openWindow(null,"chrome://pippki/content/certManager.xul","mozilla:certmanager", "", null)&lt;/div&gt;&lt;br /&gt;then, run it&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;/certif&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This will open Mozilla's certmanager module. From there, you just click on the Servers tab and add the site's url - the one with an invalid cert. And that's it.&lt;br /&gt;&lt;br /&gt;Note: this tip was given by &lt;big&gt;Glenjamin&lt;/big&gt; on #chatzilla @ moznet.&lt;br /&gt;&lt;/div&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/8832252252001335019-950883146617778470?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/950883146617778470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=950883146617778470' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/950883146617778470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/950883146617778470'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/07/allow-chatzilla-to-accept-self-signed.html' title='allow chatzilla to accept self-signed or invalid certificates'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-1940851602839798204</id><published>2008-05-11T20:50:00.003+08:00</published><updated>2008-05-11T21:11:39.850+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nimbus'/><category scheme='http://www.blogger.com/atom/ns#' term='themes'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>nimbus theme on Ubuntu 8.04</title><content type='html'>&lt;div style="text-align: justify;"&gt;These are the stpes I used to install the nimbus theme on Ubuntu 8.04. I took the initial steps from &lt;a href="http://www.vinodlive.com/2007/08/20/make-your-ubuntu-desktop-more-beautiful/"&gt;here&lt;/a&gt;. In my setup, I had to install additional packages.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install fakeroot dpkg-dev devscripts debhelper libgtk2.0-dev icon-naming-utils intltool&lt;br /&gt;wget -c http://dlc.sun.com/osol/jds/downloads/extras/nimbus-0.0.8.tar.bz2&lt;br /&gt;wget -c http://zap.tartarus.org/~ds/debian/dists/sid/main/source/nimbus_0.0.6-1.diff.gz&lt;br /&gt;tar xf nimbus-0.0.8.tar.bz2&lt;br /&gt;cd nimbus-0.0.8&lt;br /&gt;zcat ../nimbus_0.0.6-1.diff.gz | patch -p1&lt;br /&gt;chmod +x debian/rules&lt;br /&gt;debchange -v 0.0.8-1&lt;br /&gt;sudo apt-get build-dep&lt;br /&gt;fakeroot dpkg-buildpackage -us -uc&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&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/8832252252001335019-1940851602839798204?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/1940851602839798204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=1940851602839798204' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1940851602839798204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1940851602839798204'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/05/nimbus-theme-on-ubuntu-804.html' title='nimbus theme on Ubuntu 8.04'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-5075929188550868546</id><published>2008-04-06T16:36:00.006+08:00</published><updated>2008-04-06T17:18:37.504+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='tohtml'/><category scheme='http://www.blogger.com/atom/ns#' term='source to html'/><title type='text'>vim's tohtml plugin</title><content type='html'>&lt;div style="text-align: justify;"&gt;I have been using vim for a while now. But, it was only recently - yesterday to be exact - that I found out about the tohml plugin for vim. It's a very nifty tool that allows you to convert a piece of source code file into an html file, displayed exactly as you see it on vim, as long as you have syntax highlighting on.  What's more, you don't even have to install this plugin because it's already included on the default install.&lt;br /&gt;&lt;br /&gt;Screenshot(hello world program on vim)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_1AZa5zwOqgc/R_iSx0t9T6I/AAAAAAAAAEM/UQN14hanRxQ/s1600-h/hello_world_vim.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_1AZa5zwOqgc/R_iSx0t9T6I/AAAAAAAAAEM/UQN14hanRxQ/s200/hello_world_vim.png" alt="" id="BLOGGER_PHOTO_ID_5186056355579776930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Screenshot (html'ed version of the source)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_1AZa5zwOqgc/R_iUkkt9T8I/AAAAAAAAAEc/vsxuv_qlg94/s1600-h/hello.c.html.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_1AZa5zwOqgc/R_iUkkt9T8I/AAAAAAAAAEc/vsxuv_qlg94/s200/hello.c.html.png" alt="" id="BLOGGER_PHOTO_ID_5186058326969765826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Obviously, this plugin is very useful for documentation and blogging and what not. The only thing that irks me the most is that I've just found out about this plugin and it's been around for quite some time now.&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/8832252252001335019-5075929188550868546?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/5075929188550868546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=5075929188550868546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5075929188550868546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5075929188550868546'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/04/vims-tohtml-plugin.html' title='vim&apos;s tohtml plugin'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_1AZa5zwOqgc/R_iSx0t9T6I/AAAAAAAAAEM/UQN14hanRxQ/s72-c/hello_world_vim.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8832252252001335019.post-5309632871583924169</id><published>2008-03-05T19:35:00.003+08:00</published><updated>2008-03-05T21:02:24.426+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HP500 Notebook'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD 7.0'/><title type='text'>FreeBSD 7.0 on HP500 notebook</title><content type='html'>&lt;div style="text-align: justify;"&gt;I wrote about &lt;a href="http://bitsofarmor.blogspot.com/2007/11/hp500-notebook-running-on-freebsd62.html"&gt;installing FreeBSD 6.2 on my notebook&lt;/a&gt; a couple of months back. And since the new and shiny FreeBSD 7.0 came out last week, I said goodbye to my not-so-old 6.2  installation and replaced it with 7.0.&lt;br /&gt;&lt;br /&gt;I no longer have to disable ACPI during boot with the 7.0 install - so far this is the only improvement as far as hardware related issues are concerned. I have to install the 915resolution port to maximize the resolution - AND - &lt;s&gt;I have a bad feeling that my wireless card isn't going to work&lt;/s&gt;. I read &lt;a href="http://www.freebsd.org/cgi/man.cgi?query=iwi&amp;amp;sektion=4&amp;amp;manpath=FreeBSD+7.0-RELEASE"&gt;iwi&lt;/a&gt; and my wireless card is now working.&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/8832252252001335019-5309632871583924169?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/5309632871583924169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=5309632871583924169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5309632871583924169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5309632871583924169'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/03/freebsd-70-on-hp500-notebook.html' title='FreeBSD 7.0 on HP500 notebook'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-6830343089569255309</id><published>2008-02-27T20:02:00.000+08:00</published><updated>2008-02-27T20:04:16.506+08:00</updated><title type='text'>green machines</title><content type='html'>&lt;div style="text-align: justify;"&gt;I'm planning to purchase a desktop PC sometime this year. Fortunately,I came accross this &lt;a href="http://arstechnica.com/guides/buyer/guide-200802-green.ars"&gt;Ars Technica article&lt;/a&gt; on DIY PCs with low power a consumptions. Honestly, I'm quite convinced. The coolest thing about the so-called "green PCs" is that they're quite affordable and in the long run, with it's low power consumption attributes, you get to spend less on electric bills. So, I guess I'll be "greening-up"&lt;br /&gt;my soon-to-be PC this year.&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/8832252252001335019-6830343089569255309?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/6830343089569255309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=6830343089569255309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/6830343089569255309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/6830343089569255309'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/02/green-machines.html' title='green machines'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-8133413135788438018</id><published>2008-02-04T19:48:00.000+08:00</published><updated>2008-02-04T19:55:54.879+08:00</updated><title type='text'>Updates on Tomcat installation</title><content type='html'>&lt;div style="text-align: justify;"&gt;On my &lt;a href="http://bitsofarmor.blogspot.com/2008/01/how-i-installed-tomcat-in-ubuntu-704.html"&gt; previous&lt;/a&gt; post, I enumerated the steps I made to get Tomcat up and running. It was quite cumbersome, to say the least.&lt;br /&gt;&lt;br /&gt;Anyway, I installed the latest Kubuntu (based on Ubuntu 7.10) and I found out that the Tomcat install had been fixed. All I did was to apt-get the necessary packages and everything worked like a charm -  no more extra configuration tweaks and what not.&lt;br /&gt;&lt;br /&gt;Suh-weeeeeet.&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/8832252252001335019-8133413135788438018?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/8133413135788438018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=8133413135788438018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8133413135788438018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8133413135788438018'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/02/updates-on-tomcat-installation.html' title='Updates on Tomcat installation'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-2270473087966522215</id><published>2008-01-16T21:46:00.000+08:00</published><updated>2008-01-16T22:16:01.623+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tomcat'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>How-I: Got Tomcat to run on Ubuntu 7.04 (Quick and Dirty)</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-style: italic;"&gt;Tomcat requires Java to be installed first. But I'm not gonna talk about that here(clearly out of the topic).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I installed tomcat5.5&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;$ sudo apt-get install tomcat5.5&lt;br /&gt;$ sudo apt-get install tomcat5.5-webapps&lt;br /&gt;$ sudo apt-get install tomcat5.5-admin&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I got errors errors when I installed tomcat5.5-webapps and tomcat5.5-admin&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;...&lt;br /&gt;Setting up tomcat5.5-webapps (5.5.20-4ubuntu1) ...&lt;br /&gt;invoke-rc.d: initscript tomcat5.5, action "status" failed.&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;Setting up tomcat5.5-admin (5.5.20-4ubuntu1) ...&lt;br /&gt;invoke-rc.d: initscript tomcat5.5, action "status" failed.&lt;br /&gt;...&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I found a fix taken from this &lt;a href="http://www.opennms.org/index.php/Ubuntu_7.04_%22Feisty_Fawn%22_Tomcat_5.5,_JDK_1.5_&amp;amp;_OpenNMS_1.3"&gt;site&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;$ cd /var/lib/tomcat5.5&lt;br /&gt;$ sudo chown -R tomcat55 logs work&lt;br /&gt;$ sudo chown tomcat55 /usr/share/tomcat5.5&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Most HOW-TOs suggest you can start tomcat like the one below, but that didn't work in my set-up (no verbose errors popped-up but I couldn't access http://localhost:8180)&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;$sudo /etc/init.d/tomcat5.5&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;So, I searched for other alternatives. Fortunately, I stumbled upon this &lt;a href="http://cefn.com/blog/ubuntutomcat.html"&gt;site&lt;/a&gt; which fixed everything.&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;$ sudo cd /usr/share/tomcat5.5/logs&lt;br /&gt;$ sudo mv catalina.out catalina.out.orig&lt;br /&gt;$ sudo touch catalina.out&lt;br /&gt;$ sudo chown tomcat55:nogroup catalina.out&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then, as opposed to running Tomcat using the script in &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;/etc/rc.d/tomcat5.5&lt;/span&gt;&lt;/span&gt;, I used &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;startup.sh&lt;/span&gt;&lt;/span&gt; found in Tomcat's install directory&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;$ export JAVA_HOME=/usr/lib/j2sdk1.4-sun&lt;br /&gt;$ sudo /usr/share/tomcat5.5/bin/startup.sh&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This time I can access http://localhost:8180. Horray! I've just added more confusion to the already clobbered up Ubuntu documentation.&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/8832252252001335019-2270473087966522215?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/2270473087966522215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=2270473087966522215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/2270473087966522215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/2270473087966522215'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2008/01/how-i-installed-tomcat-in-ubuntu-704.html' title='How-I: Got Tomcat to run on Ubuntu 7.04 (Quick and Dirty)'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-1621685408945761038</id><published>2007-12-17T18:20:00.000+08:00</published><updated>2007-12-17T18:32:10.401+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='sshd'/><category scheme='http://www.blogger.com/atom/ns#' term='NIC configuration'/><title type='text'>extra OpenBSD configuration</title><content type='html'>&lt;div style="text-align: justify;"&gt;These are steps for enabling an interface and sshd at start-up. These apply when you didn't configure/enable them during installation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Network Interface&lt;/span&gt;&lt;br /&gt;1) Create the file /etc/hostname.&lt;interface_name&gt;&lt;span style="font-style: italic;"&gt;interface_name&lt;/span&gt;. In my case,&lt;/interface_name&gt;&lt;interface_name&gt; &lt;span style="font-style: italic;"&gt;interface_name&lt;/span&gt; is vr0. So, the file would be /etc/hostname.vr0&lt;/interface_name&gt;&lt;br /&gt;&lt;interface_name&gt;2) Add the line&lt;/interface_name&gt;&lt;interface_name&gt; this line to the file:&lt;br /&gt;&lt;/interface_name&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;inet 192.168.255.1 255.255.0.0&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;interface_name style="font-weight: bold;"&gt;sshd&lt;/interface_name&gt;&lt;br /&gt;&lt;interface_name&gt;1) edit /etc/rc.conf.local,&lt;/interface_name&gt;&lt;interface_name&gt; change &lt;span style="font-style: italic;"&gt;sshd_flags=NO&lt;/span&gt; to &lt;span style="font-style: italic;"&gt;sshd_flags=""&lt;/span&gt;&lt;/interface_name&gt;&lt;br /&gt;&lt;interface_name&gt;&lt;/interface_name&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-1621685408945761038?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/1621685408945761038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=1621685408945761038' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1621685408945761038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1621685408945761038'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/12/extra-openbsd-configuration.html' title='extra OpenBSD configuration'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-3737363093655786222</id><published>2007-11-20T21:52:00.000+08:00</published><updated>2007-11-20T22:22:53.191+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HP500 Notebook'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD6.2'/><title type='text'>HP500 Notebook running on FreeBSD6.2</title><content type='html'>&lt;div style="text-align: justify;"&gt;I've been working on running FreeBSD6.2 on my laptop. I've got most of the hardware working properly. All except for the wireless adapter which is not working as it's supposed to.&lt;br /&gt;&lt;br /&gt;Anyway, below are some of the configurations I made to get things up and running.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ACPI&lt;/span&gt;&lt;br /&gt;Seeing ACPI-related error messages during boot-up is annoying. To turn this off, just add the following line to /boot/loader.conf&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;hint.acpi.0.disabled="1"&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Audio&lt;/span&gt;&lt;br /&gt;The notebook comes with an Intel ICH audio device. To load the correct kernel driver during boot-up, add the follwing to /boot/loader.conf&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;snd_ich_load="YES"&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Video&lt;/span&gt;&lt;br /&gt;To get the maximum possible resolution when running X windows, just do the following:&lt;br /&gt;&lt;br /&gt;1) install 915resolution port&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;# cd /usr/ports/sysutils/915resolution&lt;br /&gt;# make install clean&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;2) add the following lines to /etc/rc.conf&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;i915resolution_enable="YES"&lt;br /&gt;i915resolution_modes="38 49 58"&lt;br /&gt;i915resolution_width="1280"&lt;br /&gt;i915resolution_height="800"&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;3) run /usr/local/etc/rc.d/915resolution&lt;br /&gt;4) reconfigure X to apply the new settings&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;TODO&lt;/span&gt;:&lt;br /&gt;Wireless support. (I've installed the the iwi port but things are not working properly).&lt;br /&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/8832252252001335019-3737363093655786222?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/3737363093655786222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=3737363093655786222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/3737363093655786222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/3737363093655786222'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/11/hp500-notebook-running-on-freebsd62.html' title='HP500 Notebook running on FreeBSD6.2'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-7295333153785271134</id><published>2007-09-02T18:18:00.000+08:00</published><updated>2007-09-02T18:29:01.164+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP5'/><category scheme='http://www.blogger.com/atom/ns#' term='libapache2-mod-php5'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache2'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>This is what I ran into while installing Joomla! on Ubuntu</title><content type='html'>&lt;div style="text-align: justify;"&gt;I was trying to install Joomla! on my Ubuntu box and ran into this error when I tried to install libapache2-mod-php5:&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;Reading package lists... Done&lt;br /&gt;Building dependency tree&lt;br /&gt;Reading state information... Done&lt;br /&gt;Some packages could not be installed. This may mean that you have&lt;br /&gt;requested an impossible situation or if you are using the unstable&lt;br /&gt;distribution that some required packages have not yet been created&lt;br /&gt;or been moved out of Incoming.&lt;br /&gt;&lt;br /&gt;Since you only requested a single operation it is extremely likely that&lt;br /&gt;the package is simply not installable and a bug report against&lt;br /&gt;that package should be filed.&lt;br /&gt;The following information may help to resolve the situation:&lt;br /&gt;&lt;br /&gt;The following packages have unmet dependencies:&lt;br /&gt;libapache2-mod-php5: Depends: php5-common (= 5.2.1-0ubuntu1) but 5.2.1-0ubuntu1.2 is to be installed&lt;br /&gt;E: Broken packages&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I googled for possible fixes but couldn't find any. So, out of desperation, I tried the following:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get update&lt;br /&gt;sudo apt-get install libapache2-mod-php5&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;It worked. But, I sure as hell don't know why. Sometimes, I can't help but think that apt-get is a bit retarded -OR- maybe it's just me.&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/8832252252001335019-7295333153785271134?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/7295333153785271134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=7295333153785271134' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/7295333153785271134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/7295333153785271134'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/09/joomla-in-ubuntu-feisty.html' title='This is what I ran into while installing Joomla! on Ubuntu'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-1000232678215279743</id><published>2007-09-02T18:11:00.000+08:00</published><updated>2007-09-02T18:17:44.429+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='forget password'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>What to do if you forget your MySQL admin password</title><content type='html'>1) run mysql daemon with these options:&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo /usr/sbin/mysqld --skip-grant-tables --user=root&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2) run mysql client and enter the following commands:&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;mysql&gt; USE mysql&lt;br /&gt;mysql&gt; UPDATE user SET password=password("mysqlpass*0987") WHERE user="root";&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;mysql&gt; exit&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3) restart mysql&lt;br /&gt;&lt;br /&gt;A more complete explanation is found &lt;a href="http://netadmintools.com/art90.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-1000232678215279743?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/1000232678215279743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=1000232678215279743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1000232678215279743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/1000232678215279743'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/09/what-to-do-if-you-forget-your-mysql.html' title='What to do if you forget your MySQL admin password'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-405936862207892077</id><published>2007-08-25T20:15:00.000+08:00</published><updated>2007-08-25T23:02:56.180+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMware Server errors'/><category scheme='http://www.blogger.com/atom/ns#' term='Vmware Server serial number'/><category scheme='http://www.blogger.com/atom/ns#' term='Vmware Server rui.key'/><category scheme='http://www.blogger.com/atom/ns#' term='Vmware Server rui.crt'/><category scheme='http://www.blogger.com/atom/ns#' term='VMware Server cc1plus'/><category scheme='http://www.blogger.com/atom/ns#' term='VMWare Server ubuntu'/><title type='text'>Installing VMware-Server on my AMD64 box running on Ubuntu Feisty</title><content type='html'>&lt;div style="text-align: justify;"&gt;I successfully installed VMware-Server on my laptop using this &lt;a href="http://www.howtoforge.com/ubuntu_feisty_fawn_vmware_server_howto"&gt;link&lt;/a&gt;. I thought that THAT was it. So, I decided to follow the same instructions - this time - on an AMD64 machine(the on I use at work) with a not-so-fresh Ubuntu install. Unfortunately, I ran into some tiny bumps along the way.&lt;br /&gt;&lt;br /&gt;I don't know why these errors occurred in the first place AND I can't give a valid explanation how these fixes(the ones I found by googling) got the installation process to work. But, if you're in a hurry, then these tips might be helpful.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First&lt;/span&gt;, I encountered an error while compiling:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;gcc: error trying to exec 'cc1plus': execvp: No such file or directory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I got this fixed by installing build-essential. This is definitely something that I should always remember everytime I need to build anything, at least only if I'm on Ubuntu.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install build-essentail&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Second&lt;/span&gt;, errors occurred when vmware was trying to generate SSL keys. It seems to look for &lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;`/etc/vmware/ssl/rui.key`&lt;/span&gt;&lt;/span&gt; and &lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;`/etc/vmware/ssl/rui.crt`&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The fix is quite obvious but at that time it took me a couple of minutes of  googling just to find a suitable fix. And, the fix is just to create those files by using &lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;`touch`&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo touch /etc/vmware/ssl/rui.key&lt;br /&gt;sudo touch /etc/vmware/ssl/rui.crt&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lastly&lt;/span&gt;, I encountered an error after I input my serial number. I was pretty sure that it's valid. My hunch was that something else was causing the vmware  installer to flag my serial number as invalid. So again, I turned to ask guidance from the Almighty... Google.&lt;br /&gt;&lt;br /&gt;Lo and behold, all I needed to do was to install the ia32-libs package.&lt;br /&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;sudo apt-get install ia32-libs&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;That's it. I currently have an OpenBSD4.1 guest OS on my VMware-Server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-405936862207892077?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/405936862207892077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=405936862207892077' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/405936862207892077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/405936862207892077'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/08/installing-vmware-server-on-my-amd64.html' title='Installing VMware-Server on my AMD64 box running on Ubuntu Feisty'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-580846130887254121</id><published>2007-08-17T21:16:00.000+08:00</published><updated>2007-08-17T21:32:04.821+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='flash disk'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='ufs'/><title type='text'>mounting a UFS formatted flash disk on a Linux box</title><content type='html'>&lt;div style="text-align: justify;"&gt;I have a USB flash disk with a UFS file system. If your asking why my flash disk is on UFS, well, it's a long story and completely irrelevant to this post. Here's how I got it mounted on my laptop running on Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I successfully mounted it on my lappy using:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;sudo mount -t ufs -o ro,ufstype=44bsd /dev/sdb1 /mnt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The are lots of ufstype options: &lt;span&gt;old&lt;/span&gt;, &lt;span&gt;44bsd&lt;/span&gt;, &lt;span&gt;5xbsd&lt;/span&gt;, &lt;span&gt;ufs2&lt;/span&gt;, &lt;span&gt;nextstep&lt;/span&gt;... just to name a few. If you don't specify a ufstype option it will default to &lt;span&gt;old&lt;/span&gt;, which in my case didn't work. Then, I tried &lt;span&gt;ufs2&lt;/span&gt; and it also failed.&lt;br /&gt;&lt;br /&gt;I recalled using the &lt;span style="font-style: italic;"&gt;O1&lt;/span&gt; option when I formatted my flash disk, like this:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt; newfs -O1 /dev/da0s1a&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-style: italic;"&gt;O1&lt;/span&gt; option is used for ufs1 format. So, I tried &lt;span&gt;44bsd&lt;/span&gt; because it's the closest thing to &lt;span&gt;old&lt;/span&gt; that isn't &lt;span&gt;ufs2&lt;/span&gt;. Heh. Well, &lt;span&gt;44bsd&lt;/span&gt; did the trick. I didn't bother testing 5xbsd. But, I'm guessing it would work too.&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/8832252252001335019-580846130887254121?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/580846130887254121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=580846130887254121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/580846130887254121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/580846130887254121'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/08/mounting-ufs-formatted-flash-disk-on.html' title='mounting a UFS formatted flash disk on a Linux box'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-5228663296720320857</id><published>2007-07-25T22:38:00.001+08:00</published><updated>2007-08-25T22:59:16.571+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtual network interface'/><category scheme='http://www.blogger.com/atom/ns#' term='multiplte MAC Addresses'/><category scheme='http://www.blogger.com/atom/ns#' term='netgraph'/><title type='text'>Multiple NICs with netgraph</title><content type='html'>&lt;div style="text-align: justify;"&gt;I needed to simulate multiple PPPoE clients using one NIC. After googling, I was quite convinced that I could do it through &lt;a href="http://ezine.daemonnews.org/200003/netgraph.html"&gt;netgraph&lt;/a&gt;. After more googling, I found &lt;a href="http://ezine.daemonnews.org/200406/netgraph.html"&gt;this&lt;/a&gt; and &lt;a href="http://archive.netbsd.se/?ml=freebsd-net&amp;a=2005-08&amp;amp;t=1212406"&gt;this&lt;/a&gt; and &lt;a href="http://monkey.org/freebsd/archive/freebsd-net/200511/msg00228.html"&gt;this&lt;/a&gt;, which made me come up with the set of commands - found below - to create multiple virtual NICs, each having unique MAC addresses.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;&lt;br /&gt;host1# kldload ng_ether&lt;br /&gt;host1# kldload ng_eiface&lt;br /&gt;host1# kldload ng_brdige&lt;br /&gt;host1# ifconfig xl0 delete&lt;br /&gt;host1# ifconfig xl0 down&lt;br /&gt;host1# ngctl&lt;br /&gt;Available commands:&lt;br /&gt;&lt;path&gt;&lt;peerhook&gt;&lt;relpath&gt;&lt;hook&gt;&lt;name&gt;&lt;path&gt;&lt;path&gt;&lt;path&gt;&lt;path&gt;config     get or set configuration of node at &lt;path&gt;&lt;br /&gt;connect    Connects hook &lt;peerhook&gt; of the node at &lt;relpath&gt; to &lt;hook&gt;&lt;br /&gt;debug      Get/set debugging verbosity level&lt;br /&gt;dot        Produce a GraphViz (.dot) of the entire netgraph.&lt;br /&gt;help       Show command summary or get more help on a specific command&lt;br /&gt;list       Show information about all nodes&lt;br /&gt;mkpeer     Create and connect a new node to the node at "path"&lt;br /&gt;msg        Send a netgraph control message to the node at "path"&lt;br /&gt;name       Assign name &lt;name&gt; to the node at &lt;path&gt;&lt;br /&gt;read       Read and execute commands from a file&lt;br /&gt;rmhook     Disconnect hook "hook" of the node at "path"&lt;br /&gt;show       Show information about the node at &lt;path&gt;&lt;br /&gt;shutdown   Shutdown the node at &lt;path&gt;&lt;br /&gt;status     Get human readable status information from the node at &lt;path&gt;&lt;br /&gt;types      Show information about all installed node types&lt;br /&gt;write      Send a data packet down the hook named by "hook".&lt;br /&gt;quit       Exit program&lt;br /&gt;+ mkpeer xl0: bridge lower link0&lt;br /&gt;+ name xl0:lower bnet0&lt;br /&gt;+ mkpeer bnet0: eiface link1&lt;br /&gt;+ name bnet0:link1 vif0&lt;br /&gt;+ ngctl msg xl0: setautosrc 0&lt;br /&gt;+ ngctl msg xl0: setpromisc 1&lt;br /&gt;+ quit&lt;br /&gt;host1# ifconfig ngeth0 link 00:00:00:00:00:0F&lt;br /&gt;host1# ifconfig ngeth0 up&lt;br /&gt;host1# ifconfig xl0 up&lt;br /&gt;&lt;/path&gt;&lt;/path&gt;&lt;/path&gt;&lt;/path&gt;&lt;/name&gt;&lt;/hook&gt;&lt;/relpath&gt;&lt;/peerhook&gt;&lt;/path&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;I used my xl0 interface as the parent interface the virtual interface (ngeth0). Doing an ifconfig would show the following:&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; background-color: rgb(153, 153, 153); padding-bottom: 1%; padding-left: 1%; padding-right: 1%;"&gt;&lt;pre&gt;host1# ifconfig&lt;br /&gt;&lt;up,broadcast,running,simplex,multicast&gt;&lt;vlan_mtu&gt;&lt;full-duplex&gt;&lt;up,broadcast,running,promisc,simplex,multicast&gt;&lt;rxcsum,vlan_mtu&gt;&lt;full-duplex&gt;&lt;up,loopback,running,multicast&gt;&lt;up,broadcast,running,simplex,multicast&gt;sis0: flags=8843&lt;up,broadcast,running,simplex,multicast&gt; mtu 1500&lt;br /&gt;options=8&lt;vlan_mtu&gt;&lt;br /&gt;inet6 fe80::211:d8ff:fe79:f0%sis0 prefixlen 64 scopeid 0x1&lt;br /&gt;inet 10.3.1.143 netmask 0xfff00000 broadcast 10.15.255.255&lt;br /&gt;inet6 fec0:ec8:4008:102:211:d8ff:fe79:f0 prefixlen 64 autoconf&lt;br /&gt;inet6 2001:ec8:4008:102:211:d8ff:fe79:f0 prefixlen 64 autoconf&lt;br /&gt;ether 00:11:d8:79:00:f0&lt;br /&gt;media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)&lt;br /&gt;status: active&lt;br /&gt;xl0: flags=8943&lt;up,broadcast,running,promisc,simplex,multicast&gt; mtu 1500&lt;br /&gt;options=9&lt;rxcsum,vlan_mtu&gt;&lt;br /&gt;inet6 fe80::210:5aff:fe9d:5ea9%xl0 prefixlen 64 scopeid 0x2&lt;br /&gt;ether 00:10:5a:9d:5e:a9&lt;br /&gt;media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)&lt;br /&gt;status: active&lt;br /&gt;lo0: flags=8049&lt;up,loopback,running,multicast&gt; mtu 16384&lt;br /&gt;inet6 ::1 prefixlen 128&lt;br /&gt;inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3&lt;br /&gt;inet 127.0.0.1 netmask 0xff000000&lt;br /&gt;pfsync0: flags=0&lt;&gt; mtu 2020&lt;br /&gt;syncpeer: 224.0.0.240 maxupd: 128&lt;br /&gt;pflog0: flags=0&lt;&gt; mtu 33208&lt;br /&gt;ngeth0: flags=8843&lt;up,broadcast,running,simplex,multicast&gt; mtu 1500&lt;br /&gt;inet6 fe80::200:ff:fe00:f%ngeth0 prefixlen 64 scopeid 0x6&lt;br /&gt;ether 00:00:00:00:00:0f&lt;br /&gt;host1#&lt;br /&gt;&lt;/up,broadcast,running,simplex,multicast&gt;&lt;/up,loopback,running,multicast&gt;&lt;/full-duplex&gt;&lt;/rxcsum,vlan_mtu&gt;&lt;/up,broadcast,running,promisc,simplex,multicast&gt;&lt;/full-duplex&gt;&lt;/vlan_mtu&gt;&lt;/up,broadcast,running,simplex,multicast&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Caveats:&lt;/b&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The default limit to the number of virtual interfaces - ngeth(N) - interfaces that can be attched to the netgraph bridge(bnet0) is 31.&lt;/li&gt;&lt;li&gt;If you do this, you cannot assign an IP Address to the physical interface, xl0 in my example.&lt;/li&gt;&lt;li&gt;AFAIK, netgraph is only found in FreeBSD.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8832252252001335019-5228663296720320857?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/5228663296720320857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=5228663296720320857' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5228663296720320857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/5228663296720320857'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/07/multiple-nics-with-netgraph.html' title='Multiple NICs with netgraph'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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-8832252252001335019.post-8536951253395350378</id><published>2007-07-25T20:56:00.000+08:00</published><updated>2007-07-25T23:38:48.957+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Installing OpenBSD3.7 as a guest OS on a VMware Server</title><content type='html'>&lt;div style="text-align: justify;"&gt;If you have tried installing any OS on VMware before and if you have tried installing OpenBSD on a real box, AND, you need to install OpenBSD on VMware, then read on...&lt;br /&gt;&lt;br /&gt;There are a couple of important things to note/consider during installation. Let's just say that I ran into a some of "gotchas" while doing the install. I hope that this would prevent you or me (in case I need to do this again in the future) from the hassle of running into these simple but pesky problems.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[ONE: Prepare a new virtual machine]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When you're prompted to choose the "Guest OS", click on "Other". And then, on the drop down menu, choose "FreeBSD" for an i386 target platform or "FreeBSD 64-bit" for... well, I don't have to state the obvious. This allows you to maximize theoptimizations made by VMware for your taget OS (I'm just saying this because it sounds good but I honestly don't have any basis for that particular claim).&lt;br /&gt;&lt;br /&gt;That's it for the first part. All the remaining options are yours to decide.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[TWO: OpenBSD3.7 Installation]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Installing Packages:&lt;br /&gt;&lt;br /&gt;OpenBSD doesn't distribute official ISOs. However, there are available ISOs made by certain individuals which you can download and safely install. The problem with these ISOs is that they don't really follow a standard directory structure.&lt;br /&gt;&lt;br /&gt;During installation, you will be prompted to specify the directory where the packages are located. Therefore, before you start installing OpenBSD, you need to know where the packages are located.&lt;br /&gt;&lt;br /&gt;To do this you need to mount the ISO. On linux I issued the command:&lt;br /&gt;&lt;br /&gt;        `mount -o loop /path/to/ISO/file /path/to/mount/directory`&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Making Partitions:&lt;br /&gt;&lt;br /&gt;By default, the "a" partition is already created. This does not happen when you install OpenBSD on a real box. On a real box install, you only get the "c" partition (assuming you don't have any other OS installed) at first.&lt;br /&gt;&lt;br /&gt;As a work around, you need to remove the "a" partition then add it again using your intended settings (it's retarded, I know). If you don't, then your installation will surely break.&lt;br /&gt;&lt;br /&gt;After that, you can add the other remaining partitions.&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/8832252252001335019-8536951253395350378?l=bitsofarmor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bitsofarmor.blogspot.com/feeds/8536951253395350378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8832252252001335019&amp;postID=8536951253395350378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8536951253395350378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8832252252001335019/posts/default/8536951253395350378'/><link rel='alternate' type='text/html' href='http://bitsofarmor.blogspot.com/2007/07/installing-openbsd37-as-guest-os-on.html' title='Installing OpenBSD3.7 as a guest OS on a VMware Server'/><author><name>bleepster</name><uri>http://www.blogger.com/profile/02459070826284694877</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>
