Questions tagged [amazon-ec2]

Amazon EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications. Web service questions are on topic here only if the question is about the operating system or using a PC application hosted there. Otherwise, other sites on the network may be more appropriate

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

To use Amazon EC2, you simply:

  • Choose a pre-configured image or create a custom image
  • Configure the various security and network settings
  • Select a hardware performance level and OS
  • Start, stop and monitor as many instances of the image as required using the provided APIs or various management tools
  • Determine which locations to run in and whether to use dynamic or static IP allocation
  • Add optional persistent storage to the instances
  • Pay for the resources actually used, such as the hours an image is running, or the bandwidth used
652 questions
129
votes
6 answers

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!
Shripad Krishna
  • 1,391
  • 2
  • 11
  • 7
39
votes
6 answers

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?
David
  • 2,257
  • 8
  • 25
  • 26
35
votes
12 answers

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-get phpmyadmin but the command apt-get is not…
David
  • 2,257
  • 8
  • 25
  • 26
34
votes
2 answers

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 understanding is RedHat Enterprise Linux(RHEL) cost…
33
votes
4 answers

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 [email protected]:/files> put -r ~/ -i keyname does not work, just resolves with illegal option -- i.
Jay
  • 547
  • 2
  • 5
  • 8
26
votes
3 answers

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 (export PATH =…
Lokomotywa
  • 373
  • 3
  • 7
23
votes
2 answers

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 invalid characters or is in an invalid format. If I…
neubert
  • 6,863
  • 35
  • 76
  • 138
22
votes
6 answers

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?
Max
  • 689
  • 2
  • 7
  • 16
17
votes
5 answers

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)?
James Lin
  • 273
  • 1
  • 2
  • 7
17
votes
3 answers

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/* /etc/ssh/sshd_config:#X11Forwarding no …
Humble Debugger
  • 451
  • 1
  • 6
  • 15
15
votes
3 answers

Can I install EC2 Amazon Linux OS locally on virtual machine?

Can I download and run any Amazon Linux os on my local machine? If yes: Then from where I can download this? And can I get image ready for VirtualBox? If no: What is the equivalent OS that matches the following version of EC2 Amazon AMI:…
riksof-zeeshan
  • 251
  • 1
  • 2
  • 5
14
votes
1 answer

How to stop jbd2 to release a device

In an AWS EC2 instance, we have multiple EBS volumes. When I try to detach any of them, the umount command works, but the device can't be detached. # grep -c xvdj /proc/mounts 0 However, lsof reports that jbd2 is using the device. # lsof | grep…
Ayose
  • 141
  • 1
  • 3
14
votes
1 answer

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 I need make, then realize I need something…
Dave
  • 267
  • 1
  • 3
  • 8
14
votes
4 answers

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@[email protected] But I'd like to set up password less sshing. So I tried these options and nothing is working: $ ssh-copy-id -i…
Jeremy Smith
  • 507
  • 1
  • 4
  • 10
13
votes
1 answer

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 what I am supposed to do to get it to work. Server…
1
2 3
43 44