Tuesday, February 12, 2013

sarg report

I am getting below mention error while generating sarg report through webmin.
Please guide me.

Generate Report



Now generating Sarg report from Squid log file /var/log/squid/access.log and all
rotated versions ..

sarg -l /var/log/squid/access.log.1.gz
SARG: Decompressing log file: /var/log/squid/access.log.1.gz > /tmp/sarg-file.in
(zcat)
SARG: Records in file: 22053, reading: 0.00%
SARG: Records in file: 22053, reading: 22.67%
SARG: Records in file: 22053, reading: 45.35%
SARG: Records in file: 22053, reading: 68.02%
SARG: Records in file: 22053, reading: 90.69%
SARG: No records found
SARG: End
SARG: Records in file: 22053, reading: 100.00%
sarg -l /var/log/squid/access.log
SARG: Records in file: 4941, reading: 0.00%
SARG: No records found
SARG: End
SARG: Records in file: 4941, reading: 100.00%
.. Sarg finished, but no report was generated. See the output above for details.


Reply from Group Members

You should upgrade sarg. Version 2.2.3.1 is outdated, is very picky about
the
data it read and contains numerous bugs.

Sarg letest version 2.2.7.1.

Link as per below.

http://prdownloads.sourceforge.net/sarg/sarg-2.2.7.1.tar.gz?download

Please check. 

link for website optimization

Please find the attached link.

http://websiteoptimization.com/services/analyze/

MBR vs GPT

Can somebody explain me what is GPT and EFI
Actually I just read on net that GPT is replacement for MBR and EFI for BIOS(not sure). I come to know that GPT can support upto 9.4 ZB and n number of partiotions(but MBR restricts to approx 2TB and only 4 partitions ).

So can somebody give me detailed and good information/link on GPT,EFI
and good differentiation between MBR and GPT and BIOS and EFI.


Reply from Group Members

Please refer for the link.

*
http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html
*
or also refer *
http://www.ibm.com/developerworks/linux/library/l-gpt/index.html*

*http://www.rodsbooks.com/gdisk/*


and thanks for providing   information.
For  GPT plz refer this link

http://www.querycat.com/question/a43a14e60beb454f8a34ffee2d906d77


For EFI plz refer this link

http://www.webopedia.com/TERM/E/EFI.html


Diffrance Between MBR & GPT

MBR is the standard partitioning scheme that's been used on hard disks since the PC first came out. It supports 4 primary partitions per hard drive, and a maximum partition size of 2TB.

GPT disks are new, and are readable only by Windows Server 2003 SP1, Windows Vista (all versions), and Windows XP x64 Edition. The GPT disk itself can support a volume up to 2^64 blocks in length. (For 512-byte blocks, this is 9.44 ZB - zettabytes. 1 ZB is 1 billion terabytes). It can also support theoretically unlimited partitions.

Windows restricts these limits further to 256 TB for a single partition (NTFS limit), and 128 partitions.

Only Itanium systems running Windows Server 2003 and Windows Vista systems with an EFI BIOS can boot from a GPT disk. The other operating systems mentioned earlier can use GPT disks as data disks but not boot disks.

For more information on GPT, see Problems with larger than 2TB arrays in the General Storage forum, and see Windows and GPT FAQ for additional information.
  

Mysql querry problem

generally iam taking report by querry having statement :

select * from table_name where date(insert_time)='2010-11-01' INTO OUTFILE 'export_report.csv' FIELDS TERMINATED BY ',';

with help of this query i can generate report of perticular date. now I want to such that it shall pickup current date automatically. so that i dont need to insert date daily.
Pls help me.


Reply from Group Members


According to your suggestion i wrote following command includes querry. So that we can run directaly from bash prompt.
but when i execute this command command is not stoped automaticaly. and when i stop this command it generated file having size in gb.

mysql -u root -e "select * from table_name  where  date(insert_time)=CURDATE() INTO OUTFILE 'export_report.csv' FIELDS TERMINATED BY ',';  database_name
 

Or
 
select * from table_name where date CURDATE() INTO OUTFILE 'export_report.csv' FIELDS TERMINATED BY ',';

mysql> SELECT CURDATE();

+------------+

