Questions tagged [amazon-linux]
The amazon-linux tag has no usage guidance.
119
questions
0
votes
0
answers
16
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 ...
0
votes
0
answers
31
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 ...
0
votes
1
answer
40
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?
0
votes
0
answers
253
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 ...
3
votes
1
answer
221
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 ...
0
votes
0
answers
71
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: ...
0
votes
1
answer
409
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 ...
1
vote
0
answers
214
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/...
6
votes
1
answer
3k
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 ...
0
votes
1
answer
49
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/...
2
votes
1
answer
2k
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 ...
9
votes
3
answers
5k
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
...
0
votes
0
answers
59
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 ...
1
vote
0
answers
484
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 ...
0
votes
1
answer
457
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?
0
votes
1
answer
423
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 ...
0
votes
0
answers
48
views
Installing ulogd2 or nflog in Amazon Linux 2
I am trying to install ulogd2 or nflog to log selected traffic logged by IPtables rules. But somehow it seems those packages are not available in package repos configured in Amazon Linux 2. When I run ...
2
votes
1
answer
37
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 ...
1
vote
0
answers
360
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)
...
1
vote
1
answer
788
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/...
0
votes
1
answer
134
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, ...
1
vote
0
answers
145
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 ...
0
votes
1
answer
238
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 ...
3
votes
0
answers
162
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 ...
0
votes
1
answer
212
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 ...
2
votes
0
answers
905
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 ...
0
votes
1
answer
3k
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-...
0
votes
1
answer
105
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, ...
2
votes
0
answers
417
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 ...
0
votes
1
answer
70
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. ...
0
votes
1
answer
373
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 ...
0
votes
2
answers
983
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!
1
vote
1
answer
175
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 ...
1
vote
0
answers
565
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 ...
1
vote
0
answers
63
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 ...
1
vote
1
answer
383
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.
1
vote
2
answers
872
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-...
2
votes
2
answers
524
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)&...
5
votes
1
answer
9k
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 ...
1
vote
2
answers
3k
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"...
0
votes
1
answer
401
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&...
1
vote
3
answers
4k
views
How can we safely upgrade SSH 7.4 to 7.8 on AmazonLinux2
I have an SFTP server that runs on Amazon Linux 2 on AWS.
The current SSH version is OpenSSH_7.4p1, is it possible to safely upgrade this to version 7.8. If yes how can I get it done.
Since the SFTP ...
2
votes
3
answers
855
views
Is there a limit to the number of user entries in AllowUsers that can be given in sshd_config file in Linux?
I have an SFTP server where I need to restrict users with specific IP addresses or ranges.
To achieve this, I had been appending AllowUsers entries to the sshd_config file like below and there are 180 ...
0
votes
1
answer
965
views
Expanded root volume but tmpfs and devtmpfs is limited
I have expanded root volume in my Amazon ec2 machine (Amazon Linux 2) but the space in tmpfs and devtempfs is still limited.
Here is what output of df -h command looks like:
$ df -h
Filesystem ...
1
vote
1
answer
947
views
Start systemd service from Ansible Playbook
What specific syntax must be used to get an Ansible playbook to successfully start a systemd service and make sure that the systemd service is running on an Amazon EC2 instance?
CURRENT SYNTAX:
The ...
0
votes
1
answer
528
views
SSH pem/private-key based login error?
I just created an ec2-instance with Amazon Linux 2 OS, then logged in to the system using login: ec2-user and an associated privatekey. Next, I created a new user x and copied the .ssh/authorized_keys ...
-2
votes
2
answers
263
views
SFTP jail for the root user?
So While I've been looking into ways of locking down users and locking them down into jails. I've came across an interesting question that I haven't seen answered anywhere.
How can one posses the ...
0
votes
0
answers
155
views
capturing yum update transaction to replicate on another machine
Looking for a way to capture a "yum update" on machine "A" and replicate the exact same actions on machine "B" (maybe at a later date after testing on machine "A&...
1
vote
1
answer
554
views
Changing font in mlterm
I am not able to see complex fonts like Devanagari, Arabic, etc correctly in terminal-- they do render but circles appear on the screen for Devanagari, Arabic is also garbled. Everything is fine in ...
1
vote
1
answer
206
views
Disconnected: No supported authentication methods for sudo user who authenticates using password
On an Amazon Linux 2 EC2 instance, password authentication from remote users has been enabled by running the following command during the cloud-init startup script: sed -i 's/PasswordAuthentication no/...