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
  • 1
  • 4
  • 7
46
votes
3 answers

telnet counterpart for UDP

Is there anything that enables a "telnet-like" functionality for UDP? I know the difference between TCP and UDP, and why telnet itself won't work - but I'm wondering if there is something similar to the telnet client, from the end-user perspective.…
Dexter
  • 597
  • 1
  • 4
  • 5
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
  • 100,734
  • 32
  • 197
  • 329
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…
46
votes
10 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,020
  • 13
  • 74
  • 115
46
votes
2 answers

Serve http (port 80) and https (port 443) on same VirtualHost

I need to setup my VirtualHost on Apache to serve on both http and https (using standard ports) If I enable the SSL Engine (as per below) - I get an error when on port 80. The reason is, parts of the site need to be SSL but other parts don't. How…
kron
  • 735
  • 2
  • 6
  • 8
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
  • 2
  • 7
  • 8
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
  • 1
  • 4
  • 6
46
votes
7 answers

Why rsync is faster than NFS?

Few days ago I noticed something rather odd (at least for me). I ran rsync copying the same data and deleting it afterwards to NFS mount, called /nfs_mount/TEST. This /nfs_mount/TEST is hosted/exported from nfs_server-eth1. The MTU on both network…
grs
  • 2,235
  • 6
  • 28
  • 36
46
votes
8 answers

Port forwarding on Linux without iptables?

I have a Linux VPS (virtuozzo) server and I need to setup port forwarding, but my hosting provider does not allow iptables-nat kernel modules so iptables -t nat - is not working. I'm looking for other ways how to do it. I know I can forward port…
troex
  • 743
  • 2
  • 7
  • 9
46
votes
4 answers

How do I request a new IP address from my DHCP server using Ubuntu Server?

I know there is a simple command for this, but how do I tell my Ubuntu server instance to request a new IP address from the DHCP server on eth0?
Heat Miser
  • 585
  • 1
  • 5
  • 7
46
votes
9 answers

Linux ATA errors: Translating to a device name?

When a Linux box gets an ATA error, it syslogs it with a message identifying the disk as "ata%d.00". How do I translate that to a device name (e.g. /dev/sdb)? I feel like this should be trivial, but I cannot figure it out.
nelhage
  • 561
  • 1
  • 4
  • 4
46
votes
7 answers

Is it safe to have SQL Server auto-shrink turned on?

There are many SQL Server options that can be enabled for databases, and one of the most misunderstood ones is auto-shrink. Is it safe? If not, why not?
Paul Randal
  • 7,194
  • 1
  • 36
  • 45
46
votes
15 answers

NGinx Best Practices

What best practices do you use while using NGinx?
The Pixel Developer
  • 857
  • 3
  • 10
  • 20
46
votes
6 answers

Listing available smb shares on a network through the command line in linux

I was wondering if there is a way of listing all the smb servers on a local network (like looking at a network neighborhood in windows) via the command line in fedora.
jcb344
  • 683
  • 2
  • 7
  • 8