Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
27 views

Install additional software in Amazon Linux

I have created Amazon Linux instance on Amazon Lightsail cloud. Now I would like to install Mosquitto buy entering command: sudo yum install mosquitto But system codn't find it. UPD I tried to add ...
2
votes
1answer
153 views

Timezone correct, UTC correct, time still wrong

I have an AWS EC2 server running Amazon Linux (like rhel fedora) which does not know how to tell time, or is somehow not accounting for Daylight Savings Time. This makes all of my timestamps off by 1 ...
0
votes
0answers
23 views

Catch 22 with user 'nobody' and AWS configure on amazonlinux docker image

I created a docker container from the latest amazonlinux image. I want to pre-install some base level products on it. As a result, I run: 1 yum install -y initscripts 2 yum install python3 3 curl -...
0
votes
1answer
24 views

Cron logs show activity, but app logs show nothing

I'm trying to run a daily cron app. What I did: crontab -e Inside file, I have: 0 0 * * * cd /home/ec2-user/myapp && docker-compose up when I check /var/log/cron, I get: Jul 29 00:00:...
0
votes
0answers
16 views

yum installing mysql-server 5.5 instead of 5.7 on Amazon Linux

My understanding of yum is that it should default to installing the latest version of a package available in all the repos enabled. The default repos installed in Amazon Linux 1's AMI include the ...
0
votes
1answer
254 views

xterm error loading font: which font package includes iso10646 fonts?

Everytime I start an xterm on my Amazon Linux release 2 (Karoo) server, I get an error complaining about a missing font: xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-...
1
vote
0answers
128 views

AWS EFS: unable to mount on amazon linux using amazon-efs-utils

I have created a simple EFS and trying to mount it to my AWS EC2 which is using amazon-linux distribution. I have been following the very simple instructions given there, I login to the my EC2, then ...
0
votes
1answer
78 views

how to update amazon linux gmp package?

We have an Amazon Linux server and we scan it using OpenVAS. It detected one high vulnerability which is Amazon Linux Local Check: alas-2016-754. Looking at the solution it says Run yum update php70 ...
1
vote
2answers
1k views

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 ...
2
votes
1answer
52 views

Can No Longer Login With Ec2-user After Creating A New User

I've tried looking in the forums before posting this but can't find anything that really addresses my issue. Very simply, my problem is in the topic: I created a new user, afterwards, I can login ...
1
vote
1answer
380 views

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 ...
0
votes
1answer
72 views

Ansible User module removes sudo configuration. Why?

An Amazon Linux 2 machine is configured with a user that can sudo without password as follows: # Add user sudo groupadd -g 2002 one-username sudo useradd -u 2002 -g 2002 -c "One Username Account" -...
-1
votes
1answer
27 views

Defining Ansible inventory on remote server

What specific changes need to be made to the code below so that the Ansible Playbook will know how to pull testFile.txt from ServerB into ServerA? These are both Amazon Linux servers. Note that ...
3
votes
1answer
2k views

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 ...
0
votes
1answer
95 views

multiple yum repos with name=packages-microsoft-com-prod

A group of Amazon Linux 2 instances have duplicate instances of name=packages-microsoft-com-prod in redundant yum repositories with different names. What is a safe way to remove the duplicate ...
1
vote
0answers
120 views

How to enable ZipArchive PHP class

Recently I have installed a PHP on Amazon Linux to run Chevereto. It's an image hosting service. When I wanted to install it on my EC2 instance, I got the following error: Aw, Snap! Your web ...
1
vote
1answer
507 views

Why does “hostname -i” return “Unknown host”?

We have created an AWS EC2 instance using AMI type Amazon Linux AMI 2018.03.0.20190514 x86_64 HVM. After we started up the instance, our software printed out an IP address error. When we tried ...
0
votes
0answers
22 views

Automatically java run if it stopped [duplicate]

Can i check java process using crontab (or other way) and if java process does not exist automatically perfom command: nohup java -jar /home/ec2-user/sringTestBoot-1.0-SNAPSHOT.jar
0
votes
0answers
257 views

get back sudo with Putty: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

