Most Popular

1500 questions
56
votes
4 answers

nice sudo or sudo nice?

is there any difference between running an intensive task over sudo with the following commands?: nice sudo [intensive command here] sudo nice [intensive command here] BTW this is for Linux 3.x.
56
votes
6 answers

Why do we still use power supplies on datacenter servers?

Computers mainly need three voltages to work : +12V, +5V and +3,3V, all of them are DC. Why can't we just have a few (for redundancy) big power supply providing these three voltages to the entire datacenter, and servers directly using it ? That…
user186340
56
votes
1 answer

What's the difference between import virtual machines types in Hyper-V?

I was importing a virtual machine to my Hyper-V manager and I got 3 options: Register the virtual machine in place (use the existing unique ID) Restore the virtual machine in place (use the existing unique ID) Copy the virtual machine (create a new…
56
votes
1 answer

nginx: no permission to bind port 8090 but it binds to 80 and 8080

I'm struggling with some strange permission related behavior: when I configure nginx to listen to port 8080 everything works as expected, but when I use any other port I get something like 2014/01/10 09:20:02 [emerg] 30181#0: bind() to 0.0.0.0:8090…
frans
  • 679
56
votes
7 answers

What are the practical differences between Maildir and Mbox?

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is one storage format more scalable than the other? Are…
olympe26
  • 569
56
votes
3 answers

Configure multiple SSL certificates in Haproxy

My haproxy instance serves 2 domains (mostly to avoid XSS on the main site). The rules look something like this bind :443 ssl crt /etc/ssl/haproxy.pem acl is_static hdr_end(Host) -i example.com acl is_api hdr_end(Host) -i api.example.com acl…
user22711
56
votes
5 answers

Which to install: Apache Worker or Prefork? What are the (dis-)advantages of each?

Based on the descriptions for both the Prefork and Worker MPM, it seems the prefork type is somewhat outdated, but I can't really find a proper comparison of the two types. What i'd like to know: What are the differences between the two…
56
votes
9 answers

Assign multiple IPs to 1 Entry in hosts file

I have a web sever that connects to an internal database through a VPN. There are 2 IPs (primary and secondary) to the database from the web server. How can I setup my /etc/hosts file so that if the primary IP is not available then the secondary…
Mike T
  • 673
  • 1
  • 5
  • 6
56
votes
4 answers

Assessing equipment damage following a lightning strike - Should I have planned more?

One of my client's sites received a direct lightning hit last week (coincidentally on Friday the 13th!). I was remote to the site, but working with someone onsite, I discovered a strange pattern of damage. Both internet links were down, most servers…
ewwhite
  • 201,205
56
votes
6 answers

Where does logrotate save its own log?

I have logrotate running in an EC2 AWS machine rotating Apache logs. Once packed, Apache logs are saved into AWS S3 via s3fs. The problem is that I recently noticed that I didn't have logs rotated. In S3 I have old logs from day 48->60 but the 1->47…
enedebe
  • 1,136
56
votes
16 answers

Stop ssh login from printing motd from the client?

I've got SSH passwordless set up, however it prints the MoTD when it logs in. Is there anyway to stop that happening from the client side? I've tried ssh -q but that doesn't work. I don't want to use ~/.hushlogin nor do I want to change the server…
Amandasaurus
  • 33,461
56
votes
7 answers

Is there a name based virtual host SSH reverse proxy?

I've grown quite fond of HTTP reverse proxies in our development environment and found the DNS based virtual host reverse proxy quite useful. Having only one port (and the standard one) open on the firewall makes it much easier for management. I'd…
ahanson
  • 1,764
56
votes
3 answers

SSH connection lost during server upgrade - How to reconnect to process?

So, I was performing an Ubuntu Server upgrade from 11.04 to 11.10. I forgot about it in the background, and my SSH client timed out and disconnected (putty on Windows, go figure). The last thing on my terminal was a question about keeping an old…
56
votes
14 answers

Is UPS worthwhile for non-production equipment?

Over the years, I've had to throw away a quite a few bits of computing equipment (and the like): Several ADSL routers with odd symptoms (losing wireless connections, losing wired connections, DHCP failures, DNS symptoms etc) Two PVRs spontaneously…
Jon Skeet
  • 5,087
56
votes
3 answers

Disable the public key check for rpm installation

I want to make a DVD with some useful packages (for example php-common). The only problem is that if I try to install on a computer that's not connected to internet, I can't validate the public key. The scenario is like this: I download the RPMs,…
zozo
  • 873