Showing posts with label Amazon EC2. Show all posts
Showing posts with label Amazon EC2. Show all posts

Tuesday, 17 July 2012

Transfering files to remote desktop in Windows 7

Hi guys,

Many a times when we work we would want to transfer machines from our local system to a remote desktop. You can always use the internet to mail and then download it or you can download it directly again. But there's a much easier way to transfer the files to a remote desktop from the local machine using windows 7. Windows 7 has a slightly different procedure compared to Windows XP.

Recently I happened to do this with  Amazon EC2. I had to transfer files from my local system to the EC2 instance. All I had to do was,
Go to start ->  remote desktop connection. The remote desktop window opens up. 

Now click on options which is in the lower left corner

Go to local resources tab in the following window and click on more button at the bottom .


Now u can select the drive that contains the files


Now once you log into the instance , you can see the drive that u shared along with your other drives in My Computer of the EC2 instance.


So now you can copy files from your local drive to your instance.

Beware!!! If u log into your EC2 instance via the AWS Console you will not be able to access the drive you selected. You have to make use of the Remote Desktop Connection facility provided by Windows.

Regards,
Aps.





Sunday, 15 July 2012

Remote Desktop Access for AmazonEC2


                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<<


Friday, 13 July 2012

Creating Image of an EC2 Instance

Hi,
This is my first technical article and I will try my best to keep it as technical as possible though I have no idea to what extent I will be achieving it.I will start with a simple article.

Well recently when I was working with Amazon EC2, I had to create almost 100 instances and I had to install MySQL, tomcat, and other software in every instance. I probably would have spent the entire time doing it. But Amazon always makes our work easier doesn't it? I read about creating an image of the instance and creating any number of instances from that image. the created instances will be exactly like the one from which the image was created. When I 'googled' on how to create Amazon EC2 Instance Images nothing much turned up. Finally it was a simple right click that did  the trick.







So when you want to create an Image of an Instance all you have to do is log into your AWS Management Console. And navigate to your EC2 tab. Right click on the instance and select Create Image(EBS AMI)








Next Navigate to the AMIs path , right click on the desired AMI and click launch instance.








 The request instances wizard opens up where you can choose the type of instance and specify the number of instances.










This way you can exactly replicate the Amazon EC2 instances using the AWS Management Consoles.

Aps.