Most Popular

1500 questions
83
votes
7 answers

Using variables in Apache config files to reduce duplication?

Is it possible to use variables in Apache config files? For example, when I'm setting up a site with Django+WSGI, the config file might look like: Order allow,deny Allow from all Alias /foo/static…
David Wolever
  • 2,267
  • 3
  • 24
  • 27
83
votes
12 answers

How can I run arbitrarily complex command using sudo over ssh?

I have a system that I can only log in to under my username (myuser), but I need to run commands as other user (scriptuser). So far, I have come up with the following to run the commands I need: ssh -tq myuser@hostname "sudo -u scriptuser bash -c…
VoY
  • 1,275
  • 2
  • 11
  • 9
83
votes
7 answers

Why use Chef/Puppet over shell scripts?

New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. But, are there any other advantages over shell…
resting
  • 1,059
  • 3
  • 10
  • 10
83
votes
3 answers

Ubuntu displays "There is 1 zombie process" upon login

This message appears when I login to my machine: There is 1 zombie process. What is it telling me? Is this anything I should worry about? If yes, then what should I do, and how?
John Mee
  • 2,548
  • 1
  • 24
  • 27
83
votes
11 answers

How to remove invalid characters from filenames?

I have files with invalid characters like these 009_-_�%86ndringshåndtering.html It is a Æ where something have gone wrong in the filename. Is there a way to just remove all invalid characters? or could tr be used somehow? echo…
Sandra
  • 10,303
  • 38
  • 112
  • 165
83
votes
3 answers

What does that mean: packages excluded due to repository priority protections

When updating with yum i recieve the following message: yum update Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * atomic: www7.atomicorp.com * base: mirror.de.leaseweb.net * extras: mirror.de.leaseweb.net …
mate64
  • 1,681
  • 4
  • 18
  • 29
83
votes
16 answers

Hundreds of failed ssh logins

Every night I get hundreds, sometimes thousands, of failed ssh logins on my RedHat 4 server. For firewall reasons from remote sites, I need to run on the standard port. Is there anything I should be doing to block this. I notice that many come from…
MattMcKnight
  • 932
  • 1
  • 7
  • 7
83
votes
13 answers

How does a team of Systems Administrators share passwords securely?

What are best practices for sharing hundreds of passwords among a few people? These passwords protect mission critical data, and cannot ever be visible beyond a small team.
Chris Henry
  • 1,552
  • 3
  • 15
  • 15
83
votes
10 answers

How to check what port mysql is running on

On my windows dev box mysql is running on port 3306 How can I check what port it is running on the unix server that I have to upload the app to.
Ankur
  • 2,379
  • 7
  • 22
  • 24
82
votes
4 answers

How to get Apache2 to redirect to a subdirectory

I am running apache2 on Debian etch, with multiple virtual hosts. I want to redirect so that http://git.example.com goes to http://git.example.com/git/ Should be really simple, but Google isn't quite cutting it. I've tried the Redirect and Rewrite…
Hamish Downer
  • 9,420
  • 6
  • 38
  • 51
82
votes
7 answers

What is the Windows equivalent of Unix "whoami" command?

Is there a Windows equivalent of Unix "whoami" command? If so, what is it?
Kip
  • 3,480
  • 3
  • 23
  • 14
82
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,511
  • 6
  • 24
  • 27
82
votes
14 answers

ssh connection takes forever to initiate, stuck at "pledge: network"

Connection to one of my servers using ssh takes more than 20 seconds to initiate. This is not related to LAN or WAN conditions, since connection to itself takes the same (ssh localhost). After connection is finally establised, it is super fast to…
M-Jack
  • 1,346
  • 2
  • 11
  • 16
82
votes
12 answers

Transfer 15TB of tiny files

I'm archiving data from one server to another. Initially I started a rsync job. It took 2 weeks for it to build the file list just for 5 TB of data and another week to transfer 1 TB of data. Then I had to kill the job as we need some down time on…
lbanz
  • 1,609
  • 5
  • 20
  • 30
82
votes
1 answer

What’s the difference between the “mainline” and “stable” branches of nginx?

There seem to be two active branches of the nginx web server: a “mainline” branch (currently 1.9.x) and a “stable” branch (currently 1.8.x). Can anyone provide an official source that describes the difference between these two branches and how one…
bdesham
  • 1,725
  • 4
  • 14
  • 22