<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6911492927288773923</id><updated>2024-11-01T04:34:05.406-07:00</updated><title type='text'>V V LINUX</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-311298400640795473</id><published>2010-02-10T23:30:00.000-08:00</published><updated>2010-02-10T23:32:15.630-08:00</updated><title type='text'>Pear module Installation Procedure for Linux</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;Pear module Installation Procedure for Linux&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;================================&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 1&lt;/b&gt;:First check whether Pear package installed or not by command &#39;pear&#39;.If exists it shows the list of packages(buld,list,install,update,info,...)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To check packages installed type command - pear list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 2&lt;/b&gt;:If not,get go-pear.php from http://pear.php.net/go-pear.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 3&lt;/b&gt;:Go to Command prompt &amp;amp; click command &#39;php go-pear.php&#39; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To update your PEAR installation, request &lt;a href=&quot;http://pear.php.net/go-pear&quot;&gt;http://pear.php.net/go-pear&amp;nbsp;&lt;/a&gt; in your browser and save the output to a local file go-pear.php. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;You can then run this command to install or update -&amp;nbsp; php go-pear.php.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 4&lt;/b&gt;:After giving command php go-pear.php,it will ask for the path where to install,give the required path (Ex:/usr/) &amp;amp; press Enter,the packages will get downloaded &amp;amp; finally if the installation is successfull ,it will ask for that you want to alter php.ini file - click on yes,that will include path in php.ini automatically.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 5&lt;/b&gt;:Install add-on packages i.e; Mail,Mail_mime,Net_SMTP by giving following commands&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;pear install Mail&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;pear install Mail_mime&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;pear install Net_SMTP&amp;nbsp;&amp;nbsp; &amp;amp; if it is succesfully installed ,you will get message channel installed successfully.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 6&lt;/b&gt;:Write a sample file as below given &amp;amp; save it in php folder as mailsmtp.php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$current_path=ini_get(&quot;include_path&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;ini_set(&quot;include_path&quot;,&quot;$current_path:/usr/PEAR:/usr/share/mime&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;include(&quot;Mail.php&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;include(&quot;Mail/mime.php&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;//echo $current_path; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;//echo ini_get(&quot;include_path&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $message = new Mail_mime(); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $text = file_get_contents(&quot;mail_text.txt&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $html = file_get_contents(&quot;mail_html.html&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $message-&amp;gt;setTXTBody($text); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $message-&amp;gt;setHTMLBody($html); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $body = $message-&amp;gt;get(); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $extraheaders = array(&quot;From&quot;=&amp;gt;&quot;raja_taraka@yahoo.co.in&quot;, &quot;Subject&quot;=&amp;gt;&quot;My Subject 7&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $headers = $message-&amp;gt;headers($extraheaders); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mail = Mail::factory(&quot;mail&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mail-&amp;gt;send(&quot;raja.marni@gmail.com&quot;, $headers, $body); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;/*&amp;nbsp;&amp;nbsp; include(&#39;Mail.php&#39;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$smtpinfo[&quot;host&quot;] = &quot;localhost&quot;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$smtpinfo[&quot;port&quot;] = 25; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$smtpinfo[&quot;auth&quot;] = false; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$smtpinfo[&quot;username&quot;] = &quot;&quot;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;$smtpinfo[&quot;password&quot;] = &quot;&quot;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp; $mail = Mail::factory(&quot;smtp&quot;,$smtpinfo); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $headers = array(&quot;From&quot;=&amp;gt;&quot;raja_taraka@yahoo.co.in&quot;, &quot;Subject&quot;=&amp;gt;&quot;Test Mail&quot;); &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $body = &quot;This is a test using pear mail!&quot;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mail-&amp;gt;send(&quot;raja.marni@gmail.com&quot;, $headers, $body);&amp;nbsp;&amp;nbsp;&amp;nbsp; */ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;echo &quot;finished.....Dude!&quot;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;?&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Step 7:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;finally run on browser:192.168.0.9/php/mailsmtp.php.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/311298400640795473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/02/pear-module-installation-procedure-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/311298400640795473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/311298400640795473'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/02/pear-module-installation-procedure-for.html' title='Pear module Installation Procedure for Linux'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-2866055461505679841</id><published>2010-01-28T04:20:00.000-08:00</published><updated>2010-01-28T04:20:50.193-08:00</updated><title type='text'>Find urSystem Information by sar command</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://www.rpmfind.net/linux/rpm2html/search.php?query=sysstat&quot;&gt;System Activity Information: sar&lt;/a&gt;&lt;br /&gt;
To use sar, sadc (system activity data collector) needs to be running. Check its status or start it with rcsysstat {start|status}.&lt;br /&gt;
sar can generate extensive reports on almost all important system activities, among them CPU, memory, IRQ usage, IO, or networking. With its many options, it is too complex to explain further here. Refer to the man page for extensive documentation with examples.&lt;br /&gt;
&lt;br /&gt;
Memory Usage: free&lt;br /&gt;
The utility free examines RAM usage. Details of both free and used memory and swap areas are shown:&lt;br /&gt;
poison:~ # free&lt;br /&gt;
total used free shared buffers cached&lt;br /&gt;
Mem: 450128 398428 51700 0 10280 141204&lt;br /&gt;
-/+ buffers/cache: 246944 203184&lt;br /&gt;
Swap: 514040 182656 331384&lt;br /&gt;
&lt;br /&gt;
The options -b,-k,-m,-g show output in bytes, KB, MB, or GB, respectively&lt;br /&gt;
&lt;br /&gt;
User Accessing Files: fuser&lt;br /&gt;
It can be useful to determine what processes or users are currently accessing certain files. Suppose, for example, you want to unmount a file system mounted at /mnt. umount returns “device is busy.” The command fuser can then be used to determine what processes are accessing the device:&lt;br /&gt;
&lt;br /&gt;
poison:~ # fuser -v /home/nikesh/&lt;br /&gt;
&lt;br /&gt;
USER PID ACCESS COMMAND&lt;br /&gt;
/home/nikesh/: nikesh 5476 ..c.. su&lt;br /&gt;
&lt;br /&gt;
Kernel Ring Buffer: dmesg&lt;br /&gt;
poison:~ # dmesg | more&lt;br /&gt;
&lt;br /&gt;
Linux version 2.6.18.2-34-default (geeko@buildhost) (gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)) #1 SMP Mon Nov 27&lt;br /&gt;
11:46:27 UTC 2006&lt;br /&gt;
BIOS-provided physical RAM map:&lt;br /&gt;
BIOS-e820: 0000000000000000 - 000000000009f400 (usable)&lt;br /&gt;
BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)&lt;br /&gt;
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)&lt;br /&gt;
BIOS-e820: 0000000000100000 - 000000001bef0000 (usable)&lt;br /&gt;
BIOS-e820: 000000001bef0000 - 000000001bef3000 (ACPI NVS)&lt;br /&gt;
BIOS-e820: 000000001bef3000 - 000000001bf00000 (ACPI data)&lt;br /&gt;
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)&lt;br /&gt;
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)&lt;br /&gt;
0MB HIGHMEM available.&lt;br /&gt;
446MB LOWMEM available.&lt;br /&gt;
found SMP MP-table at 000f5e30&lt;br /&gt;
On node 0 totalpages: 114416&lt;br /&gt;
DMA zone: 4096 pages, LIFO batch:0&lt;br /&gt;
Normal zone: 110320 pages, LIFO batch:31&lt;br /&gt;
DMI 2.3 present&lt;br /&gt;
…………………&lt;br /&gt;
&lt;br /&gt;
List of Open Files: lsof.&lt;br /&gt;
To view a list of all the files open for the process with process ID PID, use -p. For example, to view all the files used by the current shell, enter:&lt;br /&gt;
&lt;br /&gt;
poison:~ # lsof -p $$&lt;br /&gt;
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME&lt;br /&gt;
bash 4700 root cwd DIR 3,6 4096 1811521 /root&lt;br /&gt;
bash 4700 root rtd DIR 3,6 4096 2 /&lt;br /&gt;
bash 4700 root txt REG 3,6 557704 913931 /bin/bash&lt;br /&gt;
bash 4700 root mem REG 3,6 131115 2139537 /lib/ld-2.5.so&lt;br /&gt;
bash 4700 root mem REG 0,0 0 [heap] (stat: No such file or directory)&lt;br /&gt;
bash 4700 root mem REG 3,6 42546 2137956 /lib/libnss_files-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 238464 344723 /usr/lib/locale/en_US.utf8/LC_CTYPE&lt;br /&gt;
bash 4700 root mem REG 3,6 1494633 2140298 /lib/libc-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 16082 2140299 /lib/libdl-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 294652 2140313 /lib/libncurses.so.5.5&lt;br /&gt;
bash 4700 root mem REG 3,6 28088 2140319 /lib/libhistory.so.5.1&lt;br /&gt;
bash 4700 root mem REG 3,6 192840 2140316 /lib/libreadline.so.5.1&lt;br /&gt;
bash 4700 root mem REG 3,6 42325 2137960 /lib/libnss_nis-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 95913 2140304 /lib/libnsl-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 32135 2137952 /lib/libnss_compat-2.5.so&lt;br /&gt;
bash 4700 root mem REG 3,6 25460 329733 /usr/lib/gconv/gconv-modules.cache&lt;br /&gt;
bash 4700 root 0u CHR 136,4 6 /dev/pts/4&lt;br /&gt;
bash 4700 root 1u CHR 136,4 6 /dev/pts/4&lt;br /&gt;
bash 4700 root 2u CHR 136,4 6 /dev/pts/4&lt;br /&gt;
bash 4700 root 255u CHR 136,4 6 /dev/pts/4&lt;br /&gt;
&lt;br /&gt;
Interprocess Communication: ipcs&lt;br /&gt;
The command ipcs produces a list of the IPC resources currently in use:&lt;br /&gt;
poison:~ # ipcs&lt;br /&gt;
—— Shared Memory Segments ——–&lt;br /&gt;
key shmid owner perms bytes nattch status&lt;br /&gt;
0×00000000 98304 root 600 33554432 7 dest&lt;br /&gt;
0×00000000 32769 root 666 66136 2 dest&lt;br /&gt;
0×00000000 524290 root 600 393216 2 dest&lt;br /&gt;
0×00000000 557059 root 600 393216 2 dest&lt;br /&gt;
0×00000000 589828 root 600 393216 2 dest&lt;br /&gt;
0×00000000 622597 root 600 393216 2 dest&lt;br /&gt;
0×00000000 786438 root 666 131040 1 dest&lt;br /&gt;
&lt;br /&gt;
—— Semaphore Arrays ——–&lt;br /&gt;
key semid owner perms nsems&lt;br /&gt;
0×00000000 65536 wwwrun 600 1&lt;br /&gt;
0×00000000 98305 wwwrun 600 1&lt;br /&gt;
&lt;br /&gt;
—— Message Queues ——–&lt;br /&gt;
key msqid owner perms used-bytes messages&lt;br /&gt;
&lt;br /&gt;
Process Tree: pstree&lt;br /&gt;
The command pstree produces a list of processes in the form of a tree:&lt;br /&gt;
&lt;br /&gt;
Processes: top&lt;br /&gt;
The command top, which stands for “table of processes,” displays a list of processes that is refreshed every two seconds. To terminate the program, press Q. The parameter -n 1 terminates the program after a single display of the process list. The following is an example output of the command top -n 1:&lt;br /&gt;
&lt;br /&gt;
Who Is Doing What: w&lt;br /&gt;
With the command w, find out who is logged onto the system and what each user is doing. For example:&lt;br /&gt;
&lt;br /&gt;
poison:~ # w&lt;br /&gt;
00:32:58 up 33 min, 8 users, load average: 1.71, 1.35, 0.82&lt;br /&gt;
USER TTY LOGIN@ IDLE JCPU PCPU WHAT&lt;br /&gt;
root :0 00:00 ?xdm? 2:06 0.21s /bin/sh /usr/bin/kde&lt;br /&gt;
root pts/0 00:00 32:03 0.00s 1.17s kded –new-startup&lt;br /&gt;
root pts/1 00:01 31:48 0.14s 0.13s wvdial&lt;br /&gt;
root pts/2 00:01 31:18 0.08s 0.04s tail -f access.log&lt;br /&gt;
root pts/3 00:01 20:04 2.55s 0.03s /bin/bash&lt;br /&gt;
root pts/4 00:01 1.00s 0.07s 0.00s w&lt;br /&gt;
root pts/5 00:01 8:36 0.08s 0.06s -bash&lt;br /&gt;
root pts/6 00:01 31:33 0.03s 0.03s /bin/bash&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/2866055461505679841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/find-ursystem-information-by-sar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/2866055461505679841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/2866055461505679841'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/find-ursystem-information-by-sar.html' title='Find urSystem Information by sar command'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-5957317676319491132</id><published>2010-01-28T04:18:00.000-08:00</published><updated>2010-01-28T04:18:13.364-08:00</updated><title type='text'>Hardware Information in Linux by lshw command</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://rpm.pbone.net/index.php3/stat/4/idpl/.../lshw-2.12.1-1.fc5.rf.i386.rpm.html&quot;&gt;lshw &lt;/a&gt;(HardWare LiSter) is a small tool for Linux to provide detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc.&lt;br /&gt;
&lt;br /&gt;
It currently supports DMI (x86 only), OpenFirmware device tree (PowerPC only), PCI/AGP, ISA PnP (x86), CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86) and SCSI.&lt;br /&gt;
&lt;br /&gt;
Installation:&lt;br /&gt;
OpenSuSe 11.1 user can use &quot;1-click&quot; installer to install lshw - here&lt;br /&gt;
&lt;br /&gt;
Debian packages are available for many platforms.&lt;br /&gt;
&lt;br /&gt;
Ubuntu packages are available.&lt;br /&gt;
sudo apt-get install lshw-gtk&lt;br /&gt;
&lt;br /&gt;
Fedora now includes lshw and its GUI and can be installed using following command&lt;br /&gt;
$ sudo yum install lshw lshw-gui&lt;br /&gt;
&lt;br /&gt;
Once you have lswh installed on the system the usage is straight forth.Then running the lshw-X brings up the list of hardware that you can browse through. It is similar to checking the hardware information from Windows’ control panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://rpm.pbone.net/index.php3/stat/4/idpl/.../lshw-2.12.1-1.fc5.rf.i386.rpm.html&quot;&gt;lshw&lt;/a&gt; command also provides output in multiple file formats. For example, you can get the output in HTML, XML, text and a few more. For instance, to get the output in HTML, you use the -html option as follows :&lt;br /&gt;
&lt;br /&gt;
# lshw -html &amp;gt; hardware.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/5957317676319491132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/hardware-information-in-linux-by-lshw.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/5957317676319491132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/5957317676319491132'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/hardware-information-in-linux-by-lshw.html' title='Hardware Information in Linux by lshw command'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-960917126213152536</id><published>2010-01-28T04:15:00.000-08:00</published><updated>2010-01-28T04:15:44.543-08:00</updated><title type='text'>Grendel - Web Application Security Testing Tool</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://www.grendel-scan.com/download.htm&quot;&gt;Grendel-Scan&lt;/a&gt; is an open-source web application security testing tool. It has automated testing module for detecting common web application vulnerabilities, and features geared at aiding manual penetration tests. The only system requirement is Java 5; Windows, Linux and Macintosh builds are available.&lt;br /&gt;
&lt;br /&gt;
Current stable version:&lt;br /&gt;
&lt;br /&gt;
1.0&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Platform &amp;nbsp;&amp;nbsp;&amp;nbsp; File&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows &amp;nbsp;&amp;nbsp;&amp;nbsp; Grendel-Scan-v1.0-win32.zip&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Linux &amp;nbsp;&amp;nbsp;&amp;nbsp; Grendel-Scan-v1.0-linux.zip&lt;br /&gt;
http://www.grendel-scan.com/download.htm&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Macintosh &amp;nbsp;&amp;nbsp;&amp;nbsp; Grendel-Scan-v1.0-mac.zip&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Source &amp;nbsp;&amp;nbsp;&amp;nbsp; Grendel-Scan-v1.0-src.zip&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JavaDocs &amp;nbsp;&amp;nbsp;&amp;nbsp; Grendel-Scan-v1.0-javadoc.zip&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/960917126213152536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/grendel-web-application-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/960917126213152536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/960917126213152536'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/grendel-web-application-security.html' title='Grendel - Web Application Security Testing Tool'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-367512687401725427</id><published>2010-01-28T04:10:00.000-08:00</published><updated>2010-01-28T04:13:18.656-08:00</updated><title type='text'>File recovery tool for Ext2/Ext3 filesystems</title><content type='html'>&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;File recovery tool for Ext2/Ext3 filesystems&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://www.giis.co.in/download.html&quot;&gt;giis&lt;/a&gt; (gET iT i sAY) is a file recovery tool for Ext2/Ext3 filesystems. Once installed, current files and newly created files can be recovered. It allows users to recover all deleted files, recover files owned by a specific user, dump data from old file locations, and recover files of a specific type, such as text or PNG. A forensic analyzer is also provided to assist users during recovery.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;giis won FOSS India Award 2008 (aka LinuxAsia 2008)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Features&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recover files Deleted Date on specific date or deleted before/after specific date or even within specific date range.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recover files with their original access permission types and file owner and group details.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* User friendly configuration file which supports adding new directories even after installation.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recover deleted files of all users.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recover deleted files of a specific user.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recovery of files based on the File type (gif,mp3,jpeg)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recovers deleted hidden files or system files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Recovers Dropped mysql tables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Forensic analyzer is provided to assist data dump from the harddisk.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* If original path of deleted file exists,Recovered files automatically restored back to their appropriate directories.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Provides list of deleted files and it&#39;s restore path&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* If contents are modified or overwritten , during recovery user has the option to compare to old file data with current disk data using giis dump option.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Displays your current file system details.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* If file is modified ,it allows user to decide whether to retrieve latest version of deleted file or older version.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* Allows user to choose directories (other than /root and /home) that can be protected by giis.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;* All newly created files and directory are added,as time limit specified in crontab.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Installation on OpenSuse 11.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Download Latest Version - &lt;a href=&quot;http://www.giis.co.in/download.html&quot;&gt;giis_4.4&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Install giis binary just follow the steps:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;1) Change giis directory&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cd giis_XX (Replace XX with appropriate version number for example giis_4.4)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;2) Run the shell script named &#39;install_giis.sh&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For interactive installation use: sh install_giis.sh 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For non-interactive: sh install_giis.sh 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;And after successful installation here is the detail explanation on how to use giis - here&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/367512687401725427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/file-recovery-tool-for-ext2ext3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/367512687401725427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/367512687401725427'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/file-recovery-tool-for-ext2ext3.html' title='File recovery tool for Ext2/Ext3 filesystems'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-4580697642396427145</id><published>2010-01-23T03:42:00.001-08:00</published><updated>2010-01-23T03:42:53.737-08:00</updated><title type='text'>Apache Virtual Hosting Configuration in RHEL 5</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Apache Virtual Hosting Configuration&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Host based virtual hosting:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt; system1: setup apache virtual host&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 1:Install http packages&lt;/span&gt;&lt;br /&gt;
#yum install httpd&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 2:Create html files&lt;/span&gt;&lt;br /&gt;
#vi /var/www/html/main.html&lt;br /&gt;
&lt;br /&gt;
&lt;title&gt;Sample Web Page&lt;/title&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;marquee&gt;This is page of vv.com&lt;/marquee&gt;&lt;br /&gt;
&lt;br /&gt;
#mkdir /var/www/mail&lt;br /&gt;
#vi /var/www/mail/mail.html&lt;br /&gt;
&lt;br /&gt;
&lt;title&gt;Sample Web Page&lt;/title&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;marquee&gt;Welcome to Home Page of vv.com&lt;/marquee&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 3:Add html page to http configuration file&lt;/span&gt;&lt;br /&gt;
#vi /etc/httpd/conf/httpd.conf&lt;br /&gt;
Line no: 390&lt;br /&gt;
Directory Index mail.html main.html index.html index.html.var&lt;br /&gt;
Line no: 998 or Last&lt;br /&gt;
NameVirtualHost 192.168.0.25:80&lt;br /&gt;
&lt;virtualhost 192.168.0.25:80=&quot;&quot;&gt;&lt;br /&gt;
Servername www.vv.com.&lt;br /&gt;
DocumentRoot /var/www/html&lt;br /&gt;
&lt;/virtualhost&gt;&lt;br /&gt;
&lt;virtualhost 192.168.0.25:80=&quot;&quot;&gt;&lt;br /&gt;
Servername mail.vv.com.&lt;br /&gt;
DocumentRoot /var/www/mail&lt;br /&gt;
&lt;/virtualhost&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 4:restart the http service&lt;/span&gt;&lt;br /&gt;
#service httpd restart&lt;br /&gt;
sys1:&lt;br /&gt;
add dns entries in /etc/resolv.conf&lt;br /&gt;
#vim /etc/resolv.conf&lt;br /&gt;
search vv.com&lt;br /&gt;
nameserver 192.168.0.25&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 5:open firefox and type the following url in address bar&lt;/span&gt;&lt;br /&gt;
http://www.vv.com&lt;br /&gt;
http://mail.vv.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;IP based virtual hosting:system1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 1:create ethernet alias ip address is 10.0.0.10&lt;/span&gt;&lt;br /&gt;
#netconfig d eth0:1&lt;br /&gt;
#service network restart&lt;br /&gt;
add host the entries in dns&lt;br /&gt;
#cat&amp;gt;&amp;gt;/var/named/chroot/var/named/rhel5.com.db&lt;br /&gt;
vvlinux IN A 10.0.0.10&lt;br /&gt;
&lt;control+d&gt;&lt;br /&gt;
reload the dns entries&lt;br /&gt;
#rndc reload&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 2:Install http packages&lt;/span&gt;&lt;br /&gt;
#yum install httpd&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 3:Create html files&lt;/span&gt;&lt;br /&gt;
#mkdir /var/www/vvlinux&lt;br /&gt;
#vi /var/www/mail/vvlinux.html&lt;br /&gt;
&lt;br /&gt;
&lt;title&gt;Sample Web Page&lt;/title&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;marquee&gt;Welcome to Home Page of vvlinux.com&lt;/marquee&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 4:Add html page to http configuration file&lt;/span&gt;&lt;br /&gt;
#vi /etc/httpd/conf/httpd.conf&lt;br /&gt;
Line no: 390&lt;br /&gt;
Directory Index vvlinux.html mail.html main.html index.html&lt;br /&gt;
Line no: 998 or Last&lt;br /&gt;
NameVirtualHost 192.168.0.25:80&lt;br /&gt;
&lt;virtualhost 192.168.0.25:80=&quot;&quot;&gt;&lt;br /&gt;
Servername www.vv.com.&lt;br /&gt;
DocumentRoot /var/www/html&lt;br /&gt;
&lt;/virtualhost&gt;&lt;br /&gt;
&lt;virtualhost 192.168.0.25:80=&quot;&quot;&gt;&lt;br /&gt;
Servername mail.vv.com.&lt;br /&gt;
DocumentRoot /var/www/mail&lt;br /&gt;
&lt;/virtualhost&gt;&lt;br /&gt;
NameVirtualHost 10.0.0.10:80&lt;br /&gt;
&lt;virtualhost 10.0.0.10:80=&quot;&quot;&gt;&lt;br /&gt;
Servername vvlinux..vv.com.&lt;br /&gt;
DocumentRoot /var/www/vvlinux&lt;br /&gt;
&lt;/virtualhost&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 5:restart the http service&lt;/span&gt;&lt;br /&gt;
#service httpd restart&lt;br /&gt;
sys1:&lt;br /&gt;
add dns entries in /etc/resolv.conff&lt;br /&gt;
#vi /etc/resolv.conf&lt;br /&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;Step 6:open firefox and type the following url in address bar&lt;/span&gt;&lt;br style=&quot;color: #b45f06;&quot; /&gt;http://www.vv.com&lt;br /&gt;
http://mail.vv.com&lt;br /&gt;
http://vvlinux.vv.com&lt;br /&gt;
Finally apache virtual host configure successfully.&lt;br /&gt;
&lt;br /&gt;
&lt;/control+d&gt;&lt;/span&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/4580697642396427145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/apache-virtual-hosting-configuration-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/4580697642396427145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/4580697642396427145'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/apache-virtual-hosting-configuration-in.html' title='Apache Virtual Hosting Configuration in RHEL 5'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-6331533180845740255</id><published>2010-01-23T03:28:00.000-08:00</published><updated>2010-01-23T03:29:52.618-08:00</updated><title type='text'>Apache(httpd) Server Configuration setup in RHEL 5</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;system1: &lt;/span&gt;&lt;b style=&quot;color: red;&quot;&gt;httpd server configuration setup&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 1:Configure dns&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 2:Install http packages&lt;/span&gt;&lt;br /&gt;
#yum install httpd&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 3:Create html file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Create html file&lt;/span&gt;&lt;br /&gt;
#vi /var/www/html/main.html&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 4: Add html page to http configuration file&lt;/span&gt;&lt;br /&gt;
#vi /etc/httpd/conf/httpd.conf&lt;br /&gt;
Line no: 390&lt;br /&gt;
Directory Index main.html index.html index.html.var&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 5:restart the http service&lt;/span&gt;&lt;br /&gt;
#chkconfig httpd on&lt;br /&gt;
#service httpd restart&lt;br /&gt;
sys1:&lt;br /&gt;
add dns entries in /etc/resolv.conf&lt;br /&gt;
#vi /etc/resolv.conf&lt;br /&gt;
search vv.com&lt;br /&gt;
nameserver 192.168.0.25&lt;br /&gt;
&lt;span style=&quot;color: orange;&quot;&gt;Step 6:open firefox and type the following url in address bar&lt;/span&gt;&lt;br /&gt;
http://system1.vv.com&lt;br /&gt;
Finally Apache server httpd server configure successfully&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/6331533180845740255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/apachehttpd-server-configuration-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/6331533180845740255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/6331533180845740255'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/apachehttpd-server-configuration-setup.html' title='Apache(httpd) Server Configuration setup in RHEL 5'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-8473236769932810734</id><published>2010-01-06T00:39:00.000-08:00</published><updated>2010-01-06T00:41:07.358-08:00</updated><title type='text'>Most Basic Questions &amp; Commands</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  What is Linux?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Linux is an Open Source, free Operating System created by Linus Torvalds. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  What is the linux kernel?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The Linux kernel is the core of the Linux operating system. To find out which version of the Linux kernel you are running, simply type uname -r in a terminal. For more information on the Linux kernel, please visit &lt;a href=&quot;http://www.kernel.org./&quot;&gt;http://www.kernel.org.&lt;/a&gt; For information on how to install or compile the Linux Kernel, please see our Kernel Compile/Upgrade Guide. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  What distribution of Linux should I install?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;One of the pleasures of running linux is choice. The choice of which Linux Distribution you wish to run is 100% up to you. You can browse our Distributions Page for comparisons of the various distributions out there. If you are totally new to linux we suggest you start off with either Red Hat Linux or Mandrake Linux as they are easier to install, configure and maintain. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  Who is the root user?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The root user is the master user or systems adminstrator of the machine. The root user has full access to all files and directories, which is why you will only want to use the root account to perform system maintainance or to install applications. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I reboot my machine&lt;/b&gt;?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In order to reboot your machine, you must instruct the Linux kernel to stop all the processes (programs) it&#39;s currently running. Do not simply press the reboot button on the front of your computer case, as Linux must be properly shut down/restarted. To restart your machine, as root, run either of the following commands in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;reboot&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;shutdown -r now&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;On most systems you can also press (all at once) the control, alt and delete keys. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I shut down my machine?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In order to shut down your machine, you must instruct the Linux kernel to stop all the processes (programs) it&#39;s currently running. Do not simply press the power off button on the front of your computer case, as Linux must be properly shut down/restarted. To shut down your machine, as root, run either of the following commands in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;halt&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;shutdown -h now &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I remove/uninstall Lilo/Grub?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you want to remove the Lilo or Grub boot loader from your system (if you are uninstalling linux etc) follow the procedures below: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For Windows 95/98 etc:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Use a dos boot disk and at the command prompt type:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;fdisk /mbr &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For Windows XP:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Boot off the XP Installation CD and go into rescue mode. From there run the command:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;fixmbr &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I add a user?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;While logged in as root, type adduser username at the shell prompt, replacing username with the name you want to use to log in. You can create as many users as you wish, one for each member of your family, for example. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I delete a user?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;While logged in as root, type userdel username at the shell prompt, replacing username with the user name you wish to delete. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I change my login password?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To set the password for a specific user, type (while logged in as root) passwd username at the shell prompt, replacing username with the name of the person who&#39;s password you wish to change. By typing just passwd you&#39;ll be able to change the password of the user under who&#39;s name you&#39;re currently logged in as. Do not use passwords which are easy to guess, like your middle name or your pets name. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I change directories?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cd - Used to change directories&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage: cd [directory]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: cd /home/joey/html&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: cd ../ (to move back one directory)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: cd (to return to your home directory)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man cd &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I copy files?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cp - Used to copy files/directories from one location to another&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage: &lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;cp file newlocation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: cp /home/joey/index.html /var/www/index.html&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: cp /home/joey/* /var/www/ (this will copy everything in /home/joey to /var/www/)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man cp &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I rename files?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;mv - Used to move or rename files&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage: &lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;mv file location &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;(to move)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage: mv filename newfilename (to rename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: mv index.html /var/www/index.html (to move)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: mv index.html index2.html (rename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man mv &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I move files?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;mv - Used to move or rename files&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage:&lt;/span&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt; mv file location&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; (to move)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage: mv filename newfilename (to rename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: mv index.html /var/www/index.html (to move)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: mv index.html index2.html (rename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man mv &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I edit files&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The default editor that ships with almost every distribution of Linux is Vi. This editor is slightly advanced and confuses most newbies. We suggest starting off with Pico, a more simple editor. Pico is part of the Pine software package which can be downloaded at http://www.washington.edu/pine (It might already be installed on your system). To edit a file with pico, simply run:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;pico filename&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;This will open up the file and allow to you edit it. At the bottom of the screen you will notice the various commands that you have access to with Pico. If you wish to save the file and exit, simply hold down the control key and hit the x key on your keyboard. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I list directory contents?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ls - To list the contents of a directory&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Usage: ls [flags] directory&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ls (To list the current directory)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ls /home/joey (To list the contents of /home/joey)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ls -a (To list hidden files)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ls -l (To list file/directory permissions and file sizes)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ls -al /home/joey (To list all files and permissions in /home/joey)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man ls &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I delete files?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To delete a file you must first have write permission to it. For information about permissions, click here. Once you have write permission, in a terminal run:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;rm filename&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;There is no &quot;Recycle Bin&quot; in Linux so once you delete a file, it&#39;s gone for good. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;When removing files, you may use an astrix (*) as a wildcard flag to remove certain files, for example if I wanted to remove all files that began with the letter j, I would run rm j* &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If anyone tells you to run rm -rf / as root, DO NOT LISTEN TO THEM. Running this command will delete all the files/directories on your Linux system. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I delete directories?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you have ownership to the directory and the directory is empty, you can simply type rmdir directoryname to remove the directory. If the directory is not empty and you wish to simply delete it and all its contents, run&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;rm -rf directoryname&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Please be careful with the -rf flag, as it will remove everything in the specified directory including sub directories. With root access and the rm -rf command you can wipe out your entire system if you make an error. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I access my cdrom drive?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Linux requires you to mount your cdrom/floppy drives when you wish to use them. On most Linux distributions, the mount command will require root access. Depending on which Linux distribution you run, one of the following commands should mount your cdrom drive. As root, run:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mount /dev/cdrom /mnt/cdrom&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mount /dev/cdrom /cdrom&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I access my floppy drive?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Linux requires you to mount your cdrom/floppy drives when you wish to use them. On most Linux distributions, the mount command will require root access. Depending on which Linux distribution you run, one of the following commands should mount your floppy drive. As root, run:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mount /dev/fd0 /mnt/floppy&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mount /dev/fd0 /floppy&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I view/change ownership on files/directories?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;One of the great features of Linux is that it is a multi-user system. With multi-users, it allows certain users to own files and directories so nobody else can access/modify them, for example your /home directory. To change the ownership of a file/directory, as root execute the following command in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;chown username. filename/directory&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This will change the ownership and group ownership of the specified file or directory to the specified user. For more information, in a terminal, type man chown&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I view/change permissions on files/directories?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There are 3 different attributes a file can have that make up the permissions for the file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There is read access that allows users to read the file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There is write access that allows users to modify the file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There is executable access that allows users to execute the file. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;From these three attributes, you now have three different levels of permissions, the first being for the owner of the file, the second being for the group the file belongs to and the third being all other users on the system. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To view the current permissions on files and directories run the following command:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;ls -l &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;and you should see something that looks like:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;drwxrwxr-x    3 joey     html         4096 Sep 12  2000 images/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;-rw-rw-r--    1 joey     html          267 Aug  8 12:55 index.shtml&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The above shows you that images is a directory (d) and that the owner and group (joey html) have read (r), write (w) and execute (x) permissions while other users on the system only have read (r) and execute (x) permissions. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For the index.shtml file, it shows joey and html as the owner and group and they both have read and write access to the file. It also shows that other users on the system only have read access. Note there is no executable permission since the file is not an executable. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To modify the permissions on a file, you either have to own it or be logged in as root. To modify the permissions, in a terminal type:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;chmod xxx filename/directory&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;You will have to replace the xxx flags with the permissions you wish to change. You can either go by the numerical value or by the actuals.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Some common numerical values are:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;755 - Read, Write, Execute for owner, read, execute for group and other.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;644 - Read, Write for owner, read for group and other.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;666 - Read, Write for all.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;700 - Read, Write, Execute for owner, nothing for group, other.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;So if you wanted to make a file an executable for your user and other users on the system, you would run the following:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;chmod 755 somefile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man chmod &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I find files on my system?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There are two methods to search for files on your Linux machine, one method being the locate command and the other being the find command. If you wish to use the locate command, you must first update the locate database by running the following command in a terminal as root:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;/usr/bin/updatedb&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This will create an index of all the files and their locations on your hard drive. Once updatedb has completed running, you may now search your drive for a specific file by running the following command in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;/usr/bin/locate filename&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Another way to search your linux system is with the find command. To find a file on your sytem with the find command, in a terminal run the follwoing:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;/usr/bin/find /&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; -name filename Be sure to replace &quot;filename&quot; with the actual name of the file. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I unzip a .tar.gz/.tgz file?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To extract .tar.gz or .tgz files, run the following command in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;tar -zxvf file.tar.gz (or file.tgz)&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This will normally create a new directory based on the filename. If you want to extract a filename called file.tar (without the .gz) simply run:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;tar -xvf file.tar&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;For more information, in a terminal, type man tar &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I unzip a .bz2 file?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To extract .bz2 files, run the following command in a terminal:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;bunzip2 -dv file.bz2&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This will normally create a new directory based on the filename. For more information, in a terminal, type man buznip2 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I install a program?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There are many ways to install applications in Linux. If the file you wish to install is in .rpm format and you are running an RPM based distribution such as Red Hat, Mandrake or SuSE, run the following command as root in a shell prompt/terminal:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;rpm -Uvh filename.rpm&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you are running Debian GNU/Linux and you wish to install a .deb file, you can do so by running the following command in a terminal as root:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;dpkg -i filename.deb or apt-get install package (if you have APT already installed/configured). &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If the file you with to install is in a .tar.gz, .tgz or .bz2 format, you will first have to decompress (unzip) the file. Once the file has been unziped, it should create a directory based on the filename. Simply change into that directory and open up the README or INSTALL file in a text editor and follow the installation instructions. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;•  How do I run a program?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;To run a program, you must first make sure it has executable permissions set. For more information on permissions, see How do I view/change permissions on files/directories? above. Once the file has executable permissions, simply run the filename from a terminal. I will use the filename &quot;irc&quot; as an example&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: /usr/bin/irc (from anywhere on the system)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example: ./irc (from the /usr/bin directory)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/8473236769932810734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/most-basic-questions-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/8473236769932810734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/8473236769932810734'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/most-basic-questions-commands.html' title='Most Basic Questions &amp; Commands'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6911492927288773923.post-3644556438810583726</id><published>2010-01-05T22:43:00.000-08:00</published><updated>2010-01-06T00:41:33.014-08:00</updated><title type='text'>Squid proxy in 5 minutes</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Install&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;On a Red Hat® Enterprise Linux® or Fedora™ Core operating system, it is easy to check if Squid is installed using the rpm system. Type the command:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;rpm -q squid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If Squid is already installed, you will get a response similar to:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;squid-2.5.STABLE6-3.4E.12&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If Squid isn’t installed, then you can use Yum to install it. Thanks to Yum the installation is quite easy.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Just type at a command line:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;yum install squid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you happen to have downloaded the rpm you can also type something like:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;rpm -ivh squid-2.5.STABLE6-3.4E.12.i386.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Configure&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Squid’s main configuration file lives in /etc/squid/squid.conf. The 3,339 line configuration file is intimidating, but the good news is that it is very simple to setup a proxy server that forward http, https, and ftp requests to Squid on the default port of 3128 and caches the data.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Back up the configuration file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;It is always good policy to backup a configuration file before you edit it. If you haven’t been burned yet, you haven’t edited enough configuration files. Make a backup from the command line or the gui and rename the original file something meaningful. I personally like to append a bck.datestamp. For example:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cp /etc/squid/squid.conf /etc/squid/squid.conf.bck.02052007&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If it is the original configuration file you might choose to do:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cp /etc/squid/squid.conf /etc/squid/squid.conf.org.02052007&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Edit the file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Open /etc/squid/squid.conf with your favorite text editor. I use vim, but nano is a good beginner’s command line text editor. If you do use nano, make sure you use the nano –nowrap option to turn off line wrapping when editing things like configuration files. A gui editor like Gedit will also work.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Five minute configuration&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;There are many fancy options for squid that we will not enable, specifically acls (access control lists) or authentication. We are going to set up a caching proxy server with no access control. This server would be suitable for a home network behind a firewall.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The default squid configuration is almost complete, but a few small changes should be made. You will need to either find and uncomment entries, or modify existing uncommented lines in the squid configuration file. Use your favorite text editor or a text find to quickly locate these lines:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;visible_hostname machine-name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;http_port 3128&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cache_dir ufs /var/spool/squid 1000 16 256&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cache_access_log /var/log/squid/access.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;In the acl section near the bottom add:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;acl intranet 192.168.0.0/24&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;http_access allow intranet&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Let me explain what each of these six lines means:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;visible_hostname – Create this entry and set this to the hostname of the machine. To find the hostname, use the command hostname. Not entering a value may cause squid to fail as it may not be able to automatically determine the fully qualified hostname of your machine.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;http_port 3128 – Uncomment this line but there is no need to edit it unless you want to change the default port for http connections.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cache_dir ufs /var/spool/squid 1000 15 256 – Uncomment this line. You may want to append a zero to the value 100 which will make the cache size 1000MB instead of 100MB. The last two values stand for the default folder depth the cache will create on the top and subdirectories respectively. They do not need modification.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;cache_access_log – Uncomment this line. This is where all requests to the proxy server will get logged.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;acl intranet 192.168.0.0/24 – This entry needs to be added. It should correspond to whatever your local network range is. For example, if your Fedora server is 192.168.2.5 then the entry should be acl intranet 192.168.2.0/24&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;http_access allow intranet – This allows the acl named intranet to use the proxy server. Make sure to put allow directives above the last ‘http_access deny all’ entry, as it will overide any allow directives below it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Turning on squid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Enable the proper run levels:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;chkconfig squid on&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Start the service:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;service squid start&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Verify that squid isrunning:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;service squid status&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Note, if you have problems starting squid, open a separate shell and run:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Then start the squid service in your original window:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;service squid start&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The tail command should show an error for squid that can help you solve the problem. One common error is that the swap (cache) directory doesn’t exist. To solve this problem, run squid with the -z option to automatically create the directories:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;/usr/sbin/squid -z&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Make sure that squid has write permission to the swap directory or this command won’t work.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Configuring the clients&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you are using Firefox or Mozilla you will need to add the proxy server as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Go to Preferences&amp;gt;Network&amp;gt;Settings&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Add the name of your new proxy server and port 3128 to the http proxy field (under manual configuration).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Open a shell to your proxy server so you can observe the log file being written to. Use tail, as before:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;tail -f /var/log/squid/access.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Now surf the web through your proxy server. You should see entries flying by in real time as you surf different http addresses. Congratulations, you now have a caching proxy server setup!&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vvlinux.blogspot.com/feeds/3644556438810583726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vvlinux.blogspot.com/2010/01/squid-proxy-in-5-minutes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/3644556438810583726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6911492927288773923/posts/default/3644556438810583726'/><link rel='alternate' type='text/html' href='http://vvlinux.blogspot.com/2010/01/squid-proxy-in-5-minutes.html' title='Squid proxy in 5 minutes'/><author><name>Vaayu Vision Technologies</name><uri>http://www.blogger.com/profile/13332228103551141938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='12' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDBNs1Jipa9Dn2dRz7M1KhwWTbZ_4HpM4BkoqnO-1oUmsedScNLv9R19yQJudmk7e4E4GADnFrdFHxG-J0Ym-imh2ro-D27QBi-shapKxNKqRzx_29HtiLMN0Y6lrpgxo/s220/11.jpg'/></author><thr:total>0</thr:total></entry></feed>