Most Popular
1500 questions
100
votes
3 answers
Should I install Linux applications in /var or /opt?
I run a lot of open source applications including java and tomcat. It seems like most instructions have my applications running from the /var directory. But every once in a while, I also see the /opt directory. While I'm at it, I also see…
Trevor Allred
- 1,147
100
votes
6 answers
Windows Active Directory naming best practices?
This is a Canonical Question about Active Directory domain naming.
After experimenting with Windows domains and domain controllers in a virtual environment, I've realized that having an active directory domain named identically to a DNS domain is…
Anton Gogolev
- 1,602
100
votes
8 answers
Multiple commands in Docker CMD directive
Not understanding what is happening when I try to execute two commands at runtime via CMD directive in `Dockerfile. I assumed that this should work:
CMD ["/etc/init.d/nullmailer", "start", ";", "/usr/sbin/php5-fpm"]
But it's not working. Container…
Vladan
- 1,163
- 2
- 8
- 6
100
votes
21 answers
Should we host our own nameservers?
This is a Canonical Question about whether to outsource DNS resolution for ones own domains
I currently have my ISP providing DNS for my domain, but they impose limitations on adding records. Therefore, I am thinking about running my own DNS.
Do…
Saif Khan
- 1,965
100
votes
1 answer
How can one distinguish the host and the port in an IPv6 URL?
URLs always have this format:
://[:]/[][#]
The problem is that IPv6 uses colons, just like the separator of port and host, e.g:
2001:db8:1f70::999:de8:7648:6e8
But what if this is the host, and I want to connect…
user42235
100
votes
4 answers
Difference between `curl -I` and `curl -X HEAD`
I was watching the funny server type from http://www.reddit.com with curl -I http://www.reddit.com when I guessed that curl -X HEAD http://www.reddit.com would do the same. But, in fact, it doesn't.
I'm curious about why.
This is what I observe…
chmeee
- 7,440
100
votes
5 answers
How to make a modification take affect without restarting nginx?
Apache has a graceful option which can scan for modification in http.conf without restarting Apache. What about nginx?
vps
- 1,237
99
votes
11 answers
How can I export the privileges from MySQL and then import to a new server?
I know how to export/import the databases using mysqldump & that's fine but how do I get the privileges into the new server.
For extra points, there are a couple of existing databases on the new one already, how do I import the old servers…
Gareth
- 8,573
99
votes
17 answers
Does drilling a hole into a hard drive suffice to make its data unrecoverable?
We have a lot of PCs in the company and nobody wants to wipe a multitude of hard drives. We also have many apprentice toolmakers who really want to destroy things. Thus, every couple of months, our apprentices receive two heavy baskets of hard…
RubbelDieKatz
- 931
99
votes
2 answers
Smell of rotten eggs in the server room
A week ago I got the following error on my APC Smart-UPS 1000 which I muted.
Warning State:
Connect battery
Load: 55%
Batt: 100%
Today, I could smell a sort of sulfur/sulphur/rotten egg smell when I came into the office and the UPS is alarming…
Andy Joiner
- 1,273
99
votes
6 answers
How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off
This is more of a curiosity then a real problem, I am just to lazy to reboot or log off my laptop.
I have connected to a network share on a Windows server with domain credentials from a non-domain Windows 7 machine, I didn't mark the option to…
ralz
- 2,781
99
votes
8 answers
How can I edit the welcome message when ssh start?
I have a VPS for my website hosting. It is running a Ubuntu server. Every time I logged in my server by ssh, it displays a lengthy welcome message in my terminal.
Linux node61.buyvm.net 2.6.18-pony6-3 #1 SMP Tue Mar 13 07:31:44 PDT
2012…
Yansuck
99
votes
9 answers
How can I fully log all bash scripts actions?
From my script output I want to capture ALL the logs data with error messages and redirect them all to log file.
I have script like below:
#!/bin/bash
(
echo " `date` : part 1 - start "
ssh -f admin@server.com 'bash…
BlueMark
- 1,129
98
votes
10 answers
Is it better practice to buy RAID disks individually vs. in bulk?
This may sound like an odd question, but it's generated some spirited discussion with some of my colleagues. Consider a moderately sized RAID array consisting of something like eight or twelve disks. When buying the initial batch of disks, or buying…
smitelli
- 1,214
- 1
- 10
- 16
98
votes
6 answers
SSHFS mount that survives disconnect
I'm using SSHFS mounts from my laptop to a central server.
Obviously, the SSHFS mount is broken after a longer disconnect (eg. during suspend), cause the underlying SSH connection timed out.
Is there a way to get SSHFS mounts surviving long lasting…
bene
- 2,294
- 2
- 19
- 14