| CURDATE()  |

+------------+

| 2010-11-12 |

+------------+

1 row in set (0.01 sec)



mysql>
Its having 12973 entries when checked with

mysql > select count(*) from table_name;
one more thing i want to share that if i execute this query in mysql prompt with adding date manually then csv file generated having size of 2mb only..

HTTPD 2.2.8 Problem

I have successfully compiled HTTPD 2.2.8 on my Cent OS 5.4 & made sim link for httpd daemon under /usr/sbin. Now I can start my httpd 2.2.8 with # service httpd start command.

I am able to start the service, But when I try to restart the httpd it's showing me below error message. To restart httpd I need to kill process everytime.

Stopping httpd:                       
                    [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

Below is my netstat status.
# netstat -antp | grep httpd
tcp        0      0 :::80                       :::*                        LISTEN      4154/httpd 

# ps aux | grep httpd
root      4154  0.3  0.1   7524  2308 ?        Ss   12:33   0:00 /usr/sbin/httpd
daemon    4156  0.0  0.1   7660  1640 ?        S    12:33   0:00 /usr/sbin/httpd
daemon    4157  0.0  0.1   7660  1640 ?        S    12:33   0:00 /usr/sbin/httpd
daemon    4158  0.0  0.1   7660  1640 ?        S    12:33   0:00 /usr/sbin/httpd
daemon    4159  0.0  0.1   7660  1640 ?        S    12:33   0:00 /usr/sbin/httpd
daemon    4160  0.0  0.1   7660  1640 ?        S    12:33   0:00 /usr/sbin/httpd
root      4185  0.0  0.0   4000   712 pts/1    S+   12:34   0:00 grep httpd

Please suggest.......




Reply from Group Members

you change httpd default port and check.

you can edit your httpd.conf file and look for where it says
Listen:80
replace to 44.

save and exit

restart httpd service.

and check.
 

try this also

give this command

#httpd -v
out put will be (2.2.8)
#service httpd restart
out put will be ((98)Address already in use: make_sock: could not bind to

> address [::]:80
> (98)Address already in use: make_sock: could not bind to address
> 0.0.0.0:80)
# updatedb
(for updating database of rpm)
#which httpd.pid
(which show latest httpd.pid path if not ) =====> copy this path for future
updation
#vim /etc/init.d/httpd

do change here
==============================
=====================
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/usr/local/apache2/httpd.pid} =====> as per u r new
httpd.pid path i m

lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

====================================================

save this and restart httpd ...

i am sure ....it work..



Your solution works thanks, Actually in new apache i.e 2.2.8 httpd.pid default path is /usr/local/apache2/log/httpd.pid (In my case). I have given this path in init script & it works.

types of dns record

1.Resource record (RR)
2.pseudo resource records
3.
Obsolete record typeshttp://en.wikipedia.org/wiki/List_of_DNS_record_types#Other_types_and_pseudo_resource_records

gnu gpl

Mounting Home

I have installed Ubuntu 1010 and i have created partion" / " swap only is that possible to to mount /home or /opt

suggest me


Actually i want mount separately /home /opt /usr /etc. now the situation while i installing time i have just create " /" & swap part ion due to that /home /opt / usr are in / partion

so is there is any way to mount it separately as /home /opt


i dont want reinstall coz i have some data

kindly suggest me


Reply from Group Members

Yes you can be mount all direcorty in seprate.

just create new partition and mount.
for example:-

#mount /dev/sdx /home
after check df -kh

showing ur partition is mounted its temporary mounted if u want to permenent
mounting then go to fstab file put the entry in this way
/dev/sdx   /home  ext3    defaults   0 0

after u added entry in fstab file give this cmd for update for kernel

# mount -a

 

/etc/initab entries

after solvinf the problem of fstab , and rebooting the system, following msg is displayed
INIT: Id "x" respawing too fast:disabled for 5 minutes . so i have attach the initab entries


Reply from Group Members 


Go through this link also http://bugs.centos.org/view.php?id=2692

pppoe---rpm

lz send me ppoe- related rpm for starting internet in linux .
i ve searched it on net bt i didnt get it.so plz help me out........

Link for Attachment

