July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

LVM in linux

LVM in linux

Logical Volume Management[LVM]

LVM is a logical volume manager for the Linux kernel; it manages disk drives and similar mass-storage devices, in particular large ones. The term “volume” refers to a disk drive or partition. Every system contains Physical Volums[PV]. Such as hard disks, partitions or external storages. Volume management treats PVs […]

Recovery of deleted /etc/passwd File in Linux

Recovery of deleted /etc/passwd File in Linux In that case you need to recover /etc/passwd file first. For this you have to following steps, -Start GRUB on boot (press ESC while booting) -Press e over (recovery mode) -Press e over the line beginning with kernel -Press Space bar and enter “init=/bin/bash” -Press enter -Press b […]

How to secure reverse proxy or Forward proxy

How to secure reverse proxy or Forward proxy

 

ProxyPreserveHost On

<Proxy *> Order deny,allow Allow from all </Proxy>

ProxyPass /gonvaled/examples/jsonrpc/output/services/ http://localhost:8000/services/ ProxyPassReverse /gonvaled/examples/jsonrpc/output/services/ http://localhost:8000/services/

<IfModule mod_proxy.c> #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email.

ProxyRequests Off <Proxy *> AddDefaultCharset off Order Allow,Deny Allow from […]

Linux Commands

To view System Resource Information uname –help uname -r grep model /proc/cpuinfo grep MemFree /proc/meminfo sudo -u root lastcomm -f /var/account/pacct cat /proc/version # cat /proc/cpuinfo # cat /proc/meminfo # cat /proc/zoneinfo # cat /proc/mounts cat /etc/redhat-release grep MemTotal /proc/meminfo grep SwapTotal /proc/meminfo df -k /tmp grep “model name” /proc/cpuinfo ifconfig (/sbin/ifconfig) uaname -r lshal:detected […]

Mount Points and /etc/fstab

Mount Points and /etc/fstab

/etc/fstab is referenced each time the system boots. It consists fields like device name, mount point, file system type, fsck order like 0 = ignore, 1=fist, 2-9 = second, and third, etc. After the filesystem is created in /etc/fstab, it’s important to use the mount-a to mount the filesystem just created […]

Monitor Your System Performance

Monitor Your System Performance in Linux

 

@server ~]# uptime 13:14:02 up 1:30, 2 users, load average: 0.04, 0.26, 0.27

[root@server ~]# ps -eo %u | sort | uniq -c | sort -rn

[root@server ~]# sar -c ## Process/sec Linux 2.6.18-164.el5 (server.scratch.com) 08/24/2011

11:50:01 AM proc/s 12:00:01 PM 6.87 12:10:01 PM 6.90 12:20:01 PM 7.10 […]

Learn MySQL

Learn MySQL How To Connect MySQL Database Tutorial Example

Open your MySQL Client tools then copy & paste the below code to Connect to MySQL database server

— mysql.exe location: c:\xampp\mysql\bin\mysql.exe — host: localhost — username: root — password: *** — modify your host location, username, password accordingly. — i am using dos prompt as […]