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)

113
votes
3answers
110k views

How do I change my default shell on a AWS instance?

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!
28
votes
8answers
94k 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 apt-...
26
votes
2answers
3k views

Changed the PATH, now I'm getting “command not found” for everything

Amazon Linux Server, connected with SSH: I tried to change the PATH for the apache user by making some changes in /etc/environment (PATH=$PATH:/opt/openoffice4/program) and /etc/sysconfig/httpd (...
25
votes
2answers
28k 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 ...
15
votes
2answers
19k 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 ~/.ssh/...
13
votes
5answers
12k 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?
12
votes
1answer
11k 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 ...
12
votes
3answers
32k 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 -- ...
12
votes
3answers
11k 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?
11
votes
1answer
7k 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 ...
10
votes
4answers
35k 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 ...
9
votes
3answers
23k views

getting my domain name to point to my amazon ec2 instance

I'm trying to get my godaddy.com domain name pointed to my Amazon EC2 instance and am having some difficulty. I created a hosted zone for my domain name on route 54 and set the namesevers up as the "...
8
votes
3answers
5k views

how to make salt-minion generate new keys

I am playing around with salt and what my problem is launching instance from Amazon EC2 AMI results minion keys being the same. How do I refresh individual minion to get it's new identity (key)?
7
votes
2answers
16k 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 ...
7
votes
1answer
23k 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 ...
7
votes
3answers
5k 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 ...
6
votes
2answers
4k 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 ...
6
votes
5answers
14k 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 ...
6
votes
1answer
1k 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 ...
6
votes
1answer
16k 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 ...
6
votes
4answers
6k views

How can I get ec2 command run in git-bash?

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" java.lang....
5
votes
2answers
2k 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 ...
5
votes
1answer
24k views

Setting correct permissions for uploading files

I have a php script that uploads a file to a directory called "uploads". The only way I can get the upload to work is if I do: chmod 777 uploads I know this isn't correct but I don't know ...
5
votes
1answer
2k 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
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 ...
4
votes
2answers
3k 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 ...
4
votes
1answer
3k views

AWS EC2 Linux headless Firefox issue: Xvfb: undefined symbol: pixman_glyph_cache_create

I have been using AWS EC2 Linux for a while for a headless Firefox/Selenium task. I built it using the instructions from http://itsallabtamil.blogspot.com/2013/02/setting-up-chrome-firefox-ec2-...
4
votes
2answers
184 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
4answers
2k 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 ...
4
votes
1answer
4k 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 ...
4
votes
2answers
1k 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 wireshark....
4
votes
2answers
2k 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 ...
3
votes
6answers
17k 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
2answers
3k views

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

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 ...
3
votes
5answers
2k 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
2k views

How do you route within an Amazon VPC subnet?

I have an Amazon Virtual Private Cloud that looks like this: 10.40.1.1 Internet Gateway 10.40.1.5 My OpenVPN Instance 10.40.1.100 My Windows Box What I want is traffic from the Windows box ...
3
votes
1answer
795 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
3answers
3k views

Meaning of FDSize in /proc/PID/status

I'm looking for a way to find out the open FD limit under Ubuntu machines which doesn't have the /proc/PID/limits, namely EC2 machines. I have been looking into /proc/PID/limits, and found the the ...
3
votes
1answer
258 views

How can I make presto (or anything) an executable file on a Linux Server?

I tried CHMOD along with the file directory but it just can't seem to find it for some reason. I've tried the following: -bash: homeec2-user: command not found [ec2-user@_________ ~]$ ...
3
votes
1answer
2k views

Windows 8.1 — PPTP VPN connection dies after a minute or two

I've set up a PPTP VPN using Amazon EC2. I did that by following this guide. I don't want everything going through the VPN, and instead only want connections to specific IP addresses to go through the ...
3
votes
1answer
3k views

EC2 GPU Instance on Windows

I am having a lot of trouble installing CUDA Toolkit on Amazon EC2 GPU Instances. I tried using the HVM Windows 2008 Server AMI from Amazon and also the NVIDIA GPU image both launched on g2.xlarge ...
3
votes
3answers
2k 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
1k 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
6k 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
2answers
3k views

Can phpMyAdmin be used to connect to a remote database?

I recently read this tutorial, which explains how one can easily reconfigure a local installation of phpMyAdmin to connect to a remote database. The functionality seems to be supported, but not ...
3
votes
1answer
44 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
710 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
1answer
4k views

Allowing multiple users SSH access to Ubuntu instance running on Amazon Web Services

It seems as if similar questions have been asked before, but the issue that I am having hasn't been raised or answered as a part of the answers provided to the other questions. So... I'm using an ...
3
votes
1answer
576 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 ...
3
votes
1answer
155 views

Docker container doesn't write in amazon EBS volume

In amazon EC2-instance (Amazon Linux AMI 2015.03.0 x86_64 HVM) I mounted EBS volume to /data directory. Now, I have a docker container that I (sudo) run with -v /data:/data. This container creates ...