<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>the lost logbook &#187; Linux</title> <atom:link href="http://utkarshsengar.com/tag/linux/feed/" rel="self" type="application/rss+xml" /><link>http://utkarshsengar.com</link> <description>Utkarsh&#039;s mind.random() on Programming, India and Startups</description> <lastBuildDate>Sun, 30 Oct 2011 06:00:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Manage multiple Linux Users on 1 Amazon EC2 Instance</title><link>http://utkarshsengar.com/2011/01/manage-multiple-accounts-on-1-amazon-ec2-instance/</link> <comments>http://utkarshsengar.com/2011/01/manage-multiple-accounts-on-1-amazon-ec2-instance/#comments</comments> <pubDate>Thu, 06 Jan 2011 19:11:59 +0000</pubDate> <dc:creator>Utkarsh</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[amazon]]></category> <category><![CDATA[ec2]]></category> <category><![CDATA[user-management]]></category> <guid
isPermaLink="false">http://utkarshsengar.com/?p=480</guid> <description><![CDATA[In an organization of say 5, some times you need to give many people access to the same EC2 Instance. Sharing the private key and the password b/w 5 users is definitely not a good idea! So, how do you fix this problem? You create multiple accounts on the Linux EC2 instance and generate keys [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" title="AWS" src="http://img689.imageshack.us/img689/8533/awslogocmyk.jpg" alt="" width="248" height="90" />In an organization of say 5, some times you need to give many people access to the same EC2 Instance. <span
style="text-decoration: underline;">Sharing the private key and the password b/w 5 users is definitely not a good idea</span>!</p><p>So, how do you fix this problem? You create multiple accounts on the Linux EC2 instance and generate keys for every individual accounts, here is how you do it:<br
/> <span
id="more-480"></span></p><h2>Step 0. Login by default user, &#8220;ec2-user&#8221;:</h2><div
class="wp_codebox"><table><tr
id="p48013"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code13"><pre class="bash" style="font-family:monospace;">static-<span style="color: #000000;">9</span>:ec2_thelostlogbook utkarsh$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-i</span> my_key.pem ec2-user<span style="color: #000000; font-weight: bold;">@</span>111.111.11.111</pre></td></tr></table></div><h2>Step 1. Create a new user, we will call our new user &#8220;john&#8221;:</h2><div
class="wp_codebox"><table><tr
id="p48014"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code14"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>ec2-user<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> adduser john</pre></td></tr></table></div><p>Set password for &#8220;john&#8221; by:</p><div
class="wp_codebox"><table><tr
id="p48015"><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code" id="p480code15"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>ec2-user<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ec2-user<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">passwd</span> john</pre></td></tr></table></div><p>Add &#8220;john&#8221; to sudoer&#8217;s list by:</p><div
class="wp_codebox"><table><tr
id="p48016"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code16"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ec2-user<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ visudo</pre></td></tr></table></div><p>and add this to the last line:</p><div
class="wp_codebox"><table><tr
id="p48017"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code17"><pre class="bash" style="font-family:monospace;">john   ALL = <span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span>    ALL</pre></td></tr></table></div><p>Alright! We have our new user created, now you need to generate the key file which will be needed to login, like we have my_key.pem in Step 0.</p><p>Now, exit and go back to ec2-user, out of root.</p><h2>Step 2. Creating the public and private keys:</h2><div
class="wp_codebox"><table><tr
id="p48018"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code18"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>ec2-user<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">su</span> john</pre></td></tr></table></div><p>Enter the password you created for &#8220;john&#8221; in Step 1.</p><div
class="wp_codebox"><table><tr
id="p48019"><td
class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td
class="code" id="p480code19"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ec2-user<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>john<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-b</span> <span style="color: #000000;">1024</span> <span style="color: #660033;">-f</span> john <span style="color: #660033;">-t</span> dsa
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> .ssh
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> .ssh
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> john.pub <span style="color: #000000; font-weight: bold;">&gt;</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> john:ec2-user .ssh</pre></td></tr></table></div><p>In the above step, john is the user we created and ec2-user is the default user group.</p><div
class="wp_codebox"><table><tr
id="p48020"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code20"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> john:ec2-user .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys</pre></td></tr></table></div><h2>Step 3. Now you just need to download the key called &#8220;john&#8221;</h2><p>I use <a
href="http://www.hypexr.org/linux_scp_help.php">scp</a> to download/upload files from EC2, here is how you can do it:</p><p>You will still need to copy the file using ec2-user, since you only have the key for that user name. So, you will need to move the key to ec2-user folder and chmod it to 777.</p><div
class="wp_codebox"><table><tr
id="p48021"><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code" id="p480code21"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> john <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ec2-user<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>john<span style="color: #000000; font-weight: bold;">@</span>ip-<span style="color: #000000;">11</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span>-<span style="color: #000000;">111</span> ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">777</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ec2-user<span style="color: #000000; font-weight: bold;">/</span>john</pre></td></tr></table></div><p>Now come to local machine&#8217;s terminal, where you have my_key.pem file and do this:</p><div
class="wp_codebox"><table><tr
id="p48022"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code22"><pre class="bash" style="font-family:monospace;">static-<span style="color: #000000;">9</span>:ec2_thelostlogbook utkarsh$ <span style="color: #c20cb9; font-weight: bold;">scp</span> <span style="color: #660033;">-i</span> my_key.pem ec2-user<span style="color: #000000; font-weight: bold;">@</span>111.111.11.111:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ec2-user<span style="color: #000000; font-weight: bold;">/</span>john john</pre></td></tr></table></div><p>The above command will copy the key &#8220;john&#8221; to the present working directory on your local machine. Once you have copied the key to your local machine, you should delete &#8220;/home/ec2-user/john&#8221;, since it&#8217;s a private key.</p><p>Now, one your local machine chmod john to 600.</p><div
class="wp_codebox"><table><tr
id="p48023"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code23"><pre class="bash" style="font-family:monospace;">static-<span style="color: #000000;">9</span>:ec2_thelostlogbook utkarsh$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> john</pre></td></tr></table></div><h2>Step 4. Time to test your key:</h2><div
class="wp_codebox"><table><tr
id="p48024"><td
class="line_numbers"><pre>1
</pre></td><td
class="code" id="p480code24"><pre class="bash" style="font-family:monospace;">static-<span style="color: #000000;">9</span>:ec2_thelostlogbook utkarsh$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-i</span> john john<span style="color: #000000; font-weight: bold;">@</span>111.111.11.111</pre></td></tr></table></div><p>So, in this manner, you can setup multiple users to use one EC2 instance!!</p><p>PS: Please post your comments if you find any error.</p> ]]></content:encoded> <wfw:commentRss>http://utkarshsengar.com/2011/01/manage-multiple-accounts-on-1-amazon-ec2-instance/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Epic Fail in Ubuntu &#8211; X Windows (The Copy Paste Bug)</title><link>http://utkarshsengar.com/2010/01/epic-fail-in-linux-copy-paste-bug/</link> <comments>http://utkarshsengar.com/2010/01/epic-fail-in-linux-copy-paste-bug/#comments</comments> <pubDate>Thu, 07 Jan 2010 20:37:53 +0000</pubDate> <dc:creator>Utkarsh</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[ubuntu 9.10]]></category> <category><![CDATA[x-windows]]></category> <guid
isPermaLink="false">http://utkarshsengar.com/?p=214</guid> <description><![CDATA[I have been using Ubuntu 9.10 for a while now and one major copy-paste problem in Ubuntu (GNOME DE) struck me!! The problem is, if you copy some text from a file and you close that file (i.e. close the source), the copied text also disappears! Initially I ignored the problem, but after a while, [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" title="Bug in X-Windows" src="http://img31.imageshack.us/img31/9290/11948full.jpg" alt="" width="195" height="146" />I have been using <a
href="http://utkarshsengar.com/tag/ubuntu-9-10/">Ubuntu 9.10</a> for a while now and one major copy-paste problem in Ubuntu (GNOME DE) struck me!!</p><p>The problem is, if you copy some text from a file and you close that file (i.e. close the source), the copied text also disappears! Initially I ignored the problem, but after a while, I had it! It was really very annoying if you copied some important link and you close Firefox, the link was lost!</p><p>When I went out and searched for the problem then I found this, the <a
href="https://bugs.launchpad.net/ubuntu/+bug/11334/">actual bug report</a> on the Ubuntu Bug Tracker. According to the <a
href="https://bugs.launchpad.net/ubuntu/+bug/11334/comments/16">Canonical guys</a>, it is a system feature of the <a
href="http://en.wikipedia.org/wiki/X_Window_System">X-Windows System</a>, as per its design, it does not have any persistent store mechanism and that sucks! (<a
href="http://www.freedesktop.org/wiki/ClipboardManager">Here</a> are the X-windows Clipboard manager specifications which is presently deployed on Ubuntu 9.10)<span
id="more-214"></span></p><p>That means, the primary problem is with the X-Windows System and I hope this flaw is sorted out in Ubuntu&#8217;s next LTS release, <a
href="http://fridge.ubuntu.com/node/1916">The Lucid Lynx.</a></p><p><strong>So the question is, how do you solve this problem for now?! </strong>I have the solution :)</p><p>The solution to this problem is to install <a
href="http://glipper.sourceforge.net/">Glipper</a>, a clipboard manager for GNOME. You can simple install it from the terminal:</p><blockquote><p>sudo apt-get install glipper</p></blockquote><p>This will replace your current clipboard manager and it works perfectly!</p><p>So, that will solve your problem of the missing copy in Ubuntu GNOME! ;)</p> ]]></content:encoded> <wfw:commentRss>http://utkarshsengar.com/2010/01/epic-fail-in-linux-copy-paste-bug/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Sync Google Calendar with GNOME clock</title><link>http://utkarshsengar.com/2009/11/google-calendar-with-gnome-clock/</link> <comments>http://utkarshsengar.com/2009/11/google-calendar-with-gnome-clock/#comments</comments> <pubDate>Thu, 26 Nov 2009 06:22:06 +0000</pubDate> <dc:creator>Utkarsh</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[google calendar]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://utkarshsengar.com/?p=103</guid> <description><![CDATA[You can merge your GNOME desktop (Ubuntu 9.10) with Google Calendar via iCalendar Format. This a very nifty hack for people who use Google Calendar and want your Linux to in sync with Google Calendar. What is iCalendar? XML or iCalendar &#8211; Use these formats to view a read-only version of your calendar from other [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" title="Google Calendar and Gnome logo" src="http://img690.imageshack.us/img690/2333/78404191.png" alt="" width="119" height="109" />You can merge your GNOME desktop (<a
href="http://utkarshsengar.com/2009/11/ubuntu-9-10-karmic-koala/">Ubuntu 9.10</a>) with <a
href="http://google.com/calendar">Google Calendar </a>via <a
href="http://en.wikipedia.org/wiki/ICalendar">iCalendar Format</a>. This a very nifty hack for people who use Google Calendar and want your Linux to in sync with Google Calendar.</p><p>What is iCalendar?</p><blockquote><p><strong>XML</strong> or <strong>iCalendar</strong> &#8211; Use these formats to view a read-only version of your calendar from other applications. You can use this address to access your calendar from feed readers (like Google Reader) as well as products that support the iCalendar format (like Apple&#8217;s iCal). via <a
href="http://www.google.com/support/calendar/bin/answer.py?hl=en&amp;answer=37648">Google Support</a></p></blockquote><blockquote><p><span
id="more-103"></span>1. Go to your Google Calendar and select the down arrow with calendar you want to sync with GNOME and select <strong>Calendar Setting</strong></p></blockquote><p><strong> </strong><img
class="alignnone" title="Google Calendar settings" src="http://img204.imageshack.us/img204/2684/15876770.png" alt="" width="204" height="133" /></p><blockquote><p>2. Copy the link of the Green button, iCal next to Private Address.</p></blockquote><p><img
class="alignnone" title="Copy iCal" src="http://img692.imageshack.us/img692/6123/34431897.png" alt="" width="518" height="101" /></p><blockquote><p>3. Now, open the linux Terminal and type the following:</p></blockquote><blockquote><p><strong>/usr/lib/evolution-webcal/evolution-webcal URL_YOU_COPIED</strong></p></blockquote><p>That&#8217;s it! You will see an appointments option under the GNOME clock.</p><p><img
class="alignnone" title="Google Calendar with GNOME" src="http://img28.imageshack.us/img28/7272/66405293.png" alt="" width="291" height="468" /></p><p
style="text-align: right;"><a
href="http://clarkbw.net/blog/2006/12/08/mashing-google-calendar-and-gnome/">via Bryan Clark</a></p><p
style="text-align: right;"> ]]></content:encoded> <wfw:commentRss>http://utkarshsengar.com/2009/11/google-calendar-with-gnome-clock/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>JMS application on Ubuntu 9.10 using Eclipse Ganymede</title><link>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/</link> <comments>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/#comments</comments> <pubDate>Fri, 06 Nov 2009 22:20:37 +0000</pubDate> <dc:creator>Utkarsh</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[eclipse]]></category> <category><![CDATA[java]]></category> <category><![CDATA[jboss]]></category> <category><![CDATA[jms]]></category> <category><![CDATA[ubuntu 9.10]]></category> <guid
isPermaLink="false">http://utkarshsengar.com/?p=43</guid> <description><![CDATA[If you a windows &#8220;power&#8221; user, a shift to linux will be really good, but it also comes with little packages of frustration sometimes. I was trying to install JBOSS 4.3.2 (which was very smooth) and trying to run a JMS application. This is a very easy task in Windows, but since, I am new [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" src="http://img525.imageshack.us/img525/9219/jbosslogo.png" alt="" width="215" height="95" />If you a windows &#8220;power&#8221; user, a shift to linux will be really good, but it also comes with little packages of frustration sometimes.</p><p>I was trying to install <a
href="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/">JBOSS 4.3.2 </a>(which was very smooth) and trying to run a <a
href="http://java.sun.com/products/jms/">JMS</a> application. This is a very easy task in Windows, but since, I am new to linux, some easy tasks became so annoying!!! But later I realized it was much simpler once you get the hang of it. So, here are the steps to run a JMS application on Linux (Ubuntu 9.10)<span
id="more-43"></span></p><p>1. Install <a
href="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/">JBOSS 4.3.2</a></p><blockquote><p>Download JBOSS 4.3.2 to your desktop and extract the tar.gz or zip file ot <a
href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-filesystem-fhs.html">/opt folder</a> in the main file system.</p><p
style="padding-left: 60px;"><span
style="color: #000000;">&#8220;<strong>sudo unzip boss-4.2.3.GA-jdk6.zip /opt</strong>&#8220;</span></p><p><span
style="color: #000000;">And you are done with your JBOSS installation!!</span></p><p><span
style="color: #000000;">Go to your terminal and type </span>&#8220;<strong>sudo /opt/jboss-4.2.3.GA/bin/run.sh</strong>&#8220;. This will start you JBOSS server in 20-25 seconds.</p></blockquote><p>2. Configure the <a
href="http://lowfatlinux.com/linux-environment-variables.html">environment variable in linux</a></p><blockquote><p>This was the most annoying part for me since I didn&#8217;t know how to set the environment variable in Linux. Though its a very very easy process!</p><p>Execute this following code in the terminal:</p><p><strong>export CLASSPATH=$CLASSPATH:/CLASSPATH=/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong><br
/> To check if you have set the CLASSPATH correctly, type <strong>echo $CLASSPATH</strong> and if you see the following, you see this, you have set your classpath correctly!</p><p><strong>:/CLASSPATH=/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong></p></blockquote><p>3. Configure your <a
href="http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html">JMS code</a> (<a
href="http://java.sun.com/products/jms/tutorial/">more example</a>) (depends on your code)</p><blockquote><p>Go to Eclipse IDE and import your JMS Code. The most simple code should contain 2 files, a client and a server. Then right click on the project &gt; Build Path &gt; Add External Archives; then browse to the folder where you installed JBOSS, (<strong>/opt/jboss-4.2.3.GA/</strong>) in our case and then go to <strong>client folder</strong> and add jbossall-client.jar</p><p><strong>/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong></p><p><strong>You are all set to run your first JMS application!</strong></p><p>You need to create a <a
href="http://gsraj.tripod.com/jms/jms.html">topic or queue</a> to run the server, for this start the JBOSS server using:</p><p><strong>sudo /opt/jboss-4.2.3.GA/bin/run.sh</strong></p><ol><li>Go to http://localhost:8080 in your browser.</li><li>Go to JMX console</li><li>Scroll down to <strong>jboss.mq</strong> and click on <strong>service=DestinationManager</strong></li><li>Scroll down to  <strong>createTopic() </strong>method; type in the topic name you want to create and click &#8220;invoke&#8221;</li></ol></blockquote><p>4. Integrate JBOSS with Eclipse Ganymede using <a
href="http://www.jboss.org/tools">JBOSS Tools</a> (optional)</p><blockquote><p>If you want to start and stop the JBOSS server from your Eclipse installation then add the JBOSS Tools to eclipse in Help &gt; Software Updates. You can follow the steps given in <a
href="http://ist.berkeley.edu/as-ag/tools/howto/jboss-eclipse.html">this tutorial</a>.</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sync iPod on Ubuntu 9.10 using Virtual Box 3.0.10</title><link>http://utkarshsengar.com/2009/11/sync-ipod-on-ubuntu-9-10-using-virtual-box-3-0-10/</link> <comments>http://utkarshsengar.com/2009/11/sync-ipod-on-ubuntu-9-10-using-virtual-box-3-0-10/#comments</comments> <pubDate>Mon, 02 Nov 2009 07:43:30 +0000</pubDate> <dc:creator>Utkarsh</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[ipod]]></category> <category><![CDATA[itouch]]></category> <category><![CDATA[sync]]></category> <category><![CDATA[ubuntu 9.10]]></category> <category><![CDATA[virtual box]]></category> <guid
isPermaLink="false">http://utkarshsengar.com/?p=28</guid> <description><![CDATA[Syncing iPod/iTouc/iPhone with Linux is a major headache! UPDATE: Rhythmbox works out of of the box with iPod, check here I tried many softwares; the so called iTunes alternatives, but none of them actually work! The one guaranteed way to sync iPod with iTunes on Linux (Ubuntu 9.10, 32bit) is by using VirtualBox and tweaking [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignleft" title="Linux and iPod" src="http://img94.imageshack.us/img94/3830/shuffle.png" alt="" width="141" height="119" />Syncing iPod/iTouc/iPhone with Linux is a major headache!</p><h4><strong>UPDATE: Rhythmbox works out of of the box with iPod, check <a
href="http://www.howtoforge.com/linux_rhythmbox_ipod">here</a></strong></h4><p>I tried many softwares; the so called <a
href="http://www.simplehelp.net/2007/07/08/10-alternatives-to-itunes-for-managing-your-ipod/">iTunes alternatives</a>, but none of them actually work!</p><p>The one guaranteed way to sync iPod with iTunes on Linux (Ubuntu 9.10, 32bit) is by using <a
href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> and tweaking your Linux box.</p><p>What I am using?</p><p><span
id="more-28"></span></p><ol><li>Ubuntu 9.10, 32bit</li><li>Virtual Box 3.0.10</li><li>Windows Server 2003 (You can also use Windows XP SP2, I haven&#8217;t testing it, but it should work.)</li><li>iTouch 2nd Gen with iTouch OS 3.1</li></ol><p>This <a
href="http://maketecheasier.com/sync-ipod-touch-with-win-xp-vm-in-ubuntu-intrepid/2008/12/16" target="_blank">tutorial</a> guides through the complete process, its simple and easy, but this tutorial is for old versions of VB and Ubuntu. You don&#8217;t need to follow the last few stages of the guide. SO, the revised stages are:</p><ol><li><h3>Install Virtualbox</h3></li><li><h3>Configure the USB support</h3></li><li><h3><span
style="color: #ff0000;">You don&#8217;t need to recompile the kernel USB support as mentioned in the tutorial.</span></h3></li><li><h3>Connect iPod Touch to Windows XP VM</h3></li></ol><p>And you are done, if everything goes well, you will be able to see you iPod in your iTunes.</p><p><strong><br
/> </strong></p><p><strong>UPDATE &#8211; WITHOUT USING VIRTUAL BOX</strong></p><p><a
href="http://ostatic.com/blog/linux-and-your-iphone-ipod-touch">Linux and Your iPhone / iPod Touch using iFush and libiphone-utils libraries.</a></p> ]]></content:encoded> <wfw:commentRss>http://utkarshsengar.com/2009/11/sync-ipod-on-ubuntu-9-10-using-virtual-box-3-0-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
