Installing and configuring FreeRADIUS with MySQL authentication and after that Installing and configuring daloRADIUS June 6th, 2010
Here’s a *near* step-by-step guide to setup FreeRADIUS with MySQL backed authentication done on Ubuntu 9.10 (Karmic). Start by installing the necessary deb files:
# apt-get install freeradius freeradius-mysql
Add the following lines to the /etc/freeradius/users file:
abc Cleartext-Password := “123″
Stop freeradius service just in case:
/etc/init.d/freeradius stop
Now test using the radtest client:
# radtest abc 123 localhost 1812 testing123
Sending Access-Request of id 149 to 127.0.0.1 port 1812
User-Name = “abc”
User-Password = “123″
NAS-IP-Address = 208.67.219.132
NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=149, length=20
Ensure that the response is “Access-Accept”. The following should be displayed at the server console:
rad_recv: Access-Request packet from host 127.0.0.1 port 33425, id=149, length=55 Read the rest of this entry »
Posted in databases, debian, linux, mysql, Networking, ubuntu | 1 Comment »
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 »
