Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 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
2answers
15 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
0answers
8 views

TigerVNC doesn't let me change keyboard

TigerVNC (1.10) client installed in my local MAC. TigerVNC server installed in Ubuntu server with a xfce4 based desktop. I want to type in other languages using my MAC English US keyboard. I am able ...
0
votes
0answers
19 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&...
0
votes
0answers
18 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 ...
0
votes
0answers
47 views

Are there alternative/unofficial browsable package repositories for Amazon Linux 2

In the amozonlinux:2 docker image I've tried the following to figure out what are the package repositories sh-4.2# yum repoinfo Loaded plugins: ovl, priorities Repo-id : amzn2-core/2/x86_64 Repo-...
0
votes
0answers
17 views

Azcopy not taking the aws credentials

I have installed the azcopy utility tool in my linux machine, to copy the files from S3 to azure blob. and i have setted up the AWS credentials in linux like below: export AWS_ACCESS_KEY_ID=XXX ...
1
vote
1answer
104 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
2answers
44 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
2answers
134 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
2answers
33 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
0answers
32 views

RHEL 8.1 Custome Lorax-Composer AMI Image Fails to Start

I'm using Lorax-Composer to try and build a custom RHEL 8.1 image for upload to amazon AWS. For testing I am using a generic image built with Lorax and just a baseos install. I've followed the ...
0
votes
0answers
27 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
2answers
122 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
1answer
101 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
1answer
241 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
0answers
53 views

Why does reverse SSH tunnel endpoint server crash?

UPDATE: This may be an ISP or routing issue. The crash appears to happen only with specific user locations. Not browser dependent, but maybe ISP dependent. I'm using an Amazon Web Services virtual ...
0
votes
0answers
26 views

force network routing out different interface

I have 3 interfaces: eth0 accepts vpn connections from two networks, eth2 should route traffic from netA through it, and eth3 should route traffic from netB through it. netA eth2 &...
0
votes
0answers
21 views

Disable repeat for Shift key

I've been looking around everywhere for this but can't find anything satisfactory. The IDE that I'm using reacts to a double-tap on Shift with a very useful Find All dialog. Unfortunately, it seems ...
0
votes
2answers
63 views

How to process wipefs command output?

My command, wipefs /dev/sdX, gives the below output: offset type ---------------------------------------------------------------- 0x111 ext4 [filesystem] ...
2
votes
1answer
1k 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
2answers
113 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
999 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
68 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
30 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
1answer
1k 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
264 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
136 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 ...
3
votes
2answers
6k 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
158 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 ...
2
votes
1answer
2k 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
1answer
146 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
31 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
5k 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
384 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
191 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
1k 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
664 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
355 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
324 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
2k 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
4k 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
352 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
7k 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
917 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 ...
3
votes
3answers
4k 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
147 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
242 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
151 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
159 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' ...