Saturday, December 4, 2010

Fedora Core 1X Mirror Server

Introductions:

Its been quite a while when Fedora Team had release a new OS/platform-version 14.Yet, some of the configuration for "yum" installations issues can not be resolved and the caused is the incorrect path of its mirrors and base url-(servers).And if it's left unconfigured then it seemed that you have not installed OS-useless!

So upon stumbled on this site,I now resolve this problem ever-hopefully.

http://digitizor.com/2009/06/17/how-to-fix-the-cannot-retrieve-repository-metadata-repomd-xml-error-in-fedora-11/

The recently released Fedora 14 Leonidas has some issues with it’s regular update process. Many users are getting a strange error which complains about the inability of the update system to retrieve the repository metadata, namely repomd.xml. You can see the error as attached in this inlet below:

Objective:

1)To resolve this errors


Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Requirements

When we tried to install Fedora 14 for the first time, we also faced a similar problem. A quick twitter search brought us to a conclusion that we were not alone. But a little tweaking of a few system files brought us back on track. In this article we tell you, how to go about resolving the problem in case you face it too.

Methodology:


  • You need to edit two of your repository files: /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo. Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist. This should be done for both the above files.
  • Now edit your /etc/hosts file and append the following to it’s contents:
    80.239.156.215          mirrors.fedoraproject.org
    213.129.242.84 mirrors.rpmfusion.org

The other solution if "respomd.xml errror" still occur , try to browse the fedora mirror site then you will be redirected to your nearest countries mirror site and used it as your new " baseurl" in /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo.

baseurl=http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/


Remarks:

0) Please note that specified port(port :number 80/8080) must be open to at your http_proxy or ftp_proxy , else error pycurl 6/error # 14 will occur again and again.

root@localhost# export http_proxy=http://10.36.129.X:8080

1)Now try updating your system or installing any software via Yum. You will see, the error is now resolved and the error message is not shown anymore.

2) and please try this command if there is a failure and trying to find other mirror/s.

Package does not match intended download. Suggestion: run yum --enablerepo=updates clean metadata
root@localhost# yum --enablerepo=fedora clean metadata

3)
The same procedure is also working with Fedora15

Conclusion:

This problem has now been resolved by the Fedora Community. But you may still not be able to download the updates properly from the mirrors due to the busy network and rush.



Thursday, November 4, 2010

WiFIAdmin (Wireless Gateway)


Introductions:

Wireless connections? we got it! WifiAdmin is an open-source software for wireless access monitoring and administrations.It was developed by a group of students from the patrasch university in Greece.This software has gained a wide attentions to the community who are fanatic to the development of radius and captive portal.

WifiAdmin has the following installation script
0.language selection
1.configuration file creation
2.Database Creation
3.Routers Registration

Basically the software was coded in "php" and used some of its graphics libraries.
Now, you may have the chance to evaluate this software -

Objectives:
To set-up a wireless access control server
To authenticate wireless users
To monitor wireless users' identities

Requirements:
Hardware:
Any CPUs : Intel,MAC ,AMD

Software:
Apache
php
WifiAdmin

Methodology:
1)Choose to download WifiAdmin in this site:
http://linux.softpedia.com/get/System/Networking/WiFiAdmin-5053.shtml
2) Follow this configurations & installations- WEB SERVER with PHP ( I used Ubunto here)

for apache
bopher# sudo apt-get install apache2
bopher# sudo /etc/init.d/apache2 restart

for php version 5
bopher# sudo apt-get install php5
bopher# sudo apt-get install libapache2-mod-php5 (optional)

for mysql
bopher# sudo apt-get install mysql-server
bopher# sudo apt-get install php5-mysql

create database in mysql
bopher# mysqladmin -u user -p dbname
bopher# mysql -u user -p dbname < style="color: rgb(153, 102, 51);">
for WifiAdmin
bopher# tar -zxvf WifiAdmin-version.tar.gz (the latest release)

bopher# cd /WifiAdmin-version
bopher# mv /WifiAdmin-version /var/www/wifi (apache web directory)

open your browser to http://localhost/wifi/ and see the detail's photos

3) Follow the specified network diagram
4) Have a simple server to client wireless connections testing
5) Monitor and control the user's access


Detail(1):


Detail(2):


Detail(3):


Detail(4):


Remarks:
Simple and direct web installation,try it for yourself bro!

Conclusions:
No cost , robust , and easy to configure wifi admin server.

Wednesday, October 13, 2010

OSX Accounts(Add user/s & group)


Introductions:
Recently , my task is to migrate eprints in MAC Xserve and it was running in OSX platform.I thought there would be no painstaking hardwork that I woud be experiencing-I was wrong.Though OSX is inheritance of UNIX , there were additional functions for MAC which UNIX had not or nevertheless unsupported.Some were : the CLI command , installer , and additional file folder exclusively for MAC ony.Yet, everything seemed ported well, except a more funnier thing was the adding of user and group account for eprints.And you know why? It wasn't just as easy as "useradd" or "groupadd" but a more little deeper config just to have a new user /group accont in OSX- I am telling you.
Adding a user is something easily accomplished using the built in GUI tools that ship with OS X, however any power user can appreciate the possible efficiency gained from using the command line. So in the spirit of efficiency here are the steps necessary to add a user to your Mac OS X system all with our good friend, Terminal.app.These commands need to be run as either the root user or with the “sudo” command. For more information on the sudo command see the sudo man page.


