<?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: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-1470157587537052775</id><updated>2012-01-30T21:02:21.931-08:00</updated><title type='text'>Configuring Linux</title><subtitle type='html'>Configuration tips and tricks for Linux in the Enterprise.
Our blogs: http://linuxconfig.blogspot.com/, http://rknowsys-ror.blogspot.com/, http://corporatelinux.blogspot.com/
 -- www.rknowsys.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxconfig.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxconfig.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kc</name><uri>http://www.blogger.com/profile/05313666068473957349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1470157587537052775.post-8284777230864072295</id><published>2008-11-21T05:21:00.000-08:00</published><updated>2008-11-21T05:34:37.987-08:00</updated><title type='text'>Tutorial on hosting RoR app on Amazon AWS with EC2, EBS, Ruby Enterprise Edition (REE) and Phusion Passenger (mod_rails)</title><content type='html'>Background:&lt;br /&gt;We built a tourism portal in RoR for one of our clients. You have a look at it - - www.tripladder.com&lt;br /&gt;After building it, we were requested to host and manage it for them. Initially we went with knownhost which is OK but a production RoR application needs more RAM than what we get on most VPS plans - especially if we have image processing. We did consider AWS but at that time it did not have EBS and the client did not initially expect enough traffic to justify a 'scalr' managed cluster. We were looking for a replacement to a dedicated server. Once EBS was launched, we immediately decided to move the site to AWS. The Cost-benefit analysis is compelling.&lt;br /&gt;&lt;br /&gt;The following tutorial starts off after signing up with AWS and configuring your desktop/laptop to be able to connect to AWS and launch instances i.e. we assume that you have completed the 'Getting Started' section of AWS.&lt;br /&gt;&lt;br /&gt;We have started with the stock Fedora image and modified it to our requirements. We could have used CentOS but Fedora-8 appeared at the top of the list and we went ahead with it.&lt;br /&gt;&lt;br /&gt;The application hosting has the following steps.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;  Launching an instance.  &lt;/li&gt;&lt;li&gt;  Installing RoR, gems, plugins...We used rmagick, hence we had to install Imagemagick too.  &lt;/li&gt;&lt;li&gt;  Installing REE and Phusion (mod_rails)&lt;br /&gt; &lt;/li&gt;&lt;li&gt;  Installing mysql.  &lt;/li&gt;&lt;li&gt;  Intalling the application (checkout from subversion).  &lt;/li&gt;&lt;li&gt;  Creating and attaching a EBS volume. Mysql with data on EBS  &lt;/li&gt;&lt;li&gt;  Modifying the RoR app to save user upload files to EBS.(&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:85%;"&gt;http://docs.google.com/Doc?id=dcn2ckbh_20hk4kc4d4&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;  Installing and configuring a production level ferret server  &lt;/li&gt;&lt;li&gt;  Configuring Apache to serve the application, caching optimisations for performance.  &lt;/li&gt;&lt;li&gt; Configuring permanent public IP (covered) and DNS (we have the domain parked with go daddy but this is not covered in this article) &lt;/li&gt;&lt;li&gt;  Configuring smtp (email) support for RoR application.  &lt;/li&gt;&lt;li&gt;  Once we have the perfect server setup, save it to S3.  &lt;/li&gt;&lt;li&gt;  Periodic automated backups - Using Amazon snapshots.&lt;span style="background-color: rgb(255, 0, 0);"&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;The full tutorial is available here:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;http://docs.google.com/Doc?id=dcn2ckbh_21gznbbjhr&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1470157587537052775-8284777230864072295?l=linuxconfig.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxconfig.blogspot.com/feeds/8284777230864072295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1470157587537052775&amp;postID=8284777230864072295' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/8284777230864072295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/8284777230864072295'/><link rel='alternate' type='text/html' href='http://linuxconfig.blogspot.com/2008/11/tutorial-on-hosting-ror-app-on-amazon.html' title='Tutorial on hosting RoR app on Amazon AWS with EC2, EBS, Ruby Enterprise Edition (REE) and Phusion Passenger (mod_rails)'/><author><name>kc</name><uri>http://www.blogger.com/profile/14967738987222471098</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1470157587537052775.post-8167904674370800504</id><published>2007-10-22T00:31:00.000-07:00</published><updated>2007-10-22T01:21:50.628-07:00</updated><title type='text'>HOWTO - http(Apache) + Subversion on FC7</title><content type='html'>This is a howto on getting subversion (multiple repositories) + http on FC7.&lt;br /&gt;&lt;br /&gt;We will be logged in as root for quite a few tasks - make sure that you have read relevant documentation/tutorials before trying this HOWTO.&lt;br /&gt;&lt;br /&gt;Keep an eye on 2 important things:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;id of logged in user&lt;/li&gt;&lt;li&gt;pwd - present working directory&lt;/li&gt;&lt;/ul&gt;Both of these will be apparent in the prompt - I have used the standard prompt on&lt;br /&gt;any Linux system - [user@machine 'pwd']&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Install svn and mod_dav_svn via yum&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Log in as root and create your directory structure for holding the repo:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: times new roman;"&gt;[root@rknowsys2 var]#  mkdir -p /var/subversion/repos&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. The repository has to be owned by apache to enable apache to read and write to this directory:&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 var]# chown -R apache:apache /var/subversion&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Create your repo - &lt;/span&gt;&lt;br /&gt;[root@rknowsys2 var]#  svnadmin create /var/subversion/repos/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Import you source files into the repo - My source files are in directory "/root/kc/for-svn/iRunway" ------&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 var]# svn import /root/kc/for-svn/iRunway file:///var/subversion/repos/iRunway -m "initial import"&lt;br /&gt;You will see stuff like this........&lt;br /&gt;Adding         /root/kc/for-svn/iRunway/trunk/public/application-help.html&lt;br /&gt;Adding         /root/kc/for-svn/iRunway/trunk/public/favicon.ico&lt;br /&gt;..................&lt;br /&gt;..............&lt;br /&gt;...................................&lt;br /&gt;Committed revision 1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Now ensure that /var/subversion is owned by apache - Since I ran the 'svn create'  and 'svn import' as root, I am not sure  who owns the repo -  The below command is to remove  these doubts:&lt;/span&gt;&lt;br /&gt; [root@rknowsys2 for-svn]# chown -R apache:apache /var/subversion&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. Now lets configure apache to work with subversion&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;refer this link:  http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Edit the conf file and add the content at the end of the file:&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 junk]# vi /etc/httpd/conf/httpd.conf&lt;br /&gt;# kc start configuring apache for subversion 07-aug-07&lt;br /&gt;# Instructions from:&lt;br /&gt;#    http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html&lt;br /&gt;# The above page is also saved to /root/admin-functions/subversion-stuff&lt;br /&gt;# already loaded - kc LoadModule dav_svn_module     modules/mod_dav_svn.so&lt;br /&gt;&lt;location&gt;&lt;br /&gt;        DAV svn&lt;br /&gt;        SVNPath /var/subversion/repos/&lt;br /&gt;        #ServerName svn-rknowsys.no-ip.info&lt;br /&gt;        #ServerName 192.168.0.13 server name given in orig location above!!!!&lt;br /&gt;&lt;br /&gt;        # how to authenticate a user&lt;br /&gt;        AuthType Basic&lt;br /&gt;        AuthName "Subversion repository"&lt;br /&gt;        AuthUserFile /etc/svn-auth-file&lt;br /&gt;&lt;br /&gt;        # only authenticated users may access the repository&lt;br /&gt;        Require valid-user&lt;br /&gt;&lt;/location&gt;&lt;br /&gt;CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION&lt;br /&gt;# kc end subversion stuff 07-aug-07&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. Now create subversion users:&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 junk] htpasswd -cm /etc/svn-auth-file kcr&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;New password: *****&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;Re-type new password: *****&lt;span style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;Adding password for user kcr&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9. Restart the httpd server&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 for-svn]# service httpd restart&lt;br /&gt;Stopping httpd:                                            [  OK  ]&lt;br /&gt;Starting httpd:                                            [  OK  ]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10. Start using the repo&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 junk]# svn list http://192.168.0.13/repos/iRunway&lt;br /&gt;Authentication realm: &lt;http://192.168.0.13:80&gt; Subversion repository&lt;br /&gt;Password for 'root':&lt;br /&gt;Authentication realm: &lt;http://192.168.0.13:80&gt; Subversion repository&lt;br /&gt;Username: kcr&lt;br /&gt;Password for 'kcr':&lt;br /&gt;branches/&lt;br /&gt;tags/&lt;br /&gt;trunk/&lt;br /&gt;[root@rknowsys2 junk]#&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;11. And now start creating subversion users using the htpasswd command shown above. - You are ready to roll it out to users.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;12. &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Making multiple subversion repositories:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Let us do this in directory:/var/subversion/repos1&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 ~]# sudo -u apache mkdir -p /var/subversion/repos1&lt;br /&gt;[root@rknowsys2 ~]# svnadmin create /var/subversion/repos1/ideaexchage&lt;br /&gt;[root@rknowsys2 ~]# svnadmin create /var/subversion/repos1/tourism&lt;br /&gt;[root@rknowsys2 ~]# svn import /root/kc/for-svn/ideaXchange/ file:///var/subversion/repos1/ideaexchage/ -m "Initial import"&lt;br /&gt;Adding ........&lt;br /&gt;..........................................................&lt;br /&gt;Committed revision 1.&lt;br /&gt;[root@rknowsys2 ~]# svn import /root/kc/for-svn/tourism/ file:///var/subversion/repos1/tourism/ -m "Initial import"&lt;br /&gt;Committed revision 1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;13. Now need to modify apache conf file:&lt;/span&gt;&lt;br /&gt;Put this in the apache dir:&lt;br /&gt;# kc start configuring apache for multiple repos in subversion 22-aug-07&lt;br /&gt;# Instructions from:&lt;br /&gt;#       http://svn.haxx.se/users/archive-2004-09/1190.shtml&lt;br /&gt;#       http://cheminfo.informatics.indiana.edu/~rguha/misc/svnapache.html&lt;br /&gt;# The above page is also saved to /root/admin-functions/subversion-stuff&lt;br /&gt;# already loaded - kc LoadModule dav_svn_module     modules/mod_dav_svn.so&lt;br /&gt;&lt;location&gt;&lt;br /&gt;        DAV svn&lt;br /&gt;        SVNParentPath /var/subversion/repos1/&lt;br /&gt;&lt;br /&gt;        # how to authenticate a user&lt;br /&gt;        AuthType Basic&lt;br /&gt;        AuthName "Subversion repository"&lt;br /&gt;        AuthUserFile /etc/svn-auth-file&lt;br /&gt;&lt;br /&gt;        # only authenticated users may access the repository&lt;br /&gt;        Require valid-user&lt;br /&gt;&lt;/location&gt;&lt;br /&gt;# kc end subversion stuff 22-aug-07&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;14. Restart the apache server&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 ~]# service httpd restart&lt;br /&gt;Stopping httpd:                                            [  OK  ]&lt;br /&gt;Starting httpd:                                            [  OK  ]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;15. Verify that the new repos are accessible&lt;/span&gt;&lt;br /&gt;[root@rknowsys2 ~]# svn list http://192.168.0.12/repos1/tourism&lt;br /&gt;Authentication realm: &lt;http://192.168.0.12:80&gt; Subversion repository&lt;br /&gt;Password for 'root':&lt;br /&gt;Authentication realm: &lt;http://192.168.0.12:80&gt; Subversion repository&lt;br /&gt;Username: kcr&lt;br /&gt;Password for 'kcr':&lt;br /&gt;branches/&lt;br /&gt;tags/&lt;br /&gt;trunk/&lt;br /&gt;[root@rknowsys2 ~]#&lt;br /&gt;&lt;br /&gt;WORKING FINE...........&lt;br /&gt;The problem was I typed 'repo1' instead of 'repos1'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1470157587537052775-8167904674370800504?l=linuxconfig.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxconfig.blogspot.com/feeds/8167904674370800504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1470157587537052775&amp;postID=8167904674370800504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/8167904674370800504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/8167904674370800504'/><link rel='alternate' type='text/html' href='http://linuxconfig.blogspot.com/2007/10/howto-httpapache-subversion-on-fc7.html' title='HOWTO - http(Apache) + Subversion on FC7'/><author><name>kc</name><uri>http://www.blogger.com/profile/14967738987222471098</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1470157587537052775.post-7994505022855750253</id><published>2007-09-25T05:22:00.000-07:00</published><updated>2007-09-25T05:38:39.451-07:00</updated><title type='text'>Getting ubuntu 7.04 on Laptop to auto-detect USB Flash drive</title><content type='html'>&lt;div style="text-align: justify;"&gt;This had been bugging me for quite some time now and tried a ton of stuff. Finally found the solution in the description of usbmount in the synaptic package - &lt;span style="font-weight: bold;"&gt;Just install pmount and hal packages&lt;/span&gt;. You might need to reboot for this to take effect - after this it works like a charm.&lt;br /&gt;&lt;br /&gt;It was working fine in all desktops (Ubuntu 7.04) in our organisation but was bothering me on my laptop and now that is solved too.&lt;br /&gt;&lt;br /&gt;Laptop - Compaq Presario V6120US&lt;br /&gt;&lt;br /&gt;I have all the following configured on my laptop:&lt;br /&gt;1. nvidia graphics drivers with 3D Effects&lt;br /&gt;2. Full multimedia&lt;br /&gt;3. Audio input/output&lt;br /&gt;4. Skype, pidgin, webcam&lt;br /&gt;5. Wifi&lt;br /&gt;6. USB drive&lt;br /&gt;7. Flash&lt;br /&gt;&lt;br /&gt;In short I have a Ubuntu laptop with full hardware and software functionality.&lt;br /&gt;I have loaded 32 bit Ubuntu on my 64 bit laptop - 64 bit Ubuntu seems to have problems with Wifi. And that seems to be the *only* problem.&lt;br /&gt;Full details at a later date but flash was the only one which bothered me and hence this post for other users. Rest of the installations/configurations are easy or handled out of the box(Including synaptic repositories) except webcam and wifi which need a bit of tweaking.&lt;br /&gt;&lt;br /&gt;I am starting to understand now why Ubuntu is really all that great. I have been using Redhat/Fedora since 1998 and briefly dabbled with Suse 10.2 but this is the first time I have felt that Linux has a fighting chance on the desktop.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1470157587537052775-7994505022855750253?l=linuxconfig.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxconfig.blogspot.com/feeds/7994505022855750253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1470157587537052775&amp;postID=7994505022855750253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/7994505022855750253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/7994505022855750253'/><link rel='alternate' type='text/html' href='http://linuxconfig.blogspot.com/2007/09/getting-ubuntu-704-on-laptop-to-auto.html' title='Getting ubuntu 7.04 on Laptop to auto-detect USB Flash drive'/><author><name>kc</name><uri>http://www.blogger.com/profile/14967738987222471098</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1470157587537052775.post-7996384374307137072</id><published>2007-09-09T00:28:00.000-07:00</published><updated>2007-09-09T00:35:22.784-07:00</updated><title type='text'>General ramblings</title><content type='html'>&lt;div style="text-align: justify;"&gt;I have the following which I will be updating on this blog:&lt;br /&gt;1. Configuring iptables and ipswan for connecting to SAP germany. (Done for one of our clients who is a development partner for SAP.) (Fedora-4)&lt;br /&gt;2. subversion - inside our organisation. (Fedora-7)&lt;br /&gt;3. Sakai on CentOS 5.0&lt;br /&gt;4. Liferay on CentOS 5.0&lt;br /&gt;5. Mongrel on Fedora 7.&lt;br /&gt;6. Fedora Directory server.....&lt;br /&gt;&lt;br /&gt;I need to find time to polish the documents and put them up here. Need to do this without letting my new wife feel that I am neglecting her!!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1470157587537052775-7996384374307137072?l=linuxconfig.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxconfig.blogspot.com/feeds/7996384374307137072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1470157587537052775&amp;postID=7996384374307137072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/7996384374307137072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1470157587537052775/posts/default/7996384374307137072'/><link rel='alternate' type='text/html' href='http://linuxconfig.blogspot.com/2007/09/general-ramblings.html' title='General ramblings'/><author><name>kc</name><uri>http://www.blogger.com/profile/14967738987222471098</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
