<?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-333092216324663106</id><updated>2012-02-16T15:20:19.857+01:00</updated><category term='Netbeans'/><category term='RedHat'/><category term='Amazon EC2'/><category term='Game Linux FlightGear'/><category term='Linux Ubuntu Gutsy'/><category term='Cloud Computing'/><category term='Maven'/><category term='IceFaces'/><category term='Linux'/><category term='Eucalyptus'/><category term='Linux Kernel'/><category term='UEC'/><category term='Ubuntu'/><category term='Oracle'/><category term='CVE'/><category term='Greasemonkey'/><title type='text'>Tamás Tarjányi's Blog</title><subtitle type='html'>Anything I think might be interesting or useful. Planed to be mainly IT related but who knows what happens?</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-2700420001938057019</id><published>2011-10-15T11:22:00.000+02:00</published><updated>2011-10-16T19:51:44.119+02:00</updated><title type='text'>A bad weekend of Apple, Ubuntu and me</title><content type='html'>Over the weekend I have had 2 technical problems. And a third one which was the emotional consequence of the 2 technical ones. &lt;br /&gt;&lt;br /&gt;So the first problem was a result of iOS5 update. My iTouch 4th gen became unstable. I liked my iTouch, iPad and iXXXXX because they were always responsive and reliable. No lags no glitches no errors. But after I have installed iOS5 on my iTouch. My oh my!!! Lags are there and makes me feel like on Windows.&lt;br /&gt;The other issue seems to be a bug. You can test it by yourself.&lt;br /&gt;Start "App Store" - Select "Updates" - Select "Purchased" - Select "Not on this iPod" - Swipe right to left on any item and then select the "Hide" button.&lt;br /&gt;In my case "App Store" always does exit.&lt;br /&gt;Steve Jobs have died just one week before the release of iOS5 and here we are. Everything I really like for iOS devices have gone. Think about it.&lt;br /&gt;&lt;br /&gt;The other problem is more serious. And to be honest more depressing to me.&lt;br /&gt;I have upgraded my Ubuntu 11.04 to Ubuntu 11.10 on my "office" notebook.&lt;br /&gt;And for first look I hit bug &lt;a href="https://bugs.launchpad.net/linaro-ubuntu/+bug/856810"&gt;"Booting system without full network configuration..."&lt;/a&gt;&lt;br /&gt;What does it mean you may ask? A normal user who runs into this bug can not work anymore on the machine. So this is THE experience a normal user can not tolerate and will change to something else. Good question what the next choice will be. Back to windows?&lt;br /&gt;&lt;br /&gt;To me the conclusion was that instead of companies making products more stable -&amp;nbsp; Apple and Linux like - Apple and Linux are making themselves more of a Microsoft like. And sorry to say but that is really-really depressing me.&lt;br /&gt;&lt;br /&gt;I beg you Apple and Ubuntu to follow your own path and forget the Microsoft one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-2700420001938057019?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/2700420001938057019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=2700420001938057019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/2700420001938057019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/2700420001938057019'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2011/10/bad-weekend-of-apple-ubuntu-and-me.html' title='A bad weekend of Apple, Ubuntu and me'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-398937815684241724</id><published>2011-06-10T00:57:00.005+02:00</published><updated>2011-06-11T23:53:41.443+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Amazon EC2'/><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Computing'/><title type='text'>Why ec2-ami-tools - ec2-upload-bundle - hangs</title><content type='html'>Me and my colleagues had been fighting an issue for some days. Since it made me really-really f**** upset I decided to investigate it now. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;The issue:&lt;/b&gt; is that if you are behind a proxy (not necessarily) - http or socks does not matter much - you might have problem with &lt;i&gt;ec2-ami-tools&lt;/i&gt;. When you start &lt;i&gt;ec2-upload-bundle&lt;/i&gt; it does nothing just looks like hanging. We had been waiting for some minutes but nothing happened. Actually it is trying to do something but can not start upload. &lt;br /&gt;In contrast on my home network &lt;i&gt;ec2-upload-bundle&lt;/i&gt; almost immediately starts uploading and showing a message to indicate it. &lt;br /&gt;So what is wrong? Why this is happening from behind a proxy? Is it proxy related?&lt;br /&gt;&lt;br /&gt;We have tested many possible workarounds without any luck.&lt;br /&gt;First we have specified &lt;i&gt;http_proxy&lt;/i&gt; and &lt;i&gt;https_proxy&lt;/i&gt; of course but it did not work.&lt;br /&gt;Then we also tried to socksify the process. Without any luck.&lt;br /&gt;At that point we decided to eliminate the proxies. We got an access to a machine in DMZ and we made a dynamic port forwarding and tried to use that as a socks proxy server. And that was really surprising because even that did not work.&lt;br /&gt;Everything else - Firefox, ssh - was working fine but not &lt;i&gt;ec2-ami-tools&lt;/i&gt;. &lt;br /&gt;Here we ran out of the ideas for a while.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;But&amp;nbsp; of course problem happens to be solved.&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;So I made a tcpdump, had a look and saw that the process is trying to access a special IP address 169.254.169.254 . This is a link-local IP address and this is used by amazon within the cloud to fetch some instance specific data. It is unclear why &lt;i&gt;ec2-upload-bundle&lt;/i&gt; is trying to reach it. It is much more unclear how the program is written to be able to hang on it. I mean it is also visible that it makes a retry before the TCP timeout (0,3,9 sec) but than it gives up and hangs.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Workaround:&lt;/b&gt; to the problem can be to configure this 169.254.169.254 IP on the ssh server or http/socks proxy server. Also you can try somehow locally - with a firewall - reject these connections. But you have to prevent the connection to timeout since if the connection times out ec2-upload-bundle will hang. See the note for an alternative workaround.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; This is working on my home machine because normally my Ubuntu Linux has a 169.254.0.0/16 route. And this is enough to prevent the timeout. But only if you are not using proxy. If proxy is in between than your own routing is not used to reach this IP but the route of the proxy is used. So you have to add this route to the proxy/ssh server if you can.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;route add -net 169.254.0.0 netmask 255.255.0.0 dev eth0 # Replace eth0 with your interface.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Comment:&lt;/b&gt; I have less motivation now to investigate it further but probably I will check what is wrong in the code and why &lt;i&gt;ec2-upload-bundle&lt;/i&gt; hangs in such a case. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update 1:&lt;/b&gt; I have checked the source code of ec2-ami-tools and it seems the error is in &lt;i&gt;instance-data.rb&lt;/i&gt;. The &lt;i&gt;initialize&lt;/i&gt; method is checking if the meta data is available or not and set @instance_data_accessible according. But there is no timeout defined here so you have to wait ... It seems even the TCP timeout is not realized by the &lt;i&gt;open&lt;/i&gt; method. A Timeout::timeout(10) { } can solve this error.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update 2:&lt;/b&gt; Later in &lt;i&gt;instance-data.rb&lt;/i&gt; the &lt;i&gt;read_meta_data(path)&lt;/i&gt; method should call the &lt;i&gt;open()&lt;/i&gt; method only if &lt;i&gt;@instance_data_accessible&lt;/i&gt; is true. But this is not the case. I do not know ruby at all but this seems to be a coding error. I have just added some print command to see what was going there but do not understand the code really. Besides the open() methods here also hanging indefinitely. So this is a complete hang here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-398937815684241724?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/398937815684241724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=398937815684241724' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/398937815684241724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/398937815684241724'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2011/06/why-ec2-ami-tools-ec2-upload-bundle.html' title='Why ec2-ami-tools - ec2-upload-bundle - hangs'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total><georss:featurename>Budapest, Hungary</georss:featurename><georss:point>47.4984056 19.040757799999938</georss:point><georss:box>47.3372926 18.785600799999937 47.6595186 19.295914799999938</georss:box></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-38082873061975786</id><published>2011-04-30T20:35:00.000+02:00</published><updated>2011-10-10T12:51:17.254+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RedHat'/><category scheme='http://www.blogger.com/atom/ns#' term='Amazon EC2'/><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Computing'/><title type='text'>How to create a custom RedHat / CentOS Amazon EC2 / Cloud image</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;Note: Cloud computing is currently a very dynamic segment of IT and relevant changes - regarding technologies, available&amp;nbsp;features&amp;nbsp;and &lt;u&gt;licensing&lt;/u&gt; - might happen anytime.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;First of all you may ask why to build your own AMI when you can find many existing &amp;nbsp;-&amp;nbsp;CentOS&amp;nbsp;and other free - Amazon EC2 images.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;The following sentences are taken from an &lt;a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?AESDG-chapter-usingsharedamis.html#usingsharedamis-security"&gt;official amazon document&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;"You launch AMIs at your own risk. Amazon cannot vouch for the integrity or security of AMIs shared by other EC2 users. Therefore, you should treat shared AMIs as you would any foreign code that you might consider deploying in your own data center and perform the appropriate due diligence.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;Ideally, you should get the AMI ID from a trusted source (a web site, another EC2 user, etc). If you do not know the source of an AMI, we recommend that you search the forums for comments on the AMI before launching it. Conversely, if you have questions or observations about a shared AMI, feel free to use the AWS forums to ask or comment."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;So what if you do not trust those public AMIs? &amp;nbsp;And where are the official&amp;nbsp;RedHat&amp;nbsp;images? (Old document is&amp;nbsp;&lt;a href="http://www.redhat.com/f/pdf/EC2GettingStarted.pdf"&gt;here&lt;/a&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;Update: When I started to write this post - 2011.04 - RedHat did not have any available public AMIs in amazon. Besides that RedHat licensing was really-really restrictive and using your own image required special RedHat subscription and transferring 25 subscriptions to the cloud for at least half a year (at least as much as I understood the license).&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Some historical documents:&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;strike&gt;&lt;a href="http://www.redhat.com/solutions/cloud-computing/access/" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;RedHat Cloud Computin&lt;/a&gt;&lt;/strike&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;(Had been removed)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;   &lt;/span&gt;&lt;a href="http://www.redhat.com/solutions/cloud/faq/" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;RedHat Cloud FAQ&lt;/a&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; (&lt;/span&gt;&lt;a href="http://wayback.archive.org/web/*/http://www.redhat.com/solutions/cloud/faq/" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;Archived&lt;/a&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New',Courier,monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Licensing in the cloud is another general problem. Amazon&amp;nbsp;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud" style="font-family: inherit;"&gt;released EC2&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;beta in 2006 and went public in Q4 2008.&amp;nbsp;Although&amp;nbsp;3-5 years have gone OEM licensing is still a very big problem in most cases. OEMs are trying - or seeing the results probably not really - to adapt licensing and changing the cloud (amazon) licensing very frequently. Sometimes releasing paid AMIs and covering license fees such a way, sometimes requires special&amp;nbsp;&lt;/span&gt;licenses and sometimes allows you to use your existing licenses&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;.&amp;nbsp;&lt;/span&gt;So probably if you can not find something now or license is not available currently, it will be available in a month, in week or even in a day.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;"&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Update: RedHat&amp;nbsp;&lt;a href="http://aws.amazon.com/rhel/"&gt;has released&lt;/a&gt;&amp;nbsp;some new payed AMIs. For some additional hourly fee you can use these instances and you will not have licensing problem. Search for the owner 309956199498 in the list of available AMIs&amp;nbsp;and you can see&amp;nbsp;&lt;a href="http://aws.amazon.com/amis/Red-Hat?browse=1"&gt;RedHat AMI&lt;/a&gt;s.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;See&amp;nbsp;&lt;a href="http://aws.amazon.com/rhel/"&gt;RedHat pricing here&lt;/a&gt;&amp;nbsp;and standard&amp;nbsp;&lt;a href="http://aws.amazon.com/ec2/#pricing"&gt;pricing here&lt;/a&gt;&amp;nbsp;for comparison.&lt;/div&gt;&lt;div style="font-family: 'Courier New', Courier, monospace; text-align: center;"&gt;Other historical RedHat announcements:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;RedHat 5.5&amp;nbsp;&lt;a href="http://aws.amazon.com/amis/2249094841991799"&gt;32&lt;/a&gt;/&lt;a href="http://aws.amazon.com/amis/1258097375635542"&gt;64&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;RedHat 5.6&amp;nbsp;&lt;a href="http://aws.amazon.com/amis/7033794765359899"&gt;32&lt;/a&gt;/&lt;a href="http://aws.amazon.com/amis/6889114282179710"&gt;64&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;RedHat 6.0&amp;nbsp;&lt;a href="http://aws.amazon.com/amis/6182420004659623"&gt;32&lt;/a&gt;/&lt;a href="http://aws.amazon.com/amis/4238219800231432"&gt;64&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;RedHat 6.1&amp;nbsp;&lt;a href="http://aws.amazon.com/amis/6287130056321776"&gt;32&lt;/a&gt;/&lt;a href="http://aws.amazon.com/amis/0471856266979567"&gt;64&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;a href="http://aws.amazon.com/amis/9559587540682084"&gt;Common RedHat AMI updates&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;a href="http://aws.amazon.com/rhel/"&gt;RedHat on Amazon EC2&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;So if you still want to build your own image - because of security, licensing or because you have no time to wait till it is officially released by the OEM - amazon has a &lt;a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?creating-loopback-s3-linux.html"&gt;GOOD description&amp;nbsp;how to build your own image&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;BUILDING YOUR OWN IMAGE IS ALWAYS A RISK FROM LICENSING POINT OF VIEW!!!&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;MAKE SURE YOU HAVE THE PROPER LICENSES BEFORE USING YOUR OWN IMAGE!!!&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;&lt;u&gt;OR BETTER USE FREE&amp;nbsp;SOFTWARES&amp;nbsp;IN THE CLOUD.&lt;br /&gt;(Debian, Ubuntu, CentOS)&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;I can only add some probably hopefully useful information.&lt;br /&gt;&lt;br /&gt;If you want to create CentOS image via yum you have to use a pre installed CentOS operating system as a build server. (CentOS is free to use in the cloud and have a central repo even for install and update.)&lt;br /&gt;&lt;br /&gt;If you want to create RedHat image via yum you have to use a pre installed RedHat operating system as a build server. (Licensing of RedHat might be a problem. And upgrading from the cloud via RedHat Network [RHN] is probably not the best idea.)&lt;br /&gt;&lt;br /&gt;I recommend to use a 64bit OS version as a build platform since you can use that to build both 32 and 64 bit images. On a 32bit OS however you can build only 32bit images.&lt;br /&gt;&lt;br /&gt;I also recommend to use the latest version of the OS. It is possible to install older version of the OS on the latest version. (It is most probably possible to install latest version of the OS on an older version but might have some unavailable new features  - for example missing file system support.)&lt;br /&gt;&lt;br /&gt;I prefer to use original kernels from RedHat and CentOS and not using the available amazon AKIs.&lt;br /&gt;&lt;br /&gt;You can make your life easier by disabling SELinux - or at least running in permissive mode. After you could build a running image you can try to enable SELinux again if you need. (And I would suggest to use it if possible.)&lt;br /&gt;&lt;br /&gt;When you are installing the base OS with yum the amazon document shows how to create a yum configuration file by hand. CentOS has a so called "release" file which contains the yum config. Using that it is more automatic and version safe. RedHat also has a release file but yum config is needed there.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-38082873061975786?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/38082873061975786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=38082873061975786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/38082873061975786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/38082873061975786'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2011/10/how-to-create-custom-redhat-centos.html' title='How to create a custom RedHat / CentOS Amazon EC2 / Cloud image'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total><georss:featurename>Budapest</georss:featurename><georss:point>47.4984056 19.0407578</georss:point><georss:box>46.807068099999995 17.777330300000003 48.1897431 20.3041853</georss:box></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-1941356346735870745</id><published>2010-05-10T20:16:00.000+02:00</published><updated>2010-06-23T08:58:57.378+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UEC'/><category scheme='http://www.blogger.com/atom/ns#' term='Eucalyptus'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Eucalyptus problem on Ubuntu 10.04 (Lucid)</title><content type='html'>&lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; 10.04 (Lucid) is out for a while and I wanted to try to install a private UEC  on a previously installed Ubuntu 10.04 system only for testing something. I did not  want to use the &lt;a href="https://help.ubuntu.com/community/UEC/CDInstall"&gt;CDInstall&lt;/a&gt; method since I like to do the magic not just watching that. So I  have decided to &lt;a href="https://help.ubuntu.com/community/UEC/PackageInstall"&gt;install from packages&lt;/a&gt;. (Ok you are right I should have  tried to do it from &lt;a href="http://open.eucalyptus.com/"&gt;Eucalyptus&lt;/a&gt; source but I did not have enough time.)&lt;br /&gt;Unfortunately it was not  straightforward. During installation of eucalyptus-cloud package I got an error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; Setting up eucalyptus-cloud (1.6.2-0ubuntu30.2) ...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; restart: Unknown instance: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;(Than waiting long....~60 sec)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; eucalyptus-cloud stop/post-start, (post-start) process 26868&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-cloud-publication  start/running, process 27475&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hmmm.  I have checked whether it is an install issue only or also a  runtime problem. Checked the configuration files but they were fine. Eucalyptus start is slow and finally failed without visible error message. The cluster controller web interfaces is not working and service can not be started successfully.&lt;br /&gt;Also stopping the service dropped an error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;root@ubuntu:~# stop eucalyptus-cloud&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; stop: Unknown instance: &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I wanted to check the init scripts but here I faced the problem that  SysVinit had been replaced by UpStart which I did not know. So made a  trip in that area to get to understand. To be honest it is not a well  documented thing and the concept is a bit different than SysVinit. But for a reason.&lt;br /&gt;But back to the track I have realized that the the eucalyptus startup died very early and the command failing is executing eucalyptus-cloud binary. So started it manually and saw that it drops the below error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;root@ubuntu:~#  /usr/sbin/eucalyptus-cloud&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[error:0185] User 'eucalyptus' validated&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[error:0077]  Path /usr/lib/jvm/java-6-openjdk is not a directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[error:0323]  Cannot locate Java Home&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After I have seen this it was pretty straightforward to solve. I did not have openjdk  but I had sun-java6-jdk. I had it from the partner repository anyway. ;) The problem here is that although eucalyptus-cloud depends on some java package the proper one was not installed. So I have installed openjdk6 by hand and than everything was working fine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;root@ubuntu:~# aptitude install  openjdk-6-jre-headless&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If eucalyptus does not work even after openjdk6 install you can reinstall eucalyptus-cloud after or together with openjdk6.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;root@ubuntu:~# aptitude purge eucalyptus-cloud &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-cc &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-sc &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-walrus&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;root@ubuntu:~# aptitude install &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;openjdk-6-jre-headless eucalyptus-cloud &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-cc &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-sc &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;eucalyptus-walrus&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;In theory this works with sun's java also but than you have to define JAVA_HOME in advance starting eucalyptus-cloud&amp;nbsp; and than can try to use sun (oracle) java version but openjdk is working fine without any problem.&lt;br /&gt;Some useful links if cloud is up: &lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://code.google.com/p/hybridfox/downloads/list"&gt;HybridFox  &lt;/a&gt; (My prefered one)&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://help.ubuntu.com/community/UEC/ElasticFox#Configuration"&gt;ElasticFox config &lt;/a&gt;(Note: Since version 1.7 it does not work with Eucalyptus. But hope it will be corrected soon. In Eucalyptus.)&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: courier new;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-1941356346735870745?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/1941356346735870745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=1941356346735870745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/1941356346735870745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/1941356346735870745'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2010/06/eucalyptus-problem-on-ubuntu-1004-lucid.html' title='Eucalyptus problem on Ubuntu 10.04 (Lucid)'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-9115057362835168469</id><published>2009-08-31T22:17:00.009+02:00</published><updated>2009-09-01T00:22:59.929+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IceFaces'/><category scheme='http://www.blogger.com/atom/ns#' term='Maven'/><category scheme='http://www.blogger.com/atom/ns#' term='Netbeans'/><title type='text'>NetBeans Maven Wep Application Internationalization</title><content type='html'>As you know &lt;a href="http://www.netbeans.org/"&gt;NetBeans&lt;/a&gt; 6.7 supports &lt;a href="http://maven.apache.org/"&gt;Maven&lt;/a&gt; projects. And you must also know what Maven is. Both are great products. Especially together. With &lt;a href="http://www.icefaces.org/"&gt;IceFaces&lt;/a&gt;.&lt;br /&gt;If you know both Maven and NetBeans you have most probably already tried to create a web application - a facelets based one - in NetBeans using Maven webapp archetype. This is what I tried together with IceFaces. ( By the way &lt;a href="http://code.google.com/p/icefaces-webapp-archetype/"&gt;here is my icefaces-webapp-archetype&lt;/a&gt; if you have no other. )&lt;br /&gt;But that is enough of free advertisement of REALLY GREAT PRODUCTS. ;)&lt;br /&gt;&lt;br /&gt;My point is now internationalization of a Facelets based web application under a Maven based NetBeans project. As hopefully you know the standard/one way of JSF/Facelets internationalization is using f:loadBundle - or in case of IceFaces the better ice:loadBundle tag. But the location of the properties file is a bit tricky with maven based on my experience. Previously this must be located in the same directory as the java sources. But things are changing over time? Forget the old ones and learn new ones. The new location is "Other Sources-&gt;src/main/resources" directory. If you build a war with Maven then you can find the properties file in WEB-INF/classes and this is the right root directory. So do not put properties file under "Source Packages" anymore if you are using Maven and NetBeans together since Maven does not take those from there as I have seen many time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;( Versions: NetBeans 6.7.1 , Maven 2.2.1 )&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-9115057362835168469?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/9115057362835168469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=9115057362835168469' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/9115057362835168469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/9115057362835168469'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2009/08/netbeans-maven-wep-application.html' title='NetBeans Maven Wep Application Internationalization'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-4281994291907225508</id><published>2009-05-09T01:20:00.013+02:00</published><updated>2009-05-09T21:09:42.593+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Greasemonkey'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='CVE'/><title type='text'>Create CVE links on Oracle CPU Page</title><content type='html'>As you probably know oracle releases CPUs (Critical Patch Updates) in every 3 month now. If you have ever read any of these CPU Advisories you know it does not make too much sense to read these. But they exist. Since CPUJul2008 Oracle replaced its internal numbering (like DBnn) with CVE (Common Vulnerabilities and Exposures) numbering. Does it make any sense? In my opinion it would but it does not in this way. These CVEs does NOT contain any really useful information. The CVE database is an open database anybody can access. If they are using CVE numbers why Oracle not creating links from the Advisory page to the CVE pages? Would not it be more comfortable just to click on a link if you are interested in details instead of searching for CVE numbers manually? I think the missing link is the confession of how useless this numbering is in case of Oracle. If you read a CPU Advisory released after Jul 2008 you will find CVE numbers before every identified security bug but if you want to check the CVE you have to find it by hand and you will find no more info even on that page. So it does not make much sense because the CVE has NO useful info in it but here is a VERY SIMPLE GreaseMonkey script which inserts two links after the CVE you can click on and immediately check the "details" of the CVE.&lt;br /&gt;But I repeat the CVE links are not in the CPU Advisory because the CVE does NOT contain any relevant info about the security problem.&lt;br /&gt;I hope it will change in the near future and CVE or CPU will give us some useful detail.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;// ==UserScript==&lt;br /&gt;// @name          Oracle CPU Risk Matrix CVE- Link Creator&lt;br /&gt;// @namespace     http://tamastarjanyi.blogspot.com/&lt;br /&gt;// @description   Replaces simple CVE text on Oracle CPU pages (Like http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuapr2009.html ) to links&lt;br /&gt;// @include       http://*.oracle.com/*&lt;br /&gt;// ==/UserScript==&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (!GM_xmlhttpRequest) {&lt;br /&gt;alert('Please upgrade to the latest version of Greasemonkey.');&lt;br /&gt;}&lt;br /&gt;var  tds=document.getElementsByTagName("td");&lt;br /&gt;var cve=false;&lt;br /&gt;for (i in tds){&lt;br /&gt;if (tds[i].innerHTML.match("CVE-[0-9][0-9][0-9][0-9]-") ){&lt;br /&gt;  cve=true;&lt;br /&gt;  var cvetext=tds[i].innerHTML;&lt;br /&gt;  tds[i].innerHTML=cvetext+" (&amp;lt;a target=_blank href=http://cve.mitre.org/cgi-bin/cvename.cgi?name="+cvetext+"&amp;gt;mitre&amp;lt;/a&amp;gt; | &amp;lt;a target=_blank href=http://nvd.nist.gov/nvd.cfm?cvename="+cvetext+"&amp;gt;nvd&amp;lt;/a&amp;gt; )";&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-4281994291907225508?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/4281994291907225508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=4281994291907225508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4281994291907225508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4281994291907225508'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2009/05/create-cve-links-on-oracle-cpu-page.html' title='Create CVE links on Oracle CPU Page'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-5089204077735086479</id><published>2008-10-21T22:13:00.004+02:00</published><updated>2009-05-09T02:16:53.099+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Hardy Intrepid Update</title><content type='html'>Short note: Wanted to make a distribution update from Hardy to Intrepid.&lt;br /&gt;I made a sudo bash and executed update-manager -d from this terminal but this did not show the new version.&lt;br /&gt;Then I have started it with gksu - press ALT+F2 and type in "update-manager -d" -  and it was working. This must be a sudo environment issue.&lt;br /&gt;So update-manager -d does not show the new version if started from a sudo session but works fine via gksu or su.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-5089204077735086479?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/5089204077735086479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=5089204077735086479' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/5089204077735086479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/5089204077735086479'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/10/intrepid-update.html' title='Hardy Intrepid Update'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-4447678329449451178</id><published>2008-10-15T13:52:00.010+02:00</published><updated>2009-08-22T22:15:02.675+02:00</updated><title type='text'>Glassfish Custom Login Module and Realm Configuration</title><content type='html'>I wanted to create a custom login module and realm for Glassfish to implement a new authentication and authorization. I have taken &lt;a href="http://developers.sun.com/appserver/reference/techart/as8_authentication/"&gt;the sun document&lt;/a&gt; but I "missed" - in fact parts of the info was there but hidden very well - some information and decided to share those here. I am focusing only on the missing parts. Rest is written in the document.&lt;br /&gt;&lt;br /&gt;The first thing is point 3. To me it did not work to place class files into directory &lt;code&gt;appserver-domain-dir/lib/classes&lt;/code&gt;. I created a jar file from my classes and put that into &lt;code&gt;glassfish/lib&lt;/code&gt; and it worked after a server restart.&lt;br /&gt;&lt;br /&gt;The next info what I missed is what &lt;code&gt;jaas-context-name&lt;/code&gt; should be in &lt;code&gt;login.conf&lt;/code&gt; and how it works later. So the &lt;code&gt;jaas-context-name&lt;/code&gt; can be anything you want BUT you have to pass it to your Realm module as a parameter. Lets say you call you &lt;code&gt;jaas-context-name&lt;/code&gt; as "customRealm".&lt;br /&gt;So you have in login.conf:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;customRealm{&lt;br /&gt;org.CustomLogin  required;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then when you create your realm via the gui or any other way you must specify this as a parameter of the realm. The name of the parameter MUST BE &lt;code&gt;jaas-context&lt;/code&gt;. To be precise it depends on the code. With the given code this is true. Otherwise depends on the following two lines:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;       String jaasCtx = props.getProperty(IASRealm.JAAS_CONTEXT_PARAM);&lt;br /&gt;     this.setProperty(IASRealm.JAAS_CONTEXT_PARAM, jaasCtx); &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;And JAAS_CONTEXT_PARAM inherited from super has a value "jaas-context".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_E82_4Y7AdIY/SPXdvpT4XmI/AAAAAAAACJs/-KkFJrvo0NQ/s1600-h/Screenshot-Sun+Java+System+Application+Server+9.1_02+Admin+Console+-+Mozilla+Firefox.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_E82_4Y7AdIY/SPXdvpT4XmI/AAAAAAAACJs/-KkFJrvo0NQ/s320/Screenshot-Sun+Java+System+Application+Server+9.1_02+Admin+Console+-+Mozilla+Firefox.png" alt="" id="BLOGGER_PHOTO_ID_5257351950637751906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now you have a mapping between realm and login module.&lt;br /&gt;&lt;br /&gt;But how to use the realm from NetBeans?&lt;br /&gt;If you create a Web Application or Enterprise application the web part has a &lt;code&gt;web.xml&lt;/code&gt; and a &lt;code&gt;sun-web.xml&lt;/code&gt; file in the &lt;code&gt;"Configuration Files"&lt;/code&gt; directory. Open web.xml and select &lt;code&gt;security&lt;/code&gt; part. Here open the Login Configuration and if you select &lt;code&gt;Basic&lt;/code&gt; the &lt;code&gt;Realm Name:&lt;/code&gt; must be the name of the realm created before. This is not the jaas-context name. You have to create security roles and security constraints what I will explain later.&lt;br /&gt;So now you have a realm which is using basic authentication and the Realm Name is set to custom-realm.&lt;br /&gt;The result in web.xml is:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;login-config&amp;gt;&lt;br /&gt;   &amp;lt;auth-method&amp;gt;BASIC&amp;lt;/auth-method&amp;gt;&lt;br /&gt;   &amp;lt;realm-name&amp;gt;custom-realm&amp;lt;/realm-name&amp;gt;&lt;br /&gt;&amp;lt;/login-config&amp;gt;  &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This realm has a parameter &lt;code&gt;jaas-context&lt;/code&gt; which specifies which login module must be used.&lt;br /&gt;The realm and the login module receives the user name and password typed in and returns the list of user groups to the container.&lt;br /&gt;But what to return and how to specify who has rights to do what?&lt;br /&gt;In the web.xml you specified you want to use a realm but under that in Netbeans you can specify which Role has access to which url via which way. You have to create security roles. This is like a group BUT this is not necessarily the group returned by the Realm Module. This is an internal application level group. If you create something like user and admin it is a good basis.&lt;br /&gt;Below that you have to specify security constraints. This is where you can specify which URL is accessible to which Role in which way. Take a look and you will understand. (When you specify the url you do not have to type the application name only the path under the context. For example if you have a jsp page as server:8080/Application/faces/user/Index.jsp you have to type in only /faces/user/* and you have to miss Application.)&lt;br /&gt;Here is an example constraint:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  &amp;lt;security-constraint&amp;gt;&lt;br /&gt;      &amp;lt;display-name&amp;gt;Application User&amp;lt;/display-name&amp;gt;&lt;br /&gt;      &amp;lt;web-resource-collection&amp;gt;&lt;br /&gt;          &amp;lt;web-resource-name&amp;gt;Application User Pages&amp;lt;/web-resource-name&amp;gt;&lt;br /&gt;          &amp;lt;description/&amp;gt;&lt;br /&gt;          &amp;lt;url-pattern&amp;gt;/faces/user/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;GET&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;POST&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;HEAD&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;PUT&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;OPTIONS&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;TRACE&amp;lt;/http-method&amp;gt;&lt;br /&gt;          &amp;lt;http-method&amp;gt;DELETE&amp;lt;/http-method&amp;gt;&lt;br /&gt;      &amp;lt;/web-resource-collection&amp;gt;&lt;br /&gt;      &amp;lt;auth-constraint&amp;gt;&lt;br /&gt;          &amp;lt;description/&amp;gt;&lt;br /&gt;          &amp;lt;role-name&amp;gt;Application-user&amp;lt;/role-name&amp;gt;&lt;br /&gt;          &amp;lt;/auth-constraint&amp;gt;&lt;br /&gt;      &amp;lt;user-data-constraint&amp;gt;&lt;br /&gt;          &amp;lt;description/&amp;gt;&lt;br /&gt;          &amp;lt;transport-guarantee&amp;gt;CONFIDENTIAL&amp;lt;/transport-guarantee&amp;gt;&lt;br /&gt;      &amp;lt;/user-data-constraint&amp;gt;&lt;br /&gt;      &amp;lt;/security-constraint&amp;gt;&lt;br /&gt;&lt;/pre&gt; &lt;br /&gt;&lt;br /&gt;One missing thing is how to map Authentication Groups to Application Roles. If the Realm returns the same name as group as an existing role this is mapped automatically but this is not the usual case. If user is for example in Administrator group and application has an Admin role you need a mapping between these. You can specify these in &lt;code&gt;sun-web.xml&lt;/code&gt; Open and do it. It is self evident.&lt;br /&gt;&amp;lt;security-role-mapping&amp;gt;&lt;br /&gt;  &amp;lt;role-name&amp;gt;application-admin&amp;lt;/role-name&amp;gt;&lt;br /&gt;  &amp;lt;group-name&amp;gt;Administrator&amp;lt;/group-name&amp;gt;&lt;br /&gt;&amp;lt;/security-role-mapping&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So the whole procedure is when somebody calls your application via an url container checks if there is a security-constraint on the url and which Security Role you need to have to access it. The container also know which Realm is responsible to authenticate the users in this application. Makes the authentication and send this info to your module. The login module is taken based on the jaas-context parameter of the Realm. Your module returns list of user groups if user is authenticated. If the user is in the group which is mapped to the necessary Security Role access is granted. That is all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-4447678329449451178?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/4447678329449451178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=4447678329449451178' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4447678329449451178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4447678329449451178'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/10/glassfish-custom-login-module-and-realm.html' title='Glassfish Custom Login Module and Realm Configuration'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_E82_4Y7AdIY/SPXdvpT4XmI/AAAAAAAACJs/-KkFJrvo0NQ/s72-c/Screenshot-Sun+Java+System+Application+Server+9.1_02+Admin+Console+-+Mozilla+Firefox.png' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-3766618424425615327</id><published>2008-09-19T23:30:00.008+02:00</published><updated>2008-09-29T15:34:44.799+02:00</updated><title type='text'>Firefox OCSP Server experiences an internal error ( sec_error_ocsp_server_error )</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;I am in a Hotel now and they have free Wifi in the rooms. This would be a nice feature if it worked. The theory is that Wifi is not protected an authentication is not required but when you type in an URL the gateway forwards you to an authentication page - apc.aptilos.com, pas.aptilo.com - and you have to type in a user name and password what you can get at the reception - or via the TV.&lt;br /&gt;If you type in the user name and password you can go through the gateway for a while.&lt;br /&gt;I suppose even the mac address or the IP is registered in the gateway and/or in the firewall and allowed to communicate.&lt;br /&gt;Nice concept except Wifi is not encrypted.&lt;br /&gt;&lt;br /&gt;But I had a problem. When I typed in any URL in Firefox it does not work and after a while I got the error message:&lt;br /&gt;"OCSP Server experiences an internal error" ( sec_error_ocsp_server_error )&lt;br /&gt;I have tested this from Konqueror and it was working fine. ( I have Ubunut 8.04 now. )&lt;br /&gt;&lt;br /&gt;I made a network traffic sniff and saw the problem is that Firefox tries to check if the servers key is revoked via OCSP. But of course this is not possible since network is not opened by this time.&lt;br /&gt;The solution from aptilo would be to open the connection to the corresponding OCSP server. I do not belive this will be done.&lt;br /&gt;The solution from client side is to disable OCSP in Firefox or use a client which does not have OCSP.&lt;br /&gt;To disable OCSP in Firefox go to Preferences-&amp;gt;Advanced-&amp;gt;Encryption-&amp;gt;Validation. Here you have a choice.&lt;br /&gt;&lt;br /&gt;You can completely disable OCSP.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_E82_4Y7AdIY/SNS6pzBN6yI/AAAAAAAACJE/cyPGv9kgLIc/s1600-h/Screenshot-Certificate+Validation.png"&gt;&lt;img src="http://3.bp.blogspot.com/_E82_4Y7AdIY/SNS6pzBN6yI/AAAAAAAACJE/cyPGv9kgLIc/s320/Screenshot-Certificate+Validation.png" alt="" id="BLOGGER_PHOTO_ID_5248024693026188066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can disable to treat the connecting server invalid if OCSP fails.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_E82_4Y7AdIY/SNS6wQjF8vI/AAAAAAAACJM/jpXR5I17hbM/s1600-h/Screenshot-Certificate+Validation-1.png"&gt;&lt;img src="http://1.bp.blogspot.com/_E82_4Y7AdIY/SNS6wQjF8vI/AAAAAAAACJM/jpXR5I17hbM/s320/Screenshot-Certificate+Validation-1.png" alt="" id="BLOGGER_PHOTO_ID_5248024804032115442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Whatever you do NEVER FORGET TO ENABLE THIS AFTER YOU LEFT THE PLACE.&lt;br /&gt;This is a security feature for your safety.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="scribefire-powered"&gt;Powered by &lt;a href="http://www.scribefire.com/"&gt;ScribeFire&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-3766618424425615327?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/3766618424425615327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=3766618424425615327' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/3766618424425615327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/3766618424425615327'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/09/firefox-ocsp-server-experiences.html' title='Firefox OCSP Server experiences an internal error ( sec_error_ocsp_server_error )'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_E82_4Y7AdIY/SNS6pzBN6yI/AAAAAAAACJE/cyPGv9kgLIc/s72-c/Screenshot-Certificate+Validation.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-4821820984031125360</id><published>2008-07-19T00:57:00.001+02:00</published><updated>2008-07-19T00:57:07.476+02:00</updated><title type='text'>Firefox Phishing ignores user' ignore.</title><content type='html'>&lt;div xmlns='http://www.w3.org/1999/xhtml'&gt;Firefox does not allow you to ignore the Phishing warning sometimes because of two stupid bug even if you know this is not a Phishing site.&lt;br/&gt;This is because of bugs: &lt;a href='https://bugzilla.mozilla.org/show_bug.cgi?id=435081' target='_blank'&gt;435081&lt;/a&gt; and &lt;a target='_blank' href='https://bugzilla.mozilla.org/show_bug.cgi?id=442929'&gt;442929&lt;/a&gt;&lt;br/&gt;A quick BUT DANGEROUS workaround is to change two config values:&lt;br/&gt;browser.safebrowsing.enabled=false&lt;br/&gt;browser.safebrowsing.malware.enabled=false &lt;br/&gt;which disables safebrowsing.&lt;b&gt;&lt;big&gt;&lt;big&gt;&lt;br/&gt;&lt;br/&gt;Please note&lt;/big&gt;&lt;/big&gt;&lt;/b&gt;:&lt;br/&gt;&lt;br/&gt;&lt;b&gt;- Always enable this feature again right after you finished browsing the site you wanted. Besides does not open any other site meanwhile.&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;- You might believe this is not dangerous to disable safebrowsing on a site you know but this is FALSE.&lt;br/&gt;A cracker can crack the site and can put dangerous code snippets on the page without anybody noticing that.&lt;br/&gt;Even the site owner does not know about it. The code snippet can sit silently on the server and nobody can see that but can infect machines. Of course since the Phishing protection used by Firefox is black-list based somebody - or something - has already noticed and reported the site. If the site was hacked the owner should be informed and should correct the page. If the site was build intentionally you should get out of this immediately.&lt;br/&gt;&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/333092216324663106-4821820984031125360?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/4821820984031125360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=4821820984031125360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4821820984031125360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/4821820984031125360'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/07/firefox-phishing-ignores-user-ignore.html' title='Firefox Phishing ignores user&amp;#39; ignore.'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-8453542529329650592</id><published>2008-02-21T11:19:00.003+01:00</published><updated>2008-02-21T11:25:54.371+01:00</updated><title type='text'>Netbeans 6.0.1 Missing Ruby and Rails Problem</title><content type='html'>Today decided to test Netbeans 6.0.1. I was satisfied with 6.0 but I had a stupid problem with JAX-RPC which prevented to use that feature. Instead of trying to solve that decided to move on to this version. So I downloaded the OS independent zip - this is what I like after all - but when I started... ooops.&lt;br /&gt;I got a message that Ruby and Rails version is not correct. So what? Try to upgrade. Same error again. What a shame. Decided to uninstall the Ruby and Rails and restart. Did not help. Deleted ruby files from ~/.netbeans/6.0/modules also did not help.&lt;br /&gt;Finally I solved this problem with starting the IDE and updating only IDE Platform first. Since that I could not reproduce the error and I have no time now to play more with this. So if you are having this make a try. But I will try to find out the real reason as soon as I will have some time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-8453542529329650592?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/8453542529329650592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=8453542529329650592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/8453542529329650592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/8453542529329650592'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/02/netbeans-601-missing-ruby-and-rails.html' title='Netbeans 6.0.1 Missing Ruby and Rails Problem'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-5091947142274655192</id><published>2008-01-29T15:51:00.000+01:00</published><updated>2008-01-31T11:51:23.273+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Ubuntu Gutsy'/><category scheme='http://www.blogger.com/atom/ns#' term='Netbeans'/><title type='text'>Netbeans Missing New Project Categories</title><content type='html'>&lt;a href="#solution"&gt;Jump to solution. (Skip stupid story.)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It was raining outside and it was a dark and said day and there was nothing to work on when I decided to give a try to &lt;a href="http://netbeans.org/"&gt;Netbeans&lt;/a&gt; in J2EE development. If you have read my blog before you must know I am an Ubuntu user. Actually not a fan. I am not loving anything easily. But I am in general very satisfied with &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt;. I like it very much. Am I a fan? Together with its problem too. But from time to time I am running into problems which can make life harder than .... than is should be. (Life is hard anyway. It does not matter if you are Linux Windows or Mac OS user. So hold on your arguments about it. :) )&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;Back to the point I have Ubuntu Gutsy which currently contains Netbeans 5.5. So I started it and wanted to start a new project. What a surprise I have seen I could not. There were no menu items besides import existing ant project what I could reach. Holy s.... something! What is this? I was asking.&lt;br /&gt;Tried to purge package and reinstall but no luck. So finally I concluded that the problem is around Netbeans 5.5.  What can people do than?  I have taken the lattes version Netbeans 6.0 and tried. Much more surprise I had the same situation. No menu to create new project. I started to think about some kind of global conspiracy and decided to unveil it so the day just turned darker.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;So first started to &lt;a href="http://www.google.com/search?hl=en&amp;amp;newwindow=1&amp;amp;safe=off&amp;amp;q=netbeans+new+project+missing&amp;amp;btnG=Search"&gt;Google&lt;/a&gt; around. It almost always helps. And I found ideas to delete the ~/.netbeans directory and restart IDE. It did not help me too much. Also find some idea to use different java version. Which also did not help me.&lt;br /&gt;What helped me was deleting ~/.netbeans AND using a Sun java version together. Even java 6 or 5 from Sun. (Anyway you can specify the java version as a netbeans command line parameter like: $ netbeans --jdkome /usr/lib/jvm/java-6-sun )&lt;br /&gt;So I would have sat back and enjoy it. But I wanted to know what was wrong. So first checked that the java version which prevented me to use netbeans was icedtea-java-7. The other thing I had to realize - and primarily made me to investigate it - was that if you ever started netbeans with icedtea-java-7 you can not start it after even with the sun java without deleting ~/.netbeans . This is very uncomfortable since you can loose your settings I decided  to find out what was the problem. I do not think that you are interested how I did it but here is the result and how to correct it without loosing your settings.&lt;br /&gt;&lt;br /&gt;&lt;a name="solution"&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;$ rm -rf ~/.netbeans/6.0/config/Modules&lt;br /&gt;&lt;br /&gt;Simple right?&lt;br /&gt;If you are missing New Project Templates in Netbeans and you have started netbeans ever with IcedTea Java 7 - or any other "unsupported one" - first use only SUN Java as long as this error is not corrected to run netbeans. I do not know if this is an error in Iced Tea Java or in Netbeans and do not care too much anymore. To correct the problem completely  delete ~/.netbeans/6.0/config/Modules and restart Netbenas with a Sun Java. This directory will be recreated and you can enjoy the newly available menus without loosing your settings.&lt;br /&gt;&lt;br /&gt;Hope it helped you too.&lt;br /&gt;&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/333092216324663106-5091947142274655192?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/5091947142274655192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=5091947142274655192' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/5091947142274655192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/5091947142274655192'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/01/netbeans-missing-new-project-categories.html' title='Netbeans Missing New Project Categories'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-9131352901441258481</id><published>2008-01-06T23:53:00.000+01:00</published><updated>2008-01-07T01:25:14.700+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Game Linux FlightGear'/><title type='text'>FlightGear Keyboard Shortcut Reference</title><content type='html'>I just wanted to have a list of keys can be used in FlightGear but found only the short Reference.&lt;br /&gt;I realized that key shortcuts is an xml file so easy to change and not good to publish a static one on the net while anybody can change it anytime easily. So here is a command to get it under linux anytime on your own machine.&lt;br /&gt;&lt;br /&gt;First please change directory to the one contains keyboard.xml. Gutsy have it under /usr/share/games/FlightGear&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$ awk 'BEGIN {name="";desc="";spec="";} \&lt;br /&gt;/.*&amp;lt;\/name&amp;gt;/{ name=$0; spec="";desc="";} \&lt;br /&gt;/.*&amp;lt;\/desc&amp;gt;/ { desc=$0 ; line=spec " " name " = " desc; print gensub("&amp;lt;[^&amp;gt;]*&gt;([^&amp;lt;&amp;gt;]*)&amp;lt;\/[^&amp;gt;]*&amp;gt;","\\1","g",gensub("\ \ +","\ ","g", line)) ;} \&lt;br /&gt;/&amp;lt;mod-.*&amp;gt;/ {  spec=gensub("&amp;lt;mod-(.*)&amp;gt;","\\1 + ","g",$0); } \&lt;br /&gt;' keyboard.xml&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Output is something like:&lt;br /&gt;&lt;span style=";font-family:georgia;font-size:78%;"  &gt;&lt;span style="font-family:arial;"&gt; Ctrl-A = Toggle autopilot altitude lock.&lt;br /&gt;Ctrl-B = Toggle speedbrake.&lt;br /&gt;Ctrl-C = Toggle clickable panel hotspots&lt;br /&gt;Ctrl-G = Toggle autopilot glide slope lock.&lt;br /&gt;Ctrl-H = Toggle autopilot heading lock.&lt;br /&gt;Ctrl-I = Show instrument setting dialog.&lt;br /&gt;...&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Than format print, learn and enjoy the game. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-9131352901441258481?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/9131352901441258481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=9131352901441258481' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/9131352901441258481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/9131352901441258481'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2008/01/flightgear-keyboard-shortcut-reference.html' title='FlightGear Keyboard Shortcut Reference'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-8515929594271355374</id><published>2007-11-03T19:30:00.000+01:00</published><updated>2007-11-03T20:49:37.754+01:00</updated><title type='text'>Insufficient Disk Space reported under wine</title><content type='html'>Did you try to install/setup any Windows Application - actually a Game what else could be necessary - and got a message that you do not have enough free space on your drive meanwhile you had lot of free space on the chosen mounted partition?&lt;br /&gt;You will learn the problem and hopefully the solution too. (Of course I suppose it is not the real situation you have no enough space. If so do not read ahead.)&lt;br /&gt;&lt;br /&gt;The problem is that wine does not check the amount of free space on the mounted partition corresponds to the selected directory but reports the free on the root of the directory the partition mounted to . ;( Probably it is not clean so here is an example:&lt;br /&gt;Let say you have / only and something is mounted as /mnt/part1&lt;br /&gt;If you directly select /mnt/part1 during installation wine will check free space in fact on / and does not calculate free on the partition mounted under /mnt/part1.&lt;br /&gt;&lt;br /&gt;How to solve it you may ask? It is easy. Start winecfg and create a new drive with the directory you want to use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Keywords: Wine Insufficient free space not enough free space on drive&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-8515929594271355374?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/8515929594271355374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=8515929594271355374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/8515929594271355374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/8515929594271355374'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2007/11/insufficient-disk-space-reported-under.html' title='Insufficient Disk Space reported under wine'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-6925984164879199410</id><published>2007-09-27T02:07:00.000+02:00</published><updated>2007-10-01T00:24:19.376+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Ubuntu Gutsy 64bit Wine misses ssl support so Google Picasa can not sign in.</title><content type='html'>&lt;div style="text-align: justify;"&gt;Today I have realized that Picasa - I am using "windows version" of picasa under wine - can not sign me in - means no web upload is possible - from my home machine (Ubuntu Gutsy 64bit) and wine showed the following error:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-style: italic;"&gt;fixme:win:FlashWindowEx 0x33afd4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (10000): STUB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT not supported on protocol 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fixme:wininet:NETCON_init can't use SSL, not compiled in.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;I was a bit surprised since Picasa on my office notebook (Ubuntu Feisty 32bit) worked fine. So checked the error and decided to recompile wine and see if ssl is really not compiled in.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;First I downloaded the source and dependencies needed to compile.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:courier new;font-size:85%;"  &gt;# apt-get build-dep wine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;I would mention that it will download a lot.&lt;br /&gt;Then downloaded wine source too into a temporary directory and tried to compile.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;# mkdir /tmp/wine_build&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# cd /tmp/wine_build&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# apt-get source wine&lt;br /&gt;#&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; cd wine-0.9.45&lt;br /&gt;# &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;dpkg-buildpackage -rfakeroot -b&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And part of the result is:&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lcapi20... not found [ CAPI support ISDN Cards ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lcups... not found [ CUPS printing support ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -ljack... not found [ Jack audio server support ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lssl... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lcrypto... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -ljpeg... not found &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lpng... not found&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;So configure could not find ssl library. After some check it turned out that this is a 32 bit compilation therefore it needs 32 bit libraries. And of course I did not have some 32 bit lib on my system. My current problem is the access of internet because of the missing ssl support so now focus on this.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;I have downloaded &lt;a href="http://www.blogger.com/libssl0.9.8_0.9.8e-5ubuntu1_i386.deb"&gt;&lt;span style="font-size:100%;"&gt;libssl0.9.8_0.9.8e-5ubuntu1_i386.deb&lt;/span&gt;&lt;/a&gt; and extracted this and copied the missing files to the right place and created required soft links.&lt;br /&gt;&lt;/div&gt;&lt;span style="font-style: italic;font-family:courier new;font-size:85%;"  &gt;# mkdir /tmp/libssl&lt;br /&gt;# dpkg -x libssl0.9.8_0.9.8e-5ubuntu1_i386.deb /tmp/libssl&lt;br /&gt;# cp /tmp/libssl/usr/lib/libssl.so.0.9.8 /usr/lib32/&lt;br /&gt;# cp /tmp/libssl/usr/lib/libcrypto.so.0.9.8 /usr/lib32/&lt;br /&gt;# ln -s /usr/lib32/libssl.so.0.9.8 /usr/lib32/libssl.so&lt;br /&gt;# ln -s /usr/lib32/libcrypto.so.0.9.8 /usr/lib32/libcrypto.so&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;If you try to compile wine again with &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-style: italic;"&gt;dpkg-buildpackage -rfakeroot -b&lt;/span&gt; this should work now.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;[ Update: It took a long time on my machine. :( But finally it is working. :) ]&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;[ Update: I saw sadly that some fonts are not visible under Picasa. Hmmm. Not easy to get it to work. But it can be. If you have font problem install msttcorefonts. But that is not all you have to do. After that you have to remove your ~/.wine directory and reinstall Picasa. The important thing is not Picasa reinstallation. But when wine does not find a ~/.wine it recreates and this is the point after all. I'll try to find another way to do this but this is working. ]&lt;br /&gt;&lt;br /&gt;[ Update: Tried to start EVE Online under wine and found two problems. Both were discussed on &lt;a href="http://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=9022"&gt;wine web page&lt;/a&gt; but here are details.&lt;br /&gt;Main error is below but first solve the easier one:&lt;br /&gt;&lt;/span&gt; &lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;First&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;$ cp /usr/share/fonts/truetype/msttcorefonts/arial.ttf ~/.wine/drive_c/windows/fonts/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt; &lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Main error message:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;fixme:d3d_draw:drawPrimitive Using software emulation because not all material properties could be tracked&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Still do not know really how to solve this.]&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr width="100%"&gt;&lt;br /&gt;&lt;br /&gt;P.S. :&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;As you could see some other libraries are missing too. So if you have a similar problem just do a procedure like this and you can correct it.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;[Remark]&lt;br /&gt;The following libraries were also missing:&lt;br /&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;&lt;span style="font-family:courier new;"&gt;checking for -lcapi20... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lcups... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -ljack... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lssl... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lcrypto... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -ljpeg... not found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for -lpng... not found&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;The followings are also missing so in case of problem with wine on 64 bit linux you should consider this list:&lt;br /&gt;&lt;/div&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;&lt;span style="font-family:courier new;"&gt;checking for IceConnectionNumber in -lICE... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for x86_64-linux-gnu-ar... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for x86_64-linux-gnu-ranlib... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for x86_64-linux-gnu-strip... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for x86_64-linux-gnu-windres... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for windres... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for lclint... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for lint... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for i386_set_ldt in -li386... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for _oss_ioctl in -lossaudio... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking AudioUnit/AudioUnit.h usability... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking AudioUnit/AudioUnit.h presence... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for AudioUnit/AudioUnit.h... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking Carbon/Carbon.h usability... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking Carbon/Carbon.h presence... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for Carbon/Carbon.h... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking CoreAudio/CoreAudio.h usability... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking CoreAudio/CoreAudio.h presence... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking for CoreAudio/CoreAudio.h... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking DiskArbitration/DiskArbitration.h usability... no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;checking DiskArbitration/DiskArbitration.h presence... no&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-6925984164879199410?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/6925984164879199410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=6925984164879199410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/6925984164879199410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/6925984164879199410'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2007/09/ubuntu-gutsy-64bit-wine-misses-ssl.html' title='Ubuntu Gutsy 64bit Wine misses ssl support so Google Picasa can not sign in.'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-333092216324663106.post-1271402320862172043</id><published>2007-09-24T15:10:00.002+02:00</published><updated>2008-07-16T13:17:42.853+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Kernel'/><title type='text'>Line6 PodXT Linux Driver 0.7.2 is incompatible with kernel &gt;= 2.6.22</title><content type='html'>&lt;span style="font-size:100%;"&gt;I have updated my Ubuntu Feisty to Gutsy some weeks ago because of a &lt;a href="https://bugs.launchpad.net/ubuntu/feisty/+source/initramfs-tools/+bug/75681"&gt;problem booting up from raid&lt;/a&gt;. Upgrade solved the issue but brought some others. One of the most serious to me was that the &lt;a href="http://www.tanzband-scream.at/line6/"&gt;Linux Line6 PodXt driver&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;could not be compiled anymore. The error I got was:&lt;span style="font-style: italic;font-size:100%;" &gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;make default &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; make -C /lib/modules/2.6.22-12-generic/build&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; SUBDIRS=/home/user1/workspace/line6usb-0.7.2 modules&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; make[1]: Entering directory `/usr/src/linux-headers-2.6.22-12-generic'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;   CC [M]  /home/user1/workspace/line6usb-0.7.2/pcm.o&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /home/user1/workspace/line6usb-0.7.2/pcm.c: In function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; ‘snd_pod_trigger’:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /home/user1/workspace/line6usb-0.7.2/pcm.c:40: warning: implicit&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; declaration of function ‘snd_pcm_group_for_each’&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /home/user1/workspace/line6usb-0.7.2/pcm.c:40: error: expected ‘;’&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; before ‘{’ token&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /home/user1/workspace/line6usb-0.7.2/pcm.c:33: warning: unused variable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; ‘err’&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; /home/user1/workspace/line6usb-0.7.2/pcm.c:32: warning: unused variable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; ‘s’&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; make[2]: *** [/home/user1/workspace/line6usb-0.7.2/pcm.o] Error 1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-12-generic'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt; make[1]: *** [_module_/home/user1/workspace/line6usb-0.7.2] Error 2&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; make: *** [default] Error 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So I investigated this a bit and found that some macro calls were obsoleted which is why pcm.c can not be compiled on 2.6.22 - actually neither on 2.6.21 and 2.6.20 is the latest working.&lt;br /&gt;Fortunately  this was very easy to correct this error. OK first I had to check kernel changelog and also &lt;a href="http://lxr.linux.no/"&gt;Linux Cross Reference&lt;/a&gt; helped me a lot.&lt;br /&gt;So here is the required modification in pcm.c of the driver to be able to compile the source again.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; /* trigger callback */&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;int snd_pod_trigger(struct snd_pcm_substream *substream, int cmd)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;{&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; struct snd_pod_pcm *chip = snd_pcm_substream_chip(substream);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; struct list_head *pos;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; struct snd_pcm_substream *s;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; int err;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; unsigned long flags;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; printk(KERN_INFO "*** Entering snd_pod_trigger\n");&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; spin_lock_irqsave(&amp;amp;chip-&gt;lock_trigger, flags);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; clear_bit(BIT_PREPARED, &amp;amp;chip-&gt;flags);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; //snd_pcm_group_for_each(pos, substream) {&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt; list_for_each(pos,&amp;amp;substream-&gt;group-&gt;substreams) {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;//s = snd_pcm_group_substream_entry(pos);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;  s = list_entry(pos,struct snd_pcm_substream,link_list);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;  switch(s-&gt;stream) {&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;  case SNDRV_PCM_STREAM_PLAYBACK:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just change the lines so old ones are commented out and below are the new ones:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;  //snd_pcm_group_for_each(pos, substream) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; list_for_each(pos,&amp;amp;substream-&gt;group-&gt;substreams) {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;//s = snd_pcm_group_substream_entry(pos);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;s = list_entry(pos,struct snd_pcm_substream,link_list);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As soon as I have a bit more free time I will make a patch - a diff - to apply.&lt;br /&gt;&lt;br /&gt;This error was reported via &lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1800709&amp;amp;group_id=200399&amp;amp;atid=973346"&gt;sourceforge&lt;/a&gt; and I am pretty sure we can see a corrected version soon officially from Marcus Grabner. But till then you can do it on your own easily.&lt;br /&gt;&lt;br /&gt;P.S. : I would like to say thanks to Marcus Grabner for the driver.&lt;br /&gt;&lt;br /&gt;[Update] The patch can be downloaded from &lt;a href="http://web.t-online.hu/tarjanyt/public/line6usb-0.7.2_patch.diff"&gt;here&lt;/a&gt; or from &lt;a href="http://sites.google.com/site/tamastarjanyi/Home/line6usb-0.7.2_patch.diff?attredirects=0"&gt; here&lt;/a&gt;. First save it into your home directory. Download the &lt;a href="http://www.tanzband-scream.at/line6/download/line6usb-0.7.2.tar.bz2"&gt;driver&lt;/a&gt; also into your home than execute the following commands &lt;span style="font-weight: bold;"&gt;(I suppose that line6usb-0.7.2.tar.bz2 and line6usb-0.7.2_patch.diff are saved into your home)&lt;/span&gt; :&lt;br /&gt;$ cd ~&lt;br /&gt;$ bzip2 -dc line6usb-0.7.2.tar.bz2 | tar xfv -&lt;br /&gt;$ cd ~/line&lt;/span&gt;&lt;span style="font-size:100%;"&gt;6usb-0.7.2&lt;br /&gt;$ patch -p1 &lt;~/line6usb-0.7.2_patch.diff  That is all. Hope it works. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/333092216324663106-1271402320862172043?l=tamastarjanyi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamastarjanyi.blogspot.com/feeds/1271402320862172043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=333092216324663106&amp;postID=1271402320862172043' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/1271402320862172043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/333092216324663106/posts/default/1271402320862172043'/><link rel='alternate' type='text/html' href='http://tamastarjanyi.blogspot.com/2007/09/line6-podxt-linux-driver-072-is.html' title='Line6 PodXT Linux Driver 0.7.2 is incompatible with kernel &gt;= 2.6.22'/><author><name>Tamás Tarjányi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-BDQ2atnfiPA/TdOf_oYGEsI/AAAAAAAADUo/Ram44NrXRe4/s220/174519_782084370_6145160_n.jpg'/></author><thr:total>1</thr:total></entry></feed>
