WING LOON

decoding my knowledge through blogging

Archive for the ‘Linux’


Setup lighttpd 1.4.18 Virtual Hosting in CentOS 5

What is a virtual hosting? It is a method that web servers such as lighttpd is use to host more than one domain name on the same server or on the same IP address. Virtual hosting can be accomplished in two methods such as ip-based virtual hosting and name-based virtual hosting. In this post, I will setup lighttpd 1.4.18 virtual hosting based on name-based virtual hosting to host domain1.com, www.domain1.com (both domain1.com and www.domain1.com is referring to the same website) and www2.domain2.com on 1 single web server.

1. Create each of the website directory like this: -

mkdir /srv/www/lighttpd/domain1.com
mkdir /srv/www/lighttpd/www2.domain2.com

2. Open lighttpd configuration file like this: -

vi /etc/lighttpd/lighttpd.conf

3. Add below text to support domain1.com and www.domain1.com at the end of file: -

$HTTP["host"] =~ “^(domain1.com|www.domain1.com)” {
server.document-root = "/srv/www/lighttpd/domain1.com"
}

4. Add below text to support www2.domain2.com at the end of file: -

$HTTP["host"] == “www2.domain2.com” {
server.document-root = "/srv/www/lighttpd/www2.domain2.com"
}

5. Save and exit file. Restart the lighttpd service like this: -

service lighttpd restart

6. Upload respective HTML files. Point your browser to the website and you will see the respective website.

If you found these helpful, please contribute to help:

Source: lighttpd

Installing lighttpd 1.4.18 in CentOS 5

Why lighttpd and not Apache? First of all, what is lighttpd? These four words can describe lighttpd - security, speed, compliance, and flexibility. lighttpd (pron. lighty) is a web server that has been optimized for high performance environment. With its very low memory footprint compared to other web servers, takes care of CPU load and advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) makes lighttpd the perfect web server software for every server that suffers load problems. Best of all lighttpd powers several popular Web 2.0 sites like YouTube, wikipedia and meebo.

Let’s get started. I am running CentOS 5 64-bit. You can’t get lighttpd from the official CentOS 5.0 repositories. We have to download lighttpd from DAG RPM Repository. Let’s download these packages lighttpd and lighttpd-fastcgi like this: -

wget -c http://dag.wieers.com/rpm/packages/lighttpd/lighttpd-1.4.18-1.el5.rf.x86_64.rpm

wget -c http://dag.wieers.com/rpm/packages/lighttpd/lighttpd-fastcgi-1.4.18-1.el5.rf.x86_64.rpm

Next, we can install the lighttpd and lighttpd-fastcgi like this: -

rpm -ivh lighttpd-1.4.18-1.el5.rf.x86_64.rpm lighttpd-fastcgi-1.4.18-1.el5.rf.x86_64.rpm

Next, we can update the runlevel information for system services so lighttpd start up automatically whenever the system boots like this: -

chkconfig --levels 235 lighttpd on

service lighttpd start

lighttpd’s default document root is at /srv/www/lighttpd and the configuration file is at /etc/lighttpd/lighttpd.conf on CentOS 5.

Simply create an index.html file and upload to the lighttpd document root. Now, point your favorite web browser to the lighttpd IP address and you will see the index.html file you created.

If you found these helpful, please contribute to help:

Source: lighttpd | DAG RPM Repository

Pidgin 2.3.1 Released

Pidgin formerly known as Gaim is a cross-platform multi-protocol Instant Messaging (IM) client that allows you to use all of your IM accounts at once. Pidgin is compatible with AIM, Bonjour, Gadu-Gadu, Google Talk, Jabber/XMPP, Novell GroupWise Messenger, ICQ, IRC, MSN, MySpaceIM, QQ, SILC, SIMPLE, Lotus Sametime, Yahoo! and Zephyr.

With Pidgin, you can now log into an IRC channel, chatting with your friends in ICQ and talking to a friend in Yahoo Messenger.

Source: Pidgin

Setup EXIM QMAIL SENDMAIL to listen on additional SMTP port

With the recent mitigation spam exercise in TM Network, I received phone calls from my friends complaining on unable to access remote SMTP server listening on port 25 from TM Network. TM Net took an immediate action on the same day itself the email notification was sent out as well as the news notification was published in their website. I quickly relay this message to my friends and they got frustrated. To overcome this email relay issue on SMTP port 25, some of the local web hosting provider had created an additional SMTP port for email relaying to their affected clients.

So, I would like to share on how to setup EXIM, QMAIL or SENDMAIL to listen on additional SMTP port using iptables in a Linux mail server box if you are a web hosting provider or you have a co-located server in a data center. Make sure iptables is installed. Just run the following command below: -

