Most Popular
1500 questions
233
votes
5 answers
Kubernetes stuck on ContainerCreating
A pod in my Kubernetes cluster is stuck on "ContainerCreating" after running a create. How do I see logs for this operation in order to diagnose why it is stuck? kubectl logs doesn't seem to work since the container needs to be in a non-pending…
four43
- 2,575
- 2
- 14
- 17
233
votes
4 answers
Symlink not updating as expected when using an absolute with relative path
I am trying to use symbolic links. I did some reading and found the following commands:
Creation -> ln -s {/path/to/file-name} {link-name}
Update -> ln -sfn {/path/to/file-name} {link-name}
Deletion -> rm {link-name}
Creations and deletions work…
Jérôme Verstrynge
- 4,747
- 7
- 23
- 34
231
votes
10 answers
How to use Let's Encrypt DNS challenge validation?
Let's Encrypt has announced they have:
Turned on support for the ACME DNS challenge
How do I make ./letsencrypt-auto generate a new certificate using DNS challenge domain validation?
EDIT
I mean: How do I avoid http/https port binding, by using…
Pierre Prinetti
- 2,445
- 3
- 12
- 9
231
votes
5 answers
Can you pass user/pass for HTTP Basic Authentication in URL parameters?
I believe this is not possible, but someone I know insisted that it works. I don't even know what parameters to try, and I haven't found this documented anywhere.
I tried http://myserver.com/~user=username&password=mypassword but it doesn't…
ripper234
- 5,710
- 9
- 40
- 49
230
votes
4 answers
What's the best way of handling permissions for Apache 2's user www-data in /var/www?
Has anyone got a nice solution for handling files in /var/www? We're running Name Based Virtual Hosts and the Apache 2 user is www-data.
We've got two regular users & root. So when messing with files in /var/www, rather than having to...
chown -R…
Gareth
- 8,413
- 13
- 43
- 44
229
votes
8 answers
How do I add Access-Control-Allow-Origin in NGINX?
How do I set the Access-Control-Allow-Origin header so I can use web-fonts from my subdomain on my main domain?
Notes:
You'll find examples of this and other headers for most HTTP servers in the HTML5BP Server Configs projects…
Chris McKee
- 3,119
- 2
- 19
- 16
228
votes
17 answers
Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
I have an instance of an application running in the cloud on an Amazon EC2 instance, and I need to connect to it from my local Ubuntu. It works fine on one local ubuntu and also laptop. I got this message, Permission denied (publickey)., when trying…
Vorleak Chy
- 2,421
- 2
- 15
- 8
227
votes
3 answers
How to include multiple domains in an spf TXT Record
I am looking to setup a TXT spf record that has 2 included domains... individually:
v=spf1 include:_spf.google.com ~all
and
v=spf1 include:otherdomain.com ~all
What is the proper way of combining them into a single item?
tgriesser
- 2,662
- 2
- 16
- 10
227
votes
10 answers
How to run a command multiple times, using bash shell?
Is there a way to run a command (e.g. ps aux|grep someprocess) for n times?
Something like:
run -n 10 'ps aux|grep someprocess'
I want to use it interactively.
Update: The reason I am asking this is, that I do work on a lot of machines and I don't…
mahatmanich
- 2,794
- 3
- 21
- 23
226
votes
29 answers
Using DD for disk cloning
There's been a number of questions regarding disk cloning tools and dd has been suggested at least once. I've already considered using dd myself, mainly because ease of use, and that it's readily available on pretty much all bootable Linux…
falstro
- 2,675
- 3
- 18
- 10
226
votes
6 answers
How to reply with 200 from Nginx, without serving a file?
I have configured Apache to send back a 200 response without serving any file with this configuration line
Redirect 200 /hello
Can I do this with Nginx? I don't want to serve a file, I just want the server to respond with a 200 (I'm just logging…
Theo
- 2,505
- 2
- 18
- 10
226
votes
5 answers
nginx HTTPS serving with same config as HTTP
Is there a way to share configuration directives across two nginx server {} blocks? I'd like to avoid duplicating the rules, as my site's HTTPS and HTTP content are served with the exact same config.
Currently, it's like this:
server {
listen 80;
…
ceejayoz
- 32,469
- 7
- 81
- 105
221
votes
15 answers
df in linux not showing correct free space after file removal
I have file servers which are used to store files. Files might reside there for a week, or for a year. Unfortunately, when I remove files from the server, df command doesn't reflect the freed up space. So eventually, the server gets filled up (df…
user11350
219
votes
13 answers
Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?
I'm running Windows 7 on a dual core, x64 AMD with 8 GB RAM.
Do I even need a page file?
Will removing it help or hurt performance?
Would it make a difference if this is a server or a desktop?
Does Windows 7 vs. Windows 2008 make a difference with a…
Jason
- 3,227
- 8
- 26
- 28
216
votes
7 answers
How do you add a Windows environment variable without rebooting?
I would like to add an Environment variable to a Windows machine (desktop or server) and be able to use it without rebooting that machine.
Say you have a production server which hosts a variety of apps and a new app needs a particular Environment…
Chad Braun-Duin
- 2,179
- 3
- 14
- 11