https://docs.google.com/file/d/0B_8BRyZ7ROCDa0YxYWxrbDJJaDQ/edit?usp=sharingp

fedora doesnt boot up

error msg is :
prblm with configuration server
/usr/libexec/gcong-sainty-check-2 exited with status 256

Reply from Group Members

Try this cmd and check .

# chmod 777 /tmp

the command work .my fedora12 started booting

difference between a monolithic kernel and a microkernel

Monolithic kernel has simple design. Monolithic kernel is a single large processes running entirely in a single address space. It is a single static binariy file. All kernel services exist and execute in kernel address space. The kernel can invoke functions directly. The examples of monolithic kernel based OSs are Linux, Unix.

In Microkernels, the kernel is broken down into separate processes, known as servers. Some of the servers run in kernel space and some run in user-space. All servers are kept separate and run in different address spaces.The communication in microkernels is done via message passing. The servers communicate through IPC (Interprocess Communication). Servers invoke "services" from each other by sending messages. The separation has advantage that if one server fails other server can still work efficiently. The example of microkernel based OS are Mac OS X and Windows NT.

Read more: http://wiki.answers.com/Q/What_is_the_difference_between_a_monolithic_kernel_and_a_microkernel#ixzz17ay02joZ

centos 5 error msg while booting

error ms  1) INIT: Id "x" respawing too fast:disabled for 5 minutes

 problem   2) in console i am not able to change change from 1 console
to another

Reply from Group Members

Changed the default runlevel 5 to 3 file is /etc/inittab

after changed runlevel give this cmd for update inittab file.

# init q


after changed runlevel try this cmd

# start x


Your X configuration is probably broken.
So you try to in console give this cmd.

# startx or init 5






Boot runlevel 3.

Open the /etc/X11/xorg.conf file with the following cmd
vim  /etc/X11/xorg.conf

scroll down until you see the section called "Device"

press i to enter insert mode...edit the "Device" Section so it looks something like this:

Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
VideoRam 8192


your adapter may be different than what is above
 save and exit
Once that is done try starting x with startx

Hopefully that will get you to where X will start without killing the monitor.



User Management Command

nis nfs + iptables

5.3.4. Assign Static Ports and Use IPTables Rules

All of the servers related to NIS can be assigned specific ports except for rpc.yppasswdd — the daemon that allows users to change their login passwords. Assigning ports to the other two NIS server daemons, rpc.ypxfrd and ypserv, allows for the creation of firewall rules to further protect the NIS server daemons from intruders.
To do this, add the following lines to /etc/sysconfig/network:
YPSERV_ARGS="-p 834"
YPXFRD_ARGS="-p 835"
The following IPTables rules can be issued to enforce which network the server listens to for these ports:
iptables -A INPUT -p ALL -s! 192.168.0.0/24  --dport 834 -j DROP  or Allow
iptables -A INPUT -p ALL -s! 192.168.0.0/24  --dport 835 -j DROP or ALLOW


or 

write a script
RPC_TCP=`rpcinfo -p 10.0.0.2 | perl -n -e '/.*tcp\s+(\d+)\s+/ && print

$1,"\n"'|sort -u`

for port in $RPC_TCP; do

iptables -A INPUT -p ALL -s! 192.168.0.0/24  --dport $port -j DROP  or Allow

iptables -A INPUT -p ALL -s! 192.168.0.0/24  --dport $port -j DROP or ALLOW

done

for nfs
http://www.cyberciti.biz/faq/centos-fedora-rhel-iptables-open-nfs-server-ports/

epel

http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/

Reply from Group Members

use below command to make epel active
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
finally yum repolist and u will see epel is active now.

Squid integration with AD users

Hi All,

Can you help me how to integrate Squid with AD users. i want to use NT login for authenticate squid.


Reply from Group Members

I have a squid server and my domain controller in windows 2003 server.all windows users should use their NT login (windows login user name and passwd ) to access the inetrnet.

How i do that and what modules i have to add in squid or samba. and i have heard abt LDAP and NTLM authentication.
 

Getting Error while starting FTP

Getting following  Error while starting FTP

Starting vsftpd for vsftpd: 500 OOPS: could not bind listening IPv4 socket
                                                           [FAILED]
  Reply from Group Members