Objectives:
1) To have a procedure in adding accounts in OSX-MAX CLI
2) To have a procedure in adding accounts in OSX-GUI menu.

Requirements:
Any computer with running OSX operating sytem ofcourse -Apple bro...
And please visit this site http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dscl.1.html

Methodology:
Copy and Modiy the MAC main tutorial

CLI Mode (shell command)
Create a new entry in the local (/) domain under the category /users.
dscl / -create /Users/eprints

Create and set the shell property to bash.
dscl / -create /Users/eprints UserShell /bin/bash

Create and set the user’s full name.
dscl / -create /Users/eprints RealName "UP Digital Repository"

Create and set the user’s ID.
dscl / -create /Users/eprints UniqueID 503

Create and set the user’s group ID property.
dscl / -create /Users/eprints PrimaryGroupID 1000

Create and set the user home directory.
dscl / -create /Users/eprints NFSHomeDirectory /Local/Users/eprints

Set the password.
dscl / -passwd /Users/eprints eprints1234
or
passwd eprints

If you would like UP Digital Repository to be able to perform administrative functions:
dscl / -append /Groups/admin GroupMembership eprints

Another CLI Mode
Create the group

Find out the next gid. If there’s not one higher than 501 use 501, otherwise add one to the greatest number in this list: nidump group . This will also do it and just return the highest currently used number nidump group . cut -d: -f3 sort -n tail -n 1

sudo nicl . -create /groups/mygroup

sudo nicl . -create /groups/mygroup grouppassword \*

sudo nicl . -create /groups/mygroup gid 508
Append users

sudo nicl . -append /groups/mygroup users rod

sudo nicl . -append /groups/mygroup users jane

sudo nicl . -append /groups/mygroup users freddy

repeat to fade
Change owner of a folder and all sub folders, files

sudo chown -vR :mygroup ~/myfolder

sudo chmod -R 775 ~/myfolder

Logout and back in again to get your credentials with the new group in it up-to-date.
Job done.

In GUI Mode (gui command)
You can create individual user accounts for each person who uses your computer. Each new user has a separate home folder and can adjust his or her own preferences without affecting other users.

Choose Apple menu > System Preferences and click Accounts.

If some settings are dimmed, click the lock icon and type an administrator name and password.
Click Add (+) and type the user's name.

If you don't want to use the short name generated automatically, type a new short name. (Once the account is created, you won't be able to change the short name.)

Type the user's password in the Password and Verify boxes.

Type a hint to help the user remember the password if they have trouble remembering it at login.

Click Parental Controls and select options to determine what the user can do with the computer.

If you change your mind while you're creating a new user account, click Delete (-) to cancel.

Summary:
It is quite cool simple thing but if left unresolved will be an enchant disaster.

Conclusion:
It is done

Tuesday, August 3, 2010

Decapod for RoBook Scanner

Introductions:

So far I am having a hardly thoughts on how I could clearly grasped designing stereo camera to capture imagery ;perhaps, via software or driver .Although the allotted span of time would take only just for (one) 1 semester. Apparently ,I have had this topic on the other part of my web blog that deal solely to "RoBook Scanner" and I knew that the topic would be too lengthy if I would not include or separated Decapod discussions here.

Decapod is an Opensource project ,it is a software tools used in a book scanning and was sponsored by Andrew W. Mellon Foundation ; the project is being maintained by volunteers and dedicated people around the globe-kudos to them! Imagine how much is the cost of a commercial book scanning software? oh huge price. Anyway ,never mind because Decapod is free to everybody who aspire the best of its suited applications . Recently,I have included this project in my techno-blog because I considered it as one of the best freeware you can ever have for free .It is a combination of a different software programs which were intended and incorporated for book digitization.; and to mention those share & freewares: gPhoto, OCROpus, Image editing/cropping , kPDF and the server hosting too.

So am beleiving this was really a real open source community project -indeed.

I want to share here the steps in installing Decapod in Fedora version #13(the most recent release?) and Ubunto version 10.04 .I will try to test steps and find out if it would really give me a lucky try.

The last things to say is to get it done(OK here we go!)

Requirements:
Hardware:
2 Cameras (Canon G10 or the latest series)
Tripod or camera handler
Lamp variable lights ( to pre-scale ,shutter or luminance)

Software:
Ubunto 10.04
FireFox web browser latest release
Decapod
-gPhoto
-Imagemagic
-OcrOpus
-genPdf
-Cherrypy

Objectives:
To Install Decapod and its modules
To setup decapod server
To stereo capture image using two cameras

Methodology
:
Install tools and libraries
Download Decapod release version (0.4)
Run install script
Test decapod server
Test stereo camera capture

How-Tos:

Download
1)hg clone https://decapod.googlecode.com/hg/ decapod-0.4
or
2) wget http://www.google.com/url?sa=D&q=http://code.google.com/p/decapod/downloads/detail%3Fname%3Ddecapod-0.4.zi&usg=AFQjCNF0WtK35E69fflnd4CiPuDRbhiyEw

Install the script
cd decapod-0.4/install-scripts/
sudo ./decapod-all
Run the server with cameras
cd decapod-server/
python ./decapod.py
Run the server with no cameras
cd decapod-server/
python ./decapod.py --no-cameras

Here are the details for Book Scanning using Decapod-0.4

Detail(1) Running the Decapod Server successfully


2) Decapod server CLI activity status


Detail(3) The front end GUI of the Decapod server


Detail(4) Testing the Camera (stereo capture)


