Most Popular
1500 questions
81
votes
24 answers
Storing a million images in the filesystem
I have a project that will generate a huge number of images. Around 1,000,000 for start. They are not large images so I will store them all on one machine at start.
How do you recommended on storing these images efficiently? (NTFS file system…
s.mihai
- 1,499
81
votes
11 answers
Allow SCP but not actual login using SSH
Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
DrStalker
- 7,266
81
votes
5 answers
Which OS is running in my Docker container?
Most of the time, using one of these two, I can tell which OS is running in my Docker container (alpine, centOS, etc)
But this time, I can't tell:
bash-4.2$ uname -a
Linux 6fe5c6d1451c 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC…
Bob Yoplait
- 921
81
votes
5 answers
Does each server behind a load balancer need their own SSL certificate?
If you have 5 web servers behind a load balancer (such as haproxy) and they are serving up content for the same domain, do you need SSL certificates for all the servers, or can you use the same certificate on each server?
I know you can put all SSL…
Derek Gathright
- 921
81
votes
8 answers
Straight forward way to run ssh-agent and ssh-add on login via SSH?
I'm trying to have the following commands be auto-executed when I login to my server via ssh:
ssh-agent /bin/bash
ssh-add ~/.ssh/id_rsa
My ssh key has a passphrase and I'm fine with entering it once per login.
I tried putting this in my .bashrc…
Click Upvote
- 1,005
81
votes
6 answers
Centos 7 save iptables settings
Problem: iptables resets to default settings after server reboot.
I'm trying to set rule like this:
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
after that I do:
service iptables save
and it writes back something like this
iptables: Saving…
user1463822
- 913
81
votes
6 answers
How to remove strict RSA key checking in SSH and what's the problem here?
I have a Linux server that whenever I connect it shows me the message that changed the SSH host key:
$ ssh root@host1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST
IDENTIFICATION HAS CHANGED! @
…
setatakahashi
- 1,547
81
votes
2 answers
When building from Dockerfile, Debian/Ubuntu package install debconf Noninteractive install not allowed
I've set the following environment so that no question/dialog is asked during apt-get install:
ENV DEBIAN_FRONTEND noninteractive # export DEBIAN_FRONTEND="noninteractive"
Which is equivalent to:
export DEBIAN_FRONTEND="noninteractive"
Yet,…
Phil L.
- 1,295
81
votes
6 answers
How to unify package installation tasks in ansible?
I am starting with ansible and will use it, among others, to install packages on several Linux distros.
I see in the docs that the yum and apt commands are separated - what would be the easiest way to unify them and use something like this:
- name:…
WoJ
- 3,875
81
votes
11 answers
Remove "www" and redirect to "https" with nginx
I want to create a rule in nginx that does two things:
Removes the "www." from the request URI
Redirects to "https" if the request URI is "http"
There are plenty of examples of how to do each of those things individually, but I can't figure out a…
Devin
- 933
81
votes
11 answers
Linux: using find to locate files older than
find has good support for finding files the more modified less than X days ago, but how can I use find to locate all files modified before a certain date?
I can't find anything in the find man page to do this, only to compare against another files…
DrStalker
- 7,266
80
votes
7 answers
How to check for modified config files on a Debian system?
How to find all Debian managed configuration files which have been changed from the default?
malclocke
- 1,771
80
votes
8 answers
How does Windows decide which DNS Server to use when resolving names?
What algorithm does Windows use to decide which DNS Server it will query in order to resolve names?
Let's say I have several interfaces, all active, some with no dns server specified, some told to determine it automatically, and some with it…
Artefacto
- 1,085
80
votes
9 answers
Command to prepend string to each line?
Looking for something like this? Any ideas?
cmd | prepend "[ERRORS] "
[ERROR] line1 text
[ERROR] line2 text
[ERROR] line3 text
... etc
user14645
- 1,740
80
votes
8 answers
What should I do when I got the KEYEXPIRED error message after an apt-get update?
While updating my packages on a debian based system by a
sudo apt-get update
I've got that error message :
Reading package lists... Done
W: GPG error: ftp://ftp.fr.debian.org stable/non-US Release:
The following signatures were invalid:…
paulgreg
- 4,214