check port 21 is open or not??
i am not sure, this problem is because of access permission.

n what comes in message file ???


Hello Arfat,

Refer  this link

http://www.unixresources.net/linux/lf/36/archive/00/00/01/29/12951.html
http://ubuntuforums.org/showthread.php?t=264003



Also make sure that is is correct
"if you are running it under xinetd, you need to change the vsftpd.conf file to have it NOT listen on port 21 since xinted is already doing that and failing to bind the port makes xinetd whine and die.

turning

listen=YES

at the bottom of /etc/vsftpd/vsftpd.conf into

#listen=YES

will do the trick for you, I suspect.
"
 

Monday, February 11, 2013

Change cent os 5.5 to cent os 5.2

I have a VPS i have Cnetos 5.5 with very limited packages installed at the time of installation. (It was not done by me).

Now i am facing problem with yum. It give me many dependence error (I will paste the error on monday).

I also used other repos like rpmforge

My yum sucks giveing dependence error or some time also ask to degrade some package with is already installed.

Like i was installing some package of php. it was asking for php 5.1 where is my php version is php 5.2

So i need to degrade centos 5.5 to 5.2 let me know if you guys have any idea about it.


Reply from Group Members

try this repo  on centos 5.5
No need to degrade the from fm 5.2 to 5.5 .....
As No one do that in industry

am getting the following error while using yum




[root@ashraf-test yum.repos.d]# rpm -Uvh rpmfusion-free-release-12-1.

noarch.rpm
warning: rpmfusion-free-release-12-1.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 16ca1a56
error: Failed dependencies:
        rpmlib(FileDigests) <= 4.6.0-1 is needed by rpmfusion-free-release-12-1.noarch
        system-release >= 12 is needed by rpmfusion-free-release-12-1.noarch
        rpmlib(PayloadIsXz) <= 5.2-1 is needed by rpmfusion-free-release-12-1.noarch
[root@ashraf-test yum.repos.d]#


Let me know if you guys have faced any issue.

SQUID CONFIGURATION

   Can anybody help me to configure Squid Proxy Server. As of now i know only basic configuration which i learnt during RHCE practise session. Its littlebit urgent.

Solution Given By Group Members

Refer this link
http://ashraflinux.wordpress.com/squid-server/

This not is details i have tryed to make it very short.
If you want every things in details then google it.

Try this...................

# vi /etc/squid/squid.conf

      http_port 8080

      acl our_network 192.168.1.0/24 # ip may be 172.24.0.0/16
      http_access allow our_network

     # chkconfig --level 35 squid on
    
     # service squid restart
For setting up linux servers cyberciti and howtoforge are good sites.

http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html

Kernel Compillation notes required

Can anybody provide me Notes for Kernel Compilation and Kernel Tuning please?

Solution given by group Members

visit below link.
http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html (kernel
compilation)

http://www.redhat.com/magazine/001nov04/features/vm/ ( kernel tunning )


Just google out for "linux kernel +tuning +parameters"

For your reference go through the link below.

http://www.performancewiki.com/linux-tuning.html

not able to log in Alfresco

As i have installed Alfresco (windows sharepoint alternative in linux ) on
rhel 5.4 distro. but not able to log in using below url

http://localhost:8080/share or alfresco

able to to see web page and log in screen but whenever tried to enter
default user name admin it throws below error

Failed to Login
The remote server may be unavailable or your authentication details have not
been recognized.

Please help if anyone has tried Alfresco earlier and has faced same issue.
Thnx in Advance

Solution Given by Group Memebrs

I have follow the instructions as per below url
http://element14.wordpress.com/2007/07/05/howto-install-alfresco-on-linux-sharepoint-alternative/

it was just simple installation. while installing prompted to enter ports &
passwords for mysql and admin user. Do i need to configure it to connect the
Database? so please share docs if available. Thnx,

Regards,
Rajiv Patil

MTNL sterlite router setting

May i know whether some one knows about mtnl router setting for port forwarding .
I was able to open the port but the purpose of it was not full fill. So, if possible please let me know so that i would contact you personally for its solution.




Solution Given By Group Members


Re: Port forwarding on MTNL MT882