Detail(5)Calibrations before capturing


Detail(6) Image calibrations L-R pages


Detail(7)python decapod.py --no-cameras


Detail(8)Decapod exporting files process (PDF)


Detail(9)
Decapod on exporting image to PDF


Detail(10) Decapod Generating pdf


Detail(11) A lot more to bind and scans (thanks for a Decapod community!)


Remarks
:
First you need to install all the libraries and tools.You will have the options to have an automatic install script ;or download it and have a manual installations.
There is an active cli while running a Decapod server(opening it using Firefox -http://localhost:8080

Conclusions:
Cool as ice book scanning

Friday, July 9, 2010

Simple NAT Server

Introductions:

Hello folks, nice jotting again; I don't know if I would include this article until I needed it applications.How can I put external IP address with in my LAN so I must also have a local address.Simple NAT configurations will solve my problem with a little ease. It is because I am going to setup a live Asterisk VoIP Server one public and another one internal/private address.Public IP for WAN and Private address for my clients to get connected in the server.

A simple Network Address Translation will be doing the tweaking after I prepared a twon NIC (Ehternet) machine ofcourse running in CentOS -(common OS for Asterisk Telephony). I have encountered some issues with SIP to NAT but it can be done easy in SIP trunking configurations, and besides that IAX are much better in avoiding this NAT traversal configuration .

SO , I hope that there will be another applications yuo can use with NAT servering.

Objectives:

To use NAT in Asterisk WAN to LAN IP addressing
To be able to configure NAT traversal in some VoIP protocols (IAX,SIP,H323)
To learn NAT howto (NAT servering)

Methodology:
In doing this VoIP over NAT, we need to have Unix/Linux like OS that has a nat package in its kernel .We may also try to intall its software update if there is none in the OS software package-there are plenty files/program available for free download on the net.

Anyway,here is how to setup NAT with Linux and iptables; and I'll be mentioning a step-by-step tutorial to configure Network Address Translation (NAT) with Open Source Linux operating system and iptables. This will allow your system to act as gateway and to provide Internet access to multiple hosts in Local Area Network (LAN) using a single public IP address.

Requirements:

1. Hardware server with 2 (two) network interface cards (NICs).
2. Any Linux distribution (get more information at DistroWatch.com).
3. Linux kernel with networking and iptables support.
4. iptables package (you can find latest release at NetFilter's Download page).

Basic definitions

aa.aa.aa.aa is Wide Area Network (WAN) IP address (bb.bb.bb.bb is WAN netmask).
cc.cc.cc.cc is LAN IP address (e.g. 192.168.0.1 or 10.0.0.1), dd.dd.dd.dd is LAN netmask (e.g. 255.255.255.0).
ee.ee.ee.ee is default gateway for Internet connection.

eth0 is hardware name of the NIC connected to WAN base.
eth1 is name of LAN connected NIC.

Step-by-step set up

1. Apply two NICs to hardware server.
2. Verify that both NICs are recognized by Linux well and are fully workable:
# dmesg | grep eth0
# dmesg | grep eth1


the output may vary but in most cases it would be like following one:
#
eth1: RealTek RTL8139 at 0xe0830000, 00:30:4f:3b:af:45, IRQ 19
eth1: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

Similar output should be for eth0 NIC.

To verify that NICs are recognized by Linux as networking devices use the following commands:
# ifconfig eth0
# ifconfig eth1

In case of success the output will be as follows:

# eth0 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

You can find full manual page for ifconfig command here.

3. Configure WAN interface (eth0) to get Internet connection:
ifconfig eth0 aa.aa.aa.aa netmask bb.bb.bb.bb

e.g.
# ifconfig eth0 123.45.67.89 netmask 255.255.255.248

WAN IP address and netmask should be provided by your ISP.

4. Set up WAN NIC settings to apply after server start up.
Configuration files containing NIC settings may have different syntax and location in various distributions. For such distributions as RedHat, Fedora, Centos and similar ones eth0 configuration file is at /etc/sysconfig/network-scripts/ifcfg-eth0. In Debian, Ubuntu NIC settings are located at single file /etc/network/interfaces.

To edit configuration files use any preferred text editor like vim, GNU nano or any other.

After editing /etc/sysconfig/network-scripts/ifcfg-eth0 should look as follows:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=aa.aa.aa.aa # e.g. 123.45.67.89
NETMASK=bb.bb.bb.bb # e.g. 255.255.255.0
GATEWAY=ee.ee.ee.ee # e.g. 123.45.67.1
HWADDR=00:30:4f:3b:af:45 # MAC address (optional entry)

After making changes to /etc/network/interfaces section regarding eth0 NIC should looks like:

auto eth0
iface eth0 inet static
address aa.aa.aa.aa
netmask bb.bb.bb.bb
gateway ee.ee.ee.ee

Related links: detailed syntax description of /etc/sysconfig/network-scripts/ifcfg-ethN, manual page of /etc/network/interfaces.

5. Set up LAN NIC settings to apply after server start up. This step requires operations similar to previous step.

Edit /etc/sysconfig/network-scripts/ifcfg-eth1 and make sure that it looks like:

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=cc.cc.cc.cc # e.g. 192.168.0.1
NETMASK=dd.dd.dd.dd # e.g. 255.255.255.0
HWADDR=00:50:8d:d1:24:db # MAC address of LAN NIC (optional entry)

If you are using Debian or related Linux distribution, edit /etc/network/interfaces (see previous step):

auto eth1
iface eth1 inet static
address cc.cc.cc.cc
netmask dd.dd.dd.dd

6. Set up Domain Name System servers IP addresses by editing /etc/resolv.conf:

#nameserver 203.145.184.13
#nameserver 203.145.184.12

7. Enable IP Forwarding:

# echo 1 > /proc/sys/net/ipv4/ip_forward


8. Set up NAT with iptables:

To delete existing rules from every iptables table, execute the following commands:

#iptables -F
#iptables -t nat -F
#iptables -t mangle -F

Related links: official iptables documentation.

Enable NAT by commands:

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# iptables -A FORWARD -i eth1 -j ACCEPT

8. Configure LAN clients to access Internet via described gateway:

Use clients' operating system tools to set up the following TCP/IP settings:

IP address: from the same network as cc.cc.cc.cc (you can use IP/Subnet calculator to get it)
Netmask: dd.dd.dd.dd
DNS: ff.ff.ff.ff
Gateway: cc.cc.cc.cc

Example:
#
IP address: 192.168.0.7
Netmask: 255.255.255.0
DNS: 209.160.67.13
Gateway: 192.168.0.1



Remarks:


Conclusions:

MRTG (Multi Router Traffic Grapher) Server




Introductions:

Our discussion here is all about an Opensource network monitoring software, no other than MRTG (Multi Router Traffic Grapher) which is an application that allows us to observe the traffic of a network. It generates html pages with graphs which are refreshed according to our network’s current state. Its source is written in Perl and C which means that it can be installed in every Operating System we like. We will also need SNMP daemon (Simple Network Management Protocol) which gives us information for a network. The following installation was accomplished under Linux and specifically CentOS . With some little changes it can be used and under other distros.We will present also some simple trick on how to monitor multi services (domain,IP,host,etc) in a single output page.It is not different with polling all the packets either from udp or tcp tunnel and let the sequence or arrangemeng followed to simple network management protocol-SNMP

I hope that this doc is easy for every reader to follow the howtos of deploying the MRTG server.

Good Luck to all Parekoy!

Objectives:
1)Basically we need to setup a network monitoring software
2)To use an Opensource MRTG which is durable and tested
3) To be able to configure and setup MRTG
4)To Monitor multiple traffic activities of different servers running in the productions


