Skip to main content

Questions tagged [amazon-linux]

The tag has no usage guidance.

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

How do I get linux flavors, like Fedora, RHEL, Amazon Linux, and others that don't update motd on login to do so?

I am trying to get my Amazon Linux 2023 server to update the MOTD on login, not on a timer or by fiddling with the profile. I want a clean experience for users whether they re-exec their shell, or ...
four43's user avatar
  • 109
0 votes
1 answer
24 views

How do I get a package (or a package version) that is available on modern Fedora (or other RH-oids) for Amazon Linux 2023?

I'm regularly asked how to get some software on Amazon Linux 2023. Usually, I find the software to be already available on Fedora or modern Alma Linux. What do I do to get a software package that's ...
Marcus Müller's user avatar
0 votes
1 answer
59 views

Can't install FISH on Amazon Linux 2023

I have an EC2 instance running Amazon Linux 2023. I added the fish repo per the instructions. I used dnf config-manager --add-repo... and then dnf config-manager --enable-repo.... I also added g++, ...
chuckd833's user avatar
1 vote
1 answer
58 views

Why does augenrules refuse to run even when sudo is used?

I have Amazon Linux 2023 running in a Docker container and I would like to be able to load some custom audit rules into the kernel and ensure they are persisted when the container restarts. I have ...
word4q's user avatar
  • 13
-1 votes
3 answers
575 views

Unable to install MySql on Amazon Linux 2023

I am working on a EC2(AWS) machine running Amazon Linux 2023.4.20240319. I need to install apache, php, and mysql. I stuck with mysql. I have followed many instructions found on the internet: https://...
Brayan Tiwa's user avatar
0 votes
0 answers
368 views

How to install redis 7.2 on amazon linux 2023

How to install redis 7.2 on amazon linux 2023. When I do the default installation it only install redis 6.x.
kumar's user avatar
  • 201
0 votes
1 answer
345 views

Problem installing LibreOffice on Amazon Linux 2023

I am following the instructions on how to install LibreOffice on Fedora which is what I believe Amazon Linux 2023 uses under the hood: https://tecadmin.net/install-libreoffice-on-fedora/ I can ...
kravb's user avatar
  • 101
0 votes
1 answer
568 views

How to make a Python module available to all users