Hi MTNL Broadband user,

Try this step by step to resolve your problem.

1) login to your modem
2) go to  advance
3) click on "LAN Clients"
4) Enter your IP Address of your computer
5) Apply the settings
6) Then go to port forwarding page
7) you can see so many ports in that page.
8) If you want to forward " web server" then select servers, chose as web server and forward the port.
9) click on apply
10) go to tools menu
11) select system commands
12) click on save all to take changes permanently.

And Plz try this also

step 1: check your gateway ip
(see the network icon below on right hand side, click on that,there are 2 tabs general and support. click on support tab. and see the gateway ip, mostly it is 192.168.1.1)

step 2: open internet explorer or firefox whatever u use. And put that gateway ip in the address bar and press enter.

step 3: now it will ask for username and passwd. put your modem username and password. mostly by default it is username is admin and password also admin.

step 4: Now goto "Advanced" tab and click on it.

step 5: Now u will see options on the left side. There should be one option "Virtual Server", click on that.

step 6: Now u will be on the port forwarding page.
In private ip, u fill ur lan card ip. Your lan card ip will be same place where was your gateway ip, just above gateway ip.

step 7: in port box fill up the port number u want to forward and select the port type from the side select menu(TCP or UDP ports).

step 8: click on apply and then save and reboot.

step 9: "save and reboot" option will be in "misc" tab or in "firewall" tab, so u need to use ur mind also
 

Error in kernel compilation



I have compiled the following two kernels enabling the NTFS module & other modules as it is on RHEL5. All cmd run successfully.

2.6.18.8 & 2.6.35

at the time of creating the initrd image, with the respective cmd, the following error pops-up

For the kernel 2.6.18.8

Cmd: -mkinitrd /boot/initrd-2.6.18.8.img 2.6.18.8
Error:- No module ata_piix found for kernel 2.6.18.8, aborting.

For the kernel 2.6.35

Cmd:- mkinitrd /boot/initrd-2.6.35.img 2.6.35
Error_ No module ehci-hcd found for kernel 2.6.35, aborting.

The following Kernels module are in lib/modules dir.

ls /lib/modules/

2.6.18.8 2.6.18-92.el5 2.6.

jboss

Tomcat log issue

Hi,
We are running Tomcat on two different servers. One is Tomcat5 comes under
RHEL5.2 DVD, Other is Tomcat5.5.28 from Tomcat website. Both are running on
RHEL5.2
Downloaded Tomcat shows " catalina.out, admin.log, catalina.log,
host-manager.log, localhost.log, manager.log " in log directory.
while Tomcat5 installed from DVD shows only "catalina.out" log. we need all
above logs in this server too.

In logging.properties following line are already define

"
1catalina.org.apache.juli.
FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.
2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.
3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.
4admin.org.apache.juli.FileHandler.level = FINE
4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4admin.org.apache.juli.FileHandler.prefix = admin.
5host-manager.org.apache.juli.FileHandler.level = FINE
5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5host-manager.org.apache.juli.FileHandler.prefix = host-manager.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter "

 

How to copy files from a Windows xp to a Red Hat Linux machine

How to copy files from a Windows xp to a Red Hat Linux machine.
Please give me the steps to do the above procedure.

Solution given by Group Members

There's a number of ways you can do this and the best method will depend on
both your skills, the size of the files and resources available.

1) The most straight forward method would be to copy the files to removable
media (CD/DVD).

2) SCP is another option, you'll need an SSH client to do this, for which
I'd recommend Putty and PSCP *
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html* if you're
comfortable working from the command line. Alternatively use WinSCP *
http://winscp.net/eng/index.php*
if you prefer to use an explorer type interface

Or

3) Setup an SMB share on the Linux box using Samba. This option is worth
considering if you intend to move files to and from on a regular basis.

How does share internet connection in RHL 5

What's your requirement can you tell me?

Normally, it is good plan to use NAT to share Internet.



Solution Given by Group Members

Login as the root user. Open /etc/sysctl.conf file
# vi /etc/sysctl.conf
Add the following line to enable packet forwarding for IPv4:
net.ipv4.conf.default.

forwarding=1
Save and close the file. Restart networking:
# service network restart

