Most Popular

1500 questions
51
votes
6 answers

How can I view active remote connections (RDP) to a Windows server?

How can I view, who is currently connected to a server (Windows 2012) with a remote desktop client? I am myself connected to this server via RDP. This question offers a solution to get IP addresses with established connections. I would be interested…
gpinkas
  • 617
51
votes
2 answers

docker-compose: option to automaticaly remove container after run in docker-compose.yml

The docker-compose run reference states that it has the --rm option to Remove container after run. I want to make this a default run behavior for some of services I specify in docker-compose.yml. So, the questions are: Can it somehow be…
51
votes
5 answers

Steps for limiting outside connections to docker container with iptables?

My goal is to limit access to docker containers to just a few public IP addresses. Is there a simple, repeatable process to accomplish my goal? Understanding only the basics of iptables while using Docker's default options, I'm finding it very…
GGGforce
  • 759
51
votes
5 answers

On a dual CPU server, is it normal for one CPU to run hotter than the other?

I have a dual Opteron server running Linux with libvirt to host several VMs. The VMs work fine and the server processes OK, but I notice one CPU always runs about 69C (throttles at 70C) and the other runs about 15C. This doesn't seem normal to me?…
samoz
  • 2,043
51
votes
5 answers

Piping wget output to /dev/null in cron

I am running the following command every 5 minutes in my crontab to keep Phusion Passenger alive. */5 * * * * wget mysite.com > /dev/null 2>&1 When I run this it performs a wget on the site url routes STDOUT/STDERR to /dev/null. When I run this…
nulltek
  • 1,281
51
votes
3 answers

Always trigger handler execution in Ansible

I'm using Ansible to provision my development server. I want it to always start some services for me. I have handlers for this purpose but what is the best way to trigger handler execution without condition, e.g. make it always work? Something like…
51
votes
2 answers

Use a specific forwarded key from SSH-agent?

Let's say I have a key for Github, along with other keys. I've added lots of keys to my ssh agent (ssh-add -L returns lots of lines) at my home computer A. In my .ssh/config I have set up which key to use with which host, so e.g. ssh -T -vvv…
51
votes
2 answers

Prevent the possiblity of writing data to an unmounted mount point directory

I have an Ubuntu server where I'm automounting an external hard drive each boot. To do this, I've created an empty folder on the root partition, and the drive gets mounted "inside" this folder. However, what if I perform a backup to this path when…
LonnieBest
  • 1,530
  • 4
  • 22
  • 40
51
votes
5 answers

Is it possible to enable http compression for requests?

I see lots of information about enabling http compression for server responses but what about for incoming requests. Wouldn't it make sense for the browsers to compress large form posts before sending them to the server? Another example is a REST…
Mike L
  • 719
51
votes
3 answers

SElinux: allow httpd to connect to a specific port

My system is running CentOS 6.4 with apache2.2.15. SElinux is enforcing and I'm trying to connect to a local instance of redis through my python/wsgi app. I get Error 13, Permission denied. I could fix this via the command: setsebool -P…
51
votes
7 answers

System process (PID 4) constantly accessing the hard disk

Recently I noticed some of our machines are getting sluggish, mainly after boot-up. Using the Resource Monitor I detected excessive disk access from the system process with PID 4. Following some tips, I disabled the anti-virus on the System Volume…
zmbq
  • 675
51
votes
1 answer

How do I stop IIS from starting up when I turn Windows on?

I do not want IIS to start automatically with Windows. How do I change this? Is there a setting in IIS manager? I have looked around in the menus for one but I couldn't find an option.
51
votes
3 answers

Iptables, what's the difference between -m state and -m conntrack?

What's the practical difference between: iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT and iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT Which one is best to use? Thank you.
Bourne
  • 1,049
51
votes
2 answers

Construction workers filled my SAN with concrete and mineral dust

Update: EMC has dropped our warranty and support, so this is going to be an insurance case. Dell says's that we can get a professional cleaning agency to refurbish the servers and keep our warranty. Cisco says "maybe". HP is still silent :( Final…
pauska
  • 19,658
51
votes
7 answers

How to take full ownership of an IP address?

My business is... troublesome. What I do is legal in every country on earth, but some people don't like it, and make it so tough on my poor ISPs that I am forced to go looking for new providers more often than I would like. The only option I know of…
darkAsPitch
  • 1,941