Most Popular
1500 questions
90
votes
7 answers
Amazon Linux vs. Ubuntu for Amazon EC2
I'm setting up my first website on Amazon EC2, and I'm trying to decide which distro to use. I've used Redhat and CentOS in the past, but I have no bias towards any system, I just want to use whatever is best (I also have had partially-managed…
James Simpson
- 1,701
89
votes
2 answers
Best way to redirect all HTTP to HTTPS in IIS
We want ALL sites on our webserver (IIS 10) to enforce SSL (ie redirect HTTP to HTTPS).
We are currently 'Requiring SSL' on each site and setting up a 403 error handler to perform a 302 redirect to the https address for that specific site.
This…
userSteve
- 1,673
89
votes
12 answers
create home directories after create users
I created some users with:
$ useradd john
and I forgot to specify the parameter -m to create the home directory and to have the skeleton files copied to each user. now I want to do that, and I don't want to recreate all users (there must be an…
cd1
- 1,514
89
votes
7 answers
Temporarily ignore my `~/.ssh/known_hosts` file?
Is there a way to temporarily ignore my ~/.ssh/known_hostsfile?
mbp:~ alexus$ ssh 10.52.11.171
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
alexus
- 13,667
89
votes
5 answers
How to get TX/RX bytes without ifconfig?
Since ifconfig is apparently being deprecated in major Linux distributions, I thought I'd learn something about the ip tool that's supposed to be used instead of ifconfig.
And here I ran into a problem: when run on its own, ifconfig shows the…
justinas
- 1,038
89
votes
4 answers
Vagrant / VirtualBox DNS 10.0.2.3 not working
I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant Getting Started but have gotten stuck on the Provisioning. It seems the Vagrant box cannot connect outside and so I can't install anything using either…
Rudolf Vavruch
- 1,315
- 2
- 11
- 16
89
votes
4 answers
How to keep rsync from chown'ing transferred files?
I have an sshfs connection setup with a remote filesystem on a Linux server. I'm doing an rsync from my local server to the ftpfs-filesystem. Because of the nature of this setup, I can't chown anything on the sshfs filesystem.
When I do the rsync,…
Jake Wilson
- 9,133
89
votes
4 answers
Why is TCP accept() performance so bad under Xen?
The rate at which my server can accept() new incoming TCP connections is really bad under Xen. The same test on bare metal hardware shows 3-5x speed ups.
How come this is so bad under Xen?
Can you tweak Xen to improve performance for new TCP…
cgbystrom
- 1,061
89
votes
9 answers
Dump a linux process's memory to file
Is it possible to dump the current memory allocated for a process (by PID) to a file? Or read it somehow?
Fragsworth
- 1,261
88
votes
6 answers
Software vs hardware RAID performance and cache usage
I've been reading a lot on RAID controllers/setups and one thing that comes up a lot is how hardware controllers without cache offer the same performance as software RAID. Is this really the case?
I always thought that hardware RAID cards would…
ItsJustMe
- 1,021
88
votes
8 answers
Heartbleed: how to reliably and portably check the OpenSSL version?
I was looking at a reliable and portable way to check the OpenSSL version on GNU/Linux and other systems, so users can easily discover if they should upgrade their SSL because of the Heartbleed bug.
I thought it would be easy, but I quickly ran into…
Martijn
- 833
- 1
- 6
- 10
88
votes
6 answers
How to accurately check if package is installed in yum?
I keep getting answers like:
yum list installed | grep bind
or
rpm -qa | grep bind
But that is not accurate as I'm getting a list of few other bind packages like…
checksum
- 1,085
88
votes
4 answers
How to find the physical volume(s) that hold a logical volume in LVM
I have a volume group (VG) that contains two physical volumes (PV).
Several logical volumes (LV) in the VG are likely to use extents on both PVs.
Is there a way to tell which LVs occupy space on which PVs?
Paul
- 2,068
88
votes
11 answers
Where is my mysql log on OS X?
I checked /var/log and /usr/local/mysql and i can't seem to find the log. I am trying to troubleshoot an error establishing a database connection with a php function.
Tony
- 4,393
88
votes
3 answers
What happens when you plug two sides of a cable to a single networking device?
What is likely to happen when you plug two ends of a network cable to a single switch/router? Will this create problems on the network, or just be ignored?
lisa1987
- 891