RSS

Archive for the ‘General’ Category

Use Linux and WebDAV to Facilitate Online Collaboration

Saturday, April 9th, 2011

Unlike FTP, HTTP provides strong authentication and encryption, as well as caching and proxy support — and because WebDAV works over HTTP, WebDAV gets all of that for free. SSH would be another option, but SSH is a bit more limited in terms of moving files around, and it has nowhere near the quality of client support and tools available. [...]

Hi! Thanks for letting us crawl you!

Tuesday, February 15th, 2011

Our Purpose and Goal

Our purpose is rather simple. We want to make the internet as open as possible.

Currently only a select few corporations have a complete and useful index of the web. Our goal is to change that fact by crawling the web and releasing as much information about its structure and content as possible. We plan on doing this in a manner that will cover our costs (selling our index) and releasing it for free for the benefit of all webmasters.

Obviously, this goal has many potential legal, financial, ethical and technical problems. So while we can’t promise specific results, we can promise to work hard, share our results, and help make the internet a better and more open space.

Read more here: http://www.dotnetdotcom.org/

FreeBSD quote of the day #30

Sunday, January 30th, 2011

Want to strip UTF-8 BOM(Byte Order Mark) from given files?
sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile

FreeBSD IP Alias: Setup 2 or More IP address on One NIC

Thursday, January 27th, 2011

IP aliasing is the process of assigning more than one IP address to a network interface. This is useful for Apache web server virtual hosting or other network servers such as ftp server.

This tutorial explains how to assign one or more IP address to a single network interface under FreeBSD operating system.

It is possible to create network alias or assign 2 ip address to a single NIC under FreeBSD operating system.

Our Sample Setup

  • Interface name: lnc0 – IP : 192.168.1.1/255.255.255.0
  • Interface name: lnc0 alias - IP : 192.168.1.5/255.255.255.255

Netmask must be different otherwise you will get an error ifconfig: ioctl (SIOCAIFADDR): File exists.

Set ip alias using ifconfig command line utility

Login as the root user.

Now, use ifconfig command as follows to set alias:
# ifconfig lnc0 192.168.1.5 netmask 255.255.255.255 alias

Persistent IP Alias Configuration

Edit file /etc/rc.conf to setup persistent ip aliasing option by appending following configuration, so that next time FreeBSD comes up (after restart/shutdown) it will create alias for you:
ifconfig_lnc0_alias0="192.168.1.5 netmask 255.255.255.255"

Finally, Restart FreeBSD network service using network restart script:
# /etc/rc.d/netif restart && /etc/rc.d/routing restart

More information about this here: http://www.cyberciti.biz/tips/freebsd-how-to-setup-2-ip-address-on-one-nic.html

Creating and Controlling Jails in FreeBSD

Thursday, January 27th, 2011

Since system administration is a difficult and perplexing task, many powerful tools were developed to make life easier for the administrator. These tools mostly provide enhancements of some sort to the way systems are installed, configured and maintained. Part of the tasks which an administrator is expected to do is to properly configure the security of a system, so that it can continue serving its real purpose, without allowing security violations.

One of the tools which can be used to enhance the security of a FreeBSD system are jails. Jails were introduced in FreeBSD 4.X by Poul-Henning Kamp phk@FreeBSD.org, but were greatly improved in FreeBSD 5.X to make them a powerful and flexible subsystem. Their development still goes on, enhancing their usefulness, performance, reliability, and security.

More information about this can be found here:

Installing VirtualBox™ in FreeBSD

Thursday, January 27th, 2011

For a number of years, FreeBSD was not officially supported as a host OS by any of the available virtualization solutions. Some people were using older and mostly obsolete versions of VMware (like emulators/vmware3), which utilized the Linux® binary compatibility layer. Shortly after the release of FreeBSD 7.2, the Open Source Edition (OSE) of Sun’s VirtualBox™ appeared in the Ports Collection as a native FreeBSD program.

VirtualBox is an actively developed, complete virtualization package, that is available for most operating systems including Windows®, Mac OS®, Linux and FreeBSD. It is equally capable at running Windows or UNIX® like guests. It comes in two flavors, an open source and a proprietary edition. From the user’s point of view, perhaps the most important limitation of the OSE is the lack of USB support. Other differences may be found in the “Editions” page of the VirtualBox wiki, at http://www.virtualbox.org/wiki/Editions. Currently, only the OSE is available for FreeBSD.

More about this here: http://www.freebsd.org/doc/handbook/virtualization-host.html

Graphviz – Graph Visualization Software

Tuesday, January 25th, 2011

Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

Graphviz is open source graph visualization software. It has several main graph layout programs. See the gallery for some sample layouts. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings.

More about this here: http://www.graphviz.org/

So what’s up with this blog?

Monday, January 24th, 2011

In the past 10 years I’ve been doing web developement using various programming languages, ranging from PHP, Python to Groovy and Java.

So this blog will serve me to record my programming adventures for later reference and hopefully will help you too.