apparently I messed up too much with my permissions and now I'm getting this while trying to use 'screen' again: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set If I try: chown root:...
0
votes
1answer
148 views

GNU Parallel facing silent exit and invalid option error

I tried performing the full installation from: http://git.savannah.gnu.org/cgit/parallel.git/tree/README The installation was successful. It's working well when installed on Mac OS but on Amazon ...
1
vote
1answer
230 views

Syntax error checking if file exists [closed]

A bash script running in Amazon Linux 2 is trying to test if a file exists. Then if it does exist, the script should delete the file. The following error gets thrown every time the script runs. ...
1
vote
3answers
1k views

How to install multiple RPM packages using Shell script and by taking it from comma separated input file? [closed]

I have to install multiple packages using shell script and rpm (package) name is in the input file. I have done it in this below way. My input file is path is = /mstr/mstr_input_file.txt MY Script ...
0
votes
2answers
2k views

How do I switch users on Amazon Linux for EC2 instances?

I saw How to change to normal user in the command line when logged in as the root user? How to switch between users on one terminal? I have access to sudo. I tried [ec2-user@ip-172-99-99-99 Weekly ...
1
vote
1answer
254 views

Logstash Unrecognized service Amazon Linux

I have been following this tutorial to install ELK stack in a remote server which runs on Amazon Linux. https://www.aytech.ca/blog/setup-elk-stack-amazon-linux/ I was able to install Elasticsearch and ...
1
vote
2answers
3k views

How do I configure my Amazon Linux service to auto-restart if it fails?

I'm using Amazon Linux. I have a script to start and stop a service, written in bash, located at /etc/init.d/wildfly At the various run levels, I have symlinks to ensure the script starts and stops,...
1
vote
1answer
456 views

Permission denied when accessing a file with acls on xfs file system

I'm trying to use ACLs with the xfs file system on Amazon Linux (RHEL-ish distribution). However, when I configure acls and try to access a file with a test user, my access is denied. I currently ...
1
vote
3answers
2k views

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.
1
vote
0answers
119 views

/etc/timezone on Amazon Linux

Usually /etc/timezone is a text file containing the timezone, at least that's how it works on most non-embedded linux distros. However, on Amazon Linux(4.14.72-68.55.amzn1.x86_64) it's actually an ...
0
votes
1answer
176 views

Rebuild from src.rpm using new version

This is a follow up to my previous question regarding Building QuantLib on Amazon Linux. I followed the instructions in the answer posted by MLu: Download the source RPM (QuantLib-1.4-7.el7.src.rpm) ...
1
vote
1answer
113 views

Building QuantLib on Amazon Linux

I am trying to get QuantLib version 1.13 running on Amazon Linux. I found some .rpm files at https://pkgs.org/download/QuantLib, although there is an up to date .rpm for Fedora, there isn't one for ...
0
votes
1answer
69 views

Allow a group to su to a user without a password in Amazon Linux

In Amazon linux on my ec2 server, how do I allow a group of restricted users to su to a specific user. Also I would like for them not to be prompted for password. I have a group called 'my-users' ...
0
votes
2answers
2k views

pip says it is out of date but updating says it is the latest version!

If I try and do the following: pip --version I get this: Traceback (most recent call last): File "/usr/bin/pip", line 6, in <module> from pkg_resources import load_entry_point File "/...
1
vote
1answer
378 views

Installing Fedora packages on Amazon Linux AMI

I'm trying to install a Fedora package, specifically the package poppler-utils versions 0.5x or later, but that currently only for Fedora. I don't have a lot of knowledge on Amazon Linux AMI, but from ...
2
votes
1answer
896 views

SUDO requiring tty

On Amazon Linux 2018.03, I have a process running as an unprivileged user and calls sudo to run a command. I'm getting the message: sudo: sorry, you must have a tty to run sudo The unprivileged ...
0
votes
1answer
409 views

How to install open connect client on Amazon linux

sudo yum list all | grep openconnect NetworkManager-openconnect.x86_64 0.8.6.0-3.el6 epel openconnect.i686 7.07-2.el6 ...
2
votes
2answers
3k views

sudo: unable to mkdir /var/log/sudo-io/00/2A: No space left on device

A script began throwing errors related to not being able to init an I/O plugin sudoers_io: (amazon linux). I can't get into delete some logs since each time I use the sudo command, it fails to log ...
1
vote
0answers
135 views

Is this the right way to generate a wildcard CSR?

I generated my CSR on an Amazon Linux system using this command openssl req -new -sha256 -key ~/mymaindomain.com.ssl/mymaindomain.com.key -out ~/mymaindomain.com.ssl/mymaindomain.com.csr I verified ...
-1
votes
1answer
37 views

Mistakenly moved the server files to a directory and the server wont work now [duplicate]

I screwed up my AWS instance. I created a new directory demo inside my /var/www/html Then in navigated to the html directory and ran this command: sudo mv /* demo And all the files and folders ...
0
votes
0answers
1k views

Unable to install PHPMyAdmin with PHP 7.1

I previously installed php56 in aws but i had to update to 7.1. When I do, I couldn't install phpmyadmin anymore. I tried to search on the net but all are said to remove php5.6 then to install 7.1. It ...
2
votes
1answer
92 views

How can I tell if a command is available on the $PATH for sudo?

I installed a utility on a server recently and discovered that it wasn't available when running from sudo. That is, foo executed as expected buy sudo foo resulted in sudo: foo: command not found. I ...
0
votes
1answer
717 views

Upgrade PCRE lib on AWS EC2 Linux AMI

I would like to update the default PCRE library of my AWS EC2 Linux instance. Current version is 8.21 2011-12-12. I tried with the following guides: https://forums.aws.amazon.com/thread.jspa?...
1
vote
3answers
762 views

ZFS on Amazon linux ami

I am trying to install ZFS on my amazon linux ami. Since the package is by default not available in their repository, I downloaded it from http://zfsonlinux.org/ . I also managed to install spl and ...
0
votes
1answer
439 views

How can I prevent running “Xvfb :10 -ac” if it has already been run before?

I'm using Amazon Linux. I'm running an automated script through Jenkins with this command Xvfb :10 -ac However, if this command has already been run before, I get the error ... (EE) Fatal server ...
1
vote
1answer
182 views

Why isn't my Apache server starting automatically wnen I reboot my server?

I'm using Amazon Linux. I just Apache via yum, however, I can't get it to automatically start when I reboot my server, despite the fact it starts on the command line ... [myuser@mymachine ~]$ sudo ...
0
votes
3answers
731 views

How do I figure out when swap space will be used on our Linux machine?

We are trying to tune our application servers, which are Amazon Linux machines ... [myuser@mymachine ~]$ uname -a Linux mymachine.myco.org 4.3.17-14.25.amzn1.x86_64 #1 SMP Wed May 10 01:58:40 UTC ...
0
votes
1answer
251 views

How do I install an RPM key on my Amazon Linux system?

I'm using Amazon Linux. Here's the uname info [myuser@mymachine3 ~]$ uname -a Linux mymachine3 4.8.18-12.31.amzn1.x86_64 #1 SMP Thu Jun 22 06:20:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I'm ...
8
votes
1answer
12k views

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 ...
1
vote
0answers
133 views

Compiling g++ from source results in broken standard library. error: ‘::realloc’ has not been declared

I need to run on Amazon Linux but I need a recent g++. I compiled g++ 5.3.0 from source following the instructions here. The compilation ran for 13 hours on an EC2 instance and finished successfully. ...
1
vote
0answers
89 views

Openssl.Cnf impact on sshd services amazon linux

I have Openssl V.1.0.1k-fips on my Amazon Linux machine and a few days ago I have added following parameter in my openssl.cnf [ san_env ] subjectAltName=${ENV::SAN} and exported variable export SAN=...
0
votes
1answer
549 views

How do I upgrade Amazon Linux?

Is Amazon Linux based on CentOS 6? I want to upgrade my Amazon Linux instance [myuser@mymachine ~]$ uname -a Linux sandbox2.evo-text.com 4.9.38-16.33.amzn1.x86_64 #1 SMP Thu Jul 20 01:31:29 UTC ...