Questions tagged [amazon-linux]
The amazon-linux tag has no usage guidance.
98
questions
0
votes
0
answers
13
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 ...
2
votes
0
answers
18
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
18
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 ...
1
vote
0
answers
20
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
327
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
25
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, ...
1
vote
0
answers
164
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
35
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
44
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
0
answers
30
views
Set Lock Screen Image for ALL Users
I am trying to set a Lock Screen Image for all users on Amazon Linux 2, which is based off of RHEL7. I have tried numerous different ways to do it but unfortunately none of them seem to work. Many ...
0
votes
2
answers
208
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
69
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
151
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
23
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 ...
0
votes
0
answers
55
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
264
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
171
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)&...
4
votes
1
answer
3k
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 ...
0
votes
2
answers
809
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
114
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&...
0
votes
2
answers
2k
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
357
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
256
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
681
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
216
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
142
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
63
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
282
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
175
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/...
0
votes
2
answers
484
views
Apache is starting multiple port 80 and 443 listeners until the server crashes
When I start the httpd (Apache) server on my Amazon Linux 2 it is creating numerous repeated port listeners on port 80 and 443. Every couple minutes it adds another set. The original port 80 and 443 ...
5
votes
2
answers
510
views
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:
-...
1
vote
2
answers
140
views
Can't ping virtual tap network interface via IPv6 from primary interface (eth0)
I'm having trouble communicating with my virtual tap devices via ipv6. Essentially ping6 -I eth0 <tap interface link-local ipv6 address> doesn't return anything. I can't even ping the host-...
0
votes
0
answers
86
views
AWS: Connections drops after scp to ec2 instance. Have to stop/start ec2 insdtance to reeconnect
New to AWS:
I ssh into my ec2 instance without issue until I use scp to copy files from another Linux box. 5 seconds after the transfer the connection is closed and the ec2 instance needs to be ...
0
votes
2
answers
879
views
What does "status=10/n/a" mean in systemd output?
I am developing a .service file so that systemd can manage an app as a service on Amazon Linux 2. But when I type systemctl start my-new-service, the following error is reported in the logs:
Mar ...
-3
votes
1
answer
249
views
mkdir permissions needed for script called by systemctl start service
How can I give mkdir permissions to a script that is called by sudo systemctl start <service-name> ??
Here is the error being thrown in the results of sudo journalctl -u jekyll -f when I type ...
2
votes
1
answer
1k
views
Postgres install on Amazon Linux
Trying to install postgres on Amazon Workspace Linux but struggling for these reasons:
The OS claims to be rhel fedora centos but doesn't have the rhel-release libraries.
It seems like epel-release ...
0
votes
2
answers
139
views
How to process wipefs command output?
My command, wipefs /dev/sdX, gives the below output:
offset type
----------------------------------------------------------------
0x111 ext4 [filesystem]
...
3
votes
1
answer
4k
views
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
...
0
votes
2
answers
312
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 ...
3
votes
1
answer
3k
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
1
answer
34
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
1
answer
3k
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
1
answer
412
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
1
answer
251
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 ...
8
votes
2
answers
18k
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
1
answer
375
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 ...
3
votes
1
answer
6k
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 ...
1
vote
1
answer
337
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
1
answer
43
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 ...
4
votes
1
answer
10k
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 ...