Most Popular
1500 questions
46
votes
8 answers
create 'virtual file' from bash command output?
I wonder if there is a way to create a 'virtual file' from a bash output.
Example:
Let's say I want to email the output of mysqldump as an attachment to an external email address.
I can use Mutt to do so.
The mutt option I need to use is -a
ppbitb
- 562
46
votes
3 answers
What should the order of DNS servers be for an AD Domain Controller and Why?
This is a Canonical Question about Active Directory DNS Settings.
Related:
What is Active Directory Domain Services and how does it work?
Assuming an environment with multiple domain controllers (assume that they all run DNS as well):
in what…
MDMarra
- 101,023
46
votes
7 answers
How do I prevent Linux from freezing when out of memory?
Today I (accidentally) ran some program on my Linux box that quickly used a lot of memory. My system froze, became unresponsive and thus I was unable to kill the offender.
How can I prevent this in the future? Can't it at least keep a responsive…
johv
- 561
46
votes
5 answers
Why can't I reach my Amazon EC2 instance via its Elastic IP address?
The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm it is reachable before I add the IP address to my…
Guido Anselmi
- 563
46
votes
2 answers
Can someone please explain Windows Service Principle Names (SPNs) without oversimplifying?
I have wrestled with service principle names a few times now and the Microsoft explanation is just not sufficient. I am configuring an IIS application to work on our domain and it looks like some of my issues are related to my need to configure http…
Chris Magnuson
- 3,831
46
votes
11 answers
How to delete all but last [n] ZFS snapshots?
I'm currently snapshotting my ZFS-based NAS nightly and weekly, a process that has saved my ass a few times. However, while the creation of the snapshot is automatic (from cron), the deletion of old snapshots is still a manual task. Obviously…
growse
- 8,060
46
votes
5 answers
"No worthy mechs found" when trying to relay email to Gmail using Postfix
I've been trying to configure email to forward to Gmail, using Postfix to relay email to smtp.gmail.com. However, I'm failing to get it to authenticate with smtp.gmail.com, which is a rather vital prerequisite to getting anything working…
The mail…
gsnedders
- 1,261
- 1
- 9
- 8
46
votes
5 answers
Can dpkg verify files from an installed package?
With rpm -qV openssh-server I will get a list of files that have changed compared to default.
~$ rpm -qV openssh-server
S.?....T. c /etc/ssh/sshd_config
~$
Can dpkg on Ubuntu do the same?
Sandra
- 10,563
46
votes
3 answers
How to check my PHP and MySQL version on Ubuntu VPS?
HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL.
PHP version 5.1.0 or above with XML Extension installed
MySQL version 4.0 or above
How to check that? Especiall the PHP XML…
DocWiki
- 683
46
votes
2 answers
How to use node.js as a production web server?
I'm currently developing a project using node, and as I'm approaching the launch, I'm struggling to find resources on how to setup node for use on a commercial, production server. Most resources I have seen have consisted of contrived, simple…
naivedeveloper
- 581
46
votes
4 answers
Is the hostname case sensitive?
Is the hostname case sensitive? Is
ping MYHOST
equal to
ping myhost
Does it depend on the DNS used? Are there differences between Win/Mac/Unix systems?
michelemarcon
- 681
46
votes
4 answers
How to automatically restart a service on failure in Linux
On Windows, you can set what should happen if/when a service fails. Is there a standard way of achieving the same thing on Linux (CentOS in particular)?
A bigger part of my question is: how do you handle sockets that have been left open - for…
Pryo
- 685
- 1
- 5
- 11
46
votes
6 answers
Measuring 'total bytes written' under Linux
We're quite interested in exploring the possibility of using SSD drives in a server environment. However, one thing that we need to establish is expected drive longevity. According to this article manufacturer's are reporting drive endurance in…
badnews
- 605
46
votes
5 answers
Specify SSH Port for Git
I use a non-standard ssh port (1234) for most of the servers I connect to. So in my ssh config file I have:
Port 1234
But github.com uses port 22. When I try to connect to github it obviously tries to use port 1234. Right now I have to edit my…
James Ward
- 645
46
votes
6 answers
Starting network connection from Ubuntu recovery?
I tried to upgrade Ubuntu from Hardy to Intrepid last night, and seem to have killed it.
I can boot into "recovery mode" and the root shell, but it freezes when it tries to start the Gnome environment etc.
In this recovery mode it doesn't seem to…
interstar
- 1,321