0
votes
0answers
17 views

Amazon Linux add user to group

I am using Amazon Linux AMI image doing development. And I want to add the default user 'ec2-user' into group 'docker' like below: sudo groupadd docker sudo gpasswd -a ec2-user docker When I logged ...
0
votes
1answer
27 views

Telnet between two linux machines on Amazon EC2

I am not a networking guy, so I apologize if my question is dumb. I have two Ubuntu machines setup via Amazon EC2. I need to "talk" from one to the other over port 3000. On my receiving machine, I ...
2
votes
1answer
54 views

Linux multi-tasking

I'm working on deploying a node project to a Linux box on amazon EC2. The project uses mongoDB. I'm trying to run node and mongoDB simultaneously on the box but I'm unfamiliar with linux. Is it ...
0
votes
1answer
26 views

mysql_secure_Installation is missing in my mysql installation

I'm following this guide with my new Linux AMI on EC2. After installing mysql: yum install mysql-server And running it: service mysqld start I tried running: mysql_secure_Installation But ...
0
votes
0answers
33 views

Error installing HandBrake on Amazon AMI Linux

When I tried to compile Hand Brake, I get the following error: checking whether we are using the GNU C++ compiler... no checking whether /usr/bin/g++ accepts -g... no checking dependency style of ...
0
votes
1answer
128 views

I accidentally deleted the home directory on my Amazon Linux EC2. My whole site disappeared. What now?

I was using sudo rm -rf to delete some folders, and accidentally deleted the /Users/ec2-user home directory. I had my EC2 and AWS Route 53 running my site. Now, it just disappeared. I have all the ...
0
votes
1answer
44 views

How do I setup a test and dev environment on one same EC2 Linux instance for a drupal site?

I am using EC2 linux instances to run a drupal 7 site. I plan to have one server for the production site (drupalsite.com). How can I set up an EC2 Linux instance to host both test and development ...
0
votes
1answer
20 views

Set Volume to NOT delete on termination on AWS EC2 Management Console

I want to make my one of my instance's hard drive (root) persistent so I can use it if I want to recreate it in the future, but I can' find the option anywhere. Also, would it be possible to launch ...
0
votes
1answer
468 views

VNC : Console does not accept any keyboard/mouse inputs

I have used and configured vnc many a times before but facing this strange issue for the first time. Here are my steps of configuring vnc on Amazon (RHEL 6.2 64-bit, AMI: ami-2fd5441f): Server ...
1
vote
0answers
60 views

EC2 instance with two internal IPs - using ifconfig

I am trying to allocate another internal IP to an EC2 (classic - not VPC) instance with the following command. sudo ifconfig eth0:0 inet 10.80.7.40 netmask 255.255.255.0 Here, 10.80.7.40 is just a ...
2
votes
1answer
35 views

Where are these S3 requests coming from?

I've recently been working to create a CentOS 6.4 Amazon machine image (AMI) from scratch to be used as a base image for running Postfix email services on EC2. In my quest to learn the process, I ...
0
votes
1answer
1k views

No module named yum after “yum update”

Amazon EC2 Linux AMI Python 2.7.5 yum 3.4.3 I recently did a "yum update" and I'm guessing this lead to my issues. Yum now does this: # yum There was a problem importing one of the Python modules ...
1
vote
1answer
350 views

Broken sudo on amazon web services ec2 linux centOS

So I had no idea of the dangers of messing with the /etc/sudoers file, and was just trying to make a simple change in there. However, I seem to have put something with incorrect syntax in there, ...
1
vote
2answers
163 views

Linux/SSH - get EC2 instance to read local .bashrc file

I have a custom .bashrc file with color codes locally on my Linux machine running Ubuntu 12.04 for both my user and root. I connect to Amazon EC2 instances daily running the same distro and would ...
0
votes
1answer
378 views

How to point domain name to Amazon EC2 subdirectory

I'm having trouble pointing a domain name to a subdirectory on an Amazon EC2 instance. FYI - I'm not too experienced with DNS or networking ... So jumping right in ... I set up an Amazon EC2 ...
2
votes
2answers
375 views

Having bridged network for lxc containers in Amazon ec2

I am trying to setup LXC containers on top of Amazon. I am very much new to Amazon and VPC especially. In fact created VPC for the first time to experiment lxc. My Goal: My goal is to have lxc ...
1
vote
1answer
334 views

How to login to EC2 Linux instance if sudo password is not known?

I am trying to login to my EC2 Linux instance, but someone has changed the sudo password. So I could not install or uninstall any application.
0
votes
0answers
108 views

Eclipse RSE not able to connect to SSH on port other than 22

I am using Eclipse RSE plugin to connect to Amazon Ec2 instance. On SSH port 22 all works ok. i then chnaged my default ssh port to 8022 . I tried from putty and that worked Fine. But Eclipse RSE ...
0
votes
0answers
58 views

amazon ec2 based vpn only skype is working

Following the guidelines at here http://blog.astyran.sg/2012/05/running-vpn-on-linux-ami-image-amazon.html I was able to successfully create a VPN server on my ec2 machine. I can also connect to my ...
0
votes
3answers
2k views

Port 80 not accessible Amazon ec2