Requirements:

Some of the nescessary files need to create a graphical multi router traffic analysis are the following
SNMP-protocol
GD-graphics
LibPNG -libraries to *.png format
Zlib- some addons to graphics
Wget- uploading/downloading programs

Methodology:

Installation of SNMP server

Initially we install the packets needed for SNMP. Yum makes this job a lot easier.Next we make snmpd service to start automatically for the runlevels we want.
# yum install net-snmp-utils net-snmp

And we start the server.

# chkconfig --level 345 snmp

We can see that it is running in port 199.

# service snmpd start

# netstat -natv | grep ':199'

tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN


SNMP Configuration
We run ‘snmpwalk’ which creates a “tree” of information for our network.
If you see an output like this one you may proceed with the MRTG installation. Else you should make some configuration first.

# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex

ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.127.0.0.1 = 1

ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.192.168.0.3 = 2


We keep a backup of snmpd.conf just in case anything goes wrong

# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.origina

We open it

# nano /etc/snmp/snmpd.conf

find and change this line

com2sec notConfigUser default public

replace by

com2sec local localhost public

com2sec mynetwork 10.0.0.0/8 public

where 10.0.0.0/8 we put what our network is
find and change those lines
group notConfigGroup v1 notConfigUser

group notConfigGroup v2c notConfigUser

and replace by

group MyRWGroup v1 local

group MyRWGroup v2c local

group MyRWGroup usm local

group MyROGroup v1 mynetwork

group MyROGroup v2c mynetwork

group MyROGroup usm mynetwor

find and change this lines
view systemview included .1.3.6.1.2.1.1

view systemview included .1.3.6.1.2.1.25.1

and replace with this one

view all included .1 8

find and change this line

access notConfigGroup "" any noauth exact systemview none none

with those lines below

access MyROGroup "" any noauth exact all none none

access MyRWGroup "" any noauth exact all all none


Finally,find and change those lines
syslocation Unknown (edit /etc/snmp/snmpd.conf)

syscontact Root (configure /etc/snmp/snmp.local.conf)


with this one (but you can change those with your own settings)

syslocation Linux, CentOS

syscontact Your_name root@localhost

Running SNMP service

We restart the server to take affect of the notices

# service snmpd restart

And we run again

# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex

Now we should see something like that

IP-MIB::ipAdEntIfIndex.10.X.Y.Z = INTEGER: 2

IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1

Where 10.X.Y.Z is your ip address.

Installing MRTG application

Using yum...

# yum install mrtg

Configuration of our MRTG

We create the folder in which our graphs and html pages will be kept

# mkdir /var/www/html/mrtg/

And we run ‘cfgmaker’ for the configuration file to be created.

# cfgmaker --global "workdir: /var/www/html/mrtg" -ifref=ip --output /etc/mrtg/mrtg.cfg --global 'options[_]: growright,bits' public@localhost

Here you should pay notice to --output /etc/mrtg/mrtg.cfg as long as to public@localhost. With this command we tell MRTG to create a configuration file with the name ‘mrtg.cfg’ for the traffic of our computer (localhost). Instead of localhost you may put the address of any computer you may monitor as long as it runs SNMP.