/sbin/iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2525 -j REDIRECT --to-ports 25

The iptables command above will redirect any request access to TCP destination port 2525 to port 25. You can change the port number 2525 to your preferred port number. Hope this help you guys. Good nite. :)

If you found these helpful, please contribute to help:

Deluge 0.5.7.1 Released

Deluge 0.5.7.1 released on 1 Dec 2007. Deluge is a full-featured lightweight cross-platform BitTorrent client. It is available for Linux, Mac OS X and Windows. It uses libtorrent in it’s backend and PyGTK for it’s user interface. Please refer to the changelog below for the version changes.

Deluge 0.5.7.1 (1 December 2007)
* Tweak full hd warning so that it only displays itself once per torrent that it has to pause
* Fixed crash and corruption of persistent.state while adding a duplicate torrent. Also caused yet another invalid handle error
* Increase tracker timeout

Source: Deluge

VLC media player 0.8.6d Released

VLC is a cross-platform media player and media server. It supports various audio and video formats as well as DVDs, VCDs, and various streaming protocols. It can also be used as a media server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network.

Below is a full changes between 0.8.6c and 0.8.6d: -

Various bugfixes:
* Mozilla plugin: supports a reasonable amount of MIME types on Windows
* Linux: Fixed S/PDIF passthrough with ALSA
* Automatic recovery on unexpected stream discontinuity (clock gap) occurrences in input
* Use field order (top/bottom) for correct bob/linear deinterlacing
* Fix invalid free in bookmarks loading code

Windows and Mac OS Binaries:
* FLAC Security Update (CVE-2007-4619) to prevent multiple integer overflows

Active X plugin:
* Security update (VideoLAN-SA-0703)

Mac OS X Interface & Port:
* Apple Remote support on Mac OS X 10.5 Leopard with enhanced functionality
* Improved Video Output compatibility for Mac OS X 10.5 Leopard
* Improved behavior of the Fullscreen Controller and mode changes between Fullscreen and Windowed Video Output
* Softened the white flash artifacts that may appear during the transition of two different movies
* Support for current Ogg file formats
NOTE: This release requires Mac OS X 10.4 or higher. Mac OS X 10.3.9 is not supported anymore.

Encoders:
* Improved H.264 encoding speed on Mac OS X

Other changes:
* The automatic updating facility was removed
* You now need to append –m3u-extvlcopt to your command line to enable EXTVLCOPT options parsing in m3u playlists

Soruce: VideoLAN

Find and delete files older than X days in Linux

I had been assigned a task to create a simple script for finding and deleting files older than 1 day, 7 days and 30 days for a backup directory. As usual, I will use Google (the ultimate search engine) to search for my answer. I found the answer from the How-To Geek.

Below is my simple script: -

#!/bin/bash

FIND=`which find`
RM=`which rm`

DPATH="/backup/daily"
WPATH="/backup/weekly"
MPATH="/backup/monthly"

DDAYS="+1"
WDAYS="+7"
MDAYS="+30"

