Questions tagged [amazon-linux]
117 questions
12
votes
3 answers
How do I figure out what CentOS version my AMazon Linux distribution is based on?
I was told we recently created a new Amazon Linux instance with the latest and greatest (Version 2017.3–01) . I'm trying to find out if it is based on CentOS 7 (because that is the only version that supports installation of Google Chrome). I have…
Dave
- 2,348
- 21
- 54
- 84
10
votes
2 answers
How to set environment variables permanently in Amazon Linux 2
I have experimented with many approaches to setting permanent environment variables EC2 instances running Amazon Linux 2, but none of the approaches are persistent across users and across login sessions.
What specific syntax and process will…
CodeMed
- 5,079
- 45
- 100
- 147
9
votes
1 answer
How do I get the output of a cron script run from my home directory?
I'm using Amazon Linux and trying to run a cron job from my home directory (I don't have sudo permissions on the machine). I'm setting a cron job by executing crontab -e and adding this line
30 18 * * * /home/myuser/run_my_script.sh
within it. …
Dave
- 2,348
- 21
- 54
- 84
8
votes
3 answers
How can we generate the session token in aws
i have aws access key and secret key with me. i wanted session token to be updated in aws credential file (~/.aws/credentials), how will i get it?
I want them to be generated in command line.
Vandhana
- 313
- 1
- 3
- 10
7
votes
3 answers
Installing Let's Encrypt on Amazon Linux 2023
I am trying to get SSL certificate with Let's Encrypt nginx on Amazon Linux 2023.
First, I added EPEL using the commands
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
and
sudo rpm -ihv --nodeps…
Sanmi Akande
- 71
- 1
- 3
6
votes
1 answer
Return the private IP of an EC2 instance from within the EC2 instance
What specific syntax can be used to return the private IP address of an Amazon Linux EC2 instance from the command line within that instance?
So far, I have come up with the following:
# Get private IP from inside the instance by filtering inside…
CodeMed
- 5,079
- 45
- 100
- 147
5
votes
1 answer
How to install certbot via snap on Amazon Linux 2023
I am following this guide on how to Configure SSL/TLS on Amazon Linux 2023. It recommends to obtain a CA-signed certificate using Certbot. And to get Certbot, it's recommended to install Snap.
I have tried several things, not able to install any of…
Razkar
- 151
- 3
5
votes
1 answer
What is the difference between the directories conf, conf.d and conf.modules.d in httpd?
I installed the httpd package on my Amazon Linux instance and the /etc/httpd/ directory contains the subdirectories:
conf/
conf.d/
conf.modules.d/
I noticed that these are directories for configurations.
What is the difference between them?
Poliano Martini
- 63
- 1
- 3
5
votes
2 answers
Unable to connect vm to IPv6 internet via virtual tap interface
I'm having trouble connecting a vm to the IPv6 internet through a virtual tap device on the host. I.e., I cannot ping ipv6.google.com or the public IPv6 host global primary interface address. Ex:
-bash-4.2$ ping6 ipv6.google.com
PING…
waffles
- 123
- 7
5
votes
1 answer
Where do I find "libgtk-3.so.0()(64bit)" for Amazon Linux?
I'm using Amazon Linux. When I run "sudo yum install" it eventually errors out with the following
[myuser@mydomain ~]$ sudo yum update
[sudo] password for myuser:
Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper
Loading mirror…
Dave
- 2,348
- 21
- 54
- 84
5
votes
1 answer
Where are my nginx modules?
I'm running the latest Amazon AMI (amzn-ami-hvm-2016.09.1.20170119-x86_64-gp2). If I run nginx -V, I can see it's been configured with many modules:
$ nginx -V
nginx version: nginx/1.10.1
built by gcc 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
built…
Jonathan
- 153
- 1
- 5
5
votes
4 answers
Is it possible to install mysql 5.7 on Amazon Linux AMI?
I tried installing and I am seeing the error
Error: Package: mysql-community-server-5.7.17-1.el7.x86_64 (mysql57-community)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va…
Santosh Pillai
- 153
- 1
- 1
- 4
4
votes
1 answer
Dependency error: install MongoDB on Amazon Linux
I need to install MongoDB community edition on an Amazon Linux machine.
I followed the steps described in the MongoDB documentation that are, very simply:
Create the repo file in /etc/yum.repos.d
Intall via sudo yum install -y mongodb-org
However,…
OnlyAL
- 41
- 1
- 2
4
votes
1 answer
yum lockfile is held by another user
Amazon Linux 2 instances are operated upon by an Ansible Playbook which performs multiple yum tasks one after the other.
What specific changes need to be made to the syntax below in order for the successive yum tasks to run without stopping due…
CodeMed
- 5,079
- 45
- 100
- 147
3
votes
1 answer
CSPRNG use on Amazon Linux 2
I need to use a cryptographically strong (certification requirement), which is of high quality (pass industry standard randomness tests) reasonably performant (see below) PRNG.
Originally, I assumed it would run on the latest Ubuntu LTS, and planned…
Alex O
- 133
- 4