The interaction with the AmazonEC2 can be done via command line SSH connection. It's a lot easier to develop the code on the target sever than it is to develop on the local machine and sync the files repeatedly. So I have had to run Eclipse IDE on Amazon EC2 instance which required a GUI front-end to operate.
Connecting to the desktop instance will require a means of sending over the X-Windows screen. We will use the NoMachine NX server, which allows remote GUI connections of the desktop even over low bandwidth connections.
Server-side Commands[Amazon EC2]:
1) Installation of NoMachine's NX server involves installing 3 packages that depend on each other to function. Follow the link http://www.nomachine.com/select-package.php?os=linux&id=1
to download the 3 packages appropriate for the platform. I chose the debian packages.
a) i386 - 32 bit.
b) x86_64 - 64 bit
2) Once downloaded install the packages in the same order.
a) sudo dpkg -i nxclient_3.5.0-7_i386.deb
b) sudo dpkg -i nxnode_3.5.0-9_i386.deb
c) sudo dpkg -i nxserver_3.5.0-11_i386.deb
[*replace 'gpkg -i' by rpm -iv for rpm packages]
3) Now run the nxserver install script.
a) usr/NX/scripts/setup/nxserver --install.
4) In order to connect from the client machine, the ssh keys must match between client and server. The easiest approach is to generate the key on the server. Generate the key using this command. The resulting ssh key will be stored in /usr/NX/share/keys/default.id_dsa.key.
a)usr/NX/bin/server --keygen.
Client-side Installation:
1) On your client machine download the nxclient from this link http://www.nomachine.com/download.php appropriate for your platform.
2) Install the package and then start the nxclient to configure the connection such as ipaddress, port etc.
3) Copy the generated key from the server [/usr/NX/share/keys/default.id_dsa.key] . Back on the client machine within the configuration window click the Keys tab and paste the copied key.
4) Give the username and password for the server login.
Done!!! You should be able to start the new session of the amazon instance.
>>Venk@_7harun<<



No comments:
Post a Comment