<?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-4889146608462998606</id><updated>2024-10-08T23:12:44.180-07:00</updated><title type='text'>My experience</title><subtitle type='html'>This blog regrading  day today experience in my network&#xa;Engineering career</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-4059674919485746114</id><published>2012-09-12T05:20:00.000-07:00</published><updated>2012-09-12T05:20:00.198-07:00</updated><title type='text'>How to setup dialup settign for Sri Lanka </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;Run --&amp;gt; pppconfig as sudu user
&lt;br /&gt;Select --&amp;gt; create new connection
&lt;br /&gt;Leave the default name &quot;provider&quot;
&lt;br /&gt;Select &quot;User Dynamic DNS&quot;
&lt;br /&gt;Select &quot;PAP&quot;
&lt;br /&gt;Enter the login mane as --&amp;gt; &lt;a class=&quot;moz-txt-link-abbreviated&quot; href=&quot;mailto:leapsetlk@pre.sltnet&quot;&gt;user@pre.sltnet&lt;/a&gt;
&lt;br /&gt;Replace the password --&amp;gt; passwd&lt;br /&gt;Select the speed as --&amp;gt; 115200 (default)
&lt;br /&gt;Select &quot;Tone&quot; dialing
&lt;br /&gt;Enter the phone number --&amp;gt; dailupnumber&lt;br /&gt;
Select the the modem device as /dev/ttyACM0
&lt;br /&gt;Finish the config wizard and exit
&lt;br /&gt;
&lt;br /&gt;To forcefully place the dial-up enter below command in the console --&amp;gt; 
pon&amp;nbsp; (to switch off&amp;nbsp; the dial-up use poff)
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/4059674919485746114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2012/09/how-to-setup-dialup-settign-for-sri.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4059674919485746114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4059674919485746114'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2012/09/how-to-setup-dialup-settign-for-sri.html' title='How to setup dialup settign for Sri Lanka '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-2535452967049139005</id><published>2012-01-31T21:24:00.000-08:00</published><updated>2012-01-31T21:24:55.202-08:00</updated><title type='text'>install and configure Webalizer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;To install Webalizer open up a terminal and enter the following commands:&lt;br /&gt;
&lt;blockquote&gt;
$ sudo aptitude update&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
$ sudo aptitude install webalizer&lt;/blockquote&gt;
&lt;br /&gt;Webalizer didn&#39;t work right away, so I found a fix for it.&lt;br /&gt;&lt;br /&gt;Edit &lt;em&gt;webalizer.conf&lt;/em&gt; with your favorite editor:&lt;br /&gt;&lt;blockquote&gt;
$ vi /etc/webalizer/webalizer.conf&lt;/blockquote&gt;
Find the following:&lt;br /&gt;&lt;blockquote&gt;
LogFile /var/log/apache/access.log.1&lt;/blockquote&gt;
I&#39;m using apache2 so replace the line with:&lt;br /&gt;&lt;blockquote&gt;
LogFile /var/log/apache2/access.log&lt;/blockquote&gt;
Save and exit.&lt;br /&gt;&lt;br /&gt;To run webalizer, enter this command:&lt;br /&gt;&lt;blockquote&gt;
sudo webalizer&lt;/blockquote&gt;
and then go to http://localhost/webalizer/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:&lt;br /&gt;
&lt;br /&gt;
$sudo crontab -e
and add the line:&lt;br /&gt;
&lt;blockquote&gt;

&lt;/blockquote&gt;
&lt;br /&gt;
0 * * * * weblize&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/2535452967049139005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2012/01/install-and-configure-webalizer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2535452967049139005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2535452967049139005'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2012/01/install-and-configure-webalizer.html' title='install and configure Webalizer'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-830653411710869734</id><published>2011-11-18T02:32:00.001-08:00</published><updated>2011-11-28T01:05:40.264-08:00</updated><title type='text'>mysql database backup and restore</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot;&gt;today i am going to show how to get mysql backup and also how to restore it.

example -

all database full backup

   &lt;b&gt;     mysqldump -u root -p --all-databases &amp;gt;  all.sql&lt;/b&gt;

 only one(database name -kasun) database   

        &lt;b&gt;mysqldump -u root -p kasun &amp;gt;  kasun.sql&lt;/b&gt; 

 restore database

  &lt;b&gt;mysql -u root -p kasun &amp;lt;  kasun.sql&lt;/b&gt;

  &lt;b&gt;mysql -u root -p --all-databases &amp;lt; all.sq&lt;/b&gt;  

  

thaz for all..:)&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot;&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/830653411710869734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/mysql-database-backup-and-restore.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/830653411710869734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/830653411710869734'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/mysql-database-backup-and-restore.html' title='mysql database backup and restore'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-2729962062374246875</id><published>2011-11-10T21:22:00.001-08:00</published><updated>2011-11-10T21:23:26.594-08:00</updated><title type='text'>How to load an IOS into a Cisco router using the rommon mode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;To load an IOS onto a router
using ROMmon mode via Ethernet cable:&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Start the TFTP server (make sure the file path is
     correct and that you allow both transfer and receive)&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Connect to the router via Ethernet cable (an
     Ethernet cable is preferred due to the large size of the file and the
     maximum speed that data can travel over the console cable)&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;¨ Before the IOS is loaded it is important to make sure that your router
has enough memory to support the IOS. The router will allow an IOS to be
loaded even if there is not enough memory, in this case a smaller IOS will have
to be loaded.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;At the rommon prompt enter the following commands
     (commands are case sensitive, and the use of the directional arrows and
     tab auto complete function is not allowed):&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;IP_ADDRESS=IP
address of the Ethernet port&lt;br /&gt;IP_SUBNET_MASK=subnet
mask of the Ethernet port&lt;br /&gt;DEFAULT_GATEWAY=the
default gateway&lt;br /&gt;TFTP_SERVER=the
IP of the TFTP server (your local computer)&lt;br /&gt;TFTP_FILE=the
file name of the IOS file&lt;br /&gt;tftpdnld &lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;4&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;The router will then issue a warning message:&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in; text-indent: 0.5in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;Invoke this command for disaster recovery only.&lt;br /&gt;            WARNING: all existing data in all partitions on flash
will be lost!&lt;br /&gt;            Do you wish to continue? y/n: [n]: y &lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;5&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; Enter y, and the IOS will load&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Once loaded you must boot up the new IOS by
     issuing the boot command&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;To load an IOS onto a router using ROMmon mode via the
Cisco console cable:&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Connect to the router using the light blue Cisco
     console cable (make sure the RJ-45 connector is plugged into the console
     port on the router) using the 9600-8-N-1 settings. The next two steps
     (changing the console baud rate) are optional. &lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;In ROMmon mode, change the baud rate to 15200
     using the confreg command.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;
rommon 1&amp;gt;confreg&lt;br /&gt;Configuration
Summary&lt;br /&gt;enabled
are:&lt;br /&gt;break/abort
has effect&lt;br /&gt;console
baud: 9600&lt;br /&gt;boot:
the ROM monitor &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;¨ The router will guide you through changing the
registry. You want to press &lt;i&gt;y&lt;/i&gt; to chang the configuration. The only other
change you need to make is the change to the console baud rate, set that to 7
(115200). &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;do
you wish to change the configuration? y/n [n]: y&lt;br /&gt;enable
&quot;diagnostic mode&quot;? y/n [n]:&lt;br /&gt;enable
&quot;use net in IP bcast address&quot;? y/n [n]:&lt;br /&gt;
enable &quot;load rom after netboot fails&quot;? y/n [n]:&lt;br /&gt;
enable &quot;use all zero broadcast&quot;? y/n [n]:&lt;br /&gt;
disable &quot;break/abort has effect&quot;? y/n [n]:&lt;br /&gt;enable
&quot;ignore system config info&quot;? y/n [n]:&lt;br /&gt;change
console baud rate? y/n [n]: y&lt;br /&gt;enter
rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400&lt;br /&gt;4 =
19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 7&lt;br /&gt;change
the boot characteristics? y/n [n]:&lt;br /&gt;&lt;br /&gt;Configuration
Summary&lt;br /&gt;enabled
are:&lt;br /&gt;break/abort
has effect&lt;br /&gt;console
baud: 115200&lt;br /&gt;boot:
the ROM Monitor&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;do
you wish to change the configuration? y/n [n]:&lt;br /&gt;You
must reset or power cycle for new config to take effect.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1in;&quot;&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;rommon
2&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 11pt;&quot;&gt; &lt;/span&gt;&lt;br /&gt;