Next we create our default index page

# indexmaker --output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg

Configuring Apache To Work With MRTG

MRTG is useful because it can provide a graphical representation of your server's performance statistics via a Web browser.With newer versions of Fedora, Apache automatically reads the add-on files in the /etc/httpd/conf.d/ directory. With Fedora Core 1, you have to specifically configure the Apache configuration file /etc/httpd/conf/httpd.conf to find it. You can do this yourself by inserting this line at the very bottom of the main Apache configuration file before restarting Apache for the change to take effect. With Fedora Core, MRTG creates an add-on configuration file named /etc/httpd/conf.d/mrtg.conf that includes all the necessary Apache commands for MRTG to work.

[root@localhost]# include " /etc/httpd/conf.d/mrtg.cfg

Some configuration may need to be done, because by default MRTG accepts Web requests from the Linux console only. You can add your home network to the file by inserting the network on the Allow from line, or you can allow universal access by commenting out that line along with the Deny from line. This example adds access from the 192.168.1.0 network.

#Alias /mrtg /var/www/mrtg

Order deny,allow
Deny from all
Allow from localhost 10.36.128.0/32

If you want to access MRTG from the Internet, then you'll have to comment out the Deny statement and allow from all IP addresses:

#Alias /mrtg /var/www/mrtg

Order deny,allow
Deny from all

Note:**
Remember to restart Apache once you have made these modifications in order for these changes to take effect.

Compling MRTG configurations

We run the following command

# mrtg /etc/mrtg/mrtg.cfg

ERROR: Mrtg will most likely not work properly when the environmentvariable LANG is set to UTF-8. Please run mrtg in an environmentwhere this is not the case. Try the following command to start:

env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg


In case you get an error like this;you have to run the above command more than once till it runs without any error. This is normal.
# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

23-02-2007 17:28:53, Rateup WARNING: /usr/bin/rateup Can't remove localhost_2.old updating log file

# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

Finally we open our browser and type

http://localhost/mrtg


Multiple MRTG clients

The Fedora Core MRTG installation process creates a cron file named /etc/cron.d/mrtg. This file tells the cron daemon to run MRTG using the /etc/mrtg/mrtg.cfg file every five minutes to poll your network devices. You can configure MRTG to poll multiple devices, each with a separate configuration file. Here's how:

1) Create a new configuration file using the steps from the previous section; choose a filename that is not mrtg.cfg.

2) Add a new MRTG line in /etc/cron.d/mrtg for each new configuration file you create.

[root@localhost]# vi /etc/cron.d /mrtg

0-59/5 **** root env LANG=C /usr/bin/mrtg/  etc/mrtg/server1.cfg
0-59/5 **** root env LANG=C /usr/bin/mrtg/ etc/mrtg/server2.cfg
0-59/5 **** root env LANG=C /usr/bin/mrtg/ etc/mrtg/server3.cfg

3) Run the indexmaker command, and include all of your /etc/mrtg configuration files, to regenerate your Web index page.

[root@localhost]# indexmaker --output=/var/www/mrtg/index.html
/etc/mrtg/server1.cfg /etc/mrtg/server2.cfg /etc/mrtg/server3.cfg

4) Other versions of Linux keep their MRTG cron entries inside the /etc/crontab file. Edit this file using the same syntax as the Fedora /etc/cron.d/mrtg file, and then restart the cron daemon to re-read the configuration:

[root@localhost]# service crond restart

You could also create a script with the /usr/bin/mrtg /etc/mrtg/device.cfg entries in it and make cron run it every five minutes. This way you can just edit the script each time you add a device without having to restart cron.

After the modification in our config, let's start snmp and apache

[root@localhost]# service snmpd restart

[root@localhost]# service httpd restart

Again, to see the multiple clients of our MRTG, we open our browser and type

http://localhost/mrtg



Detail(1) MRTG download site


Detail(2)MRTG Main page


Detail(3)MRTG Weekly Traffic Analysis


Detail(4)MRTG Annual Traffic Analysis


Remarks:



Conclusions:

Tuesday, June 8, 2010

Friday, June 4, 2010

Network Captive Portal Deployment






Introductions:


Objectives:

Methodology:

Remarks:

Conclusions:

Thursday, May 20, 2010

Koha Linux Installation -Fedora XX




Introductions:

We have now a software depositories ;what we want more are to tandem it with 'OPAC's and that our prospects -VuFind and Koha. Since Koha was very a prominent OPAC software I don't have a second options but to include it as a candidate for testing and evaluations .Another is the VuFind, as of now we have the impression that it has a more simplified version and is very promising software than its counterparts-well, let's see.

Let us first introduce Koha,this OPAC was originally developed for the Horowhenua Library Trust by Katipo Communications,New Zealand in 1999 (kiwi people). The first version of Koha went live at HLT in January 2005.And there are a lot of support being shared all around open source community with a dedicated team that enhance its bug , features and add-ons from time to time.

So now we proceed to actions ;debugging an OPAC powered by Koha-mwha!

Koha features:


-A full featured modern integrated library system (ILS).
-Award winning and open source no license fee, ever.
-Linux, Unix, Windows and Mac OS platform.
-Web Based.
-We can full integrate it into your website.
-Copy cataloging and z39.50.
-MARC21 and UNIMARC for professional catalogers.
-Tailored catalog module for special libraries.
-Use as a document manager or digital library.
-Manage online and off line resources with the same tool.
-RSS feed of new acquisitions.
-E-mail and/or text patron's overdues and other notices.
-Print your own barcodes.
-Serials management module.
-Full catalog, circulation and acquisitions system for library stock management.
-Web based OPAC system (allows the public to search the catalog in the library and at home).
-Simple, clear search interface for all users.
- Simple and comprehensive acquisition options.
- Koha is multi-tasking and enables updates of circulation, cataloging and issues to occur simultaneously.


