<?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-8427600665303060663</id><updated>2014-01-21T03:23:20.370-08:00</updated><title type='text'>Kirthan Shetty</title><subtitle type='html'>Basic linux</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>kirthan shetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-5831826396277975910</id><published>2014-01-21T03:22:00.001-08:00</published><updated>2014-01-21T03:22:19.495-08:00</updated><title type='text'>Add a User To Group Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2&gt;&lt;u&gt;&lt;i&gt;Add a existing user to existing group :&lt;/i&gt;&lt;/u&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;To add an existing user jerry to sftpjail supplementary/secondary group with  usermod command using -a option ~ i.e. add the user to the supplemental  group(s). Use only with -G option:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;usermod -a -G sftpjail jerry&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;-----------------------------------------------------------------------------------------&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;To change existing jerry&#39;s primary group to lll, enter:&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;-----------------------------------------------------------------------------------------&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;usermod -g lll jerry &lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;bash&quot;&gt;-----------------------------------------------------------------------------------------&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/5831826396277975910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2014/01/add-user-to-group-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5831826396277975910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5831826396277975910'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2014/01/add-user-to-group-linux.html' title='Add a User To Group Linux'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-3842609500315895402</id><published>2014-01-08T03:42:00.000-08:00</published><updated>2014-01-21T03:23:20.453-08:00</updated><title type='text'>Errr &#39;mongo.js:L112 Error: couldn&#39;t connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112&#39;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;votecell&quot;&gt;&lt;/td&gt;               &lt;td class=&quot;answercell&quot;&gt;&lt;div class=&quot;post-text&quot;&gt;If you are running Ubuntu, then there is an issue with folder ownership.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;post-text&quot;&gt;&lt;br /&gt;Run these commands:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Stop the MongoDB service&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;------------------------------------------------------------------------------------------------------------------------------- &lt;/span&gt;&lt;br /&gt;  &lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;sudo service mongodb stop&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;-------------------------------------------------------------------------------------------&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Remove the MongoDB lock file&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------&amp;nbsp; &lt;/span&gt;&lt;br /&gt;  &lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;sudo rm /var/lib/mongodb/mongod.lock&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;--------------------------------------------------------------------------------------------&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Change ownership from root to the MongoDB path&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------&amp;nbsp; &lt;/span&gt;&lt;br /&gt;  &lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;sudo chown -R mongodb:mongodb /var/lib/mongodb/&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;---------------------------------------------------------------------------------------------&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Start the MongoDB service&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------&amp;nbsp; &lt;/span&gt;&lt;br /&gt;  &lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;sudo service mongodb start&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;----------------------------------------------------------------------------------------------&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Test the mongo application&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;-------------------------------------------------------------------------------------------------------------------------------&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;mongo&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;---------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/3842609500315895402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2014/01/errr-mongojsl112-error-couldnt-connect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3842609500315895402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3842609500315895402'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2014/01/errr-mongojsl112-error-couldnt-connect.html' title='Errr &#39;mongo.js:L112 Error: couldn&#39;t connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112&#39;'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-6661275136938243010</id><published>2013-09-20T02:41:00.000-07:00</published><updated>2013-09-20T02:41:37.984-07:00</updated><title type='text'>Backup (mysql dump) all your MySQL databases in separate files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;The below is the bash script to take mysql dump seperately&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;#! /bin/bash&lt;br /&gt;&lt;br /&gt;TIMESTAMP=$(date +&quot;%F&quot;)&lt;br /&gt;BACKUP_DIR=&quot;/backup/$TIMESTAMP&quot;&lt;br /&gt;MYSQL_USER=&quot;backup&quot;&lt;br /&gt;MYSQL=/usr/bin/mysql&lt;br /&gt;MYSQL_PASSWORD=&quot;password&quot;&lt;br /&gt;MYSQLDUMP=/usr/bin/mysqldump&lt;br /&gt;&lt;br /&gt;mkdir -p $BACKUP_DIR&lt;br /&gt;&lt;br /&gt;databases=`$MYSQL --user=$MYSQL_USER -p$MYSQL_PASSWORD -e &quot;SHOW DATABASES;&quot; | grep -Ev &quot;(Database|information_schema)&quot;`&lt;br /&gt;&lt;br /&gt;for db in $databases; do&lt;br /&gt;&amp;nbsp; $MYSQLDUMP --force --opt --user=$MYSQL_USER -p$MYSQL_PASSWORD --databases $db | gzip &amp;gt; &quot;$BACKUP_DIR/mysql/$db.gz&quot;&lt;br /&gt;done&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/6661275136938243010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/09/backup-mysql-dump-all-your-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6661275136938243010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6661275136938243010'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/09/backup-mysql-dump-all-your-mysql.html' title='Backup (mysql dump) all your MySQL databases in separate files'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-3278765470613703031</id><published>2013-09-13T05:05:00.001-07:00</published><updated>2013-09-13T05:06:27.193-07:00</updated><title type='text'>HOW TO CREATE SSL SELF SIGNED CERTIFICATE ( UBUNTU )</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h3&gt;About SSL Certificates&lt;/h3&gt;A SSL certificate is a way to encrypt a site&#39;s information and create a  more secure connection. Additionally, the certificate can show the  virtual private server&#39;s identification information to site visitors.  Certificate Authorities can issue SSL certificates that verify the  server&#39;s details while a self-signed certificate has no 3rd party  corroboration. &lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Set Up&lt;/h2&gt;Additionally, you need to have apache already installed and running on your virtual server. &lt;br /&gt; If this is not the case, you can download it with this command: &lt;pre&gt;sudo apt-get install apache2&lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Step One—Activate the SSL Module&lt;/h2&gt;&lt;hr /&gt;The next step is to enable SSL on the droplet. &lt;pre&gt;sudo a2enmod ssl&lt;/pre&gt;&lt;br /&gt;Follow up by restarting Apache. &lt;pre&gt;sudo service apache2 restart&lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Step Two—Create a New Directory&lt;/h2&gt;&lt;hr /&gt;We need to create a new directory where we will store the server key and certificate &lt;pre&gt;sudo mkdir /etc/apache2/ssl &lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Step Three—Create a Self Signed SSL Certificate&lt;/h2&gt;&lt;hr /&gt;When we request a new certificate, we can specify how long the  certificate should remain valid by changing the 365 to the number of  days we prefer. As it stands this certificate will expire after one  year. &lt;pre&gt;sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt&lt;/pre&gt;&lt;br /&gt;With this command, we will be both creating the self-signed SSL  certificate and the server key that protects it, and placing both of  them into the new directory.&lt;br /&gt;&lt;br /&gt;This command will prompt terminal to display a lists of fields that need to be filled in.&lt;br /&gt;&lt;br /&gt;The most important line is &quot;Common Name&quot;. Enter your official domain  name here or, if you don&#39;t have one yet, your site&#39;s IP address. &lt;pre&gt;You are about to be asked to enter information that will be incorporated&lt;br /&gt;into your certificate request.&lt;br /&gt;What you are about to enter is what is called a Distinguished Name or a DN.&lt;br /&gt;There are quite a few fields but you can leave some blank&lt;br /&gt;For some fields there will be a default value,&lt;br /&gt;If you enter &#39;.&#39;, the field will be left blank.&lt;br /&gt;-----&lt;br /&gt;Country Name (2 letter code) [AU]:&lt;span class=&quot;highlight&quot;&gt;US&lt;/span&gt;&lt;br /&gt;State or Province Name (full name) [Some-State]:&lt;span class=&quot;highlight&quot;&gt;New York&lt;/span&gt;&lt;br /&gt;Locality Name (eg, city) []:&lt;span class=&quot;highlight&quot;&gt;NYC&lt;/span&gt;&lt;br /&gt;Organization Name (eg, company) [Internet Widgits Pty Ltd]:&lt;span class=&quot;highlight&quot;&gt;Awesome Inc&lt;/span&gt;&lt;br /&gt;Organizational Unit Name (eg, section) []:&lt;span class=&quot;highlight&quot;&gt;Dept of Merriment&lt;/span&gt;&lt;br /&gt;Common Name (e.g. server FQDN or YOUR name) []:&lt;span class=&quot;highlight&quot;&gt;example.com      &lt;/span&gt;            &lt;br /&gt;Email Address []:&lt;span class=&quot;highlight&quot;&gt;webmaster@awesomeinc.com&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h2&gt;Step Four—Set Up the Certificate&lt;/h2&gt;&lt;hr /&gt;Now we have all of the required components of the finished  certificate.The next thing to do is to set up the virtual hosts to  display the new certificate. &lt;br /&gt;&lt;br /&gt;Open up the SSL config file: &lt;pre&gt;sudo nano /etc/apache2/sites-available/default&lt;/pre&gt;&lt;br /&gt;You should make the following changes.&lt;br /&gt;&lt;br /&gt;Change the port on the virtual host to 443, the default SSL port: &lt;pre&gt;&amp;lt;VirtualHost *:443&amp;gt;&lt;/pre&gt;Add a line with your server name right below the Server Admin email: &lt;pre&gt;ServerName &lt;span class=&quot;highlight&quot;&gt;example.com&lt;/span&gt;:443&lt;/pre&gt;&lt;br /&gt;Replace example.com with your DNS approved domain name or server IP  address (it should be the same as the common name on the certificate).&lt;br /&gt;&lt;br /&gt;Add in the following three lines to the end of your virtual host  configuration, and make sure that they match the extensions below: &lt;pre&gt;SSLEngine on&lt;br /&gt;SSLCertificateFile /etc/apache2/ssl/apache.crt&lt;br /&gt;SSLCertificateKeyFile /etc/apache2/ssl/apache.key&lt;/pre&gt;Save and Exit out of the file.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Step Five—Activate the New Virtual Host&lt;/h2&gt;&lt;hr /&gt;Before the website that will come on the 443 port can be activated, we need to enable that Virtual Host: &lt;pre&gt;sudo a2ensite default&lt;/pre&gt;&lt;br /&gt;You are all set. Restarting your Apache server will reload it with all of your changes in place.&amp;nbsp; &lt;br /&gt;&lt;pre&gt;sudo service apache2 reload&lt;/pre&gt;&lt;br /&gt;In your browser, type https://youraddress, and you will be able to see the new certificate. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/3278765470613703031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/09/how-to-create-ssl-self-signed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3278765470613703031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3278765470613703031'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/09/how-to-create-ssl-self-signed.html' title='HOW TO CREATE SSL SELF SIGNED CERTIFICATE ( UBUNTU )'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-2130486534441221969</id><published>2013-06-13T00:48:00.003-07:00</published><updated>2013-06-17T23:48:28.143-07:00</updated><title type='text'>INITIAL BEANSTALK GIT COMMIT TO MASTER BRANCH</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;         &lt;style type=&quot;text/css&quot;&gt;H3 { margin-bottom: 0.21cm; }H3.cjk { font-family: &quot;Droid Sans Fallback&quot;; }H3.ctl { font-family: &quot;Lohit Hindi&quot;; }H2 { margin-bottom: 0.21cm; }H2.cjk { font-family: &quot;Droid Sans Fallback&quot;; }H2.ctl { font-family: &quot;Lohit Hindi&quot;; }P { margin-bottom: 0.21cm; }CODE.cjk { font-family: &quot;Droid Sans Fallback&quot;,monospace; }CODE.ctl { font-family: &quot;Lohit Hindi&quot;,monospace; }A:link {  }&lt;/style&gt;  &lt;h3 class=&quot;western&quot;&gt;&lt;u&gt;Getting Started with Git &amp;amp; Creating your Repository&lt;/u&gt;&lt;/h3&gt;After you have installed Git, you need to setup the repository in your account and generate an SSH key.  &lt;br /&gt; &lt;code class=&quot;western&quot;&gt;yum install git-core    (this is for centos)&lt;br /&gt;apt-get install git-core (this is for ubuntu )&lt;/code&gt;&lt;br /&gt; Once installed, we recommend initializing Git.  run the following commands.&lt;br /&gt; &lt;code class=&quot;western&quot;&gt;git config --global user.name &quot;kirthan&quot;&lt;br /&gt;git config --global user.email &quot;kirthan@example.com&quot;&lt;/code&gt;&lt;br /&gt; Use your full name and email address, and by this you will setup Git for your purposes. You need to do this only once, the first time you install Git.&lt;br /&gt; &lt;h2 class=&quot;western&quot;&gt;Start using Git&lt;/h2&gt;There are many different ways to use your Git repository. Since Git is very flexible you can start using your repository easily by importing, cloning, and many other ways.&lt;br /&gt; We will show you couple of common ways to start using your Git repository.&lt;br /&gt; &lt;h2 class=&quot;western&quot;&gt;Starting from scratch&lt;/h2&gt;To start using your repository from scratch, in your command line type the following:&lt;br /&gt; &lt;code class=&quot;western&quot;&gt;mkdir my-project&lt;br /&gt;cd my-project&lt;br /&gt;git init&lt;br /&gt;echo &quot;This is my new project on Beanstalk.&quot; &amp;gt; README&lt;br /&gt;git add README&lt;br /&gt;git commit -m &quot;My first commit.&quot;&lt;br /&gt;git remote add beanstalk https://example.git.beanstalkapp.com/my-project.git&lt;br /&gt;git push beanstalk master&lt;/code&gt;&lt;br /&gt; With the commands above, you will create a folder, add a file to it, make your first commit, and push the changes to your repository, to master branch. Master branch is the default branch to use for your files.&lt;br /&gt; &lt;h2 class=&quot;western&quot;&gt;Import existing files on your computer&lt;/h2&gt;To import your existing files from your local machine type the following in your command line:&lt;br /&gt; &lt;code class=&quot;western&quot;&gt;cd my-project&lt;br /&gt;git init&lt;br /&gt;git remote add beanstalk https://example.git.beanstalkapp.com/my-project.git&lt;/code&gt;&lt;code class=&quot;western&quot;&gt;&lt;br /&gt;git add .&lt;br /&gt;git commit -m &quot;Importing my project to Git, without saving history.&quot;&lt;br /&gt;git push beanstalk master&lt;/code&gt;&lt;br /&gt;  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/2130486534441221969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/06/initial-beanstalk-git-commit-to-master.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2130486534441221969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2130486534441221969'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/06/initial-beanstalk-git-commit-to-master.html' title='INITIAL BEANSTALK GIT COMMIT TO MASTER BRANCH'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-6607759387922343014</id><published>2013-03-14T11:52:00.000-07:00</published><updated>2013-03-14T11:52:01.761-07:00</updated><title type='text'>Installing Redmine on CentOS 6.2 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;header&gt;           &lt;h1 class=&quot;entry-title&quot;&gt;Installing Redmine on CentOS 6.2 Wiht MySQL and Apache&lt;/h1&gt;&lt;div class=&quot;meta&quot;&gt;                      &lt;time data-updated=&quot;true&quot; datetime=&quot;2012-07-06T17:56:00+02:00&quot; pubdate=&quot;&quot;&gt;Jul 6&lt;span&gt;th&lt;/span&gt;, 2012&lt;/time&gt;               &lt;/div&gt;&lt;/header&gt;  I needed recently to install the excellent project management tool &lt;a href=&quot;http://www.redmine.org/&quot;&gt;Redmine&lt;/a&gt; on a &lt;a href=&quot;http://www.centos.org/&quot;&gt;CentOS&lt;/a&gt; 6.2 machine. There are some tutorials on the Web (&lt;a href=&quot;http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_%28Detailed%29&quot;&gt;here&lt;/a&gt;or &lt;a href=&quot;http://luzem.dyndns.org/2011/04/14/install-redmine-in-rhel6-and-rh-based-distributions/&quot;&gt;here&lt;/a&gt;) but they are a little bit outdated. The following is a method that works as of today.&lt;br /&gt;     &lt;h2&gt;Pre-requisites&lt;/h2&gt;Logged as root, install the following packages:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;yum install make gcc gcc-c++ zlib-devel ruby-devel rubygems ruby-libs apr-devel apr-util-devel httpd-devel mysql-devel mysql-server automake autoconf ImageMagick ImageMagick-devel curl-devel&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And then install the &lt;code&gt;bundle&lt;/code&gt; ruby gem:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;gem install bundle&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Install Redmine&lt;/h2&gt;Redmine is installed with the following commmands:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;wget http://rubyforge.org/frs/download.php/76255/redmine-1.4.4.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;tar zxf redmine-1.4.4.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;ln -s redmine-1.4.4 redmine&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;rm -f redmine-1.4.4.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Install Redmine ruby dependencies&lt;/h2&gt;Bundle helps us install the ruby Redmine dependencies:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;bundle install --without postgresql sqlite &lt;span class=&quot;nb&quot;&gt;test &lt;/span&gt;development&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Database creation&lt;/h2&gt;First we start MySQL:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;service mysqld start&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  Then we secure it (Optional):&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;mysql_secure_installation&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  We then create the redmine database and user:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;mysql&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mysql&amp;gt; create database redmine character &lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;utf8;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mysql&amp;gt; grant all privileges on redmine.* to &lt;span class=&quot;s1&quot;&gt;&#39;redmine&#39;&lt;/span&gt;@&lt;span class=&quot;s1&quot;&gt;&#39;localhost&#39;&lt;/span&gt; identified by &lt;span class=&quot;s1&quot;&gt;&#39;my_password&#39;&lt;/span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mysql&amp;gt; flush privileges;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mysql&amp;gt; quit&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Redmine database configuration&lt;/h2&gt;We copy the database configuration example and we modify it to point to our newly created database:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine/config&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;copy database.yml.example database.yml&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  On the &lt;code&gt;database.yml&lt;/code&gt; file, the &lt;code&gt;production&lt;/code&gt; section should look like this:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;6&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;7&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;yaml&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;l-Scalar-Plain&quot;&gt;production&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;adapter&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;mysql&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;database&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;redmine&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;host&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;localhost&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;redmine&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;password&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;my_password&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;encoding&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;utf8&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And then we create and populate the database with the following rake commands:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;rake generate_session_store&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;rake db:migrate &lt;span class=&quot;nv&quot;&gt;RAILS_ENV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;production&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;rake redmine:load_default_data &lt;span class=&quot;nv&quot;&gt;RAILS_ENV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;production&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Outgoing email configuration (Optional)&lt;/h2&gt;To configure an outgoing SMTP server for sending emails, we create the &lt;code&gt;config/configuration.yml&lt;/code&gt; file from the sample:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine/config&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;cp configuration.yml.example configuration.yml&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And edit it to provide our configuration :&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;6&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;7&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;yaml&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;l-Scalar-Plain&quot;&gt;production&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;  &lt;span class=&quot;l-Scalar-Plain&quot;&gt;email_delivery&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;    &lt;span class=&quot;l-Scalar-Plain&quot;&gt;delivery_method&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;:smtp&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;    &lt;span class=&quot;l-Scalar-Plain&quot;&gt;smtp_settings&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      &lt;span class=&quot;l-Scalar-Plain&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;smtp.mydomain.com&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      &lt;span class=&quot;l-Scalar-Plain&quot;&gt;port&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;l-Scalar-Plain&quot;&gt;25&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      &lt;span class=&quot;l-Scalar-Plain&quot;&gt;domain&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;mydomain.com&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Redmine standalone testing&lt;/h2&gt;At this point, Redmine can be tested in &lt;em&gt;standalone&lt;/em&gt; mode by running the following command:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine/&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;ruby script/server webrick -e production&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  and open the &lt;code&gt;http://localhost:3000&lt;/code&gt; addess in a browser. If you are testing from another computer, you will need to open the port in the &lt;code&gt;/etc/sysconfig/iptables&lt;/code&gt; file by duplicating the ssh (port 22) line and adapting it:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  Then apply the new configuration with the following command:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;service iptables restart&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Passenger installation&lt;/h2&gt;To install &lt;a href=&quot;http://www.modrails.com/&quot;&gt;Phusion passenger&lt;/a&gt;, we firts install its gem:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;gem install passenger&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And then install the Apache module with the command:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;passenger-install-apache2-module&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Apache configuration&lt;/h2&gt;We remove the default Apache configuration and replace it by a new one:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /etc/httpd&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mv conf.d available&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;mkdir conf.d&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  In the empty new &lt;code&gt;conf.d&lt;/code&gt; folder, we create a &lt;code&gt;redmine.conf&lt;/code&gt; file with the following configuration:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;6&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;7&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;8&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;9&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;10&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;11&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;12&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;13&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;14&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;15&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;16&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;17&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;18&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;19&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;20&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;c&quot;&gt;# Loading Passenger&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.13/ext/apache2/mod_passenger.so&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.13&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;PassengerRuby /usr/bin/ruby&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   ServerName redmine.mycompany.com&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   DocumentRoot /var/www/redmine/public&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   &amp;lt;Directory /var/www/redmine/public&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      &lt;span class=&quot;c&quot;&gt;# This relaxes Apache security settings.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      AllowOverride all&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      &lt;span class=&quot;c&quot;&gt;# MultiViews must be turned off.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      Options -MultiViews&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;      allow from all&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   ErrorLog &lt;span class=&quot;s2&quot;&gt;&quot;|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-error.%Y-%m-%d.log 86400&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;   CustomLog &lt;span class=&quot;s2&quot;&gt;&quot;|/usr/sbin/rotatelogs /etc/httpd/logs/redmine-access.%Y-%m-%d.log 86400&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;%h %l %u %t %D \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  We then enable named based virtual hosting for our server by &lt;strong&gt;uncomenting&lt;/strong&gt; the following line in the &lt;code&gt;/etc/httpd/conf/httpd.conf&lt;/code&gt; file:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;3&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;4&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;5&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;6&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;...&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;c&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;c&quot;&gt;# Use name-based virtual hosting.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;c&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;NameVirtualHost *:80&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;...&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  We give full access on the redmine folder to the &lt;code&gt;apache&lt;/code&gt; user and test the configuration:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;chown -R apache:root /var/www/redmine&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;service httpd configtest&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  At this point, the SELinux configuration needs to be modified to allow our apache instance to run the phusion passenger module. You can do this by putting SELinux in permissive mode:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;setenfore Permissive&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And letting the Permissive mode survive a reboot by modifyin the &lt;code&gt;/etc/selinux/config&lt;/code&gt; file from:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nv&quot;&gt;SELINUX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;enforcing&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  to&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nv&quot;&gt;SELINUX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;permissive&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  If you want to run redmine while enforcing, you may want to apply the method &lt;a href=&quot;http://www.bangheadonwall.net/?p=343&quot;&gt;described here&lt;/a&gt; for which you will need to install the &lt;code&gt;policycoreutils-python&lt;/code&gt; package.&lt;br /&gt;  In any case, you will start Apache with the command:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;service httpd start&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  Now you can access your Redmine installation with your browser. To access it from all the computers in your network, you will need to open the port 80 in the &lt;code&gt;/etc/sysconfig/iptables&lt;/code&gt;. You can replace the 3000 rule by :&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  And restart iptables.&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;service iptables restart&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Start services at boot&lt;/h2&gt;To have MySQL and Apache started at boot, run the commands:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;chkconfig --level 345 mysqld on&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;chkconfig --level 345 httpd on&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Cleaning up&lt;/h2&gt;A quick command to clean up all the &lt;code&gt;devel&lt;/code&gt; stuff needed for installation:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;yum remove &lt;span class=&quot;s1&quot;&gt;&#39;*-devel&#39;&lt;/span&gt; make automake autoconf&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  &lt;h2&gt;Tips&lt;/h2&gt;Don’t forget that if you change your Redmine configuration, you don’t have to restart Apache. Your can restart only Redmine with the command:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;touch /var/www/redmine/tmp/restart.txt&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;  If you restore data on your server from another redmine instance that runs on a previous version, dont forget to migrate your data:&lt;br /&gt;  &lt;figure class=&quot;code&quot;&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre class=&quot;line-numbers&quot;&gt;&lt;span class=&quot;line-number&quot;&gt;1&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;line-number&quot;&gt;2&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;code class=&quot;sh&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /var/www/redmine&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;line&quot;&gt;rake db:migrate &lt;span class=&quot;nv&quot;&gt;RAILS_ENV&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;production&quot;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/6607759387922343014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/installing-redmine-on-centos-62.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6607759387922343014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6607759387922343014'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/installing-redmine-on-centos-62.html' title='Installing Redmine on CentOS 6.2 '/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-2052778551885502975</id><published>2013-03-06T20:50:00.000-08:00</published><updated>2013-03-06T20:50:06.763-08:00</updated><title type='text'>Kill process in Linux or terminate a process in Linux systems</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2&gt;Kill process using kill command under Linux/UNIX&lt;/h2&gt;kill command works under both Linux and UNIX/BSD like operating systems.&lt;br /&gt;&lt;h3&gt;Step #1: First, you need to find out process PID (process id)&lt;/h3&gt;Use ps command or pidof command to find out process ID (PID). Syntax:&lt;br /&gt; &lt;strong&gt;ps aux | grep processname&lt;br /&gt; pidof processname&lt;/strong&gt;&lt;br /&gt;For example if process name is lighttpd, you can use any one of the following command to obtain process ID:&lt;br /&gt; &lt;code&gt;# ps aux | grep lighttpd&lt;/code&gt;&lt;br /&gt;&lt;code&gt;# pidof lighttpd&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Output:&lt;/code&gt;&lt;br /&gt;&lt;pre&gt;3486&lt;/pre&gt;&lt;h3&gt;Step #2: kill process using PID (process id)&lt;/h3&gt;Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:&lt;br /&gt; &lt;code&gt;# kill 3486&lt;/code&gt;&lt;br /&gt; OR&lt;br /&gt; &lt;code&gt;# kill -9 3486&lt;/code&gt;&lt;br /&gt; Where,&lt;br /&gt;&lt;ul&gt;&lt;li&gt;-9 is special Kill signal, which will kill the process.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;killall command examples&lt;/h2&gt;DO  NOT USE killall command on UNIX system (Linux only command). You can  also use killall command. The killall command kill processes by name (no  need to find PID):&lt;br /&gt; &lt;code&gt;# killall -9 lighttpd&lt;/code&gt;&lt;br /&gt; Kill Firefox process:&lt;br /&gt; &lt;code&gt;# killall -9 firefox-bin&lt;/code&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/2052778551885502975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/kill-process-in-linux-or-terminate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2052778551885502975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2052778551885502975'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/kill-process-in-linux-or-terminate.html' title='Kill process in Linux or terminate a process in Linux systems'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-6678739905169923910</id><published>2013-03-05T21:50:00.001-08:00</published><updated>2013-03-05T23:55:18.663-08:00</updated><title type='text'>Installing Zend Server Community Edition (CE) on Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Installing Zend Server Community Edition (CE) on Ubuntu With Phpmyadmin . &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Start by adding the official Zend debs to your distribution.&lt;br /&gt;&lt;code&gt;------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;code&gt;sudo nano /etc/apt/sources.list&lt;/code&gt;&lt;br /&gt;&amp;nbsp;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And the following snipplet in the bottom of the file&lt;br /&gt;&amp;nbsp; &lt;code&gt;&lt;/code&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt;&lt;br /&gt;&lt;code&gt;deb http://repos.zend.com/zend-server/deb server non-free&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;Add the Zend’s repository public key&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;wget http://repos.zend.com/zend.key -O- | sudo apt-key add -&lt;/code&gt;&lt;br /&gt;&amp;nbsp;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now synchronize the repositories&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get update&lt;/code&gt;&lt;br /&gt;&amp;nbsp;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Finally install Zend Server with PHP 5.3&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get install zend-server-ce-php-5.3&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;All done, you now have Zend Server Community Edition installed!&lt;br /&gt;&lt;br /&gt;Now we are Mysql&lt;br /&gt;&lt;code&gt;------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;And then MySQL:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;#apt-get install mysql-server&lt;br /&gt;&lt;br /&gt;#service mysqld start&lt;br /&gt;&lt;br /&gt;#mysql_install_db&lt;br /&gt;&lt;br /&gt;#/usr/bin/mysql_secure_installation&lt;br /&gt;&lt;br /&gt;#chkconfig --levels 235 mysqld on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Install phpmyadmin :&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;#apt-get install phpmyadmin-zend-server-php-5.3&lt;/span&gt;&lt;br /&gt;&lt;code&gt;------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;#vi /usr/local/zend/gui/lighttpd/etc/lighttpd.conf &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Search for &#39;phpmyadmin&#39; and you should find the following code block:&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;text&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;$HTTP[&quot;remoteip&quot;] !~ &quot;127.0.0.1&quot; {&lt;br /&gt;  $HTTP[&quot;url&quot;] =~ &quot;^/phpmyadmin/&quot; {&lt;br /&gt;    url.access-deny = ( &quot;&quot; )&lt;br /&gt;    server.errorfile-prefix = &quot;//usr/local/zend/gui/lighttpd/share/lighttpd-custom-errors/errorcode-&quot;&lt;br /&gt;  }&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;To disable the security completely,  you can simply comment out this  block. Alternatively, just replace the  IP Address with your own.  Finally, we need to add Zend&#39;s bin and lib  directories to the system  path and restart Zend.&lt;/span&gt;&lt;br /&gt;&lt;code&gt;------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;#vi /etc/profile&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;Add the following lines to the very end of this file:&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;text&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;PATH=$PATH:/usr/local/zend/bin&lt;br /&gt;LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib&lt;/span&gt;&lt;/pre&gt;&lt;code&gt;------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/6678739905169923910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/installing-zend-server-community.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6678739905169923910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/6678739905169923910'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/installing-zend-server-community.html' title='Installing Zend Server Community Edition (CE) on Ubuntu'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-971069170993056491</id><published>2013-03-01T03:18:00.005-08:00</published><updated>2013-03-05T23:53:44.878-08:00</updated><title type='text'>nohup Execute Commands After You Exit From a Shell Prompt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2&gt;&lt;u&gt;nohup command :&lt;/u&gt;&lt;/h2&gt;Answer is simple, use nohup utility which  allows to run command./process or shell script that can continue running  in the background after you log out from a shell:&lt;br /&gt;&lt;h3&gt;nohup Syntax:&lt;/h3&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #4c1130;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;code&gt;#nohup command-name &amp;amp;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;Where,&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;command-name&lt;/b&gt; : is name of shell script or command name. You can pass argument to command or a shell script.&lt;/li&gt;&lt;li&gt;&lt;b&gt;&amp;amp;&lt;/b&gt; : nohup does not automatically put the command it runs in the  background; you must do that explicitly, by ending the command line with  an &amp;amp; symbol.&lt;/li&gt;&lt;/ul&gt;By the above command you can run the process in background . &lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/971069170993056491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/nohup-execute-commands-after-you-exit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/971069170993056491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/971069170993056491'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/nohup-execute-commands-after-you-exit.html' title='nohup Execute Commands After You Exit From a Shell Prompt'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-552758079227709959</id><published>2013-03-01T02:02:00.001-08:00</published><updated>2013-03-01T03:27:52.941-08:00</updated><title type='text'>Reverse proxy on virtualhost</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Run node.js on apache &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: x-large;&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;he problem with Subsonic is that it runs on Node.js on a non-standard  port. The rest of my web applications run in Apache on port 80.  Therefore, it would be nice if instead of having to go to http://example.com:8180/subsonic/, I could simply go to http://example.com&lt;a href=&quot;http://athos.zacintosh.com/subsonic/&quot;&gt;&lt;/a&gt;.  The solution is called a reverse proxy. Reverse proxies can do things  like load balance between multiple web servers or simply make resources  on an internal web server available externally. In this case, I am using  a reverse proxy to make a web application available on a different port  available on the standard port 80.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;The set up is fairly simple. On Ubuntu, it should be as simple as issuing this command (as root) to enable the proxy modules:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;DocumentRoot /var/www/vhosts/path/to/folder&lt;br /&gt;ServerName example.com&lt;br /&gt;&lt;br /&gt;ErrorLog /var/www/vhosts/loh/logs/error_log&lt;br /&gt;CustomLog /var/www/vhosts/loh/logs/access_log combined&lt;br /&gt;&lt;br /&gt;&amp;lt;Directory /var/www/vhosts/path/to/folder&amp;gt;&lt;br /&gt;Options Indexes FollowSymLinks&lt;br /&gt;AllowOverride All&lt;br /&gt;Order allow,deny&lt;br /&gt;Allow from all&lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;br /&gt;&amp;lt;Proxy *&amp;gt;&lt;br /&gt;Order deny,allow&lt;br /&gt;Allow from all&lt;br /&gt;&amp;lt;/Proxy&amp;gt;&lt;br /&gt;&amp;lt;Location /&amp;gt;&lt;br /&gt;ProxyPass http://example.com:8180/&lt;br /&gt;ProxyPassReverse http://example.com/&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/552758079227709959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/reverse-proxy-on-virtualhost.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/552758079227709959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/552758079227709959'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/03/reverse-proxy-on-virtualhost.html' title='Reverse proxy on virtualhost'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-8843868179157294769</id><published>2013-02-18T21:03:00.001-08:00</published><updated>2013-02-18T21:03:13.512-08:00</updated><title type='text'>Backup and Restore MySQL Database Using mysqldump Command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Using mysqldump, you can backup a local database and restore it on a  remote database at the same time, using a single command. In this  article, let us review several practical examples on how to use  mysqldump to backup and restore.&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;strong&gt;&lt;u&gt;backup&lt;/u&gt;:&lt;/strong&gt; &lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: #660000;&quot;&gt;# mysqldump -u root -p[root_password] [database_name] &amp;gt; dumpfilename.sql&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;strong&gt;&lt;u&gt;restore&lt;/u&gt;:&lt;/strong&gt;&lt;span style=&quot;background-color: #660000;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;# mysql -u root -p[root_password] [database_name] &amp;lt; dumpfilename.sql&amp;nbsp; &lt;span style=&quot;background-color: #660000;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/8843868179157294769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/backup-and-restore-mysql-database-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8843868179157294769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8843868179157294769'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/backup-and-restore-mysql-database-using.html' title='Backup and Restore MySQL Database Using mysqldump Command'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-3110202250435760700</id><published>2013-02-11T22:06:00.004-08:00</published><updated>2013-02-11T22:12:22.603-08:00</updated><title type='text'>Access files from password proctected site </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;---------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;#wget --user=&lt;u&gt;&lt;b&gt;username&lt;/b&gt;&lt;/u&gt; --password=&lt;b&gt;&lt;u&gt;password&lt;/u&gt;&lt;/b&gt;      &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://jtifstage.corporateedge.com/files.tar.gz&quot;&gt;http://example.com/files.tar.gz&lt;/a&gt;&lt;br /&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Change &lt;u&gt;&lt;b&gt;username &lt;/b&gt;&lt;/u&gt;and &lt;u&gt;&lt;b&gt;password&lt;/b&gt;&lt;/u&gt; as your requirement from the above command . &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/3110202250435760700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/access-files-from-password-proctected.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3110202250435760700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/3110202250435760700'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/access-files-from-password-proctected.html' title='Access files from password proctected site '/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-1853608442550069229</id><published>2013-02-08T23:45:00.002-08:00</published><updated>2013-02-08T23:45:54.998-08:00</updated><title type='text'>How do I enable server-side includes on my site ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;&lt;h2 class=&quot;bmw_headline&quot; style=&quot;text-align: left;&quot;&gt;How do I enable server-side includes on my&amp;nbsp;site ?&lt;/h2&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;ol&gt;&lt;li&gt;&lt;h2 class=&quot;bmw_headline&quot; style=&quot;text-align: left;&quot;&gt;#cd /to/your/site/folder&lt;/h2&gt;&lt;/li&gt;&lt;li&gt;&lt;h2 class=&quot;bmw_headline&quot; style=&quot;text-align: left;&quot;&gt;#vi .htaccess&lt;/h2&gt;&lt;/li&gt;&lt;li&gt;&lt;h2 class=&quot;bmw_headline&quot; style=&quot;text-align: left;&quot;&gt;and paste the below content in that&amp;nbsp;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;------------------------------------------------------------------------------------------ &lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&lt;code&gt;AddType text/html .shtml&lt;br /&gt;AddHandler server-parsed .shtml&lt;br /&gt;DirectoryIndex index.shtml index.html index.htm index.php&lt;br /&gt;Options +IncludesNoExec -ExecCGI&lt;/code&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;------------------------------------------------------------------------------------------ &lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h2 class=&quot;bmw_headline&quot; style=&quot;text-align: left;&quot;&gt;&amp;nbsp;thats it done .&lt;/h2&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/1853608442550069229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/how-do-i-enable-server-side-includes-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1853608442550069229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1853608442550069229'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/how-do-i-enable-server-side-includes-on.html' title='How do I enable server-side includes on my site ?'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-4151162751800871394</id><published>2013-02-05T01:29:00.001-08:00</published><updated>2013-02-05T01:29:56.078-08:00</updated><title type='text'>Back up files in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;The below is the script to backup files in linux :&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;i&gt;copy the below script and name example.sh &lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;i&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;/i&gt;&lt;br /&gt;&lt;i&gt;#!/bin/bash&lt;br /&gt;#START&lt;br /&gt;&lt;br /&gt;TIME=`date +&quot;%b-%d-%y_%H-%M-%S&quot;`&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;FILENAME=&quot;backup-$TIME.tar.gz&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;SRCDIR=&quot;/path/to/source/folder&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;#please change to your source folder &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;DESDIR=&quot;/path/to/destination/folder&quot;&amp;nbsp;&amp;nbsp; &lt;b&gt;# please change to your destination&lt;/b&gt; &lt;b&gt;folder &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;tar -cpzf $DESDIR/$FILENAME $SRCDIR&lt;br /&gt;&lt;br /&gt;find &lt;/i&gt;&lt;i&gt;&lt;i&gt;/path/to/destination/folder/&lt;/i&gt; -iname &#39;*.tar.gz&#39; -ctime +45 -exec rm -f {} \;&amp;nbsp; &lt;b&gt;#please change to your destination folder &lt;/b&gt;&lt;br /&gt;#END&lt;/i&gt;&lt;b&gt;&lt;u&gt; &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;&lt;i&gt;&lt;b&gt;And change the mode of file example.sh &lt;/b&gt;&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;&amp;nbsp;#chmod +x example.sh&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;i&gt;&lt;b&gt;And move the examle.sh file&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;/div&gt;&lt;div&gt;#mv example.sh /bin/&lt;/div&gt;&lt;div&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;Now edit crontab &lt;/i&gt;&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;/div&gt;&lt;div&gt;&amp;nbsp;#sudo crontab -e&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;45 22 * * * example.sh&amp;nbsp;&amp;nbsp;&amp;nbsp; #Edit as your requirement &lt;/div&gt;&lt;div&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/4151162751800871394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/back-up-file-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/4151162751800871394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/4151162751800871394'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2013/02/back-up-file-in-linux.html' title='Back up files in linux'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-4220487828601114842</id><published>2012-11-21T05:25:00.001-08:00</published><updated>2012-11-21T05:25:44.825-08:00</updated><title type='text'>Creating user in Phpmyadmin using SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1) Login to phpmyadmin&lt;br /&gt;&lt;br /&gt;2) open the perticular DB&lt;br /&gt;&lt;br /&gt;3) click on SQL tab&lt;br /&gt;&lt;br /&gt;4) Paste the below line there and change the username and dbname as yours and password as you require . &lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;b&gt;grant all privileges on dbname.* to username@localhost identified by &#39;passwd&#39;;&lt;/b&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/4220487828601114842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/11/creating-user-in-phpmyadmin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/4220487828601114842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/4220487828601114842'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/11/creating-user-in-phpmyadmin.html' title='Creating user in Phpmyadmin using SQL'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-9001065595605310097</id><published>2012-10-12T00:17:00.000-07:00</published><updated>2012-10-12T00:28:29.892-07:00</updated><title type='text'>INSTALL MONGODB ON UBUNTU</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;Create a the &lt;b&gt;&lt;tt class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;/etc/apt/sources.list.d/10gen.list&lt;/span&gt;&lt;/tt&gt;&lt;/b&gt; file and include the most appropriate version of the following lines for the 10gen repository&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10&lt;br /&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;sudo apt-get update &lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;sudo apt-get install mongodb-10gen&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;You are ready with mongodb , to check status service mongodb status.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;u&gt;&lt;b&gt;INSTALL GRAPHICAL TOOL&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Download mViewer from&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;https://github.com/Imaginea/mViewer&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Now go to scripts folder and run start_mviewer.sh &lt;br /&gt;&lt;br /&gt;Visit your localhost on 8080 port with no username and password if you have not set any(&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;http://127.0.0.1:8080&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;br /&gt;Now you are done with mongodb GUI interface.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/9001065595605310097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/10/install-mongodb-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/9001065595605310097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/9001065595605310097'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/10/install-mongodb-on-ubuntu.html' title='INSTALL MONGODB ON UBUNTU'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-8137483954614645040</id><published>2012-10-08T23:02:00.000-07:00</published><updated>2012-10-08T23:02:03.606-07:00</updated><title type='text'>ENABLE IP FORWORDING (RHEL ,CENT OS)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Open /etc/sysctl.conf file using a text editor, enter:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&amp;nbsp;&lt;code&gt;# vi /etc/sysctl.conf&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------- &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;code&gt;Set net.ipv4.ip_forward to 1, enter:&lt;/code&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;ini&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;-------------------------------------------------------------------------------------------------- &lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;net.ipv4.ip_forward = 1&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;color: #660066;&quot;&gt;-------------------------------------------------------------------------------------------------- &lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;&lt;b&gt;Save and close the file. Reload the changes by typing the following command:&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;ini&quot;&gt;--------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;code&gt;# sysctl -p&lt;/code&gt;&lt;/pre&gt;&lt;code&gt;-------------------------------------------------------------------------------------------------- &lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/8137483954614645040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/10/enable-ip-forwording-rhel-cent-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8137483954614645040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8137483954614645040'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/10/enable-ip-forwording-rhel-cent-os.html' title='ENABLE IP FORWORDING (RHEL ,CENT OS)'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-5694080168290043486</id><published>2012-08-17T05:17:00.001-07:00</published><updated>2012-08-17T05:17:10.052-07:00</updated><title type='text'>ACL (access control list)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1 ) To check if your ext4 filesystem has the proper default options, use &lt;u&gt;tune2fs&lt;/u&gt; as below :&lt;/span&gt;&lt;br /&gt;&amp;nbsp; ------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;pre class=&quot;cli&quot;&gt;   # tune2fs -l /dev/sdb1&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;--------------------------------------------------------------------------------------&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;2 ) To enable ACLs on a filesystem, we must set the fs default and remount:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;-------------------------------------------------------------------------------------------&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;# tune2fs -o acl /dev/sdb1&lt;br /&gt; # mount -o remount,acl /data1&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;-------------------------------------------------------------------------------------------&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;3)&lt;/span&gt; &lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Use &lt;em&gt;getfacl&lt;/em&gt; to view ACLs:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;------------------------------------------------------------- &lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;# touch /data1/foo.txt&lt;br /&gt;# getfacl /data1/foo.txt&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;-------------------------------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;4) Use &lt;em&gt;setfacl&lt;/em&gt; to set ACLs, with &lt;em&gt;-m&lt;/em&gt; to modify and &lt;em&gt;-x&lt;/em&gt; to remove a given ACL.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) give user bob read+write+execute on a file:&lt;/span&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;pre class=&quot;cli&quot;&gt;#setfacl -m u:bob:rwx /data1/foo.txt&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;      b)give group peeps read+write on a file: &lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;cli&quot;&gt;#setfacl -m g:peeps:rw /data1/foo.txt&lt;/pre&gt;--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;5)remove bob&#39;s ACL permissions:&lt;/span&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;&lt;pre class=&quot;cli&quot;&gt;#setfacl -x u:bob /data1/foo.txt&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;-----------------------------------------------------------------------------------------------&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;6)setfacl permission to directory&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;------------------------------------------------------------------------------------------------ &lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;#setfacl -m d:g:peeps:rw /data1/stuff/&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;---------------------------------------------------------------------------------------------- &lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;7) revoke write permission for everyone:&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;--------------------------------------------------------------------------------------------------- &lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;#setfacl -m m::rx /data1/foo.txt &lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;------------------------------------------------------------------------------------------------- &lt;/pre&gt;&lt;pre class=&quot;cli&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;8) When ACLs are present, an &lt;em&gt;ls -l&lt;/em&gt; will show a plus sign to notify you:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;-------------------------------------------------------------------------------------------------- &lt;/pre&gt;&lt;pre&gt; # ls -l /data1/foo.txt &lt;br /&gt;-rw-rwxr--&lt;em&gt;+&lt;/em&gt; 1 root root 0 Dec  3 14:54 /data1/foo.txt&lt;/pre&gt;&amp;nbsp;--------------------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/5694080168290043486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/08/acl-access-control-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5694080168290043486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5694080168290043486'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/08/acl-access-control-list.html' title='ACL (access control list)'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-2575826665273894874</id><published>2012-07-02T06:26:00.001-07:00</published><updated>2012-07-02T06:26:10.366-07:00</updated><title type='text'>To remove only the tables in DB :</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;          &lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 0.79in }   PRE.cjk { font-family: &quot;Droid Sans Fallback&quot;, monospace }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;br /&gt;&lt;h2 class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;Go to terminal and excute the bellow command with your database username ,databasename , and password&lt;/span&gt; :&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/i&gt;&lt;/h2&gt;&lt;h2 class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;mysqldump &lt;span style=&quot;color: #660033;&quot;&gt;-u&lt;/span&gt; username &lt;span style=&quot;color: #660033;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;--no-data&lt;/span&gt; dbname &lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;|&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #c20cb9;&quot;&gt;&lt;b&gt;grep&lt;/b&gt;&lt;/span&gt; ^DROP &lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/span&gt; drop.sql&lt;/span&gt;&amp;nbsp;&lt;/h2&gt;&lt;h2 class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;mysql &lt;span style=&quot;color: #660033;&quot;&gt;-u&lt;/span&gt; username &lt;span style=&quot;color: #660033;&quot;&gt;-p&lt;/span&gt; dbname &lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;&amp;lt;&lt;/b&gt;&lt;/span&gt; drop.sql&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #c20cb9;&quot;&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 class=&quot;western&quot; style=&quot;font-style: normal; font-weight: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9;&quot;&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;rm&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; drop.txt&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/2575826665273894874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/07/to-remove-only-tables-in-db.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2575826665273894874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/2575826665273894874'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/07/to-remove-only-tables-in-db.html' title='To remove only the tables in DB :'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-1298772053054364195</id><published>2012-06-18T04:26:00.001-07:00</published><updated>2012-06-18T04:26:05.866-07:00</updated><title type='text'>To find which version of linux OS installed</title><content type='html'>This is only for the Linux distribution &lt;br /&gt;open the terminal and enter the bellow command &lt;br /&gt;&lt;br /&gt;&lt;b&gt;#&lt;span style=&quot;color: blue;&quot;&gt;cat /etc/*release &lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/1298772053054364195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/06/to-find-which-version-of-linux-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1298772053054364195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1298772053054364195'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/06/to-find-which-version-of-linux-os.html' title='To find which version of linux OS installed'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-8968587054021428138</id><published>2012-05-31T06:31:00.003-07:00</published><updated>2012-05-31T06:31:34.073-07:00</updated><title type='text'>.htaccess Proctection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 style=&quot;font-weight: normal;&quot;&gt; &lt;u style=&quot;color: #444444;&quot;&gt;&lt;i&gt;IP address restrictions to protect directories using .htaccess&lt;/i&gt;&lt;/u&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/h1&gt;&lt;ul&gt;&lt;b&gt;&lt;i&gt;copy the below 6 lines to .htaccess file&amp;nbsp; &lt;/i&gt;&lt;/b&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: black; color: white;&quot;&gt;&lt;b&gt;&amp;lt;limit GET&amp;gt;&lt;br /&gt;order deny,allow&lt;br /&gt;deny from all&lt;br /&gt;allow from 128.175&lt;br /&gt;allow from 128.4&lt;br /&gt;&amp;lt;/limit&amp;gt;&lt;/b&gt;&lt;/ul&gt;&lt;ul style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/ul&gt;&lt;h1 style=&quot;font-weight: normal;&quot;&gt; &lt;u style=&quot;color: #444444;&quot;&gt;&lt;i&gt;Folder proctection using .htaccess this is only for linux users&lt;/i&gt;&lt;/u&gt;&lt;i&gt; &lt;/i&gt;&lt;/h1&gt;&lt;ul style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: black;&quot;&gt;Create .htaccess if not present and add below 5 lines&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: black; color: white;&quot;&gt;&lt;b&gt;AuthName &quot;Restricted Area&quot; &lt;br /&gt;AuthType Basic &lt;br /&gt;AuthUserFile /var/www/vhosts/sitename/httpdocs/.htpasswd &lt;br /&gt;AuthGroupFile /dev/null &lt;br /&gt;require valid-user&lt;/b&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div style=&quot;background-color: black; color: white;&quot;&gt;&lt;b&gt;&lt;code&gt;#  htpasswd -c /var/www/vhosts/sitename/httpdocs/.htpasswd kirthan&lt;/code&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/8968587054021428138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/05/htaccess-proctection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8968587054021428138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/8968587054021428138'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/05/htaccess-proctection.html' title='.htaccess Proctection'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-5975749503630842205</id><published>2012-05-09T23:32:00.003-07:00</published><updated>2012-05-09T23:32:55.297-07:00</updated><title type='text'>Creating Vhosts in Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;color: #999999; font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; text-align: left;&quot;&gt;&lt;i&gt;&lt;u&gt;Steps for Creating Vhosts in Ubuntu :&lt;/u&gt;&lt;/i&gt; &lt;/h2&gt;&lt;br /&gt;1)&lt;br /&gt;Create the folders that will host your new sites. By default, Apache in Ubuntu serves from &lt;span style=&quot;color: blue;&quot;&gt;/var/www&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2)&amp;nbsp; &lt;br /&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;mkdir /var/www/site&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;3) &lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;4) &lt;/b&gt; &lt;/pre&gt;&lt;pre&gt;Edit the new config files for each site using your preferred text &lt;br /&gt;editor. Add the line ServerName server1 right below the ServerAdmin line&lt;br /&gt; and change both DocumentRoot and Directory to point to your new sites.&lt;br /&gt;&lt;br /&gt;repeat this step for as many new sites as you’ll be &lt;br /&gt;creating&lt;br /&gt;&lt;/pre&gt;&lt;div style=&quot;color: blue;&quot;&gt;/etc/apache2/sites-available/site&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt; ServerAdmin webmaster@localhost&lt;br /&gt; ServerName site1&lt;br /&gt;&lt;br /&gt; DocumentRoot /var/www/site&lt;br /&gt; &amp;lt;Directory /&amp;gt;&lt;br /&gt;  Options FollowSymLinks&lt;br /&gt;  AllowOverride All&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt; &amp;lt;Directory /var/www/site1/&amp;gt;&lt;br /&gt;  Options -Indexes FollowSymLinks MultiViews&lt;br /&gt;  AllowOverride All&lt;br /&gt;  Order allow,deny&lt;br /&gt;  allow from all&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt; ErrorLog ${APACHE_LOG_DIR}/error.log&lt;br /&gt;&lt;br /&gt; # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt; # alert, emerg.&lt;br /&gt; LogLevel warn&lt;br /&gt;&lt;br /&gt; CustomLog ${APACHE_LOG_DIR}/access.log combined&lt;br /&gt;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;5) &lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;After you have edited the config files just tell Apache to start serving the &lt;br /&gt;new domains and stop serving the default:&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;sudo a2ensite site&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;&amp;nbsp;6)&lt;br /&gt;Now reload apache and you should be able to get to each of your new domains&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;sudo /etc/init.d/apache2 reload&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;7)&lt;br /&gt;&lt;pre style=&quot;color: black;&quot;&gt;&lt;b&gt;for disabling the site use command&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;b&gt;sudo a2dissite site &lt;/b&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/5975749503630842205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/05/creating-vhosts-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5975749503630842205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5975749503630842205'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/05/creating-vhosts-in-ubuntu.html' title='Creating Vhosts in Ubuntu'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-1266713354063775621</id><published>2012-03-09T02:13:00.004-08:00</published><updated>2012-03-09T02:20:51.579-08:00</updated><title type='text'>Create DNS server in Ubuntu version</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1) Install bind9&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;#aptitude install update&lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;#aptitude install bind9 dnsutils&lt;/div&gt;&lt;br /&gt;2)Configure local Network&lt;br /&gt;&amp;nbsp;#&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;sudo&amp;nbsp;nano&amp;nbsp;/etc/hosts&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;as below&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[yourhostname]&amp;nbsp;&amp;nbsp;&amp;nbsp;localhost.localdomain&amp;nbsp;&amp;nbsp;&amp;nbsp;localhost &lt;br /&gt;&lt;span style=&quot;background-color: #cc0000;&quot;&gt;192.168.1.x&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[yourhostname].[yourdomain]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[yourhostname]&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;eg:-&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ns1&amp;nbsp;localhost.localdomain&amp;nbsp;&amp;nbsp;&amp;nbsp;localhost &lt;br /&gt;&lt;span style=&quot;background-color: #cc0000;&quot;&gt;192.168.1.2&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ns1.geoffke.be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ns1&lt;/span&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;3)Configure your firewall&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;#&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;sudo&amp;nbsp;ufw&amp;nbsp;allow&amp;nbsp;53&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;#&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;sudo&amp;nbsp;ufw&amp;nbsp;allow&amp;nbsp;bind9&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;#&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;sudo&amp;nbsp;ufw&amp;nbsp;app&amp;nbsp;list&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;4)create the zone file&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;#cd /etc/bind&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;#sudo nano db.geoffke.be&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Replace geoffke.be with your domain name to become your zone file name.  Here&#39;s an example&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;; &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ;&amp;nbsp;BIND&amp;nbsp;zone&amp;nbsp;definition&amp;nbsp;file&amp;nbsp;for&amp;nbsp;geoffke.be &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ; &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; geoffke.be.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SOA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ns1.geoffke.be.&amp;nbsp;admin.geoffke.be.&amp;nbsp;( &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2011072601;&amp;nbsp;Serial &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;28800 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3600 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;604800 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;38400 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ) &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt; &lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ;&amp;nbsp;Nameserver&amp;nbsp;and&amp;nbsp;mailserver&amp;nbsp;(replace&amp;nbsp;with&amp;nbsp;your&amp;nbsp;own&amp;nbsp;hostnames): &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; geoffke.be.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ns1.geoffke.be. &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; geoffke.be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.geoffke.be &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt; &lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ;&amp;nbsp;IP&amp;nbsp;addresses&amp;nbsp;of&amp;nbsp;local&amp;nbsp;hosts&amp;nbsp;(replace&amp;nbsp;the&amp;nbsp;lines&amp;nbsp;with&amp;nbsp;your&amp;nbsp;own&amp;nbsp;hosts): &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; router&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.1 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; ns1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #cc0000;&quot;&gt;192.168.1.2 &lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; www&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.3 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; mediacenter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.4 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; laptop1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.5 &lt;/span&gt;&lt;br style=&quot;background-color: yellow;&quot; /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; workstation1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;192.168.1.6&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;b&gt;&lt;u&gt;5. Create the reverse zone file:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;#sudo&amp;nbsp;nano&amp;nbsp;rev.1.168.192.in-addr.arpa&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;Use the following example file and replace the hosts and domain name  with your own, matching the ones in the zone file above:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;; &lt;br /&gt;;&amp;nbsp;BIND&amp;nbsp;reverse&amp;nbsp;zone&amp;nbsp;file&amp;nbsp;for&amp;nbsp;geoffke.be &lt;br /&gt;; &lt;br /&gt;@&amp;nbsp;IN&amp;nbsp;SOA&amp;nbsp;ns1.geoffke.be.&amp;nbsp;admin.geoffke.be.&amp;nbsp;( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2011072601;&amp;nbsp;Serial &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;28800; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;604800; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;604800; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;86400 &lt;br /&gt;) &lt;br /&gt;&lt;br /&gt;;&amp;nbsp;IP&amp;nbsp;addresses&amp;nbsp;of&amp;nbsp;local&amp;nbsp;hosts&amp;nbsp;(replace&amp;nbsp;the&amp;nbsp;lines&amp;nbsp;with&amp;nbsp;your&amp;nbsp;own&amp;nbsp;hosts): &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ns1.geoffke.be. &lt;br /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;router.geoffke.be &lt;br /&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;geoffke.be &lt;br /&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;www.geoffke.be &lt;br /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mediacenter.geoffke.be &lt;br /&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;laptop1.geoffke.be &lt;br /&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;workstation1.geoffke.be&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;6. Edit the named.conf.local file:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;and add the following:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;zone&amp;nbsp;geoffke.be&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type&amp;nbsp;master; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file&amp;nbsp;&quot;/etc/bind/db.geoffke.be&quot;; &lt;br /&gt;}; &lt;br /&gt;&lt;br /&gt;zone&amp;nbsp;1.168.192.in-addr.arpa&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type&amp;nbsp;master; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;file&amp;nbsp;&quot;/etc/bind/rev.1.168.192.in-addr.arpa&quot;; &lt;br /&gt;};&amp;nbsp;&lt;/span&gt;&lt;/code&gt; &lt;/div&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;7. Configure your clients:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;domain&amp;nbsp;&amp;lt;yourdomain.ext&amp;gt; &lt;br /&gt;search&amp;nbsp;&amp;lt;yourdomain.ext&amp;gt; &lt;br /&gt;nameserver&amp;nbsp;&amp;lt;ip_of_dns_server_1&amp;gt; &lt;br /&gt;nameserver&amp;nbsp;&amp;lt;ip_of_dns_server_2&amp;gt; &lt;br /&gt;nameserver&amp;nbsp;&amp;lt;ip_of_dns_server_3&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;If you have only one DNS server, you could use the following example:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: yellow;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;domain&amp;nbsp;geoffke.be &lt;br /&gt;search&amp;nbsp;geoffke.be &lt;br /&gt;nameserver&amp;nbsp;&lt;span style=&quot;background-color: #cc0000;&quot;&gt;192.168.1.2 &lt;/span&gt;&lt;br /&gt;nameserver&amp;nbsp;192.168.1.1&lt;/span&gt;&lt;/code&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;8. Test your DNS server:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Be sure that all of your hosts DNS settings on your clients point to  your new DNS server before testing! Reload bind to accept the changes:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;div class=&quot;source&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;sudo&amp;nbsp;service&amp;nbsp;bind9&amp;nbsp;reload&lt;/span&gt;&lt;/span&gt; &lt;/code&gt;      &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;artikel&quot;&gt;&lt;br /&gt;Test your server with:&lt;/div&gt;&lt;h5 class=&quot;code&quot;&gt;Source code&amp;nbsp;&lt;/h5&gt;&lt;div class=&quot;code&quot;&gt;&lt;div class=&quot;source&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; dig&amp;nbsp;example.com&lt;/span&gt;&amp;nbsp;&lt;/span&gt; &lt;/code&gt;      &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;artikel&quot;&gt;&lt;br /&gt;If your server doesn&#39;t respond correctly, you can check the logs to see  what is causing the problem.&lt;/div&gt;&lt;h5 class=&quot;code&quot;&gt;Source code&lt;/h5&gt;&lt;div class=&quot;code&quot; style=&quot;background-color: yellow;&quot;&gt;&lt;div class=&quot;source&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;tail&amp;nbsp;-f&amp;nbsp;/var/log/syslog&lt;/span&gt;&lt;/span&gt; &lt;/code&gt;      &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/1266713354063775621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/03/create-dns-server-in-ubuntu-version.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1266713354063775621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/1266713354063775621'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/03/create-dns-server-in-ubuntu-version.html' title='Create DNS server in Ubuntu version'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-7198882767811797043</id><published>2012-03-03T22:11:00.000-08:00</published><updated>2012-03-03T22:11:08.871-08:00</updated><title type='text'>CREATE A YUM REPOSITORY LOCALLY</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h2&gt;Mount your CD/DVD or ISO images&lt;/h2&gt;&lt;h3&gt;&lt;a href=&quot;&quot; name=&quot;DVD_Disk_or_DVD_ISO_image&quot;&gt;&lt;/a&gt;DVD Disk or DVD ISO image&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;If you have DVD disk, please mount dvd-rom first, and then create yum repository: &lt;/li&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# mkdir /mnt/dvd/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount /dev/cdrom /mnt/dvd/&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;If you use DVD iso, please copy it to the system, and then create yum repository: &lt;/li&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# mkdir /mnt/dvd/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;h3&gt;&lt;a href=&quot;&quot; name=&quot;CD_images&quot;&gt;&lt;/a&gt;CD images&lt;/h3&gt;If you have multiple CD image files, you should mount all iso images and then create yum repository. &lt;br /&gt;&lt;ul&gt;&lt;li&gt;Mount all iso images: &lt;/li&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# mkdir -p /mnt/{1,2,3,4,5}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop rhel5.1-disc1.iso /mnt/1&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop rhel5.1-disc2.iso /mnt/2&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop rhel5.1-disc3.iso /mnt/3&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop rhel5.1-disc4.iso /mnt/4&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# mount -o loop rhel5.1-disc5.iso /mnt/5&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;h2&gt;&lt;a href=&quot;&quot; name=&quot;Install_necessary_package&quot;&gt;&lt;/a&gt;Install necessary package&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Find and install &#39;createrepo&#39; package in /mnt directory: &lt;/li&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# find /mnt -iname &#39;createrepo*&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;mnt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dvd&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Server&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;createrepo&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;0.4&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;3.el5.noarch&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rpm&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# rpm -ivh /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;h2&gt;&lt;a href=&quot;&quot; name=&quot;Create_yum_repository&quot;&gt;&lt;/a&gt;Create yum repository&lt;/h2&gt;&lt;h3&gt;&lt;a href=&quot;&quot; name=&quot;Create_metadata&quot;&gt;&lt;/a&gt;Create metadata&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Create yum repository: &lt;/li&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# cd /mnt/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# createrepo .&lt;/span&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;h3&gt;&lt;a href=&quot;&quot; name=&quot;Define_yum_repository&quot;&gt;&lt;/a&gt;Define yum repository&lt;/h3&gt;Create yum repository define file /etc/yum.repos.d/dvdiso.repo: &lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;pun&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ANYNAME&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ANYNAME&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;baseurl&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;///mnt/&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;enabled&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;gpgcheck&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;0&lt;/span&gt;&lt;/pre&gt;&lt;h3&gt;&lt;a href=&quot;&quot; name=&quot;Test_it&quot;&gt;&lt;/a&gt;Test it&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;com&quot;&gt;# yum clean all&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;# yum list&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;ಥಾಟ್ಸ್ ಇಟ್ ಡನ್ &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/7198882767811797043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/03/create-yum-repository-locally.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/7198882767811797043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/7198882767811797043'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/03/create-yum-repository-locally.html' title='CREATE A YUM REPOSITORY LOCALLY'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8427600665303060663.post-5803861743850441478</id><published>2012-02-22T22:49:00.000-08:00</published><updated>2012-02-22T22:49:20.359-08:00</updated><title type='text'>Editing or Adding Grub 2 Menu Entries</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Open these three entering via terminal&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;$ sudo gedit /etc/default/grub&lt;br /&gt;&lt;br /&gt;$ sudo gedit /etc/grub.d/40_custom&lt;br /&gt;&lt;br /&gt;$ sudo gedit /boot/grub.cfg&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;From the grub.conf copy the content which starts from&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;#BEGIN&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;menuentry&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;After u done that you run the command :&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;$&amp;nbsp; sudo update-grub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kirthanshetty.blogspot.com/feeds/5803861743850441478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kirthanshetty.blogspot.com/2012/02/editing-or-adding-grub-2-menu-entries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5803861743850441478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8427600665303060663/posts/default/5803861743850441478'/><link rel='alternate' type='text/html' href='http://kirthanshetty.blogspot.com/2012/02/editing-or-adding-grub-2-menu-entries.html' title='Editing or Adding Grub 2 Menu Entries'/><author><name>kirthan shetty</name><uri>https://plus.google.com/113579458675050896734</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-7RKnAVjJKqs/AAAAAAAAAAI/AAAAAAAAC7o/O6FNOlgPTBw/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>