Most Popular
1500 questions
149
votes
6 answers
Why do consoles sometimes hang forever when SSH connection breaks?
I've seen this with so many consoles (on Linux, Mac, ...), and with lots of different machines in many different networks. I can never pinpoint the exact reason, why this happens: All you have to do is log in to a machine via SSH. If the connection…
Chris Lercher
- 4,252
- 9
- 36
- 41
149
votes
12 answers
Should servers be turned off at night?
There is a server that is used from 4:30 am in the morning until ~ 22:00.
Should it be turned off? I think that it is a server and that it won't have a problem to stay on, but serious professors are telling me that it is dangerous and that HD can…
GorillaApe
- 1,379
149
votes
11 answers
best way to clear all iptables rules
I currently have this snippet:
# flush all chains
iptables -F
iptables -t nat -F
iptables -t mangle -F
# delete all chains
iptables -X
Is there a possibility that some impervious rule will stay alive after running this?
The idea is to have a…
kagali-san
- 2,021
- 5
- 18
- 20
149
votes
6 answers
Show full process name in top
I'm running a Rails stack on Ubuntu.
When I call ps -AF, I get a descriptive process name set by the Apache module like
00:00:43 Rails: /var/www...
which is really helpful in diagnosing load issues.
But when I call top, the same process shows up…
Ben K.
- 2,439
149
votes
8 answers
What port should I open to allow remote desktop?
What port(s) should I open/NAT to allow me to use Remote Desktop?
Kjensen
- 1,069
148
votes
8 answers
Is there a reason to use an SSL certificate other than Let's Encrypt's free SSL?
Let's Encrypt are providing free SSL certificates. Are there any downsides compared to other, paid certificates e.g. AWS Certificate Manager?
ripper234
- 6,040
148
votes
8 answers
Wildcard SSL certificate for second-level subdomain
I'd like to know if any certificates support a double wildcard like *.*.example.com? I've just been on the phone with my current SSL provider (register.com) and the girl there said they don't offer anything like that and that she didn't think it was…
Rob Long
147
votes
3 answers
How to remove the "installed manually" flag and revert to "automatically installed" with apt-get?
To compile something, I needed the zlib1g-dev package to be installed so I launched an apt-get install zlib1g-dev.
apt-get informed me nicely that the package was already auto-installed because of an other package, and that it understands that I…
Steve Schnepp
- 2,374
147
votes
2 answers
What's the difference between include_tasks and import_tasks?
In Ansible 2.4, the include module is deprecated. In its place, it ships with two replacement modules, import_tasks and include_tasks. But they have very similar descriptions:
include_tasks: Includes a file with a list of tasks to be executed in…
Ben S
- 1,581
147
votes
35 answers
SSH Suddenly returning Invalid format
So a while ago I set up a server on AWS, and used their generated SSH key. I saved the key to Lastpass, and have successfully retrieved it from there before, and got it working. However, after trying that again today, I can't get it to…
Gregor Menih
- 1,573
147
votes
3 answers
What's the meaning of '@' in a DNS zone file?
I have the following data in my DNS zone file for my domain:
$ORIGIN mydomain.com.
@ IN A 208.X.Y.Z
mail IN A 208.X.Y.Z
... etc..
What does the @ line mean? I know what an A record is.. but a host with an ampersand at…
Pure.Krome
- 6,608
- 18
- 73
- 88
147
votes
9 answers
Keeping a linux process running after I logout
I'm connecting to a Linux machine through SSH, and I'm trying to run a heavy bash script that makes filesystem operations. It's expected to keep running for hours, but I cannot leave the SSH session open because of internet connections issues I…
doc_id
- 1,509
147
votes
7 answers
Meaning of directories on Unix and Unix like systems
I've been using Linux for a couple of years now but I still haven't figured out what the origin or meaning of some the directory names are on Unix and Unix like systems. E.g. what does etc stand for or var? Where does the opt name come from?
And…
Luke
- 3,856
- 8
- 36
- 42
147
votes
9 answers
How to dump a Microsoft SQL Server database to a SQL script?
Is there any way to export a Microsoft SQL Server database to a SQL script?
I'm looking for something which behaves similarly to mysqldump, taking a database name, and producing a single script which will recreate all the tables, stored procedures…
Matt Sheppard
- 1,579
147
votes
8 answers
How can I port forward with iptables?
I want connections coming in on ppp0 on port 8001 to be routed to 192.168.1.200 on eth0 on port 8080.
I've got these two rules
-A PREROUTING -p tcp -m tcp --dport 8001 -j DNAT --to-destination 192.168.1.200:8080
-A FORWARD -m state -p tcp -d…
Stu
- 2,218