Step # 2: Enable IP masquerading

In Linux networking, Network Address Translation (NAT) or Network Masquerading (IP Masquerading) is a technique of transceiving network traffic through a router that involves re-writing the source and/or destination IP addresses and usually also the TCP/UDP port numbers of IP packets as they pass through. In short, IP masquerading is used to share the internet connection.
Share internet connection

To share network connection via eth1, enter the following rule at command prompt (following useful for ppp0 or dial up connection):
# service iptables stop
# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
# service iptables save
# service iptables restart

Open your Windows / Mac / Linux computer networking GUI tool and point router IP to 192.168.1.254 (eth0 Linux IP). You also need to setup DNS IP such as 208.67.222.222 and 208.67.220.220. You should now able to ping or browse the internet:
c:> ping 202.54.1.20
c:> ping google.com

Shell Script to Setup Basic Linux Network Sharing

This is basic connection sharing, following shell script is for more advance user. [ Download the script here and modify SHARE_IF as per your requirements. ]

#!/bin/bash
# Created by joseph saj
IPT="/sbin/iptables"
MOD="/sbin/modprobe"

# set wan interface such as eth1 or ppp0
SHARE_IF="eth1"

# clean old fw
echo "Clearing old firewall rules..."
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT

# Get some kernel modules
echo "Loading kernel modules..."
$MOD ip_tables
$MOD iptable_filter
$MOD iptable_nat
$MOD ip_conntrack
$MOD ipt_MASQUERADE
$MOD ip_nat_ftp
$MOD ip_nat_irc
$MOD ip_conntrack_ftp
$MOD ip_conntrack_irc

# Clean old rules if any, rhel specific but above will take care of everything
# service iptables stop

# unlimited traffic via loopback device
$IPT -A INPUT -i lo -j ACCEPT
$IPT -A OUTPUT -o lo -j ACCEPT

echo "Setting ${SHARE_IF} as router interface..."
$IPT --table nat --append POSTROUTING --out-interface ${SHARE_IF} -j MASQUERADE

# Start other custom rules
#$IPT
# End other custom rules

echo "*** Instructions on TCP/IP On The Windows / Mac / Linux Masqueraded Client ***"
echo "1. Login to your other LAN desktop computers"
echo "2. Open network configuration GUI tool such. Under Windows XP - Click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections"
echo "3. Set DNS (NS1 and NS2) to 208.67.222.222 and 208.67.220.220"
echo "4. Select the 'Gateway' tab in the TCP/IP properties dialog."
echo "5. Enter $(ifconfig ${SHARE_IF} grep 'inet addr:' grep -v '127.0.0.1' cut -d: -f2 awk '{ print $1}') as the default gateway."

Pxe boot & kickstart server

want to make fedora 13 as pxe boot server can sombody help me out.




Solution Given by Group Members


You can also follow below link.

http://linux-sxs.org/internet_serving/pxeboot.html

Pxe boot & kickstart server


no members added in the groups while i do groupadd

Whenver i create any user in the groups, We can check the /etc/grops file
whether it has been added or not.

But whenver i check the above file, i dont see members added in the group.
Please advise.

I do the following things:

[root@localhost ~]# groupadd hewit
[root@localhost ~]# vigr
vigr: no changes made
vigr: /etc/group unchanged
[root@localhost ~]# gpasswd hewit
Changing the password for group hewit
New Password:
Re-enter new password:
[root@localhost ~]# su - vipul
[vipul@localhost ~]$ newgrp hewit
Password:
[vipul@localhost ~]$ su - root
Password:
[root@localhost ~]# vigr
vigr: no changes made
vigr: /etc/group unchanged
[root@localhost ~]#

 Solution Givin By Group Members
  You means you want to add user vipul to  hewit group then give this cmd.

# usermod -G hewit vipul

and after check file /etc/group.

Tell me its working or not.

Error in Installing XMMS

am installing xmms-1.2.11 tar ball using source code method.

I extracted the tar and ran ./configure . but i am getting this error
.(Shown in RED Below)

