Tuesday, June 29, 2010

NX client and server for RHEL

After having used numerous ssh sessions open from your windows PC to linux, you are going to appreciate the NX client and server. They are extremely fast and easy to set up. I followed the instructions on http://www.penlug.org/twiki/bin/view/Main/FreeNX for my RHEL 5 distributions.


Here are the quick steps. I am planning to set this up on all my boxes:


  1. Make sure what the release of RHEL or any other flavor of linux you are running is by typing the following command: cat /etc/*-release
  2. Get into a temporary folder where you can download all the binaries (e.g /tmp)
  3. Go to the Centos site to find the binaries for freenx, nx and expect which will work for you. After a bit of checking I found that CentOS release numbers are matched up with their RHEL counterparts, so I downloaded the packages for the CentOS 5.X releases:
    • wget http://mirror.centos.org/centos/5/extras/i386/RPMS/freenx-0.7.3-4.el5.centos.i386.rpm
    • wget whttp://mirror.centos.org/centos/5/extras/i386/RPMS/nx-3.4.0-4.el5.centos.i386.rpm
  4. Now install these rpms as follows:
    • rpm -Uvh nx-3.4.0-4.el5.centos.i386.rpm
    • rpm -Uvh freenx-0.7.3-4.el5.centos.i386.rpm
  5. This may tell you that you need expect. So download and install it as well
    • wget http://mirror.centos.org/centos/5/os/i386/CentOS/expect-5.43.0-5.1.i386.rpm
    • rpm -Uvh expect-5.43.0-5.1.i386.rpm
You are now done with the server side. Now download the client from http://www.nomachine.com/download.php. The client requires some set up. You can pick any name for the session. If it fails to connect to the server, you need to check if you disabled encryption - it may be trying to connect to ports which are not open on your linux box. So enable encryption. Also root account works in case you have that question! Also you must remember to copy paste the client key from the server as the link above notes in the client. The windows client comes coded with some default key which doesnt work.


Note: The client key is located on the server at:
/var/lib/nxserver/home/.ssh/client.id_dsa.key
and I found most of the other dependencies for RHEL 5 here (for some reason my yum update wouldnt work): 
http://mirror.centos.org/centos/5/os/i386/CentOS/
Ciao and enjoy!


Tuesday, August 12, 2008

Choosing between Drupal, Joomla and RoR

I recently did a quote update for myself where the three strong contenders are when building community sites today. Ruby on Rails has been in news a lot as the coolest app around, in hot demand. Rails has become almost the tool of choice for startups today trying to build something quickly without fear of it getting outdated or hard to manage when they grow. A lot of rails hosting companies have also sprung up.

It may also seem that the debate between Drupal and Joomla needs to be resolved once for all. I have evaluated the two myself a few times without any conclusive results as to which one is the clear winner. I think a lot depends on what you really want to do and your goals.

For example, Joomla may be the ideal choice when it comes to quickly building up a site with nice features which come integrated or are easy to find. However if you need flexibility or are not sure how the site will evolve as time goes by (in other words if you think your website may be your business next year or so), then you need to look at Drupal and RoR. Joomla may not be a wise choice, at least based on what I have read or experimented with. So if you have a bounded task at hand, Joomla is quick, simple, elegant and beautiful.

If you are building a content site and have ruled out Joomla based on the above, then Drupal may be something you want to seriously look at. Though it is based on PhP, a not so hot technology, it has the bones to last you for a long time.

Finally, if you have a custom application you are building from scratch (so there is no previous baggage of Java or PhP)  targeted towards consumers or a community, Ruby on Rails should be your choice.

Enterprise or B2B applications may be best suited for Java and you can pick the Spring/Hibernate framework there which is probably a much more safer approach considering it is much more mature and feature rich.

Finally, here is a great series of articles on Drupal from IBM, who picked it as their platform of choice between Joomla and RoR (though that was back in 2006)
Blogged with the Flock Browser

Monday, June 23, 2008

The Zimbra for Mobile: Funambol

Funambol has an open source approach to Mobile Email and Mobile Sync. Some say that Funambol is out to take out RIM. They have a model similar to what I saw last with SugarCRM - free for Enterprise IT users or personal sync and you can buy the enterprise edition. I think that is a good model and the space needs a competitor as well. The software appears to be licensed under the AGPL, again I have seen that after a while. For those not familiar with AGPL (Affero GPL), it is a stricter form of traditional GPL license in that you cannot even host it w/o disclosing source code.
Blogged with the Flock Browser

Wix and Sprout: Online Flash Editors

If the thought of having to learn flash to make the delightful widgets and apps ever occurred to you, then here are two tools for you: Wix and Sprout. I tried Sprout myself and it was extremely easy to use (I am still waiting for a Wix Invite). Sprout's focus seems to be the creation of widgets - small pockets of content with rich media you can put on your blogs or websites to promote anything you want or tell people about yourself (the new jazzed up way against the old boring image of yourself). Wix on the other hand is more focused on building a full website.

Other differences include the fact that Sprout is on the West Coast (and Hawaii) and Wix is in NY and the former is kind of ahead in that it recently got its Series A with Polaris ($5M).
Blogged with the Flock Browser

Friday, May 2, 2008

Replicating MySQL over the WAN

I am researching how practical it is to do real-time replication of a MySQL database over a WAN SSH tunnel. What are the constraints caused by bandwidth, MySQL *blocking* bugs (apparently there are a few out there in older versions of MySQL such as 4.x) and how real-time is the real-time replication. How well does a Master/Slave or a Master/Master MySQL system work in this case?