if [ $# -lt 1 ]
then
echo "Usage: ${0##*/} [daily/weekly/monthly]“
exit 1;
fi

if [ $1 == daily ]
then
$FIND $DPATH -mtime $DDAYS -exec $RM {} \;
exit 1;
fi

if [ $1 == weekly ]
then
$FIND $WPATH -mtime $WDAYS -exec $RM {} \;
exit 1;
fi

if [ $1 == monthly ]
then
$FIND $MPATH -mtime $MDAYS -exec $RM {} \;
exit 1;
fi

Source: the How-To Geek

Deluge 0.5.7 Released

Deluge 0.5.7 released on 26 Nov 2007. Deluge is a full-featured lightweight cross-platform BitTorrent client. It is available for Linux, Mac OS X and Windows. It uses libtorrent in it’s backend and PyGTK for it’s user interface. Deluge features a rich plugin collection. I would like to include the changes between Deluge from version 0.5.6.1 as below.

Deluge 0.5.7 (26 November 2007)
* Scrape support
* Manual force-recheck
* Add local peer discovery (aka local service discovery)
* Blocklist plugin will now display errors, instead of just crashing on a bad list or wrong type
* Add torrent in paused state option
* Add advanced progress bar
* Fix bug in merging trackers
* Various updates to WebUI, including https support and advanced template by vonck7
* Add maximum connection attempts per second preference
* Fix bug where loaded plugins were forgotten if Deluge crashed
* Fix ratio bugs (hopefully for the last time)
* Add preference to only show file selection popup if torrent has multiple files
* Fix pause all and resume all bugs
* Fix client not loading if our website goes down (new version check failing)
* Allow torrent creation with no trackers
* Scheduler plugin revamp by Ben Klein
* Fix ETA from going backwards
* UI warning on full HD - no longer just silently pauses torrents
* Replace SimpleRSS with FlexRSS
* Add preference for the location of torrent files
* Add autoload folder
* Copy translator credits from Launchpad to our about->credits
* Differentiate between queued and paused torrents. Able to pause queued torrents - patch by yobbobandana
* Show error when writing/permission problems occur

Continue Reading →

FileZilla Client 3.0.4.1

FileZilla client version 3.0.4.1 has released with new features and bug fixed. I have not post any release news on FileZilla client after version 3.0.1 and I would like to include the short summary of the changes between FileZilla from version 3.0.1 as below.

Legend:
! Security related bugfix or otherwise critical bugfix
+ New feature or important bugfix
- Bugfixes

3.0.4 (2007-11-26)
- Linux: Fix empty challenge text if using interactive login

3.0.4-rc1 (2007-11-20)
+ Implement FTP Proxy support. Note that using a properly configured NAT router is recommended instead.
+ Implement FTP keep alive for those connecting to improperly configured servers
- Fix crashes if deletig files in directories with more than 200 entries
- Compatility improvements with VMS and z/VM servers
- Now requires GnuTLS 2.0.4 which fixes a problem with servers using compression.
- Changing list of ascii files or increasing number of concurrent transfers had no effect until restart of FileZilla

3.0.3 (2007-11-06)
+ Install some default filters if filters.xml missing in user’s settings directory
- OS X: Fix remote file viewing/editing
- Additional fixes for SFTP servers with nonstandard filename encodings

3.0.3-rc1 (2007-10-31)
+ Automatic server timezone detection. Custom offset in the Site Manager may need to be adjusted. FTP only.
+ Option to preserve file timestamps on downloads (all protocols)
+ Option to preserve file timestamps on uploads on FTP servers supporting the MFMT command
+ Add transfer type (ascii/binary/auto) selection to transfer menu
- Shorten very long filenames on file exists dialog
- Attempt at working around broken routers and firewalls disconnecting the control connection of the transfer session on transfers
- Deleting directories containing lots of files should be faster now
- Disallow settings/site import from files located in the settings storage directory
- Fix nullpointer dereference on non-UTF8 enabled SFTP servers
- *nix: Fix button height inconsistencies on dialogs with certain artwork (e.g. Ubuntu 7.10)

3.0.2.1 (2007-10-17)
- Fix issue with message log not working properly

3.0.2 (2007-10-17)

+ MSW: Added /user=all and /user=current options to installer
+ Experimental support for z/VM servers
- Fix typo in option handling code. Due to this, settings for date/time formatting have been reset.
- Fix performance problem if FileZilla gets started with message log hidden
- Work around possible race conditions in SFTP input thread leading to crashes
- MSW: Fix issue with installer where reboot after uninstalling previous version disrupted installation. Fix will only work if uninstalling 3.0.2 or greater.
- OSX: Use new icon

3.0.2-rc1 (2007-10-10)

+ Remote file viewing / editing
+ Display current server in window title
- Don’t remember incorrect password on SFTP connections with ASK logontype
- MSW: Fix drag&drop to explorer in case of case-mismatch between requested and reported path.
- *nix: Fix Makefiles so SFTP properly supports files > 2GB
- Ascii filetype setting for extensionless files and dotfiles had negated effect
- Fix error message if using multiple running instances save the settings at the same time
- Fix parsing of very new files in directory listings if server is in a timezone ahead of the client
- Fix range of timezone offset setting
- Fix problems with remote path combobox if reconnecting after a disconnect
- Display confirmation dialog if deleting file from remote directory tree context menu
- Refresh remote directory listing after refreshing a single file
- On very first startup, center FileZilla on screen

Source: FileZilla

Fedora 8 Released

Fedora 8 “Werewolf” has been released on 8 November 2007. Fedora is a Linux-based operating system that showcases the latest in free and open source software designed by Red Hat. Fedora 8 release features GNOME 2.20, Online Desktop, KDE 3.5.7, Xfce 4.4.1, NetworkManager 0.7, PulseAudio, CodecBuddy, Compiz Fusion, OpenOffice.org 2.3 and 2.6.23 kernel version. Read more about all the features in release summary and release notes.

Source: Fedora Project

Add to Technorati Favorites

  • Archives

  • Categories

Your Ad Here

    • ss_blog_claim=f8aa1b1967b5d8b3279b4c39b76b2da1
    • Download Day 2008