I have started a Amazon EC2 instance (Linux Redhat)... And Apache as well. But when i try: http://MyPublicHostName I get no response. I have ensured that my Security Group allows access to port ...
1
vote
2answers
83 views

Use latest version of package in bash script

The installed package libnet-amazon-ec2-perl uses v0.14.1. How do I update this package to use the latest stable release v0.22.1? When I try sudo apt-get --only-upgrade install ...
0
votes
1answer
37 views

Multiple user directories on EC2

Im trying to set up multiple user directories on EC2 running Ubuntu, but im not sure how to set it up correctly so that i can serve files in the following format: http://<ec2 ip ...
2
votes
1answer
38 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. ...
1
vote
3answers
106 views

Keep GUI app running after vncserver shutdown

I am trying to do the following: Connect through SSH to an Amazon EC2 instance Start a VNC server Connect through VNC Start a GUI application and log in Kill the VNC server but keep the GUI ...
0
votes
2answers
122 views

How to extract IP address from Amazon hostname?

I really don't know why, but Amazon Web Services provided me with some weird hostnames for my machines. Now I need to list all them with knife to use in a bash script. I'm saying that the IPs are ...
1
vote
0answers
83 views

Python taking too much memory on server,

I have a running EC2 instance on amazon AWS. and some time server gives me the memory maximum utilization above 97%. When i saw my server stats on newrelic That showed me the below running processes ...
1
vote
1answer
441 views

how to correct sudo permission

I'm running AWS EC2 Micro instance and had issues getting permission to the root access with EC2-user. Followed a tutorial online and ran the following commands: sudo chgrp ec2-user /etc sudo chmod ...
0
votes
1answer
3k 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 ...
0
votes
0answers
77 views

SSH into Linux box from EC2

I can't seem to ssh from my ubuntu EC2 server into my work linux box. From my work linux box, I can ssh into myself via ssh -p <my listening ssh port> <user>@<my ip> The same ...
1
vote
0answers
122 views

Install and setup FTP for nginx on Amazon EC2?

To install nginx and node on my Amazon EC2 I followed this guide: Installing Node.js on Amazon EC2 Now I want to get an FTP up and running and set it up so that when I connect to the FTP I ...
0
votes
1answer
361 views

Amazon EC2 linux user accounts

I have a Linux AMI setup on EC2. The default user is ec2-user. I created a second user account on the instance. I copied the .ssh/authorized_keys file from ec2-user home directory to the new user's ...
0
votes
1answer
71 views

Cant write to directory when not logged in as root

I am switching a site over to amazon ec2 and the pages that allow a user to upload a file to a directory arent working. When Im logged in as root via ssh I can 'touch' a new file to there but not when ...
0
votes
1answer
305 views

Autostart for ubuntu server

Here is the first part of my question. Splitted it because of rule "One topic - one question". My third and main question is about configuring autostart for webserver and database. init.d scripts ...
2
votes
1answer
98 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?
1
vote
2answers
100 views

Where should I install binaries that don't come as .deb?

I'm going to run EC2 instance for dev purposes on AWS. Most likely Ubuntu (once had it on my laptop). I am Java developer, so I need JDK, Tomcat, Maven, Git and MongoDB on the server. But software in ...
2
votes
2answers
1k 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 ...
4
votes
2answers
122 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. ...
0
votes
1answer
544 views

debootstrap creates blank fstab (“UNCONFIGURED FSTAB FOR BASE SYSTEM”) - how do i configure fstab for the first time?

I've been following this tutorial to create a custom amazon ec2 image. It looks like debootstrap doesn't set up the fstab anymore. When I get to the mount /proc step, it complains: warning: can't ...
4
votes
2answers
3k 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 ...
9
votes
3answers
7k 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 ...
2
votes
3answers
2k views

How come cd doesn't work in my shell script?

SOLVED I'm trying to make a shell script on my Linux Amazon-EC2 server that will start my Minecraft server but the cd command says it can't find the directory or file when I try to change to the ...
1
vote
1answer
199 views

Unable to connect to thin server on ubuntu

I'm unable to connect to my webserver over the web. I've got an ec2 instance running with ubuntu 11.10 on it. It's running a thin server on port 9292. I can ssh into the ec2 box, and do curl ...
0
votes
2answers
726 views

Amazon EC2 and eventmachine encryption issues

I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes. I've written a small backend in Ruby ...
0
votes
1answer
1k views

Unable to create filesystem on new partition - Amazon EC2 instance

I created a new partition /dev/xvda1p1 on linux amazon ami. After that i am unable to create a filesystem. What is the issue? # fdisk -l Disk /dev/xvda1: 8589 MB, 8589934592 bytes 255 heads, 63 ...
6
votes
1answer
5k 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 ...
1
vote
2answers
1k views

How to install mongodb on linux?

I'm a nuby on linux (never used it before), and I want to install mongodb on an EC2 linux instance. I still haven't found a good article which guide how to install mongodb on an EC2 linux instance, ...
2
votes
1answer
760 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 ...
12
votes
7answers
38k 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 ...
4
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?
2
votes
1answer
1k views

Amazon Linux AMI: How to replace sendmail with postifx?

Apologies in advance for my nub question. Been using the Amazon EC2 Linux AMI and enjoying it. It comes configured with sendmail. I think I'd rather use postfix. I hoped replacing sendmail with ...