Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) is a cloud-based computing platform.
491
questions
307
votes
9
answers
1.3m
views
How do I add SSH Keys to authorized_keys file?
I have an Ubuntu server on Amazon EC2, that I use for development, and today I stupidly cleared everything out of my ~/.ssh/authorized_keys file. Luckily I have an SSH open, so I am still connected, ...
71
votes
5
answers
44k
views
How do I apt-get -y dist-upgrade without a grub config prompt?
Per Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?
I did the following:
ec2run ami-3c994355 --region us-east-1 -n 1 -t m1.large -z us-east-1d
On the ...
34
votes
5
answers
96k
views
What is the default username for Amazon AMI images of Ubuntu Server?
I just launched one of the Ubuntu Server AMI's on Amazon EC2.
I connect just fine, but I don't see anything to tell me the default login credentials.
login as: ?
33
votes
8
answers
32k
views
How do I know what Ubuntu AMI to launch on EC2?
When I want to launch an instance of Ubuntu on EC2, how do I find the right one? There are thousands of public images that have "Ubuntu" in their name. I am only interested in running the Official ...
33
votes
1
answer
160k
views
How to set python 3 as default interpreter in Ubuntu 14.04 [duplicate]
I am working with Ubuntu 14.04 LTS on EC2. I want to change the default python interpreter from python 2.7 to 3.4.0 which is installed by default.
When I do:
/home/ubuntu$ which python
/usr/bin/...
30
votes
7
answers
48k
views
Why did installation of MySQL 5.6 on Ubuntu 14.04 fail?
I wanted to get a look at MySQL 5.6 on Ubuntu 14.04 just out of curiosity. And based on this article it certainly looked like installation should be simple and straightforward. So I fired up an AWS ...
28
votes
2
answers
23k
views
Ubuntu 12.04 on Amazon EC2: /dev/xvda1 will be checked for errors at next reboot?
I'm running the lastest Ubuntu 12.04 AMI (ami-a29943cb) from Canonical on Amazon EC2 and quite often when I log in I get the message:
*** /dev/xvda1 will be checked for errors at next reboot ***
I ...
28
votes
4
answers
47k
views
Not enough disk space '/' in AWS instance
i am running Ubuntu 11.04 instance for my Web Server on AWS cloud, now i am getting there is no disk space in / partition of my server. df -ah say this
Filesystem Size Used Avail Use% ...
27
votes
3
answers
32k
views
How can I stop unattended-upgrades from rebooting the machine?
I just had a look at my Amazon EC2 instance and noticed I had 20 minutes exactly of downtime. I didn't know what caused it so I logged in to SSH and tried upgrading my packages, and saw that the ...
24
votes
7
answers
78k
views
Run a script only at the very first boot
Is there an idiomatic way in Ubuntu to run a script only the first time a machine is booted? (EC2).
20
votes
4
answers
41k
views
Please login as the user “ubuntu” rather than the user “root”
I launched an Ubuntu 18 instance on EC2.
I connected to the server using ubuntu user.
I created a new user named newuser and added it to the sudo group.
Then I ran:
rsync --archive --chown=newuser:...
18
votes
1
answer
13k
views
Should I upgrade kernel packages on EC2 instances?
On my EC2 server, when I do sudo apt-get update && sudo apt-get upgrade, I see:
The following packages have been kept back:
linux-ec2 linux-image-ec2 linux-image-virtual linux-virtual
...
17
votes
2
answers
26k
views
Move tmp folder from '/' partition to mounted partition (/mnt)
I have an Amazon EC2 instance which has given me a tiny '/' partition and a large '/mnt' partition. As such, I have moved my mysql data-dir over to the /mnt partition. However I am now having issues ...
15
votes
2
answers
6k
views
ImageMagick convert and low RAM
Please consider the following command for the imagemagick package:
sudo convert -resize 460x200 /path/to/test1.jpg /path/to/test2.jpg
Now test1.jpg is a fairly large image (12.5MB), but not unheard ...
15
votes
3
answers
5k
views
what can be causing /etc/cron.daily/apt to hang?
Lately I've been getting a mail from the server every day,
Subject
Cron <root@host> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Body
/etc/cron.daily/...
13
votes
6
answers
36k
views
Errors running apt-get update and apt-get install mysql-server
Since yesterday I've been trying to run
apt-get update
unsuccessfully in Ubuntu instances I am creating on the EC2.
In specific I've been getting these errors:
Ign http://security.ubuntu.com ...
11
votes
4
answers
5k
views
Intermittent apt-get install issues when creating an AMI using Packer
I am trying to create an AMI based on ami-3b054701 in the ap-southeast-2 region. The Packer config has one simple provisioner:
#!/bin/bash -e
info() {
echo -e "[INFO] $1\n"
}
exec_cmd() {
...
11
votes
3
answers
10k
views
Ubuntu 18.04 LTS release on AWS
Does anyone know when Ubuntu 18.04 LTS will be deployable on AWS Market Place ?
10
votes
4
answers
45k
views
How to install a Specific Version of Node on Ubuntu Server
I am trying to install Node 6.11.3 on my Ubuntu Server.
I don't want to use nvm for this.
I have already used this link but it just does not work out while using jenkins and stuff.
I want to ...
10
votes
2
answers
17k
views
Which user is running tomcat?
I have a Tomcat 7 server running on Amazon EC2 (OS - Ubuntu 12 LTS). How can I find out which user is running Tomcat on Amazon EC2?
9
votes
4
answers
123k
views
Yum install fails on Ubuntu EC2 instance
I'm using Ubuntu 12.04.3 on an AWS EC2 instance. This is my first time with an EC2 so it's all new to me. I'm also not the most experienced Linux guy either, so I apologize if this is a stupid ...
9
votes
2
answers
24k
views
How to remove rstudio-server-1.0.143-amd64.deb in ubuntu 16.04 linux machine
$ sudo apt-get remove rstudio-server-1.0.143-amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rstudio-server-1.0.143-...
9
votes
2
answers
14k
views
Ubuntu upgrade from 16.04 to 18.04 in AWS EC2
My AWS EC2 instance is running on Ubuntu 16.04. But recently I got an email from AWS that Canonical - the company that provides the support of Ubuntu 16.04 LTS - will stop its support on April 30, ...
9
votes
4
answers
85k
views
How to install dpkg-reconfigure?
I want to install dpkg-reconfigure in Ubuntu 12.04 LTS install on Amazon EC2? How to go about it?
9
votes
2
answers
8k
views
Do I need to make a partition on an EBS volume? What is better?
I'm adding a new EBS volume to an existent Ubuntu server on AWS EC2.
I created the volume and it's attached to the server, I can see it there, all is OK.
What are the bonus/onus of creating a ...
9
votes
1
answer
13k
views
How to attach new EBS volume to Ubuntu machine on AWS?
Disclaimer: I'm probably missing something obvious, sorry in advance.
I need more EBS disk space for my Ubuntu 11.04 server running on Amazon EC2, and decided to create new volume in addition to the ...
8
votes
3
answers
520
views
Server AMI images don't allow a user to login multiple times
When I log into twice to a new instance of Ubuntu server built for Amazon EC2, both windows will be exactly the same. Anything I type in one is replicated in the other.
I never dealt with this when I ...
8
votes
4
answers
1k
views
How to remove bottom information panel in terminal window on Ubuntu Server AMI images?
The Amazon AMI images have a default information panel at the bottom of the terminal window. I would like to remove this (it disables me from being able to scroll backwards in putty).
It looks like ...
8
votes
2
answers
56k
views
curl: (60) SSL certificate problem: unable to get local issuer certificate
Edit:
I had updated my root CA certificates from curl.haxx.se .
When I try curl -Iv https://yahoo.com I get an error as unable to get local issuer certificate in the result. However if I try curl -Iv ...
8
votes
2
answers
6k
views
How to update a running instance on ec2 without losing data?
when i try to connect ubuntu on ec2 I get the following message
New release 'natty' available.
Run 'do-release-upgrade' to upgrade to it.
But when i try to run this command I get this message:
...
8
votes
1
answer
3k
views
Getting WebGL to run on an Amazon EC2 server
I'm trying to get WebGL to work on my Amazon EC2 server (migrating from an office-bound Mac Mini, that has a lot of hiccups).
Worked some days to get this running, but I'll try to start from where i ...
7
votes
1
answer
7k
views
When is 16.04 going to be officially available on AWS? [closed]
It doesn't seem to be avail on http://cloud-images.ubuntu.com/locator/ec2/ nor I can find any when searching on AWS itself
7
votes
5
answers
11k
views
How can I connect to my Amazon EC2 server using a desktop client
I've already setup an Amazon EC2 instance running 10.10 and am able to connect to it using the ssh command provided by Amazon. I noticed there is a 'Terminal Server Client' and a 'Remote Desktop ...
7
votes
1
answer
21k
views
PHP/Apache runs as which user on Ubuntu Server
I have a PHP script (in /var/www) that is supposed to write down the logs of operation in a file deploy.log (also in /var/www) and perform operations on a file situated in other directories of the ...
7
votes
1
answer
1k
views
Differences between AWS Ubuntu Image and a fresh install?
I've been using Ubuntu only on AWS for a year now. I'm now trying to set up a virtual environment as similar to my AWS one as possible, and I'm kinda confused.
When I spin up an AWS server, the magic ...
7
votes
1
answer
6k
views
AWS Ubuntu Instance - User rights
I am running an instance of Ubuntu on Amazon Web Services, all working pretty dandy. I've got one little snag that i'm trying to find the answer to atm.
Amazon forces you to have another user other ...
6
votes
3
answers
5k
views
What is the purpose of these directories on my EC2 Ubuntu 16.04 instance?
Running a command called df -h on my EC2 instance results in the following
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 41M ...
6
votes
5
answers
24k
views
vsftpd installation not working on virtual server as of 14.04
The process I have used for installing vsftpd since 12.04 no longer works. I get the error stop: Unknown instance when restarting the service. I believe this means the configuration is wrong, but I ...
6
votes
1
answer
6k
views
How do I optimize apt-fast with Amazon Web Services (AWS) mirrors?
I know that Amazon Web Services has hosted mirrors that I can use to update my Ubuntu machines.
I know there is a tool called apt-fast that makes multiple connections to a mirror server to improve ...
6
votes
1
answer
5k
views
Synchronise clocks on ubuntu running in EC2?
I've got three servers running on AWS EC2 using official Ubuntu AMIs using paravirtualisation. I have noticed their clocks are out of sync by about a minute.
NTP is not installed by default in the ...
6
votes
1
answer
10k
views
Permission denied (publickey) Amazon Linux aws
I have two instances running on my aws. I have the same keypair for both of them. I was using both instances for long time. but today I am getting an error on one instance while trying to login ...
6
votes
0
answers
278
views
Cannot upgrade EC2/Ubuntu to 18.04.4 with do-release-upgrade. Maybe it's python?
I'm trying to upgrade my Amazon EC2 instance from Ubuntu 16.04.6 to 18.04.4.
I've already performed the cleanups like apt clean, apt autoremove etc...
Then I start do-release-upgrade, I confirm to ...
6
votes
1
answer
6k
views
Need help with getting NoMachine working on Ubuntu 14.04
I'm trying to get NoMachine working on a AWS EC2 instance with 14.04 Trusty Tahr.
I’ve used the instructions from:
https://help.ubuntu.com/community/NomachineNX
https://help.ubuntu.com/community/...
6
votes
1
answer
3k
views
Slow ubuntu mirrors in AWS
We are currently having some very serious issues with VM's started in eu-west-1 region in AWS.
The machines are started from cannonical AMI (ami-77057e00).
The repositories configured are:
http://...
5
votes
3
answers
10k
views
For new AWS instance, "Using username "ubuntu". Server refused our key."
I have been using Amazon EC2 instances in AWS. I have been successful connecting with WinSCP to a variety of instances, including Amazon Linux, Rocky Linux, SUSE, and CentOS 6, 7, and 8. All of ...
5
votes
2
answers
36k
views
Permission denied while doplying Tomcat 8 webapp on Amaon EC2
I can't find how I can get write and read permission into the tomcat folder.
I followed DigitalOcean's tutorial on setting up Tomcat. The only thing I did different is that I used Java 8 instead of ...
5
votes
1
answer
15k
views
What is PAM and why does AWS enable it by default?
I only want to connect to my EC2 instance using SSH, but my sshd_config has UsePAM yes. What is this and will I get locked out of my instance if I set it to no?
Also I set a cronjob to check if my ...
5
votes
2
answers
1k
views
What are the differences between the Alestic and UEC AMI images?
I am going to be bringing up a lot of AWS EC2 instances, and cannot find out what the differences are between the images provided by Ubuntu UEC at:
http://uec-images.ubuntu.com/releases/
and the ...
5
votes
2
answers
1k
views
How do I adjust the instance size that Juju uses?
I've fired up some of the example instances of Wordpress and MySQL with Juju. A coworker has told me that the default instance size is "small". I'd like to be able to scale this to different sizes on ...
5
votes
2
answers
25k
views
Mail Server: system requirements
I want to create a mail server for personal use. It will be used mainly by me and possibly some family members.
The system load will be in the order of 5-10 IMAP mailboxes, all for "human" use: no ...