Objectives:
To use Koha software package for online OPAC
To test Koha features
To compare Koha with VuFind
To evaluate Koha in production

Requirements:
Recommendations to install Koha:

  • Pentium II or a higher specs
  • Debian Linux package
  • Apache
  • MySQL
  • Perl
  • KOHA (http://download.koha.org/?C=N;O=D)
  • Software extras

Methodology:
Here are some straight forward method to succeed in installing,configuring and deploying KOHA.

1) Installing Perl compiler
root@localhost# yum install perl
root@localhost# perl-CPAN*

2) Install Perl libraries 
root@localhost# yum install perl-
(Please use Yum to download and install package)
mysql-devel,
libxml2-devel, quagga
libxslt-devel, tcl, bzip2-devel, gcc, ncftp,
wget, gdbm-devel, expat-devel, tcp_wrappers ,
libicu , libicu-devel
mysql-bench
mod_auth_mysql
php-mysql
mysql-connector-odbc
mysql-devel
yaz

Please use Cpan to install and download Pearl libraries and add-ons-(the mt. Everest of installations )
install XML::SAX
install XML::LibXMLinstall XML::LibXSLT
install XML::LibXML::SAX::Parserinstall XML::RSSinstall XML::SAX::Writer
install Algorithm::CheckDigits
install Test::Pod
install Test::Pod::Coverage
install Biblio::EndnoteStyle
force install DBD::mysql
force install DBD::SQLite2install GD
install DBIinstall FreezeThaw
install CGI::Session::Serialize::yamli
install CGI::Simple
install Class::Accessorinstall Class::Factory::Util
install Date::Calc
install Sub::Name
install ExtUtils::CBuilder
install Data::ICal
install Email::Date
install HTML::Template::Proinstall HTML::Scrubber
install HTML::Template::Proinstall MARC::Recordinstall MARC::Crosswalk::DublinCore
install MARC::File::XMLinstall MARC::Charsetinstall PDF::API2
install PDF::Reuse
install PDF::Reuse::Barcode
install Lingua::Stem
install Test::Distribution
install List::MoreUtils
install MIME::Lite
install Mail::Sendmail
install POE
install Tk
install Term::ReadKey
install Event
install Curses
install Schedule::At
install Text::CSV
install Text::CSV_XS
install Text::Iconv
install Test::Differences
install JSON
install YAML::Syck
install HTTP::OAI
install Net::Z3950
Install Net::Z3950::ZOOM
install Unix::Syslog
Note: here are some of the updates during my installations
install Biblio::EndnoteStyle 0.05
install Date::ICal 1.72
install Digest::SHA 5.43
install GD 2.39
install IPC::Cmd 0.46
install Net::Z3950::ZOOM 1.16
install SMS::Send 0.05
install Text::CSV::Encoded 0.09
install e XML::LibXSLT 1.59
install XML::RSS 1.31


3) Instal Mysql and libraries

root@localhost# yum install mysql*

3-1) Configure  mysql database
Set a new password 
root@localhost# service mysqld stop
root@localhost# mysqld_safe --skip-grant-tables &

3-2) Connect to mysql server using mysql client
root@localhost mysql -u root  password (just press enter)mysql> use mysql;
mysql> update user set password=PASSWORD("password1234") where User='root';
 mysql> flush privileges;
mysql> quit;

3-3) Create Database
mysql> create database koha;
mysql> grant all privileges on koha.* to 'kohaadmin'@'localhost' identified by 'password1234';

4) Install web container (Apache)
root@localhost# yum install httpd*

5) Download and Install koha
root@localhost# wget www.koha

5-1)Install Koha(latest version)
root@localhost#  cd PATH_Koha/
root@localhost# perl Makefile.Pl
root@localhost# make
root@localhost# make test
root@localhost# make install

5-2) Configure Koha:
5-2-1)Create a symlink in apache
root@localhost# ln -s /etc/koha/koha-httpd.conf /etc/httpd/conf.d/


5-2-2) To access koha on all IP(LAN/WAN)
root@localhost# vim /etc/httpd/conf.d/koha-httpd.conf
Check  this in koha-httpd.conf #Opac < VirtualHost *:80 >  #Intranet  < VirtualHost *:8080 > 


5-3) Test and browse Koha system
Client side
http://localhost:80

Administrator Side
http://localhost:8080

Detail(1) Successful installation of KOHA


Detail(2) Login


Detail(3) Installer -Step 1



Detail(4) Installer -Step 2


Detail(5) Installer  -Step 2


Detail(6) Installer -Step3


Detail(7)-Installer -MARC


Detail(8)- Optional Added


Detail(9)


Detail(10)- No Zebra


Detail(11) Successful/complete installations


Detail(12) Admin control panel


Detail(13) OPAC client window



Remarks:


Well, one thing to note if the guide you are following does not continue as it was expected perhaps you should read now how the "config","make","make install" created an error display.
I would enumerate those possible problems:
1) Please identify each equivalent/appropriate version,what I mean is the contemporary dates when all of the the required packages were compiled and had worked out.