[root@localhost Desktop]# cd xmms-1.2.11
[root@localhost xmms-1.2.11]# ls
ABOUT-NLS config.h.in COPYING Input Makefile.am
README xmms.1.in
acinclude.m4 config.log depcomp INSTALL Makefile.in
TODO xmms-config.in
aclocal.m4 config.rpath Effect install-sh missing
Visualization xmms.m4
AUTHORS config.sub FAQ intl NEWS
wmxmms xmms.spec
ChangeLog configure General libxmms Output wmxmms.1.in
xmms.spec.in
config.guess configure.in glib-1.2.0 ltmain.sh po xmms
[root@localhost xmms-1.2.11]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for prefix by checking for xmms... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
*configure: error: no acceptable C compiler found in $PATH*

[root@localhost xmms-1.2.11]# $PATH
bash:
/usr/kerberos/sbin:/usr/
kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:
No such file or directory




Solution Given by Members

Install GCC compiler by using yum or rpm in redhat, fedora and centos.
or you using ubuntu then aptitude install gcc give this cmd.
 it's required to compile. GCC is a compiler.


Sir, give this task intentionally...to learn rpm.i have installed it successfully. i think this link will help to to resolve ur dependencies.                                
            http://pkgs.org/
 

history with timestamp

History is a common command for shell to list out all the executed commands.
It is very useful when it comes to investigation on what commands was
executed that tear down the server. With the help of *last* command, you be
able to track the login time of particular user as well as the the duration
of the time he/she stays login

[image: last cmd.bmp]

If the command line history could provides the date time of the commands
being executed, that may really narrow down the scope of the user actions
that cause the server malfunction. By default, history do not append with
timestamp, but it is easy to configure it to display timestamp, you just
need to set one environment variable *HISTTIMEFORMAT*.

*HISTTIMEFORMAT* takes format string of *strftime*. Check out the strftime
manual to choose and construct the timestamp that suit your taste. My
favorite is “%F %T “.

*HISTTIMEFORMAT* takes format string of *strftime*. Check out the strftime
manual to choose and construct the timestamp that suit your taste. My
favorite is “%F %T “.

[image: 1.bmp]
Execute *history* again and you will see the effect on the spot, bare in
mind that the timestamp for command lines that executed at previous sessions
may not valid, as the time was not tracked.

[image: 2.bmp]

you to put the export into ~/.bash_profile as well as /root/.bash_profile.
In case you do not have .bash_profile, you can choose to put into ~/.bashrc.


What is kjournald?

Kjournald is the journaling kernel thread for ext3 filesystem. You should have one for each mounted ext3 filesystem.
      Killing the journaling process may trash the filesystem, the minimum consequence is that the filesystem switches to read-only mode and you must reboot, run fsck on the filesystem, and reboot again.


Solution Not Given By Group Memebrs

where is the inode table stored?how many fields are thier in an inode table?

When a Linux filesystem is created, its structure is specified and a table
that maps file references (names) to actual physical location is created.
Almost all information related to a file is stored in this table. This *inode
table* is central to Linux. The inode table contains an entry for every file
in the Linux filesystem. This entry indicates the file's actual location on
the disk. The entry also contains information about the file's owner and
permissions, among other things. Each file on the filesystem contains a
pointer (in bytes) to the offset of the file's entry in the inode table; the
OS 'jumps' the offset amount of bytes to get to the file's entry in the
inode table.



Solution Given by Group Members

it is generally stored at the starting of the block where file is started.
and this inode is loaded into main memory , stored in a table,which is used
for further accesses.

Go through with the below link for detailed information.

http://book.opensourceproject.org.cn/kernel/kernel3rd/opensource/0596005652/understandlk-chp-18-sect-2.html
 

stateless server and nslookup

A stateless Linux server is a centralized server in which no state exists on
the single workstations. There may be scenarios when a state of a partilcuar
system is meaningful (A snap shot is taken then) and the user wants all the
other machines to be in that state. This is where the stateless Linux server
comes into picture.

Features:

    * It stores the prototypes of every machine
    * It stores snapshots taken for those systems
    * It stores home directories for those systems
    * Uses LDAP containing information of all systems to assist in finding
out which snapshot (of state) should be running on which system.

 link :-
http://people.redhat.com/dmalcolm/stateless/stateless-linux-HOWTO-en/


 I am not sure about stateless Linux server but you please check is it
