Linux tftp Server For Diskless Clients June 4th, 2010
Diskless client can be very useful for educational institutes, testing setups or the networks that have limited hardware resources available with them. Linux offers a robust diskless environment that can be configured on CentOS with ease.
Server Setup
To configure server we need (NFS, xinetd, tftp and dhcp server). I hope all these services already installed in your system. If you do not find these services in your system you can install all of them as follow
Create a directory on the NFS server to contain the diskless environment such as /diskless/i386/TECHBABU/ e.g
mkdir -p /diskless/i386/TECHBABU/snapshot
In the above configuration I have selected (TECHBABU) as operating identifier. You can change according to your need.
Configuring the NFS Server
Edit file /etc/exports
/diskless/i386/TECHBABU/snapshot/ *(rw,sync,no_root_squash)
Next we need to start NFS Server
Let’s copy a running Linux OS in diskless environment through rsync utility. For example: Read the rest of this entry »
Posted in CentOS, fedora, linux, Networking | No Comments »
Installing a Media Server On Linux Server June 4th, 2010
Linux media server for music allows users to save space on their PCs. The Firefly Media Server (previously called mt-daap) is fast DAAP server which is easy to install and configure. Firefly needs a simple Linux machine which in our case is Ubuntu Server.
The Firefly server has the following features:
- Supports Unix/POSIX
- On the fly transcoding of OGG, FLAC, Apple Lossless, and WM
- User-created smart playlist support
- Integrates with iTunes and many other DAAP-supporting media players
- Serve streaming radio stations
Installation
Configuring Media Server
There is no lengthy configuration required. We only need to to create an directory for our media files. For this just find mp3_dir keyword from media server configuration file /etc/mnt-daapd.conf
In my system’s configuration I have found (/home/media/music). Now lets create this directory.
Posted in CentOS, debian, fedora, linux, Networking, ubuntu | No Comments »
Easy Text Processing in Linux/Unix June 4th, 2010
Text processing in Linux can be done using sed, cut, grep commands and with vi editor. We can find and replace a string, find and delete string etc.
Finding IP Addresses from Apache Log file through cut command
- The -d ‘-’ refers to delimeter –
- The -f1 is for first field in Apache log file
Remove particular IP Addresses from Apache log through sed command
- The -ie refers to inline edit in file
- The ‘/^10 indicates that IP must start with 10
- The \ indicates that special character . is text
- The /d indicates that delete this line
Remove lines containing a key word through sed
- The 1,30 refers to first 30 lines
- The {/index/d} indicates delete lines containing word “index”
Remove blank lines from a text file using vi editor
- The g refers globally
- The ^$/ d indicates delete blank lines
Remove special character # from a text file using vi editor
- The $s/ refers search from start
- The \# indicates take # as character
- The //g replace it with nothing i.e remove character
source here
Posted in CentOS, debian, fedora, feebsd, linux, Networking, ubuntu | No Comments »
FreeBSD Vs Linux Who is Best ? June 4th, 2010
Both FreeBSD & Linux are reliable and Servers running either software often stay up for years. But disk I/O of linux is non-synchronous by default which corrupts filesystem after system crash.
Freebsd’s disk I/O is high performance for transactions based applications for example databases. It is observerd that under heavy network load, the network performance of linux is 20-30% below of Freebsd under same hardware.
Being open source Linux allows anyone to change security code due to which code is modified rapidly and there is no formal code review policy. On other hand FreeBSD security components are checked for errors. Freebsd includes very robust packet filtering firewall system. Linux ext2/ext3 has several new journaling filesystems which fix data loss due to system crash. While FreeBSD uses UFS(Unix File System) which is more complex than ext2/ext3. UFS has many flags to use for performance and security for example schg flag does not allow to change file & directory unless you remove it.
Device Driver support of Freebsd is better than Linux. FreeBSD boot loader allows to load drivers at boot-time. Some time it becomes very difficult for linux users to use vendor’s drivers. Freebsd can run programs compiled for linux, SCO Unix and BSD systems. But Linux can only run binaries that are compiled for linux. Freebsd has many GBs of free packages to install via ports (Package management system of Freebsd). Linux has also free available software but Linux has not a central location like ports collection. of Freebsd.
Several organizations give professional support for both Freebsd & Linux. All the major Linux vendors offer some level of support, and several offer full 24/7 service. There are many forums where Linux questions are answered for free.
Both FreeBSD & Linux can be installed on as many systems as you like for no additional cost. Both Linux & Freebsd’s total cost of ownership is very low.
So if you are planning to deploy a transactional applications then for the best performance Deploy FreeBSD for example Email services & Database applications.
Please give your opinion, reviews & comments to select between 2 open source Operating systems FreeBsd & Linux so that we may focus to post more information about OS you like.
source here
Posted in CentOS, debian, fedora, feebsd, linux, ubuntu | No Comments »
Secure Email Server On Centos June 4th, 2010
Qmailtoaster is a project whose purpose is to install Qmail with RPMs on RPM based Linux and these RPMs are source RPMs. The advantage of Qmailtoaster is that it contains all patches needed for Qmail for example domainkeys etc.
Included Featureset by Qmailtoaster
- Source RPM packages easily rebuilt for multiple distributions
- SMTP with SMTP-AUTH, TLS, REMOTE-AUTH
- DomainKeys, SPF “Sender Policy Framework” and SRS “Sender Rewriting Scheme”
- Integrated SpamAssassin, ClamAV and Simscan
- Warlord virus and worm loader realtime MIME signature scanning
- CHKUSER 2.0 functions for qmail-smtpd
- Qmail-Tap provides email archive capability
- Virtual Domains and Virtual Users using MySQL
- Autoresponder for vacation/away from office messages
- Integrated Mailing List (ezmlm)
- Web-based email system using Squirrelmail
- Web-based administration tools
- POP3, POP3-SSL, IMAP and IMAP-SSL
- Submission port (587) allows roaming users to skip RBL checks and port 25 blocks
- eMPF patch for advanced policy control over email
Qmailtoaster has support for RHEL/CentOS (3.x, 4.x, 5.x , Fedora, Suse, Mandriva. We are going to install Qmailtoaster for CentOS 5.x
Prerequisites: Install Centos 5 base system, remaining packages and dependencies will be installed automatically with qmailtoaster scripts.
1) Configuration Read the rest of this entry »
Posted in CentOS, databases, linux, mysql, Networking | No Comments »