2)Please not some --prefixes (the correct path file installations)

3) You need to check if it needs you to setup environment variable or rather use "export"

4)Never ever forget to activate "MySQL" they must be running for such an applications to create its own database: field,name,tables ,user name, password -sometimes that was an inevitable case.

5)But in KOHA particularly, the tweak will much occur in the CPAN installations ; you can just cut and paste all the commands for eache package s to be installed by CPAN- and these were posted above. Try to force the installation if it does not continue on the first time of command of installing it. Otherwise it has other package dependencies needed to be compiled yet .Oh! this group of YAZ :applications(Yaz.x.y.z.tar.gz,libyaz.x.y.z and libyaz-devel.x.y.z) ,was a little bit confusing to mine so much so of its progress or development to CentOS ;painstakingly how can we find file just as where and how to fix its right version. I would rather suggest , why not KOHA used other package instead of YAZ ?I think there are alot of alternatives application in replacement to YAZ-the community should be serious about it though.

6) Here is another important tips for installing Net::Z3950::ZOOM is to try all available encryptor / decryptor in YUM. As different OS may vary names for these(so better try yum install *crypt*) instead. Perhaps also wrappers, I was enchanted resolving Z3950 files and turn it out installing this way -yum install *wrap* (oh thanks for a wild characters -KoHA is getting wild).

7)Please take note that if your web browser displayed errors "403" or "404" which mean to say that your apache web server (or common httpd) does not allow your koha url to be accessible (index.html-mainpage.pl).So try to add this line and I had my directory located here-> /usr/local/koha) and all the compiled packages.Please put and enclosing the statement below.
===================================
AllowOverride All
Options MultiViews -Indexes Includes FollowSymLinks
Order allow,deny
Allow from all
==============
=====================
or this one
===================================
AllowOverride All
Options ExecCGI
==============
=====================
8) Don't forget to create a "koha " database usually this is the primary cause of an error .It could be avoided this way-create a database first before installing koha.

Given:
Database = "koha"
Administrator account ="kohaadmin"
Hostname =" localhost"
Password ="password"

#mysql -u root -p
password (just press enter)

mysql>create database koha;
mysql>grant all privileges on koha.* to 'kohaadmin'@'localhost' identified by 'password';

9) Well , better install all the files required by CPAN

10) If you are using Fedora X.X version, make sure that selinux is disabled.

That is all folks!

Conclusions:
Its free but not the painstakingly hardship debugging its installations- make you stressed after a success

Thursday, February 25, 2010

Installing Proxy Server









Installing Proxy Server

Installing Web Server(Apache,MySQL ,CPanel)





Interlude:


What it means of an "Apache Web Server" is an easy deployment of a simple Web Server.The blog-article will explain the details of customizing your own URL server with a restrictions (online : user name Password),Database using MySQL and a little approach to cpanel installations(O! you can now be a host provider).If you want to upload its web content online you only need a public IP address and choose your own domain name.




Objectives:

Requirements:
[Hardware]
PII or higher CPU specs

[Software]

Downloading a file:
1)Apache
http://www.apache.org
2)Cpanel

3)MySQL

Methodology:



HowTos
:

Installing Apache2.X.X
Uncompress and extract the files using the command
  • #tar -zxvf httpd-2.0.49.tar.gz
Go to the directory it creates like httpd-version
  • #cd httpd-2.0.49
Run the following commands
  • #./configure --prefix=/usr/local/apache2 --enable-so
  • # make
  • # make install
Open the file /usr/local/apache2/conf/httpd.conf and make the following changes (vi or any editor can be used to open file)
  • Search and Replace www.new.com with IP address or hostname of your machine. Uncomment the line.
  • locate the line #ServerName and Replace with your servername.
Start Apache Server by the command and check for the status of the web server
  • /usr/local/apache2/bin/apachectl start
Open the browser and browse the default page at the URL: http://ip-no-machine-or-hostname/
If you are able to view apache page on your browser, it means that you have successfully installed Apache.

Installing CPanel

Install cPanel on a Linux Server

1) root@localhost# ssh root@ip_ad_of_host_server

2) ip_ad_of_host_server# cd /home

3) ip_ad_of_host_server# wget http://layer1.cpanel.net/latest

4) ip_ad_of_host_server# sh lates

5) Browse the cpanel

https://ip_ad_of_host_server:2087

6) Login to : https://ip_ad_of_host_server:2087

User name:

Password:

7) Customized now your cpanel-host server


Inserting a simple website
Adding a simple authentications
Adding a users' authentications
Adding encrypoted keys (https)



Remarks:


Conlclusions:

Installing Mail Server






Introductions:

What is Postfix? It is a software package known to used in deploying Mail server.This is Wietse Venema's mailer that started life at IBM research as an alternative to the widely-used Sendmail program.Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.



Objectives:


Requirements:


Methodology:




Remarks


Conclusions:

Tuesday, February 23, 2010

Installing OpenLDAP(Linux)

Introductions:
What is LDAP
a)History
b)Protocol
LDAP vs relational DBASE
LDAP advantages

Requirements:

1) PC atleast PII
2) Linux OS: (CentOS,Fedora)
3) Directory Design(your simple directory)


Download:
Berkeley DataBase(you can choose 4.8 version)
http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
OpenLDAP
ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.21.tgz
openldap-2.3.43-3.el5.i386
openldap-clients-2.3.43-3.el5.i386
openldap-servers-2.3.43-3.el5.i386