We have a script that installs AWS CLI into Amazon Linux 2 (really many different distros, but AL2 is what I'm working with). It seems like mostly all of the components get installed, but not all of ...
user6571907's user avatar
0 votes
1 answer
52 views

Adding Windows ADUC SG to Sudoers

On an AWS Workspace utilizing Amazon Linux 2 (Red hat underneath), I am attempting to add a Windows Active Directory Security Group to the Sudoers file and am having some terrible luck in getting it ...
user6571907's user avatar
0 votes
3 answers
137 views

What could be the possible reasons of remote linux host shows terminal prompt with around 15 seconds delay

When I try to ssh in to a linux host, its terminal prompt shows around 15 seconds later after entering the ssh command on my local computer. The subsequent connections take 2-3 seconds. However, ...
Rafiq's user avatar
  • 168
0 votes
0 answers
71 views

Could not override the umask value for AWS Session Manager ssm-user

Currently when I connect to an EC2 instance through SSM from AWS console it connects with default user : ssm-user. The umask value for this user is 022. I am trying to update the default umask value ...
Rob Wilkinson's user avatar
0 votes
0 answers
33 views

cryptsetup create quits after a first password letter

I've got a simple script that's been used for years and years on one particular server to mount an encrypted home partition. It's got this line to create /dev/mapper/cr_sdb1: cryptsetup create cr_sdb1 ...
Fer Dah's user avatar
  • 51
0 votes
1 answer
203 views

How to install pkill on amazonlinux?

Trying to install pkill on amazonlinux 2 doesn't work: yum install -y pkill ... No package pkill available. Error: Nothing to do and my favourite search engine hasn't helped, what am I missing?
sparrowt's user avatar
  • 103
0 votes
0 answers
1k views

Cannot install NetworkManager (nmcli) on Amazon Linux 2023

Freshly installed ec2 Amazon Linux 2023 instance. Was trying to inspect machine's network devices and status. However nmcli seems unable to be installed through yum install: $ sudo yum install ...
Rohim Chou's user avatar
3 votes
1 answer
321 views

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 ...
Alex O's user avatar
  • 133
0 votes
0 answers
134 views

Oracle Linux vs Amazon Linux

We are planning to migrate some of the workloads from Azure to AWS. On Azure, we hosted the apps and web applications using Oracle Linux. We are thinking of a migration strategy for this. Oracle OS: ...
TheDataGuy's user avatar
0 votes
1 answer
1k views

How to install snap on Amazon Linux 2023

I'm trying to figure out who to install snap so that I can install snap packages like LXD and wifi-ap etc. snap doesn't appear to be in the base repository and amazon linux 2023 doesn't seem to have ...
Simon Banks's user avatar
1 vote
0 answers
731 views

tc filter - error talking to the kernel

I am trying to add a tc flower filter for the geneve protocol and I am getting this error: % sudo tc filter add dev gnv0 protocol ip parent ffff: \ flower geneve_opts 0108:01:020000000000000000/...
Ollie's user avatar
  • 199
11 votes
1 answer
6k views

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 ...
Razkar's user avatar
  • 211
0 votes
1 answer
136 views

Error while upgrading to systemd-219-78.amzn2.0.22

I have this problem when tryping to upgrade systemd package on AWS instance Error unpacking rpm package systemd-219-78.amzn2.0.22.x86_64 error: unpacking of archive failed on file /usr/lib/tmpfiles.d/...
Anderson Madureira's user avatar
2 votes
1 answer
5k views

AWS EC2 Amazon Linux 2023: Installing PHP 7.4

I cannot seem to be able to find php7.4 as a package on Amazon Linux 2023. The latest version is PHP 8.1 but the application I'm using has compatibility issues with the latest version of PHP; hence ...
TechMafioso's user avatar
21 votes
5 answers
17k views

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 ...
Sanmi Akande's user avatar
0 votes
0 answers
104 views

Failed to locate executable /~/.nvm/versions/node/v18.15.0/bin/node: No such file or directory

What is supposed to be the appropriate node executable path to use. My machine runs on windows but i am using Amazon linux as the app is hosted on an AWS EC2 intance. Whenever i start the app from ...
Sanmi Akande's user avatar
1 vote
0 answers
1k views

Why is Artifactory returning 404?

I have installed Artifactory on Amazon Linux 2, but when I go to http://domain:8081/artifactory/ it just returns HTTP Status 404 – Not Found It is a new installation and I have not changed any ...
froxpotatoes's user avatar
0 votes
1 answer
907 views

How to prevent root user to access certain files

Is there any way that I create and modify a file/directory from a user user1, and prevent all other users including the root user from accessing/modifying the file(s)/directories?
Adil Ansari's user avatar
0 votes
1 answer
577 views

Process: 17925 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

I'm trying to Restart Apache in AWS linux 2 (EC2 server). When I run sudo systemctl restart httpd I get this issue Job for httpd.service failed because the control process exited with error code. See ...
vimuth's user avatar
  • 101
2 votes
1 answer
60 views

How can I update two Amazon Linux hosts with the same updates with some time in between

I have two linux hosts (AWS EC2 - Amazon Linux which is based on "centos rhel fedora"), one for production and one for acceptance. I want to do a monthly update cycle in which I perform ...
GetShifting's user avatar
1 vote
0 answers
560 views

How do I install libomp package in amazon linux 2 or centos 7?

I have been trying to install a software we require called snapgene_viewer, it seems to fail requiring libomp, Error: Package: snapgene-viewer-6.1-2.x86_64 (/snapgene_viewer_6.1.2_linux) ...
Nobody's user avatar
  • 93
2 votes
1 answer
2k views

Can i change the uid of a user in /etc/passwd file

I have an issue running RabbitMQ docker container as it needs uid:gid (999:999) however chrony NTP service is already running with that gid(999) and is conflicting. Can I change the gid from /etc/...
user2835563's user avatar
0 votes
1 answer
202 views

Yum update crashes

I am trying to run yum update on my Amazon-Linux-2 Workspace. It crashes with the following output ❯ sudo yum update Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, ...
Anon957's user avatar
  • 111
1 vote
0 answers
206 views

Enable tmux detached non-interactive session to run stty without "input/output error"

I'm trying to launch a MineCraft server at startup of an AWS EC2 instance running Amazon Linux. For convenience, I used tmux to start a detached session, so I could ssh in to the box and connect to ...
ErikE's user avatar
  • 129
0 votes
1 answer
334 views

Simple TCP Proxy for Amazon Linux 2

I'm looking for a simple TCP proxy that I can install and run on Amazon Linux 2. I've been using simpleproxy on Ubuntu and it does exactly what I need, but I can't seem to find an equivalent for ...
Jordan's user avatar
  • 131
3 votes
0 answers
282 views

Latex on Amazon Linux 2

I'm trying to get up and running with latex on Amazon Linux 2. I have done sudo yum install texlive-pdftex When I run pdftex I get: fmtutil: config file `fmtutil.cnf' not found. I can't find the ...
chuck1's user avatar
  • 151
0 votes
1 answer
397 views

copy network configuration from one linux machine to another

I have a remote machine that runs Amazon Linux, with super user permissions to it. Its signed on to a certain network with maybe a certain network configuration, that allows it to directly access ...
Palaash Atri's user avatar
2 votes
0 answers
1k views

How to run Amazon Linux 2 on Apple Silicon

Amazon Linux 2 -- historically a cloud offering -- is also offered as an on-premise solution for various setups. The two most popular on-premise solutions are: Virtual Machine (e.g. KVM, Oracle ...
tresf's user avatar
  • 323
0 votes
1 answer
4k views

Installing Zabbix-agent2 on amazon linux2

I am trying to install zabbix-agent2 as mentioned in this link agent 2 is available in pre-compiled Zabbix packages. I ran rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-...
Harshal Bulsara's user avatar
0 votes
1 answer
147 views

No partition table on volume created from Amazon Linux 2 AMI's snapshot

I have created a new AMI using Amazon Linux 2 (AL2) as source image using packer. Now I am trying create vhd of it and transfer to Azure Image. We have been doing this for Centos7 AMI successfully, ...
Parvez Kazi's user avatar
2 votes
0 answers
546 views

Inodes on /run filesystem is full

Inode on /run is getting full for all our nodes that are being managed by EKS, especially for small instances like t3a.medium below output from df -i. Filesystem Inodes IUsed IFree IUse% Mounted ...
Kalim's user avatar
  • 121
0 votes
1 answer
87 views

How to monitor calls to stat?

I'd like to monitor calls to stat on any file within a directory. I know inotifywait can listen for file creation etc. but I don't know anything that can listen for stat. This is on Amazon Linux 2. ...
Johnny's user avatar
  • 101
0 votes
1 answer
583 views

Software Install Permissions Only

We are looking at add users to groups that allow them to install software through yum on Amazon Linux 2 (RHEL), however am unsure how to grant a group access to only install software through it. Is ...
Random Guy's user avatar
0 votes
2 answers
1k views

"Warning: bad syntax, perhaps a bogus '-'?" has started to appear when connecting to server

I am suddenly seeing the following warning when I ssh to my server. I researched it and cannot seem to find the cause neither I am able to get rid of it. Please, can someone help? Thank you!
PtiSinge's user avatar
1 vote
1 answer
207 views

Create a secure configuration file for zsh scripts

I want to store some default variables for a zsh shell script that I'm working on. I know that using a source line in my script would work, but wouldn't be the most secure method. To ensure maximum ...
Karie's user avatar
  • 53
1 vote
0 answers
704 views

Error using glib2 from yum: "libgio-2.0.so.0: undefined symbol: g_free"

I am trying to build all of the dependencies for Weasyprint 52.5 for AWS Lambda. Despite being a python library, Weasyprint has a large number of OS dependencies. I'm creating a lambda layer by ...
Travis's user avatar
  • 111
1 vote
0 answers
90 views

Trouble using VSFTPD service for ftp server on AWS S3

First post on here so I apologize if its in the wrong place or format. So currently I have a working ftp server on aws linux EC2 and S3 with users that can connect via ftp/ftps/sftp . However the way ...
tuyguy98's user avatar
1 vote
1 answer
486 views

I installed the python3.8 version for my application and deleted the python2.7 in amazon linux 2 , now yum command is not working

I installed the python3.8 version for my application and deleted the python2.7 in amazon linux 2 , now yum command is not working.
learner 's user avatar
1 vote
3 answers
1k views

prevent secrets from being printed to cloud-init logs

A cloud-init script needs to set environment variable values to contain secrets. What specific syntax can be changed in the below to prevent the secret PASS and PSS from being printed in the cloud-...
CodeMed's user avatar
  • 5,259
2 votes
2 answers
720 views

bash function command not found in cronjob

In my crontab , I set following bash function and applied it for my job. it is indicated to add timestamp to the log. adddate() { while IFS= read -r line; do printf '%s %s\n' "$(date)&...
Heisenberg's user avatar
5 votes
1 answer
13k views

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 ...
Poliano Martini's user avatar
1 vote
2 answers
4k views

Successfully installed amazon-efs-utils but cannot find it

$ sudo yum install -y amazon-efs-utils --verbose Loading "extras_suggestions" plugin Loading "langpacks" plugin Loading "priorities" plugin Loading "update-mood"...
Biju's user avatar
  • 111
0 votes
1 answer
480 views

How to (re)install ca-bundle.crt

When I tried to install packages, I encountered the following problem [Errno 14] curl#77 - "error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none&...
Heisenberg's user avatar