Amazon EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications.

learn more… | top users | synonyms (1)

55
votes
1answer
43k views

How do i change my default shell from bash to zsh?

I want to change my shell from the default bash shell to zsh on my Amazon EC2 instances. How do I go about doing it? Thanks!
13
votes
7answers
44k views

How to install PHPMyAdmin on Linux EC2 instance?

I just finished setting up a default Linux EC2 instance and would like to install PHPMyAdmin. I already have Apache and MySQL installed but cannot seem to install PHPMyAdmin. I tried using sudo ...
12
votes
2answers
10k views

X11 forwarding from Amazon EC2 AMI

local$> echo $DISPLAY :0.0 local$> ssh -X -i PEMFILE ec2-user@AMAZONEC2_AMI [ec2-user@REMOTE_AMI ~]$ echo $DISPLAY [ec2-user@REMOTE_AMI ~]$ sudo grep X11 /etc/ssh/sshd_config ...
11
votes
2answers
9k views

What is the difference between Amazon Linux and RedHat Enterprise Linux on AWS EC2?

I am very new to this and I don't even know if I should ask this question here or on Stackoverflow or ServerFault. The Question I wish to set up a EC2 instance on Amazon Web Services. My ...
7
votes
1answer
6k views

What's a good way to install “build essentials” (all common useful commands) on a blank EC2 Linux server?

I want to get some "build essentials" (like gcc, make, etc.) on an empty micro Linux box. Seems inefficient to spend my time trying to try installing one thing, then realize I need gcc, then realize ...
5
votes
4answers
3k views

How to get Amazon EC2 instance operating system info?

I just setup an EC2 instance running Linux. Is there a way to get the version/distribution of Linux that is running on the instance via the terminal?
5
votes
2answers
2k views

Why can't I ssh-copy-id to an EC2 instance?

I have a ubuntu Natty instance on EC2, and I can SSH into it by ssh -v -i ec2-keypair ubuntu@ubuntu@XXXX.compute-1.amazonaws.com But I'd like to set up password less sshing. So I tried these ...
5
votes
5answers
10k views

Accessing Amazon EC2 in Filezilla SFTP

I need help/guide how I can open my ssh access from a GUI or Filezilla. Here's the scenario my developer just left me with the login info to my Amazon EC2. Now I am finding difficulties in ...
5
votes
1answer
285 views

Is listening on a port on the localhost of a server the same as listening on that port of the server's public IP address?

I set up a free Amazon EC2 instance in order to use a Node app outside of my localhost environment. The instance is allocated a public IP address at launch, mine for example being 54.187.31.42. Does ...
5
votes
1answer
9k views

How can I open listen ports on an Amazon EC2 instance?

I'm using Amazon EC2 micro instance with Ubuntu 11.04 on it (official AMI by Canonical). I have created a new security group for this instance: Inbound: 22 (SSH) 0.0.0.0/0 80 (HTTP) 0.0.0.0/0 ...
5
votes
2answers
2k views

How do I change the resolution of an Amazon EC2 Windows Machine?

