Most Popular
1500 questions
77
votes
3 answers
IPTables only allow localhost access
I have struggled throughout the years to get a solid understanding on iptables. Any time I try and read through the man pages my eyes start to glaze over.
I have a service that I only want to allow the localhost to have access to.
What terms (or…
iptablessuck
- 773
77
votes
3 answers
Listen to UDP data on local port with netcat
netcat -ul -p2115 fails with a usage statement.
What am I doing wrong?
Tyler
- 873
77
votes
1 answer
Capturing STDERR and STDOUT to a file using 'tee'
I'm unclear what the best order is to capture both STDERR and STDOUT to the same file using tee. I know that if I want to pipe to a file I have to map the file handle after the redirect, i.e.,
find . >/tmp/output.txt 2>&1
This instructs the shell…
PP.
- 3,606
77
votes
13 answers
ZFS vs XFS
We're considering building a ~16TB storage server. At the moment, we're considering both ZFS and XFS as filesystem. What are the advantages, disadvantages? What do we have to look for? Is there a third, better option?
Mkkt Bkkt
- 873
77
votes
2 answers
How do I edit the crontab of another user on my linux server?
I have a user on my linux server who has sudo. I want to edit the crontab of another user. I'm new to this though and don't understand what the man pages are telling me yet.
Man crontab tells me I can use this format for the crontab…
bflora
- 909
77
votes
9 answers
Can't seem to disable Java Automatic Update
I'm just tweaking out my new Windows 7 laptop and wanted to disable the automatic Java updating (and thus kill the silly jusched.exe background process), but I can't seem to get it to actually turn it off.
I found the Java Control Panel applet and…
Scott Bussinger
- 1,821
77
votes
6 answers
Sending cron output to a file with a timestamp in its name
I have a crontab like this on a LAMP setup:
0 0 * * * /some/path/to/a/file.php > $HOME/cron.log 2>&1
This writes the output of the file to cron.log. However, when it runs again, it overwrites whatever was previously in the file.
How can I get cron…
Philip Morton
- 893
76
votes
5 answers
Why disable swap on kubernetes
Since Kubernetes 1.8, it seems I need to disable swap on my nodes (or set --fail-swap-on to false).
I cannot find the technical reason why Kubernetes insists on the swap being disabled. Is this for performance reasons? Security reasons? Why is the…
Jeroen Jacobs
- 1,436
76
votes
10 answers
memcache vs memcached?
I want to use memcached
http://www.danga.com/memcached/
I have installed it through yum install memcached
But now I need to connect to PHP, and there is an extension named memcache and one named memcached?…
thanksyo
- 839
76
votes
3 answers
Block range of IP Addresses
I am getting bombarded with attempted hacks from China all with similar IPs.
How would I block the IP range with something like 116.10.191.* etc.
I am running Ubuntu Server 13.10.
The current line I am using is:
sudo /sbin/iptables -A INPUT -s…
Stephen Cioffi
- 877
76
votes
8 answers
How to change a SSH host key?
I cloned a server and so they've the same RSA key fingerprint.
It seems to be defined in /etc/ssh/ssh_host_rsa_key.pub.
What is the correct way to change that?
Thanks.
Pascal Polleunus
- 1,583
76
votes
4 answers
What is the correct syntax to run cron every 4 hours?
I have the following syntax (which I think is correcT?) but it runs the command every minute!
* */4 * * * /cmd.sh
erotsppa
- 2,173
76
votes
4 answers
How to PREPEND rules rather than APPEND using iptables?
Pretty basic question: how to PREPEND rules on IPTABLES rather than to APPEND?
I have DROP statements at the bottom of my rules. I have a software to add new rules but adding rules after DROP statements isn't good. Every time I want to add a new…
ale
- 953
76
votes
3 answers
How to run VBoxManage.exe?
The file is located in Program Files/Oracle/VirtualBox/VBoxManage.exe and is used as a command-line interface with VirtualBox.
I'm using it to convert the .vdi image to a .vdmk (for…
AlxVallejo
- 1,096
76
votes
5 answers
How do I grep through binary files that look like text?
I have binary files that should be text (they're exported logs), but I can't open it with less (it looks ugly - it looks like a binary file). I found that I could open it with vi and I can cat it (you'll see the actual logs), but what I'd really…
Robyn Smith
- 861
- 1
- 7
- 5