Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel. Use this tag for questions about DevOps practices, processes and tools in Linux environments.

GNU/Linux is a UNIX-like Open Source operating system. Linus Torvalds originally wrote the Linux kernel with contributions from others on the MINIX Usenet board. Since then, Linux had thousands of developers, both paid by companies and volunteers. The primary system tools and libraries sourced from GNU Project, hence the nomenclature GNU/Linux (GNU Toolchain over Linux Kernel). The license for the Linux kernel the GPL v2 license.

There are many different Linux Distributions (sometimes shortened to distro), which consist of software applications packaged and provided with the Linux kernel, being Slackware the oldest active distro and Debian, Red Hat and CentOS among the most used on Internet servers¹.

The Linux kernel is commonly run on servers but is highly portable and used in a variety of applications, from wireless routers and cell phones to clusters and supercomputers with thousands of nodes and processors.

For generic Linux questions, consider asking at Unix & Linux Stack Exchange.

Further Reading:

146 questions
76
votes
9 answers

How do you back up Jenkins jobs & master configs?

I'd like to backup all Jenkins jobs and config files. What's the easiest way of doing it?
kenorb
  • 8,011
  • 14
  • 43
  • 80
34
votes
4 answers

Can I bypass host key checking in Ansible?

I'm running an Ansible playbook with a subtle hack to work on an arbitrary port forwarded port (so I can use one machine with no direct access to lots of machines). I've got a pre-task to change the ansible_port variable, so then when I start…
Peter Turner
  • 1,482
  • 4
  • 18
  • 39
26
votes
3 answers

Difference between chroot and Docker

I don't understand the difference between docker and chroot. Yes its nice in terms of the packaging the registry. But somehow I get the feeling its just chroot with extra bells and whistles. I know I'm missing something. It'd would be great to know…
Vipin Menon
  • 473
  • 1
  • 4
  • 7
18
votes
1 answer

How to keep configuration files automatically during apt-get upgrade or install?

When performing and apt-get update; apt-get upgrade -y on a server I encountered the message: Setting up sudo (1.8.16-0ubuntu1.5) ... Configuration file '/etc/sudoers' ==> Modified (by you or by a script) since installation. ==> Package distributor…
Steven K7FAQ
  • 666
  • 1
  • 5
  • 13
15
votes
2 answers

Does Docker allow containers to be OS agnostic?

We currently use a Windows based server to host 2 VMs. One VM uses Windows with a Windows app and the other VM uses Linux with a Linux app. Is the below scenario possible? Bare server with Windows 2016 (no VMs). Install Docker engine. Install…
nanonerd
  • 251
  • 1
  • 2
  • 3
10
votes
5 answers

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local directory is mounted as a volume: volumes: …
Bruce Becker
  • 3,783
  • 4
  • 20
  • 41
10
votes
2 answers

How to pass a /dev/disk device on macOS into Linux Docker?

I've connected external HDD via USD on macOS, and I'm running Ubuntu's Docker container as: docker run -it --device=/dev/disk3 --privileged ubuntu bash but the device is not present in the container: # ls /dev/disk3 ls: cannot access '/dev/disk3':…
kenorb
  • 8,011
  • 14
  • 43
  • 80
10
votes
2 answers

Running a command as a specific user on an ec2 using ssm

Background I want to automatically configure an EC2 via a build, using the aws cli and ssm. The (manual) setup for the container looks something like this: Create an EC2 Run a shell script as root Run a shell script as a specific user Question Is…
Max Colledge
  • 205
  • 1
  • 2
  • 7
8
votes
1 answer

Debug BackendConnectionErrors from Kubernetes Service LoadBalancer sesrvice

We recently moved some of our production infrastructure to Kubernetes. Many pods are exposed through a LoadBalancer service on AWS. This creates an ELB, registers each node in the cluster with the ELB, and configures a node port to map ELB ports to…
ahawkins
  • 321
  • 1
  • 5
7
votes
1 answer

Are NixOS and GuixSD the incoming Linux distros of DevOps?

The main advantage of these distros is the declarative approach which allows for setup to be done in the same way as you would configure a Vagrantfile or Dockerfile. In the way that Docker replaced/is replacing VMs for reproducibility, is there a…
warsong
  • 171
  • 3
6
votes
2 answers

Docker security risks passing secrets over environment variables

I'm new to Docker and want to put my Django web application into containers. For the last couple days I'm struggling with passing credentials safe to containers. Online there is always the hint that secrets should not be passed as environment…
user3142459
  • 163
  • 1
  • 4
6
votes
6 answers

In the HashiCorp stack, where's the appropriate place to add users?

I'm in the process of building some custom Linux images using HashiCorp's Packer, which will later be deployed to Azure using HashiCorp's Terraform. The VMs created from these images will need to have a set of users created; in this particular case…
cori
  • 161
  • 4
6
votes
1 answer

Ansible: register variable with loop

What’s the best way to use registered variable ‘audit_tools’ to check if all items are own by root ? Do I need to use Jinja2 filter or something ? Thanks - name: Verify audit tools are own by root user. block: - name: check if audit tools are…
sudoi
  • 61
  • 1
  • 4
5
votes
1 answer

Consul: how to remove dead client nodes quickly

Background: When running Consul client-mode in AWS, EC2s are constantly getting replaced, which results in a lot of dead client nodes when looking at the Consul UI or via consul members. Already tried to enabled reconnect_timeout, leave_on_terminate…
Casper
  • 151
  • 1
  • 4
5
votes
1 answer

How to connect a build node to a Jenkins master?

I'd like to connect a build node to the Jenkins master. Ideally without using a web browser or being in front of the physical machine. What would be the easiest way to achieve that?
kenorb
  • 8,011
  • 14
  • 43
  • 80
1
2 3
9 10