&lt;ol start=&quot;3&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;When you reset the router in your console window
     you will see characters that you cannot read. You have to stop the
     session and set your baud rate to 115200. This will let you
     increase the speed that you use to transfer the file.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;At the rommon prompt enter &lt;i&gt;xmodem -c
     {filename}&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;When prompted, enter &lt;i&gt;y&lt;/i&gt; to continue&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;From your hyperterminal prompt, click on
     transfter then send file&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;Select the IOS image then change the protocol to
     xmodem via the dropdown box then click send.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;After the IOS has been downloaded, change the
     boot order by using the &lt;i&gt;confreg&lt;/i&gt; &lt;i&gt;0x2102&lt;/i&gt; command.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/2729962062374246875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/how-to-load-ios-into-cisco-router-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2729962062374246875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2729962062374246875'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/how-to-load-ios-into-cisco-router-using.html' title='How to load an IOS into a Cisco router using the rommon mode'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-7059099385819931391</id><published>2011-11-08T02:41:00.000-08:00</published><updated>2011-11-08T03:12:17.593-08:00</updated><title type='text'>Recover MySQL root Password</title><content type='html'>&lt;span style=&quot;font-size:100%;&quot;&gt;Do  you forgot your mysql root password ?...... that was big trouble for you..&lt;br /&gt;don&#39;t think about that . you can use following command to recover that password.&lt;br /&gt;&lt;br /&gt;1: Stop the MySQL server process.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  # /etc/init.d/mysql stop&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(output -&lt;span style=&quot;font-family:monospace;&quot;&gt; &lt;/span&gt;Stopping MySQL database server: mysqld. )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2: Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for password.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;    # mysqld_safe --skip-grant-tables &amp;amp;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;3: Connect to mysql server using mysql client:&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;code&gt;# mysql -u root&lt;/code&gt;&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;4: setup new password&lt;/span&gt;&lt;/h3&gt;&lt;code&gt;   mysql&amp;gt; use mysql;&lt;br /&gt; mysql&amp;gt; update user set password=PASSWORD(&quot;NEW-ROOT-PASSWORD&quot;) where User=&#39;root&#39;;&lt;br /&gt; mysql&amp;gt; flush privileges;&lt;br /&gt; mysql&amp;gt; quit&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;5: Stop MySQL Server:&lt;/span&gt;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;    # /etc/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;6: start mysql server&lt;/span&gt;&lt;/h3&gt;&lt;code&gt;   # /etc/init.d/mysql start&lt;br /&gt; # mysql -u root -p&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;finally apply your new password and get some fun..&lt;br /&gt;thank you.....:)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/7059099385819931391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/recover-mysql-root-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7059099385819931391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7059099385819931391'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/recover-mysql-root-password.html' title='Recover MySQL root Password'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-875992739458880489</id><published>2011-11-03T22:15:00.000-07:00</published><updated>2011-11-03T22:23:27.093-07:00</updated><title type='text'>Typical Linux boot process</title><content type='html'>&lt;p&gt;These days lot of people interest in Linux OS. but some of them don&#39;t know about boot process of Linux OS.so that i try to give you brief idea of boot process in Linux.I think thats better help for you.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The following are the 6 high level stages of a typical Linux boot process.&lt;br /&gt;&lt;span id=&quot;more-7226&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;img class=&quot;aligncenter size-full wp-image-7227&quot; title=&quot;Linux Boot Process&quot; src=&quot;http://www.thegeekstuff.com/wp-content/uploads/2011/02/linux-boot-process.png&quot; alt=&quot;&quot; height=&quot;354&quot; width=&quot;366&quot; /&gt;&lt;/p&gt; &lt;h3&gt;1. BIOS&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;BIOS stands for Basic Input/Output System&lt;/li&gt;&lt;li&gt;Performs some system integrity checks&lt;/li&gt;&lt;li&gt;Searches, loads, and executes the boot loader program.&lt;/li&gt;&lt;li&gt;It looks for boot loader in floppy, cd-rom, or hard drive. You can  press a key (typically F12 of F2, but it depends on your system) during  the BIOS startup to change the boot sequence.&lt;/li&gt;&lt;li&gt;Once the boot loader program is detected and loaded into the memory, BIOS gives the control to it.&lt;/li&gt;&lt;li&gt;So, in simple terms BIOS loads and executes the MBR boot loader.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;2. MBR&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;MBR stands for Master Boot Record.&lt;/li&gt;&lt;li&gt;It is located in the 1st sector of the bootable disk. Typically /dev/hda, or /dev/sda&lt;/li&gt;&lt;li&gt;MBR is less than 512 bytes in size. This has three components 1)  primary boot loader info in 1st 446 bytes 2) partition table info in  next 64 bytes 3) mbr validation check in last 2 bytes.&lt;/li&gt;&lt;li&gt;It contains information about GRUB (or LILO in old systems).&lt;/li&gt;&lt;li&gt;So, in simple terms MBR loads and executes the GRUB boot loader.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;3. GRUB&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;GRUB stands for Grand Unified Bootloader.&lt;/li&gt;&lt;li&gt;If you have multiple kernel images installed on your system, you can choose which one to be executed.&lt;/li&gt;&lt;li&gt;GRUB displays a splash screen, waits for few seconds, if you don’t  enter anything, it loads the default kernel image as specified in the  grub configuration file.&lt;/li&gt;&lt;li&gt;GRUB has the knowledge of the filesystem (the older Linux loader LILO didn’t understand filesystem).&lt;/li&gt;&lt;li&gt;Grub configuration file is /boot/grub/grub.conf (/etc/grub.conf is a link to this). The following is sample grub.conf of CentOS.&lt;/li&gt;&lt;pre&gt;#boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz&lt;br /&gt;hiddenmenu title&lt;br /&gt;CentOS (2.6.18-194.el5PAE)  root (hd0,0)  kernel /boot/vmlinuz-2.6.18-194.el5PAE&lt;br /&gt;ro root=LABEL=/         &lt;br /&gt;initrd /boot/initrd-2.6.18-194.el5PAE.img&lt;/pre&gt;&lt;li&gt;As you notice from the above info, it contains kernel and initrd image.&lt;/li&gt;&lt;li&gt;So, in simple terms GRUB just loads and executes Kernel and initrd images.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;4. Kernel&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;Mounts the root file system as specified in the “root=” in grub.conf&lt;/li&gt;&lt;li&gt;Kernel executes the /sbin/init program&lt;/li&gt;&lt;li&gt;Since init was the 1st program to be executed by Linux Kernel, it  has the process id (PID) of 1. Do a ‘ps -ef | grep init’ and check the  pid.&lt;/li&gt;&lt;li&gt;initrd stands for Initial RAM Disk.&lt;/li&gt;&lt;li&gt;initrd is used by kernel as temporary root file system until kernel  is booted and the real root file system is mounted. It also contains  necessary drivers compiled inside, which helps it to access the hard  drive partitions, and other hardware.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;5. Init&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;Looks at the /etc/inittab file to decide the Linux run level.&lt;/li&gt;&lt;li&gt;Following are the available run levels &lt;ul&gt;&lt;li&gt;0 – halt&lt;/li&gt;&lt;li&gt;1 – Single user mode&lt;/li&gt;&lt;li&gt;2 – Multiuser, without NFS&lt;/li&gt;&lt;li&gt;3 – Full multiuser mode&lt;/li&gt;&lt;li&gt;4 – unused&lt;/li&gt;&lt;li&gt;5 – X11&lt;/li&gt;&lt;li&gt;6 – reboot&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Init identifies the default initlevel from /etc/inittab and uses that to load all appropriate program.&lt;/li&gt;&lt;li&gt;Execute ‘grep initdefault /etc/inittab’ on your system to identify the default run level&lt;/li&gt;&lt;li&gt;If you want to get into trouble, you can set the default run level  to 0 or 6. Since you know what 0 and 6 means, probably you might not do  that.&lt;/li&gt;&lt;li&gt;Typically you would set the default run level to either 3 or 5.&lt;/li&gt;&lt;/ul&gt; &lt;h3&gt;6. Runlevel programs&lt;/h3&gt; &lt;ul&gt;&lt;li&gt;When the Linux system is booting up, you might see various services  getting started. For example, it might say “starting sendmail …. OK”.  Those are the runlevel programs, executed from the run level directory  as defined by your run level.&lt;/li&gt;&lt;li&gt;Depending on your default init level setting, the system will execute the programs from one of the following directories. &lt;ul&gt;&lt;li&gt;Run level 0 – /etc/rc.d/rc0.d/&lt;/li&gt;&lt;li&gt;Run level 1 – /etc/rc.d/rc1.d/&lt;/li&gt;&lt;li&gt;Run level 2 – /etc/rc.d/rc2.d/&lt;/li&gt;&lt;li&gt;Run level 3 – /etc/rc.d/rc3.d/&lt;/li&gt;&lt;li&gt;Run level 4 – /etc/rc.d/rc4.d/&lt;/li&gt;&lt;li&gt;Run level 5 – /etc/rc.d/rc5.d/&lt;/li&gt;&lt;li&gt;Run level 6 – /etc/rc.d/rc6.d/&lt;/li&gt;&lt;/ul&gt; &lt;/li&gt;&lt;li&gt;Please note that there are also symbolic links available for these  directory under /etc directly. So, /etc/rc0.d is linked to  /etc/rc.d/rc0.d.&lt;/li&gt;&lt;li&gt;Under the /etc/rc.d/rc*.d/ direcotiries, you would see programs that start with S and K.&lt;/li&gt;&lt;li&gt;Programs starts with S are used during startup. S for startup.&lt;/li&gt;&lt;li&gt;Programs starts with K are used during shutdown. K for kill.&lt;/li&gt;&lt;li&gt;There are numbers right next to S and K in the program names. Those  are the sequence number in which the programs should be started or  killed.&lt;/li&gt;&lt;li&gt;For example, S12syslog is to start the syslog deamon, which has the  sequence number of 12. S80sendmail is to start the sendmail daemon,  which has the sequence number of 80. So, syslog program will be started  before sendmail.&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/875992739458880489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/typical-linux-boot-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/875992739458880489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/875992739458880489'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/typical-linux-boot-process.html' title='Typical Linux boot process'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-7006467223125870043</id><published>2011-11-01T21:54:00.000-07:00</published><updated>2011-11-01T21:57:47.109-07:00</updated><title type='text'>configure Phpmyadmin</title><content type='html'>&lt;p&gt;PhpMyAdmin is a nice database management and administration tool, it  is easy to install it, but some people are having problems making it  work under apache, that’s because it needs configuration. if you want to more know about Lamp installation you can use my past blogs.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Just in case you haven’t installed phpMyAdmin yet, type the following line in the Terminal:&lt;br /&gt;&lt;code&gt;apt-get install phpmyadmin&lt;/code&gt;&lt;/p&gt; &lt;div style=&quot;text-align: left;margin: 3px;&quot;&gt; &lt;/div&gt;&lt;p&gt;To set up under Apache all you need to do is include the  following line in /etc/apache2/apache2.conf, first type the following  command to open up this file:&lt;br /&gt;&lt;code&gt;gksudo gedit /etc/apache2/apache2.conf&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Add the following line of code inside apache2.conf:&lt;br /&gt;Include /etc/phpmyadmin/apache.conf&lt;/p&gt; &lt;p&gt;Now restart Apache:&lt;br /&gt;&lt;code&gt;sudo /etc/init.d/apache2 restart&lt;/code&gt;&lt;/p&gt; Point your browser to: http://domain/phpmyadmin, you should be able to see the phpMyAdmin landing page now&lt;br /&gt;&lt;br /&gt;get some fun with phpmyadmin.....:)</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/7006467223125870043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/configure-phpmyadmin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7006467223125870043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7006467223125870043'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/11/configure-phpmyadmin.html' title='configure Phpmyadmin'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-4817313368306727308</id><published>2011-08-10T23:08:00.000-07:00</published><updated>2011-08-10T23:43:44.145-07:00</updated><title type='text'>SSH login without password</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a@A:~&amp;gt; ssh-keygen -t rsa&lt;/div&gt;&lt;div&gt;Generating public/private rsa key pair.&lt;/div&gt;&lt;div&gt;Enter file in which to save the key (/home/a/.ssh/id_rsa): &lt;/div&gt;&lt;div&gt;Created directory &#39;/home/a/.ssh&#39;.&lt;/div&gt;&lt;div&gt;Enter passphrase (empty for no passphrase): &lt;/div&gt;&lt;div&gt;Enter same passphrase again: &lt;/div&gt;&lt;div&gt;Your identification has been saved in /home/a/.ssh/id_rsa.&lt;/div&gt;&lt;div&gt;Your public key has been saved in /home/a/.ssh/id_rsa.pub.&lt;/div&gt;&lt;div&gt;The key fingerprint is:&lt;/div&gt;&lt;div&gt;3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A&lt;/div&gt;&lt;div&gt;Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a@A:~&amp;gt; ssh b@B mkdir -p .ssh&lt;/div&gt;&lt;div&gt;b@B&#39;s password: &lt;/div&gt;&lt;div&gt;Finally append a&#39;s new public key to b@B:.ssh/authorized_keys and enter b&#39;s password one last time:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a@A:~&amp;gt; cat .ssh/id_rsa.pub | ssh b@B &#39;cat &amp;gt;&amp;gt; .ssh/authorized_keys&#39;&lt;/div&gt;&lt;div&gt;b@B&#39;s password: &lt;/div&gt;&lt;div&gt;From now on you can log into B as b from A as a without password:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a@A:~&amp;gt; ssh b@B hostname&lt;/div&gt;&lt;div&gt;B&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/4817313368306727308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/08/ssh-login-without-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4817313368306727308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4817313368306727308'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/08/ssh-login-without-password.html' title='SSH login without password'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-368567541843533636</id><published>2011-08-04T21:53:00.000-07:00</published><updated>2011-08-04T22:02:04.042-07:00</updated><title type='text'>differential backup</title><content type='html'>&lt;div&gt;when you run following command first you get full backup files.then other all running times you can get only updates...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;tar -cz -g snapshot_file -f  $dest/$archive_file $backup_files&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;changing destination is more important .using that  you can get only updates for this backups.. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;:)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/368567541843533636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/08/differential-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/368567541843533636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/368567541843533636'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/08/differential-backup.html' title='differential backup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-4452006384725336038</id><published>2011-07-26T00:41:00.000-07:00</published><updated>2011-07-26T00:59:16.253-07:00</updated><title type='text'>how to get backup in Linux server</title><content type='html'>for this problem i use shell script to get incremental and daily backups.In this cause i use cron tab for run that script at that time.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;shell script 1 - daily backup(test.sh)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;####################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo &quot;Starting to get incremental backup&quot;&lt;br /&gt;date=`date +%Y%m%d`&lt;br /&gt;rsync --delete -avh  /home/kasun/Desktop/new /home/kasun/Desktop/back-$date&lt;br /&gt;&lt;br /&gt; Long listing of files in $dest to check file sizes.&lt;br /&gt;ls -lh $dest&lt;br /&gt;&lt;br /&gt;echo &quot;Full Backups_done..&quot; | mail -s &quot;incremental  Done at kasun &quot; kasunmanduraeng@gmail.com&lt;br /&gt;sendmail -q&lt;br /&gt;##############################################&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;test2.sh....full backup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;###############################################&lt;br /&gt;# What to backup.&lt;br /&gt;backup_files=&quot;/home/kasun/Desktop/new&quot;&lt;br /&gt;&lt;br /&gt;# Where to backup to.&lt;br /&gt;dest=&quot;/home/kasun/Desktop/test&quot;&lt;br /&gt;&lt;br /&gt;# Create archive filename.&lt;br /&gt;day=$(date +%Y%m%d)&lt;br /&gt;hostname=$(hostname -s)&lt;br /&gt;archive_file=&quot;$hostname-$day.tgz&quot;&lt;br /&gt;day1=$(date +%d)&lt;br /&gt;yday1=$((day1-1))&lt;br /&gt;date1=$(date +%Y%m)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;remove=&quot;$hostname-$date1$yday1.tgz&quot;&lt;br /&gt;# Print start status message.&lt;br /&gt;echo &quot;Backing up $backup_files to $dest/$archive_file&quot;&lt;br /&gt;date&lt;br /&gt;echo&lt;br /&gt;&lt;br /&gt;# Backup the files using tar.&lt;br /&gt;tar czf $dest/$archive_file $backup_files  ###daily back up&lt;br /&gt;#remove after 2 days backups&lt;br /&gt;&lt;br /&gt;echo $dest/$archive_file $backup_files&lt;br /&gt;rm  $dest/$remove&lt;br /&gt;&lt;br /&gt;# Print end status message.&lt;br /&gt;echo&lt;br /&gt;echo &quot;Backup finished&quot;&lt;br /&gt;date&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo &quot;Full Backups_done..&quot; | mail -s &quot;daily full  Done at kasun &quot; kasunmanduraeng@gmail.com&lt;br /&gt;sendmail -q&lt;br /&gt;##################################&lt;br /&gt;&lt;br /&gt;after getting back receive  notification mail.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Edit cron tab........&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;in command line type..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;crontab -e&lt;br /&gt;&lt;br /&gt;then edit crontab(you can edit /etc/crontab also)&lt;br /&gt;&lt;br /&gt;00 00 * * *    root /root/test.sh ##every hour ur incremental backup process running&lt;br /&gt;00 00 00 * * root  /root/test2.sh## every day for bacup running</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/4452006384725336038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/07/how-to-get-backup-in-linux-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4452006384725336038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/4452006384725336038'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/07/how-to-get-backup-in-linux-server.html' title='how to get backup in Linux server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-133391487389661139</id><published>2011-04-08T05:43:00.001-07:00</published><updated>2011-04-08T05:52:41.652-07:00</updated><title type='text'>shell scripts for CGI with Linux</title><content type='html'>program  name:- test.sh , directory:/var/www/cgi-bin&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;#!/bin/sh&lt;br /&gt;# test.sh&lt;br /&gt;# Environment Variable&lt;br /&gt;echo Content-Type: text/plain ; charset=ISO-8859-1&lt;br /&gt;echo&lt;br /&gt;pwd&lt;br /&gt;ls -l &lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;exit&lt;/span&gt;&lt;div&gt;&lt;br /&gt;save and run in web browser (http://localhost/cgi-bin/test3.sh) .out put show in following image&lt;br /&gt;enjoy with CGI programing&lt;br /&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7FT0vwcIRGlt_eGojJg6xfAebWmiIt5LoKj07AKRaELdagKCzD56okwEevDPObGQTuGO5ZBlVB7EnNT78iPCx8puZX_W8qwmUjVNZIwfvHvHtJnFezRKm4QLlJ1hYXHq9zBkot8ZDu2w/s320/Screenshot.png&quot; style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 180px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5593193785627843906&quot; /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/133391487389661139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/04/shell-scripts-for-cgi-with-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/133391487389661139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/133391487389661139'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/04/shell-scripts-for-cgi-with-linux.html' title='shell scripts for CGI with Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7FT0vwcIRGlt_eGojJg6xfAebWmiIt5LoKj07AKRaELdagKCzD56okwEevDPObGQTuGO5ZBlVB7EnNT78iPCx8puZX_W8qwmUjVNZIwfvHvHtJnFezRKm4QLlJ1hYXHq9zBkot8ZDu2w/s72-c/Screenshot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-2891356286037330461</id><published>2011-04-01T22:07:00.000-07:00</published><updated>2011-04-01T22:14:08.126-07:00</updated><title type='text'>Install and configure gns3 in linux(fedora)</title><content type='html'>&lt;meta equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Trebuchet, sans-serif; font-size: 13px; color: rgb(187, 187, 187); line-height: 18px; &quot;&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;First we&#39;ll have to install dependencies&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[user@kasun ~]$ su&lt;br /&gt;&lt;br /&gt;Password: (Type in your root password here)&lt;br /&gt;&lt;br /&gt;[root@kasun /]# yum install python python-devel xorg-x11-proto-devel libXext-devel&lt;br /&gt;&lt;br /&gt;[root@kasun /]# yum install gcc-c++&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Now we&#39;ll download and install Qt4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun /]#cd /tmp&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp#wget http://ftp.uludag.org.tr/pub/source/2009/qt-x11-opensource-src-4.5.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]# cd qt-x11-opensource-src-4.5.1&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#gmake &lt;i class=&quot;bbc&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&amp;lt;====This might take 2-3 hrs&lt;/b&gt;&lt;/i&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#gmake install &lt;i class=&quot;bbc&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;&amp;lt;====Another 30 mins or so&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#export PATH&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Next we&#39;ll install SIP&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun qt-x11-opensource-src-4.5.1]#cd ..&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/sip-4.8.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#tar xzf sip-4.8.1.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#cd sip-4.8.1&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun sip-4.8.1]#python configure.py&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun sip-4.8.1]#make&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun sip-4.8.1]#make install&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Next we&#39;ll Install PyQt4&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun sip-4.8.1]#cd ..&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/PyQt-x11-gpl-4.5.2.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#cd PyQt-x11-gpl-4.5.2&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun PyQt-x11-gpl-4.5.2]#python configure.py&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun PyQt-x11-gpl-4.5.2]#make &amp;lt;===&lt;b&gt;&lt;i&gt; more time &lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun PyQt-x11-gpl-4.5.2]#make install&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;We are done with compiling part, now lets download GNS3 source files&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun tmp]#cd /opt&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.2/GNS3-0.7.2-src.tar.bz2&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun opt]#tar -xjvf GNS3-0.7.2-src.tar.bz2 &amp;amp;&amp;amp; rm GNS3-0.7.2-src.tar.bz2&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun opt]#mv GNS3-0.7.2-src /opt/GNS3&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Create the following directories:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc.&lt;br /&gt;&lt;br /&gt;[root@kasun opt]#cd /opt/GNS3&lt;br /&gt;[root@kasun GNS3]#mkdir Dynamips&lt;br /&gt;[root@kasun GNS3]#mkdir IOS&lt;br /&gt;[root@kasun GNS3]#mkdir Project&lt;br /&gt;[root@kasun GNS3]#mkdir Cache&lt;br /&gt;[root@kasun GNS3]#mkdir tmp&lt;br /&gt;[root@kasun GNS3]#chmod o+rw -R ./Project&lt;br /&gt;[root@kasun GNS3]#chmod o+rw -R ./tmp&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun GNS3]#chmod o+rw -R ./IOS&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Download binary of dynamips and make it executable&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun GNS3]#cd Dynamips&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;[root@kasun Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;You can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;python &quot;/opt/GNS3/gns3&quot;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;span style=&quot;font-size: 15px; &quot;&gt;&lt;span class=&quot;bbc_underline&quot;&gt;&lt;b class=&quot;bbc&quot;&gt;Fire up GNS3&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Go to edit | preferences and in the ‘Terminal command:’ section type in:&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;gnome-terminal -t %d -e &#39;telnet %h %p&#39; &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp; &lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Under ‘Paths’ change the ‘Project directory:’ to&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;/opt/GNS3/Project&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;and the ‘IOS/PIX directory:’ to&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;/opt/GNS3/IOS&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Click on Dynamips tab on the left&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;For the ‘Executable path:’ type in&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; Change the ‘Working directory:’ to&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;/opt/GNS3/tmp&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;Click on the Capture tab on the left&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;b class=&quot;bbc&quot;&gt;*&lt;/b&gt; For the ‘Working directory for capture files:’ change it to&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;/opt/GNS3/Project&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;woooow now you can rock with GNS 3 .....&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: rgb(204, 204, 204); color: black; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/2891356286037330461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/04/install-and-configure-gns3-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2891356286037330461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2891356286037330461'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/04/install-and-configure-gns3-in.html' title='Install and configure gns3 in linux(fedora)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-2971625313268732743</id><published>2011-03-24T20:45:00.000-07:00</published><updated>2011-03-24T20:53:59.651-07:00</updated><title type='text'>How to mount ntfs partition to redhat</title><content type='html'>1.Click on the &quot;Applications&quot; menu and choose &quot;Terminal&quot; from the &quot;Accessories&quot; group.&lt;br /&gt;2.Type the command &quot;su -&quot; to become the root user. Enter the root password when prompted.&lt;br /&gt;3.Add the &quot;RPMforge&quot; repository to your system--this allows your system to download and install NTFS support. Type the following commands:&lt;br /&gt;&lt;br /&gt;            rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt&lt;br /&gt;&lt;br /&gt;            wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;            rpm -K rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;            rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;4.Install the ntfs-3g package--this provides NTFS support. Type the command &quot;yum install fuse fuse-ntfs-3g&quot; and answer &quot;yes&quot; if prompted to import an encryption key or to install packages.&lt;br /&gt;&lt;br /&gt;5. Issue the &quot;mount&quot; command to mount the NTFS partition.&lt;br /&gt;&lt;br /&gt;            If your NTFS partition is accessible from device /dev/sda3 and you want the partition to appear on /mnt, use the command &quot;mount /dev/sda3 /mnt.&quot;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/2971625313268732743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/03/click-on-applications-menu-and-choose.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2971625313268732743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2971625313268732743'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2011/03/click-on-applications-menu-and-choose.html' title='How to mount ntfs partition to redhat'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-6923086448939139045</id><published>2010-09-10T21:47:00.000-07:00</published><updated>2010-09-10T22:12:29.048-07:00</updated><title type='text'>how to install ssh serve in Ubuntu</title><content type='html'>OpenSSh is opensource ssh server in Linux.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 12px; color: rgb(17, 17, 17); line-height: 18px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 22px; font-size: 14px; &quot;&gt;&lt;h2 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1.833em; margin-right: 0px; margin-bottom: 0.611em; margin-left: 0px; font-weight: bold; color: rgb(17, 17, 17); font-size: 1.286em; line-height: 1.222em; &quot;&gt;Ubuntu SSHD Installation&lt;/h2&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; &quot;&gt;Type the following two command to install both ssh client and server:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# sudo apt-get install openssh-server openssh-client&lt;/code&gt;&lt;/p&gt;&lt;h2 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1.833em; margin-right: 0px; margin-bottom: 0.611em; margin-left: 0px; font-weight: bold; color: rgb(17, 17, 17); font-size: 1.286em; line-height: 1.222em; &quot;&gt;SSHD Configuration&lt;/h2&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; &quot;&gt;To be frank your server is ready by default. Just test it from your home computer or from same system with the command:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# ssh localhost&lt;/code&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# ssh user@your-server-ip-address&lt;/code&gt;&lt;/p&gt;&lt;h2 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1.833em; margin-right: 0px; margin-bottom: 0.611em; margin-left: 0px; font-weight: bold; color: rgb(17, 17, 17); font-size: 1.286em; line-height: 1.222em; &quot;&gt;How do I use ssh client?&lt;/h2&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; &quot;&gt;Assuming that your server hostname is userver.kasun.com and username is kasun, you need to type the following command:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# ssh kasun@userver.kasun.com&lt;/code&gt;&lt;br /&gt;To stop ssh server, enter:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# sudo /etc/init.d/ssh stop&lt;/code&gt;&lt;br /&gt;To start sshs server, enter:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# sudo /etc/init.d/ssh start&lt;/code&gt;&lt;br /&gt;To restart ssh server, enter:&lt;br /&gt;&lt;code style=&quot;padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; line-height: 1.5em; background-image: none; background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, &#39;Andale Mono&#39;, Monaco, Courier, &#39;Courier New&#39;, Verdana, sans-serif; font-size: 0.857em; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); display: block; background-position: 0px 0px; background-repeat: repeat repeat; &quot;&gt;# sudo /etc/init.d/ssh restart&lt;/code&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/6923086448939139045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-to-install-ssh-serve-in-ubuntu.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6923086448939139045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6923086448939139045'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-to-install-ssh-serve-in-ubuntu.html' title='how to install ssh serve in Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-6358914293894517857</id><published>2010-09-10T21:20:00.000-07:00</published><updated>2010-09-10T21:45:34.194-07:00</updated><title type='text'>ssh and telnet</title><content type='html'>In networking world lot of people use ssh and telnet but they don&#39;t have more idea &lt;br /&gt;in this protocol.actually one of my friend also ask me some question related with these things.Ok now you can follow this blog and get some idea.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SSH -  secure shell(normally it use port 22)&lt;br /&gt;&lt;br /&gt;    SSH is network related protocol but it work in application layer which use SSL.SSL(443)  make trusted relation ship.And also SSH Basically it is secured. It is most often used by network administrators as a remote login / remote control way to manage their business server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######for your knowledge--- SSL is most often used for transmitting credit card, tax, banking, or personal information to a business server.##########&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Telnet - port 23-Application layer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Telnet is normal way u can connect to the server and work.Telnet send the data&#39;s in Ascii format and its not a secure shell.so we must&#39;t use telnet and ftp becoz hackers&lt;br /&gt;can  easy to identify our data.</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/6358914293894517857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/ssh-and-telnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6358914293894517857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6358914293894517857'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/ssh-and-telnet.html' title='ssh and telnet'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-5730828652673681165</id><published>2010-09-08T22:39:00.000-07:00</published><updated>2010-09-08T22:41:19.884-07:00</updated><title type='text'>difference between programming and scripting language</title><content type='html'>&lt;meta equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Arial, Helvetica, sans-serif;font-size:13px;&quot;&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline- font-weight: inherit; font-style: inherit;   vertical-align: baseline; font-family:inherit;font-size:13px;color:initial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; &quot;&gt;The primary difference between a &quot;programming language&quot; (C, C++, VB etc.) and a &quot;scripting language&quot; (PHP, ASP, JSP, JavaScript, VBScript)is that code written in a programming language needs to be compiled before it is run. Once it is compiled, it can be run any number of times.&lt;br /&gt;&lt;br /&gt;Scripting languages, on the other hand, are interpreted at run-time. This means that every time you want to run the program, a separate program needs to read the code, interpret it, and then follow the instructions in the code. Compiled code has already been interpreted into machine language, so it is will typically execute faster because the conversion into machine language has already been done.&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; &quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/5730828652673681165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/difference-between-programming-and.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/5730828652673681165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/5730828652673681165'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/difference-between-programming-and.html' title='difference between programming and scripting language'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-512041373724120687</id><published>2010-09-08T22:07:00.000-07:00</published><updated>2010-09-08T22:21:01.440-07:00</updated><title type='text'>Interpreted vs complied source code</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Interpreted language -&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;In interpreter to  process the source code every time you want to run the program.This translate the source code down to a lower level for the computer&#39;s consumption as it goes along.we call the lower level  language machine code.this codes are&#39;t human readable.&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;compiled language -&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;A compiled language , on the other hand ,such as C,uses a complier to do all this processing one time only before the code is ever run.After that ,you can run the machine code directly ,without needing the compiler any more. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/512041373724120687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/interpreted-vs-complied-source-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/512041373724120687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/512041373724120687'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/interpreted-vs-complied-source-code.html' title='Interpreted vs complied source code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-7763429612242518636</id><published>2010-09-08T00:11:00.000-07:00</published><updated>2010-09-08T00:15:04.648-07:00</updated><title type='text'></title><content type='html'>&lt;h1&gt;&lt;br /&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/7763429612242518636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-proxy-server-works.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7763429612242518636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/7763429612242518636'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-proxy-server-works.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-6649043204258710908</id><published>2010-09-07T23:39:00.000-07:00</published><updated>2010-09-07T23:40:29.521-07:00</updated><title type='text'>How to use Internet Connection Sharing in Windowxp</title><content type='html'>&lt;h3 id=&quot;tocHeadRef&quot;&gt;How to use Internet Connection Sharing&lt;/h3&gt;&lt;script&gt;&lt;/script&gt; To use Internet Connection Sharing to share your Internet connection, the host computer     must have one network adapter that is configured to connect to the internal network,     and one network adapter or modem that is configured to connect to the     Internet.&lt;br /&gt;&lt;br /&gt;&lt;h4 id=&quot;tocHeadRef&quot;&gt;&lt;span&gt;&lt;a id=&quot;3&quot;&gt;&lt;/a&gt;&lt;/span&gt;On the host computer&lt;/h4&gt;&lt;script&gt;&lt;/script&gt; On the host computer, follow these steps to share the Internet connection:      &lt;ol&gt;&lt;li&gt;Log on to the host computer as Administrator or     as Owner.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, and then click &lt;b&gt;Control Panel&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong class=&quot;uiterm&quot;&gt;Network and Internet     Connections&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Network Connections&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Right-click the connection that you use to connect to the     Internet. For example, if you connect to the Internet by using a modem,     right-click the connection that you want under &lt;b&gt;Dial-up&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Properties&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Advanced&lt;/b&gt; tab.&lt;/li&gt;&lt;li&gt;Under &lt;b&gt;Internet Connection Sharing&lt;/b&gt;, select the &lt;strong class=&quot;uiterm&quot;&gt;Allow other network users to connect through     this computer&#39;s Internet connection&lt;/strong&gt; check box.&lt;/li&gt;&lt;li&gt;If you are sharing a dial-up Internet connection, select the &lt;strong class=&quot;uiterm&quot;&gt;Establish a dial-up connection whenever a computer on my     network attempts to access the Internet&lt;/strong&gt; check box if you want to permit     your computer to automatically connect to the Internet.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;. You receive the following message: &lt;div class=&quot;message&quot;&gt;When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP&lt;br /&gt;address 192.168.0.1. Your computer may lose connectivity with other computers on&lt;br /&gt;your network. If these other computers have static IP addresses, it is a good idea to set them&lt;br /&gt;to obtain their IP addresses automatically. Are you sure you want to enable Internet&lt;br /&gt;Connection Sharing?&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Yes&lt;/b&gt;.&lt;/li&gt;&lt;/ol&gt; The connection to the Internet is shared to other computers on     the local area network (LAN). The network adapter that is connected to the LAN     is configured with a static IP address of 192.168.0.1 and a subnet mask of     255.255.255.0</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/6649043204258710908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-to-use-internet-connection-sharing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6649043204258710908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6649043204258710908'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/how-to-use-internet-connection-sharing.html' title='How to use Internet Connection Sharing in Windowxp'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-2543785143038968656</id><published>2010-09-07T23:05:00.000-07:00</published><updated>2010-09-07T23:36:33.248-07:00</updated><title type='text'>cache memory</title><content type='html'>&quot;CACHE&quot;............&lt;br /&gt;in TI world cache memory is very important area.but lot of people haven&#39;t perfect idea in this area. i think if u can get some better idea follow this blog...&lt;br /&gt;&lt;br /&gt;&lt;h1 class=&quot;western&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Cache Memory&lt;/span&gt;&lt;/h1&gt; &lt;h1 class=&quot;western&quot; style=&quot;font-weight: normal&quot;&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Cache is a component that improves performance by transparently storing data such that future requests for that data can be served faster.&lt;/span&gt;&lt;/h1&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;It has several types  &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; CPU Cache -&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Small memories on or close to the CPU can operate faster than the much larger  main memory.&lt;/span&gt;&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt; &lt;span style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;DISK Cache&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; -&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;While CPU caches are generally managed entirely by hardware, a variety of  software manages other caches. The page cache&lt;/span&gt;&lt;span style=&quot;text-decoration: none&quot;&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;in main memory, which Is an  example of disk cache, is managed by the operating system kernel.&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; WEB Cache -&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;is the Caching of web document  to reduce bandwidth usage, server load, and  perceived lag. A web cache stores copies of documents passing through it  ,subsequent requests may be satisfied from the cache if certain conditions are met.&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/2543785143038968656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/cache-memory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2543785143038968656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/2543785143038968656'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/cache-memory.html' title='cache memory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-6940097487466731954</id><published>2010-09-06T22:05:00.001-07:00</published><updated>2010-09-06T22:11:31.468-07:00</updated><title type='text'></title><content type='html'> &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span style=&quot;font-family:Times New Roman, serif;&quot;&gt;&lt;span style=&quot;font-size: 16pt;font-size:130%;&quot;&gt;&lt;u&gt;&lt;b&gt;Mail server&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span style=&quot;font-family:Times New Roman, serif;&quot;&gt;	Related protocols – &lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span style=&quot;font-family:Times New Roman, serif;&quot;&gt;	&lt;/span&gt;POP3 - port 110&lt;/p&gt; &lt;ul&gt; 	&lt;p&gt;IMAP - port 143&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;SMTP - port 25&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;HTTP - port 80&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;Secure SMTP (SSMTP) - port 465&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;Secure IMAP (IMAP4-SSL) - port 585&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;IMAP4 over SSL (IMAPS) - port 993&lt;/p&gt; &lt;/ul&gt; &lt;ul&gt; 	&lt;p&gt;Secure POP3 (SSL-POP) - port 995&lt;/p&gt; &lt;/ul&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span style=&quot;font-family:Times New Roman, serif;&quot;&gt;	ICMP – Internet control message protocol &lt;/span&gt; &lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span style=&quot;font-family:Times New Roman, serif;&quot;&gt;		&lt;/span&gt;&lt;/p&gt; &lt;ol&gt; 	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;Layer  -transportation layer&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;TCP/IP&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;purpose of these control messages 	is to provide feedback about problems in the communication 	environment.&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;	&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;	&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;b&gt;	Some function in ICMP&lt;/b&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;b&gt;	&lt;/b&gt;&lt;/p&gt; &lt;ul&gt; 	&lt;li&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt; &lt;b&gt;Announce network errors.  	- 	&lt;/b&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;Packet unreachable&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Announce network congestion.	- &lt;/b&gt;&lt;span style=&quot;font-style: normal&quot;&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;Due 	to traffic give ICMP &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style=&quot;font-style: normal&quot;&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;Source 	Quench&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;font-style: normal&quot;&gt;&lt;span style=&quot;font-weight: normal&quot;&gt; 	message&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Assist Troubleshooting.		- &lt;/b&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;Give 	support to Echo massage (ping&lt;/span&gt;&lt;b&gt;) &lt;/b&gt; 	&lt;/p&gt; 	&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Announce Timeouts.			-&lt;/b&gt;&lt;span style=&quot;font-weight: normal&quot;&gt;IP 	packet&#39;s TTL field drops to zero(using traceroute easy to find out)&lt;/span&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;	in Ubuntu we can find ICMP relate files in /proc/sys/net/ipv4 …&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;	&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;SMTP – Simple Mail Transfer Protocol &lt;/p&gt; &lt;p style=&quot;font-weight: normal&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;ol&gt; 	&lt;ol&gt; 		&lt;ol&gt; 			&lt;li&gt;&lt;p style=&quot;font-weight: normal&quot;&gt;port – 25 (TCP)&lt;/p&gt; 			&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;font-weight: normal&quot;&gt;Application Layer&lt;/p&gt; 			&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;E-mail 			and other mail transfer argent use SMTP to send and receive mail 			message. user-level client mail applications typically only use 			SMTP for sending messages to a mail server for relaying. For 			receiving messages, client applications usually use either the POP 			or the IMAP or a proprietary system (such as Microsoft Exchange or 			Lotus Notes/Domino) to access their mail box accounts on a mail 			server.&lt;/p&gt; 		&lt;/li&gt;&lt;/ol&gt; 	&lt;/ol&gt; &lt;/ol&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;a name=&quot;toc&quot;&gt;&lt;/a&gt; &lt;table width=&quot;11&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt; 	&lt;col width=&quot;7&quot;&gt; 	&lt;tbody&gt;&lt;tr&gt; 		&lt;td width=&quot;7&quot;&gt; 			&lt;div id=&quot;toctitle&quot; dir=&quot;LTR&quot;&gt; 				&lt;p&gt;&lt;br /&gt;				&lt;/p&gt; 			&lt;/div&gt; 		&lt;/td&gt; 	&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;	POP -Post Office  Protocol&lt;/p&gt; &lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;	      &lt;/p&gt; &lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;                  1.Application Layer&lt;/p&gt; &lt;ol&gt; 	&lt;ol&gt; 		&lt;ol start=&quot;2&quot;&gt; 			&lt;li&gt;&lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;TCP/IP(110)&lt;/p&gt; 			&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;font-weight: normal; text-decoration: none&quot;&gt;POP and 			&lt;a href=&quot;http://en.wikipedia.org/wiki/IMAP&quot;&gt;IMAP&lt;/a&gt; (Internet 			Message Access Protocol) are the two most prevalent Internet 			standard protocols for e-mail retrieval&lt;/p&gt; 		&lt;/li&gt;&lt;/ol&gt; 	&lt;/ol&gt; &lt;/ol&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;		&lt;/p&gt; &lt;dl&gt; 	&lt;dd&gt; 	&lt;table width=&quot;100%&quot; border=&quot;1&quot; bordercolor=&quot;#000000&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot;&gt; 		&lt;col width=&quot;136*&quot;&gt; 		&lt;col width=&quot;120*&quot;&gt; 		&lt;tbody&gt;&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p align=&quot;CENTER&quot;&gt;POP3&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p align=&quot;CENTER&quot;&gt;IMAP&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p align=&quot;CENTER&quot;&gt;You only check e-mail from one computer.&lt;/p&gt; 				&lt;p align=&quot;CENTER&quot;&gt;&lt;br /&gt;				&lt;/p&gt; 				&lt;p align=&quot;CENTER&quot;&gt;May get confused if you need to check email both 				in the office and at home.  				&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;You check e-mail from multiple locations.&lt;/p&gt; 				&lt;p&gt;Easier to identify the unread email.&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;You want to remove your e-mail from the mail server.&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;You use Webmail.&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;All messages as well as their attachments will be downloaded 				into desktop PC during the &#39;check new email&#39; process.&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;A whole message will be downloaded only when it is opened for 				display from its content.&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;Mailboxes can only be created on desktop PC. There is only one 				mailbox (INBOX) exists on the server.&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;Multiple mailboxes can be created on the desktop PC as well as 				on the server.&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;Filters can transfer incoming/outgoing messages only to local 				mailboxe&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;Filters can transfer incoming/outgoing messages to other 				mailboxes no matter where the mailboxes locate (on the server or 				the PC).&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;Outgoing email is stored only locally on the desktop PC&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;Outgoing email can be filtered to a mailbox on server for 				accessibility from other machine&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;Messages are deleted on the desktop PC. Comparatively, it is 				inconvenient to clean up your mailbox on the server.&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;Messages can be deleted directly on the server to make it more 				convenient to clean up your mailbox on the server&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign=&quot;TOP&quot;&gt; 			&lt;td width=&quot;53%&quot;&gt; 				&lt;p&gt;Messages may be reloaded onto desktop PC several times due to 				the corruption of system file&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width=&quot;47%&quot;&gt; 				&lt;p&gt;The occurrence of reloading messages from the server to PC is 				much less when compared to POP3.&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 	&lt;/tbody&gt;&lt;/table&gt; &lt;/dd&gt;&lt;/dl&gt; &lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;Install postfix in ubuntu&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;first go to terminal&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:&#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, Helvetica, Arial, Verdana, sans-serif;font-size:14px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo aptitude install postfix&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;configuration&lt;/p&gt;&lt;p style=&quot;margin-bottom: 0in&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:&#39;Helvetica Neue&#39;, &#39;Lucida Grande&#39;, Helvetica, Arial, Verdana, sans-serif;font-size:14px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo dpkg-reconfigure postfix&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;line874&quot;&gt;Insert the following details when asked (replacing server1.example.com with your domain name if you have one):&lt;span class=&quot;anchor&quot; id=&quot;line-26&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;General type of mail configuration: &lt;strong&gt;Internet Site&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-27&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;NONE &lt;em&gt;doesn&#39;t appear to be requested in current config&lt;/em&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-28&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;System mail name: &lt;strong&gt;server1.example.com&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-29&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Root and postmaster mail recipient: &lt;strong&gt;&lt;admin_user_name&gt;&lt;/admin_user_name&gt;&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-30&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Other destinations for mail: &lt;strong&gt;server1.example.com, example.com, localhost.example.com, localhost&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-31&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Force synchronous updates on mail queue?: &lt;strong&gt;No&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-32&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Local networks: &lt;strong&gt;127.0.0.0/8&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-33&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Yes &lt;em&gt;doesn&#39;t appear to be requested in current config&lt;/em&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-34&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Mialbox size limit (bytes): &lt;strong&gt;0&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-35&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Local address extension character: &lt;strong&gt;+&lt;/strong&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-36&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Internet protocols to use: &lt;strong&gt;all&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;&lt;strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal; &quot;&gt;To configure the mailbox format for Maildir:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;line862&quot; style=&quot;margin-top: 0.25em; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;&lt;strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal; &quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo postconf -e &#39;home_mailbox = Maildir/&#39;&lt;/pre&gt;&lt;/strong&gt;&lt;p&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;line874&quot;&gt;You may need to issue this as well:&lt;span class=&quot;anchor&quot; id=&quot;line-47&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-48&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-49&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-50&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo postconf -e &#39;mailbox_command =&#39;&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-51&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-52&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line867&quot;&gt;&lt;strong&gt;Note:&lt;/strong&gt; This will place new mail in /home/username/Maildir so you will need to configure your Mail Delivery Agent to use the same path.&lt;span class=&quot;anchor&quot; id=&quot;line-53&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-54&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;line874&quot;&gt;Configure Postfix to do SMTP AUTH using SASL (saslauthd):&lt;span class=&quot;anchor&quot; id=&quot;line-55&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-56&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-57&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-58&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-59&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-60&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-61&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-62&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo postconf -e &#39;smtpd_sasl_local_domain =&#39; sudo postconf -e &#39;smtpd_sasl_auth_enable = yes&#39; sudo postconf -e &#39;smtpd_sasl_security_options = noanonymous&#39; sudo postconf -e &#39;broken_sasl_auth_clients = yes&#39; sudo postconf -e &#39;smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination&#39; sudo postconf -e &#39;inet_interfaces = all&#39;&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-63&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-64&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line862&quot;&gt;Next edit &lt;tt&gt;/etc/postfix/sasl/smtpd.conf&lt;/tt&gt; and add the following lines:&lt;span class=&quot;anchor&quot; id=&quot;line-65&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-66&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-67&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-68&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;pwcheck_method: saslauthd mech_list: plain login&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-69&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-70&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line874&quot;&gt;Generate certificates to be used for TLS encryption and/or certificate Authentication:&lt;span class=&quot;anchor&quot; id=&quot;line-71&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-72&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-73&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-74&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-75&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-76&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-77&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-78&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-79&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-80&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-81&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;touch smtpd.key chmod 600 smtpd.key openssl genrsa 1024 &gt; smtpd.key openssl req -new -key smtpd.key -x509 -days 3650 -out smtpd.crt # has prompts openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 # has prompts sudo mv smtpd.key /etc/ssl/private/ sudo mv smtpd.crt /etc/ssl/certs/ sudo mv cakey.pem /etc/ssl/private/ sudo mv cacert.pem /etc/ssl/certs/&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-82&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-83&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line874&quot;&gt;Configure Postfix to do TLS encryption for both incoming and outgoing mail:&lt;span class=&quot;anchor&quot; id=&quot;line-84&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-85&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-86&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-87&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-88&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-89&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-90&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-91&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-92&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-93&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-94&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-95&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-96&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-97&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo postconf -e &#39;smtp_tls_security_level = may&#39; sudo postconf -e &#39;smtpd_tls_security_level = may&#39; sudo postconf -e &#39;smtpd_tls_auth_only = no&#39; sudo postconf -e &#39;smtp_tls_note_starttls_offer = yes&#39; sudo postconf -e &#39;smtpd_tls_key_file = /etc/ssl/private/smtpd.key&#39; sudo postconf -e &#39;smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt&#39; sudo postconf -e &#39;smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem&#39; sudo postconf -e &#39;smtpd_tls_loglevel = 1&#39; sudo postconf -e &#39;smtpd_tls_received_header = yes&#39; sudo postconf -e &#39;smtpd_tls_session_cache_timeout = 3600s&#39; sudo postconf -e &#39;tls_random_source = dev:/dev/urandom&#39; sudo postconf -e &#39;myhostname = server1.example.com&#39; # remember to change this to yours&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-98&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-99&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line874&quot;&gt;The file /etc/postfix/main.cf should now look like this:&lt;span class=&quot;anchor&quot; id=&quot;line-100&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-101&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;line867&quot;&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-102&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-103&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-104&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-105&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-106&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-107&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-108&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-109&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-110&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-111&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-112&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-113&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-114&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-115&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-116&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-117&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-118&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-119&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-120&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-121&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-122&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-123&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-124&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-125&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-126&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-127&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-128&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-129&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-130&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-131&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-132&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-133&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-134&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-135&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-136&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-137&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-138&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-139&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-140&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-141&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-142&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-143&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-144&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;# See /usr/share/postfix/main.cf.dist for a commented, more complete version  smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no  # appending .domain is the MUA&#39;s job. append_dot_mydomain = no  # Uncomment the next line to generate &quot;delayed mail&quot; warnings #delay_warning_time = 4h  myhostname = server1.example.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = server1.example.com, example.com, localhost.example.com, localhost relayhost = mynetworks = 127.0.0.0/8 mailbox_command = procmail -a &quot;$EXTENSION&quot; mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_tls_auth_only = no #Use these on Postfix 2.2.x only #smtp_use_tls = yes #smtpd_use_tls = yes #For Postfix 2.3 or above use: smtp_tls_security_level = may smtpd_tls_security_level = may smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/ssl/private/smtpd.key smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom&lt;/pre&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-145&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-146&quot;&gt;&lt;/span&gt;&lt;p class=&quot;line874&quot;&gt;Restart the postfix daemon like this:&lt;span class=&quot;anchor&quot; id=&quot;line-147&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-148&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-149&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(193, 180, 150); border-right-color: rgb(193, 180, 150); border-bottom-color: rgb(193, 180, 150); border-left-color: rgb(193, 180, 150); background-color: rgb(240, 238, 230); padding-top: 4pt; padding-right: 4pt; padding-bottom: 4pt; padding-left: 4pt; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; &quot;&gt;sudo /etc/init.d/postfix restart&lt;/pre&gt;&lt;/div&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-24&quot;&gt;&lt;/span&gt;&lt;span class=&quot;anchor&quot; id=&quot;line-25&quot;&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;meta equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt; </content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/6940097487466731954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/mail-server-related-protocols-pop3-port.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6940097487466731954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6940097487466731954'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/09/mail-server-related-protocols-pop3-port.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-5419249146208867432</id><published>2010-08-12T23:38:00.000-07:00</published><updated>2010-08-12T23:43:38.176-07:00</updated><title type='text'>how to install lamp in ubuntu</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif; font-size: 12px; border-collapse: collapse; line-height: 18px; &quot;&gt;&lt;h3 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-weight: bold; font-size: 14px; &quot;&gt;Install Apache&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;To start off we will install Apache.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;1. Open up the Terminal (&lt;span class=&quot;system&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;Applications &gt; Accessories &gt; Terminal&lt;/span&gt;).&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;2. Copy/Paste the following line of code into Terminal and then press enter:&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;sudo apt-get install apache2&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif; font-style: normal; line-height: 18px; &quot;&gt;3. The Terminal will then ask you for you&#39;re password, type it and then press enter.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;/p&gt;&lt;h3 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-weight: bold; font-size: 14px; &quot;&gt;Testing Apache&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;To make sure everything installed correctly we will now test Apache to ensure it is working properly.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;1. Open up any web browser and then enter the following into the web address:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;http://localhost/&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif; font-style: normal; line-height: 18px; &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-weight: bold; font-size: 14px; &quot;&gt;Install PHP&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;In this part we will install PHP 5.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 1. Again open up the Terminal (&lt;span class=&quot;system&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;Applications &gt; Accessories &gt; Terminal&lt;/span&gt;).&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 2. Copy/Paste the following line into Terminal and press enter:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;sudo apt-get install php5 libapache2-mod-php5&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;sudo /etc/init.d/apache2 restart&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt; &lt;/p&gt;&lt;h3 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-weight: bold; font-size: 14px; &quot;&gt;Test PHP&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;To ensure there are no issues with PHP let&#39;s give it a quick test run.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 1. In the terminal copy/paste the following line:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;sudo gedit /var/www/testphp.php&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;This will open up a file called &lt;span class=&quot;system&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;phptest.php&lt;/span&gt;.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 2. Copy/Paste this line into the phptest file:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;&lt;?php phpinfo(); ?&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 3. Save and close the file.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 4. Now open you&#39;re web browser and type the following into the web address:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;http://localhost/testphp.php&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif; font-style: normal; line-height: 18px; &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-weight: bold; font-size: 14px; &quot;&gt;Install MySQL&lt;/h3&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;To finish this guide up we will install MySQL. (Note - Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 1. Once again open up the amazing Terminal and then copy/paste this line:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;sudo apt-get install mysql-server&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the &quot;Bind Address&quot;. Begin by opening up Terminal to edit the &lt;span class=&quot;system&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;my.cnf&lt;/span&gt; file.&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;gksudo gedit /etc/mysql/my.cnf&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Change the line&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;bind-address = 127.0.0.1&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;And change the &lt;span class=&quot;system&quot; style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;127.0.0.1&lt;/span&gt; to your IP address.&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;mysql -u root&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;Following that copy/paste this line:&lt;/p&gt;&lt;p class=&quot;command&quot; style=&quot;padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; font-style: italic; &quot;&gt;mysql&gt; SET PASSWORD FOR &#39;root&#39;@&#39;localhost&#39; = PASSWORD(&#39;yourpassword&#39;);&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; line-height: 13px; font-style: italic; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;Courier New&#39;, Courier, mono;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 13px;&quot;&gt;&lt;i&gt;go thought Linux....................and get some fun&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:&#39;Courier New&#39;, Courier, mono;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 13px;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/5419249146208867432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/08/how-to-install-lamp-in-ubuntu.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/5419249146208867432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/5419249146208867432'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/08/how-to-install-lamp-in-ubuntu.html' title='how to install lamp in ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-6024038676658252627</id><published>2010-02-23T22:19:00.001-08:00</published><updated>2010-02-23T22:19:38.522-08:00</updated><title type='text'>Efor 2010</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/6024038676658252627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/02/efor-2010.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6024038676658252627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/6024038676658252627'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2010/02/efor-2010.html' title='Efor 2010'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4889146608462998606.post-1621731994676313367</id><published>2009-12-09T09:45:00.003-08:00</published><updated>2009-12-09T09:48:43.228-08:00</updated><title type='text'>MY first blog</title><content type='html'>HI .......&lt;div&gt;This is my 1st blog.so in near future i like to blog my computer networking&lt;/div&gt;&lt;div&gt;experience...... and i think it can be help for my future works...&lt;/div&gt;&lt;div&gt;  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kasunmaduraeng.blogspot.com/feeds/1621731994676313367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kasunmaduraeng.blogspot.com/2009/12/my-first-blog.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/1621731994676313367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4889146608462998606/posts/default/1621731994676313367'/><link rel='alternate' type='text/html' href='http://kasunmaduraeng.blogspot.com/2009/12/my-first-blog.html' title='MY first blog'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10607419115411146360</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>