Most Popular
1500 questions
44
votes
8 answers
Remove path from find command output
I have a bash script for deploying code from a beta environment to a production environment but currently I have to add the list of files to a txt file manaully and sometime I miss some. Basically my deployment script cat/loops copying the files…
Mikey1980
- 711
- 1
- 8
- 12
44
votes
2 answers
iptables and multiple ports
This doesn't work for me:
# iptables -A INPUT -p tcp --dports 110,143,993,995 -j ACCEPT
iptables v1.4.7: unknown option `--dports'
Try `iptables -h' or 'iptables --help' for more information.
However in the man page, there is an option --dports...…
Zenet
- 878
- 4
- 10
- 14
44
votes
12 answers
Where did "Wait 30 seconds before turning it back on" come from?
I guess these are the kinds of things I think about on the weekend...
When I was growing up (not that long ago) my parents always taught us to wait 30 seconds after shutting down the computer before turning it back on again.
Fast forward to today in…
Brandon
- 2,807
- 1
- 22
- 28
44
votes
7 answers
Why can't you fsck a mounted partition?
It's well-known that you should never fsck a mounted partition. I can understand how this could easily lead to corruption if the filesystem is written to by fsck (e.g., the -a option is used), but why can't read-only checks be run on mounted disks?
mike
- 3,853
- 11
- 29
- 27
44
votes
3 answers
Disable the public key check for rpm installation
I want to make a DVD with some useful packages (for example php-common). The only problem is that if I try to install on a computer that's not connected to internet, I can't validate the public key.
The scenario is like this:
I download the RPMs,…
zozo
- 753
- 3
- 11
- 22
44
votes
7 answers
Troubleshooting latency spikes on ESXi NFS datastores
I'm experiencing fsync latencies of around five seconds on NFS datastores in ESXi, triggered by certain VMs. I suspect this might be caused by VMs using NCQ/TCQ, as this does not happen with virtual IDE drives.
This can be reproduced using…
exo_cw
- 591
- 1
- 5
- 9
44
votes
6 answers
How to check that an OpenVPN server is listening on a remote port without using OpenVPN client?
I need to check that an OpenVPN (UDP) server is up and accessible on a given host:port.
I only have a plain Windows XP computer with no OpenVPN client (and no chance to install it) and no keys needed to connect to the server - just common WinXP…
Ivan
- 3,288
- 19
- 48
- 70
44
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
- 723
- 2
- 7
- 9
44
votes
7 answers
View Shutdown Event Tracker logs under Windows Server 2008 R2
I'm trying to view the Shutdown Event Tracker logs in the Event Viewer, on windows server 2008 r8, but I can't find the messages that I supplied when previously restart the server.
Where in the Event Viewer can I see these logs?
stacker
- 831
- 3
- 10
- 15
44
votes
4 answers
What's the best way to get info about currently unmounted drives?
First, the situation: I've got a Linux computer with two eSATA drive bays that accept removable SSD drives. I'm trying to write a little GUI application that makes it easier for the user to mount/unmount/format/backup/etc the drives that he puts…
Jeremy Friesner
- 1,311
- 1
- 14
- 25
44
votes
5 answers
Best system for managing ssh keys?
I've got several client computers (i.e. laptops, desktops, etc.), and I connect to several server machines that I manage, and I log into them all via SSH. I can imagine several schemes of managing ssh keys that would make sense, and I'm curious…
slacy
- 910
- 1
- 9
- 11
44
votes
8 answers
How do I ask screen to behave like a standard bash shell?
Just learned about the screen command on linux - it is genius. I love it. However, the actual terminal/prompt in screen looks and behaves differently than my standard bash prompt. That is, the colors aren't the same, tab completion doesn't seem…
thornomad
- 541
- 1
- 4
- 5
44
votes
7 answers
How to find memory usage of individual Windows services?
Task Manager shows the overall memory usage of svchost.exe. Is there a way to view the memory usage of individual services?
Note this is similar to Finegrained performance reporting on svchost.exe
Aidan Ryan
- 1,253
- 2
- 13
- 16
44
votes
6 answers
Gaining administrator privileges in PowerShell
I only have one account on my Windows Vista machine, and that user has administrative privileges. However, when I try to execute a command within PowerShell to kill a certain process, I'm greeted with an "Access is denied" message. How do I become…
Brian
- 717
- 2
- 9
- 14
44
votes
2 answers
Does Apache Webserver use log4j (CVE-2021-44228)?
Does the apache webserver (apache2) use log4j?
I have Apache2 2.4.38 (debian) installed on Raspberry Pi OS (64bit) and found some strange records in my log regarding CVE-2021-44228 from kryptoslogic-cve-2021-44228.com (honeypot/scanner),…
gilex
- 523
- 1
- 2
- 6