(I debated between posting this here, ServerFault, and StackOverFlow. Settled for this. Hopefully it's in the right place.) We run our UI testing suite using Selenium Grid 2 with an Amazon EC2 ...
5
votes
1answer
1k views

Can RackSpace cloud images be downloaded and used on a private cloud inside your local network?

I've read that for example Ubuntu Enterprise Could images can be loaded from a private cloud residing on your local network to Amazon EC2. Or you can create a image on Amazon EC2 and then download it ...
4
votes
1answer
2k views

unable to create txt record using amazon route 53

I can't add the following TXT record to my Route 53 DNS config: v=msv1 t=whatever Doing so produces the following error: The record set could not be saved because: - The Value field contains ...
4
votes
3answers
5k views

How do I use my keyfile to sftp transfer data from one server to another

I cant scp, the other server only takes sftp connections. Currently, I am trying to do sftp jay@server.name.com:/files> put -r ~/ -i keyname does not work, just resolves with illegal option -- ...
4
votes
2answers
134 views

What can I do to give some more love and disk space to my database on Ubuntu?

I'm new to linux. I've deployed a db to ubuntu server on amazon and found out I'm low on disk space. did df (see below) - and found out that I'm 89% capacity on one file system, but less on others. ...
4
votes
2answers
4k views

“Cannot allocate memory” while no process seems to be using up memory

I am not competent on server issues, any help is much appreciated. When try to start a python/django shell on a linux box, I am getting OSError: [Errno 12] Cannot allocate memory. free -m seems to ...
4
votes
1answer
7k views

Where to find log messages in tomcat7 installed on Amazon EC2?

I have installed Tomcat 7 on an Amazon EC2 running Amazon Linux. I have installed a WAR file on tomcat and I am using java.util.logging for logging messages in my code. Now how to access those log ...
4
votes
2answers
747 views

How can I get Wireshark with a GUI on my EC2?

I have an Amazon EC2 machine that I'd like to run Wireshark on, using X forwarding. Unfortunately, the only Wireshark packages found with $ yum search wireshark are: wireshark-devel.x86_64 ...
4
votes
2answers
1k views

Get a fixed dns for an ec2 instance

I want to use an ec2 instance just to do work on some personal programming and text processing projects in the cloud (from an ssh terminal) rather than on a desktop. I don't always need access to the ...
4
votes
3answers
3k views

Moving EBS snapshots to Glacier

I have hundreds of large EBS snapshots I need to move to Glacier. What's the best way to go about doing this?
3
votes
3answers
1k views

How can I start X11 on a Linux system without graphics hardware?

I want to run some xulrunner based program on EC2 - it will run automatically but it needs some display as far as I understand. That probably requires X11 with some dummy screen driver. How can I do ...
3
votes
6answers
7k views

What can cause a MAC Address to change?

I would like a summary of common scenarios that can cause a MAC address to change? Does hopping on a new network give you a new MAC? Does installing a new network device (e.g. WiFi card) cause a ...
3
votes
3answers
12k views

How do I copy files into `/var/www` with WinSCP?

When I try to place my web files into /var/www in apache on my ec2 Ubuntu instance it is giving me an error stating that I don't have permission. Permission denied. Error code: 3 Error message from ...
3
votes
2answers
2k views

How to setup EC2 spot instances with elastic IP? [closed]

I would like to set up an EC2 spot instance with an elastic IP. Here's the catch: if a spot instance is interrupted and resurrected later, Is the ip reassociated to the new instance? Am I billed for ...
3
votes
2answers
3k views

Can I run Windows 7 in Amazon AWS [closed]

I'd love to be able to do some testing on blank images of a windows 7 machine, and rather than have to set up VirtualBox with Windows 7 and use snapshots etc I thought I might just use EC2 on AWS and ...
3
votes
5answers
1k views

Setting up scripts in Amazon EC2 Cloud

I am currently running a few perl and python scripts on a windows pc and would like to port over to the Amazon EC2 servers running 64-bit LINUX. The scripts are basic web scrapers that go to a ...
3
votes
1answer
607 views

using ZFS and local hard drives as a cache for a remote iSCSI SAN

This is purely theoretical idea, i dont plan on doing this any time soon, but could you use Local hard drives as a kind of Cache to remote drives stored on Amazon EC2, shared to a user via iSCSI? The ...
3
votes
2answers
963 views

Lost sudo/su on Amazon EC2 instance

I have an Amazon EC2 instance. I can login just fine, but neither "su" nor "sudo" work now (they worked fine previously): "su" requests a password, but I login using ssh keys, and I don't think ...
3
votes
2answers
949 views

Copying 500GB Data to EC2 Instances Local Drive

Please do not ask me why (they made me) but I have to copy 500GB data to the local drive every 200 node/instances that I am launching in EC2. For reasons beyond this post, this data must by on the ...
3
votes
1answer
822 views

Are whole VM images backed up on Amazon EC2/S3?

I've been trying to get my head around Amazon Web Services as a VPS provider. My understanding is a EC2 instance running Windows is basically a Windows VM, very similar to renting a VPS from a more ...
3
votes
1answer
5k views

Mount EC2 instance via SSH on Mac OS X

OK I just can't figure this out. I have an EC2 instance, which I'm able to SSH into just fine with: ssh -i XXXX.pem ubuntu@XXXX.com I can even make it slick from the command line by creating a ...
3
votes
1answer
29 views

Provide access to another user on EC2 instance.

A friend of mine, wants me to access his ec2 instance. He does not want to share his secret file. I advised him to put my public ssh keys, in the ~/.ssh/authorized_keys of his ec2 instance. If ...
3
votes
1answer
221 views

Can't access YouTrack, unless using Firefox

Problem I cannot access JetBrains YouTrack using Chrome or Internet Explorer, but I can access it using Firefox. Background and troubleshooting that has already been performed It is running on an ...
3
votes
4answers
2k views

What is different between my git bash and cmd

I installed ec2 command line tools on windows this morning. When I try to run a command ec2-describe-instances in the git bash, I get this output: Exception in thread "main" ...
3
votes
1answer
446 views

How do I create an ami for openSUSE in Amazon ec2?

I need to scale some services from local servers to Amazon ec2. The current production-environment is based on the latest openSUSE. In order to keep things simple, I want to run the instances in ec2 ...
2
votes
3answers
280 views

Difference between Fedora 8 and Fedora 15 filesystems

I am running Fedora on my development Amazon EC2 instances. I recently moved from Fedora 8 to Fedora 15. I noticed that when I do a "cat /etc/fstab" I see the following on my Fedora 15: ...
2
votes
2answers
960 views

How to stop adding IP from EC2 to known_hosts for ssh?

I start/stop lots of new instances as I'm learning to use Amazon EC2. Every temporary instance is added to the known_hosts file. Is this ever a problem for others who use EC2 a lot? I'd like to tell ...
2
votes
2answers
457 views

What actually is Amazon EC2's 'pay per hour' for on demand instances?

I'm thinking to host my ROR website on Amazon EC2. I wont be needing a S3 as of now. But when I check the their pricing it's like Micro - $0.020 per Hour I don't get this per hour billing.My ...
2
votes
2answers
2k views

Can't cd to directory of programs like apache or tomcat on ec2: permission denied

hi I have setup tomcat 7 through yum on an ec2 instance. I have access to the user ec2-user by default through aws from launching the ec2 instance. I am trying to simply look at my tomcat logs ...
2
votes
2answers
695 views

Git push from windows pc to aws ec2 machine fails

I've followed the steps in this tutorial: http://cuppster.com/2011/05/12/diy-node-js-server-on-amazon-ec2 but when I came to the step "push our local code changes to the remote repository" I got an ...
2
votes
1answer
827 views

Is having Linux VPS same as Amazon EC2 or S3 [closed]

I am new to Amazon services so have no idea, whenever i ask some questions on forums , few recommend Amazon instead of VPS. So i want to know is having Amazon EC2 or S3 is exact replacement of VPS. i ...
2
votes
1answer
43 views

How to estimate compute time on EC2?

I need to generate data samples for my thesis, using some R/C++ code I've written. It can be embarrassingly parallel, and I've generalized it to run on local multicore machines without much trouble. ...
2
votes
1answer
142 views

How do amazon EC2 instant's random DNS entry gets resolved

I am new to EC2 and please help me in understanding this better. When I created an EC2 instance it immediately got a name ec2-67-201-11-147.compute-1.amazonaws.com and I could dig them immediately. ...
2
votes
1answer
724 views

How to change the root SSH key on an EC2 instance

I have a running EC2 instance with Debian 10.04LTS that I'd like to change the root SSH key of. How do I do this, since amazon set up that key initially for me? Can I just change it the way I'd ...
2
votes
1answer
2k views

How to view contents of an EBS volume attached to an EC2 instance via Terminal?

I've setup an EC2 instance and have 2 EBS volumes attached to it. I would like to view the contents of each volume. How do I view it via the terminal (cd /somePath)? I've already have a valid SSH ...
2
votes
2answers
4k views

EC2 volume not mounting via fstab; manual mount successful

I have a Micro instance running Ubuntu 10.04 x86 (AMI ami-3e02f257). It has the OS volume attached at /dev/sda1 and a second volume attached at /dev/sdf (reported as ...
2
votes
2answers
4k views

Mounting an Amazon EC2 instance on Mac OS X

I've got public key authentication working between my Mac OS X and an Amazon EC2 instance so that from the command-line I can just type the following and it works: ssh root@[IPAddressOfEC2Instance] ...
2
votes
1answer
30 views

Is it safe to work on a server via SSH while uploading files to it via an SFTP file manager?

I'm uploading a large amount of data onto a server via SFTP, and could start setting things up in non-related areas with SSH while waiting, but I'm curious as to whether doing the two simultaneously ...
2
votes
1answer
99 views

User management for linux server

Here is the first part of my question. Should I set up two user accounts; one for the database and another for the web server? Or is it better to have one root user for all purposes?
2
votes
1answer
3k views

EC2 ubuntu AMI ssh password default without key

I have a problem getting past the prompt after setting my first EC2 instance. The ubuntu LTS AMI supposed has ubuntu as the default user name. I set up the instance without keypairs when asked during ...