correct.



Non-interactive mode in nslookup


*Nslookup* is a program to query Internet domain name servers. *Nslookup *has
two modes: interactive and non-interactive. Interactive mode allows the user
to query name servers for information about various hosts and domains or to
print a list of hosts in a domain. Non-interactive mode is used to print
just the name and requested information for a host or domain.







Network Error Issues faced

Hi All,
I am not able to ping to my local network in ubuntu 9.04 mii-tools commonds showing link is ok only self ping and loop back is working but not ping to other machine which is in lan.
here my logs file.

Oct  1 03:39:06 escon-333 kernel: [    9.134075] type=1505 audit(1285884545.560:8): operation="profile_load" name="/usr/sbin/cupsd" name2="default" pid=1924
Oct  1 03:39:06 escon-333 kernel: [    9.159001] type=1505 audit(1285884545.584:9): operation="profile_load" name="/usr/sbin/tcpdump" name2="default" pid=1928
Oct  1 03:39:06 escon-333 kernel: [    9.366191] r8169: eth0: link up
Oct  1 03:39:06 escon-333 kernel: [    9.366198] r8169: eth0: link up
Oct  1 03:39:08 escon-333 kernel: [   11.627143] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Oct  1 03:39:08 escon-333 kernel: [   11.627146] Bluetooth: BNEP filters: protocol multicast
Oct  1 03:39:08 escon-333 kernel: [   11.635528] Bridge firewalling registered
Oct  1 03:39:09 escon-333 kernel: [   12.889729] [drm] Initialized drm 1.1.0 20060810
Oct  1 03:39:09 escon-333 kernel: [   12.897602] pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Oct  1 03:39:09 escon-333 kernel: [   12.897752] [drm] Initialized i915 1.6.0 20080730 on minor 0


Solution

As per my knowledge you cannot ping your gateway also.

when you start or restart your network service what is the error showing?

or can u paste here your network configuration in /etc/network/interfaces.

or also check u r iptables rules in your machine.

Negios & SVN

Hello,

You want nagios documentation follwo below links.

http://library.nagios.com/library/products/nagioscore/manuals/


I am configured nagios in centos.
nagios steps as below.
Before Installation check the Prerequisites.
like this
#rpm -qa | grep httpd
If the prerequisite not installed ..use the following steps to install.
#yum install httpd php
#yum install gcc glibc glibc-common
#yum install gd gd-devel
Once you installed then follow next steps
Add Nagios user
#useradd -m nagios
#passwd nagios
Now add Group,Add both the nagios user and the apache user to this group.
#groupadd nagcmd
#groupadd nagcmd
#usermod -a -G nagcmd nagios
#usermod -a -G nagcmd apache

1) Download latest nagios stable release version.
Suppose you downloaded both packages under /usr/local/src dir
#cd /usr/local/src
Now Extract nagios package
#tar -xvzf nagios-3.2.0.tar.gz
#cd nagios-3.2.0
Now Run this command to script...
#./configure --with-command-group=nagcmd
Compile the Nagios source code.
#make all
Install binaries, init script, sample config files and set permissions on
the external command directory
#make install
#make install-init
#make install-config
#make install-commandmode

Now add you email id in configuration
#vi /usr/local/nagios/etc/objects/
contacts.cfg
on line number 35 you found like this
email nagios@localhost ; <<**** * CHANGE THIS TO YOUR EMAIL ADDRESS ******

Add your mail id..on which you want the alerts.
Save the file & quit.
Now configure web interface
cd /usr/local/src
#tar -xvzf nagios-plugins-1.4.14.tar.gz
#cd nagios-plugins-1.4.14
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
#chkconfig  nagios on
Verify the Nagios configuration files.
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
if there are no errors, start Nagios.
#service nagios start
Now login on web interface.
http://your-machine-ip/nagios/

Note:-- On Red Hat machines you find message like this------------
configure: See
http://nagiosplugins.org/faq/compile/configure_appears_to_hang if this next
part takes a long time
checking for redhat spopen problem...
To solve this run the following command.
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
--enable-redhat-pthread-workaround

Try and tell me its working or not .
Or any other method tell me.