Most Popular

1500 questions
59
votes
5 answers

Removing Docker data volumes?

The official Docker documentation mentions that I need to run docker rm -v containername to specifically remove a data volume. But what do you do if you already removed all the containers referencing the specific data volume ?
p4guru
  • 963
  • 1
  • 8
  • 17
59
votes
1 answer

how to access host variable of a different host with Ansible?

Let's say I have a host that collects some data and it's in a group [collectors]. I also have hosts in-group [reporters]. So, I want to set a variable on reporters from groups['collectors'][0] IP address. But the playbook for setting up reporters…
hryamzik
  • 847
59
votes
7 answers

how to solve the "open failed: administratively prohibited: open failed" when using a SSH tunnel proxy

I've been using SSH tunnel for a while on Windows (using Putty). On Windows with putty, it is always fine, but on mac or cygwin, it sometimes prompts the warning message: open failed: administratively prohibited: open failed
59
votes
6 answers

Is there a way to permanently set the font and window size in PuTTY?

When I log in with PuTTY, I always have to: change settings appearance font change 8 resize window so that I can see enough text to work with the log files. I don't see where I can save these settings to my saved session. Is this…
59
votes
6 answers

How to automatically close netcat connection after data is sent?

I am executing the following command from a script: echo '{"hostUp": true}' | sudo /usr/local/bin/netcat localhost 8001 However, the netcat client stays open indefinitely. How can I close the connection once this data has been sent?
59
votes
3 answers

Configure custom SSL certificate for RDP on Windows Server 2012 (and later) in Remote Administration mode?

So the release of Windows Server 2012 has removed a lot of the old Remote Desktop related configuration utilities. In particular, there is no more Remote Desktop Session Host Configuration utility that gave you access to the RDP-Tcp properties…
59
votes
9 answers

Apache: SSLCertificateKeyFile: file does not exist or is empty

I am configuring SSL for Apache 2. My system is Ubuntu Server 10.04 LTS. I have the following settings related to SSL in my vhost configuration: SSLEngine On SSLCertificateKeyFile /etc/ssl/private/server.insecure.key SSLCertificateFile …
blueFast
  • 4,930
59
votes
4 answers

nginx proxy pass redirects ignore port

So I'm setting up a virtual path when pointing at a node.js app in my nginx conf. the relevant section looks like so: location /app { rewrite /app/(.*) /$1 break; proxy_pass http://localhost:3000; proxy_redirect off; proxy_set_header Host…
Paul
  • 1,018
59
votes
4 answers

What does mdev mean in ping(8)?

What does mdev mean in ping output (last row below)? me@callisto ~ % ping -c 1 example.org PING example.org (192.0.43.10) 56(84) bytes of data. 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_seq=1 ttl=245 time=119 ms --- example.org ping…
Daniel
  • 3,347
59
votes
5 answers

How to disable Nginx logging?

I have the following in config file server { listen 80; server_name _; access_log /var/log/nginx/access.log main; ... server { listen 80; server_name example.com access_log off; error_log off; But it…
59
votes
6 answers

What is better LVM on RAID or RAID on LVM?

I currently have LVM on software RAID, but I'd like to ask you what you think it is better solution, maybe some pros and cons? Edit: It is about software raid on lvm or lvm on software raid. I know than hardware raid is better if we are thinking…
Ency
  • 1,271
59
votes
10 answers

How to interrupt software raid resync?

I want to interrupt a running resync operation on a debian squeeze software raid. (This is the regular scheduled compare resync. The raid array is still clean in such a case. Do not confuse this with a rebuild after a disk failed and was…
Adam5
  • 591
59
votes
9 answers

How do I run a local bash script on remote machines via ssh?

I am looking for a way to push configuration from one central machine to several remote machines without the need to install anything on the remote machines. The aim is to do something like you would find with tools like cfengine, but on a set of…
tremoloqui
  • 1,373
59
votes
40 answers

How do you manage your passwords?

Obviously seeing as how many of us here are system administrator type people, we have a lot of passwords strung out across numerous systems and accounts. Some of them are low priority, others could cause serious harm to a company if discovered…
DWilliams
  • 963
59
votes
6 answers

how to split a pcap file into a set of smaller ones

I have a huge pcap file (generated by tcpdump). When I try to open it in wireshark, the program just gets unresponsive. Is there a way to split a file in set of smaller ones to open them one by one? The traffic captured in a file is generated by two…
facha
  • 1,428
  • 2
  • 19
  • 27