Howto:
A)Installing deficiencies:
Please skip this step if you have the following files active running
gcc
gcc-devel
[root@localhost local]# yum install gcc

B.1)Fix the evironment variable on CLI:
[root@localhost local]# CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
[root@localhost local]# export CPPFLAGS
[root@localhost local]# LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib -R/usr/local/BerkeleyDB.4.8/lib"
[root@localhost local]# export LDFLAGS
[root@localhost local]# LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.8/lib"
[root@localhost local]# export LD_LIBRARY_PATH CPPFLAGS LDFLAGS

B.2)Or setting the environment permanently
[root@localhost local]# vi /etc/profile
Add the following

____________________________________________________________________________
CPPFLAGS
="-I/usr/local/BerkeleyDB.4.8/include"
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib -R/usr/local/BerkeleyDB.4.8/lib"
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.8/lib"
export LD_LIBRARY_PATH CPPFLAGS LDFLAGS
---------------------------------------------------------------------------------------------------------------------------------------

C) The installations procedures

./configure
make depend
make
make install


Server Side
Configuring LDAP server:

Adding LDIF:

Apache Authentications:

Client Side

Conclusion:

Monday, February 22, 2010

Booting Linux OS in Apple Xserve Machine

Introductions:
The tutorial discusses about the HowTos' of booting and installing Linux into Mac Xserve server.It tackles some important software tools to emulate IBM BIOS-86 in Apple Xserve machine such as:Refit,Grub and Linux OS distro.

Requirements:
Refit Software
Fedora 12 Live CD ( as of the current Linux OS version)
Xserve 1.1

HowTo's:
1) Download Fedora Live CD 1X?
http://download.fedoraproject.org/pub/fedora/linux/releases/12/Live/i686/Fedora-12-i686-Live.iso

2) Download and Install refit for Mac
http://refit.sourceforge.net/

3) Download Grub files
http://www.4elements.com/files/grub.zip

4)Copy and unzip grub.zip in your root/EFI/ directory.
mainlib.db1# vi /root/EFI/ *.*

5)Configure grub.conf and modify to the following setting.
mainlib.db1# vi /root/EFI/grubefi/grub.conf
__________________________________________________________________
#
grub.cfg pxw 20090623
timeout=20
default=0
set F1=ctrl-x

set F2=ctrl-c
set color_normal=yellow/blue

menuentry "Loading Kernel"
{
fakebios root=cd0
linux /isolinux/vmlinuz0
root=CDLABEL=Fedora-11-x86_64
rootfstype=auto ro liveimg rhgb single acpi=force irqpoll video=efifb nomodeset
initrd /isolinux/initrd0.img
}

menuentry "Fedora-11-x86_64-Live CD boot"
{
fakebios root=cd0
linux /isolinux/vmlinuz0
root=CDLABEL=Fedora-11-x86_64
rootfstype=auto ro liveimg rhgb single acpi=force irqpoll video=efifb nomodeset
initrd /isolinux/initrd0.img
}

menuentry "REBOOT" {

reboot

}
_________________________________________________________________________________

6)Run the script in the shell prompt by executing the following cli command.
mainlib.db1# bash /efi/refit/enable-always.sh

7)Reboot the Xserve Machine.

8) Then Press "alt" Key first to load reFit Menu on Mac Xserve Machine

9) You will see the screen would be appearing so-Detail(3) ;

10)Select /grubefi(Linux icon) to boot on fedora Live CD.

11)During Live CD boot up -Detail(2) , a kernel configurations would be displayed.

12) Select a Menu-entry "Loading the Kernel" to load a kernel .If booting does not continue -Detail(2); select Menu-entry "Fedora-11-x86_64-Live CD boot" to load the image as well.

13) and the rolling of txts will end to root@localhost# prompt.

14) Edit X11.conf by using nano editor(default)
root@localhost# nano /etc/X11/X11.conf

Note:
(control+o is save and control+x is close)
_________________________________________________________________________________

Section "Device"
Identifier "fbdev driver"
Driver "fbdev"
EndSection
_________________________________________________________________________________

15) Exit to the shell
root@localhost# exit

16) Wait for the Live CD (Fedora 12) GUUI appear on the Desktop -Detail(6)

Please see Details (1 to 10) for your reference and guidance.


Detail(1) First try on Fedora Refit->Grub on USB Installation


Detail(2)Succesful boot on Grub (Fedora 12 Live CD)


Detail(3) Refit Menu: Apple OSX or Linux-Fedora 12


Detail(4) Roll out of Txt -> Loading the Kernel


Detail(5) Loading the image menu


Detail(6) Setting X11"fdev" before loading GUI to MAC Xserve 1.1

Detail(7) Linux ->Fedora 12 IDE on MAC Xserve


Detail(8)Desktop and applications directory on Live Fedora 12


Detail(9)Accessing the Shell "df- a" command


Detail(10)Accessing its physical drive SATA(master & Slave)


Detail(11) Rewriting and Formatting


Remarks:

The Mac Xserve server successfully boot on Linux OS Live CD (Fedora-12 ),and my next goal is to boot Linux operating system in Mac Xserve machine permanently.

Acknowledgements:
I would like to thank the following people overseas:
Martijn Broeders:
http://www.4elements.com/blog/install_fedora_on_xserve_part_three/


I appreciate much working in one of the most presitgious and "prime university" in the country-Data Center,University of the Philippines
Many thanks also to my co staffs -for the free snacks & meriendas


video