Most Popular

1500 questions
185
votes
13 answers

Why couldn't MAC addresses be used instead of IPv4|6 for networking?

I am reading up on TCP/IP and other related protocols and technologies. MAC addresses are described as being (reasonably :) unique, and as having a large possibility space (several hundred trillions), while also being assigned to all network…
Félix Saparelli
  • 1,373
  • 2
  • 10
  • 10
185
votes
5 answers

VirtualBox: How to set up networking so both host and guest can access internet and talk to each other

I was wondering if someone could give me a simple guide on how to set up virtual networking in VirtualBox (4.0.2) so that the following scenarios work: Both Host and Guest can access the Internet Host can ping Guest and vice versa Host can access,…
Svish
  • 6,627
  • 14
  • 37
  • 45
185
votes
14 answers

How to create a UUID in bash?

In Java it is possible to create a random UUID: UUID uuid = UUID.randomUUID(); How to do this in Bash?
raoulsson
  • 4,633
  • 10
  • 32
  • 29
184
votes
14 answers

How to view all ssl certificates in a bundle?

I have a certificate bundle .crt file. doing openssl x509 -in bundle.crt -text -noout only shows the root certificate. how do i see all the other certificates?
pdeva
  • 2,327
  • 5
  • 17
  • 15
184
votes
61 answers

Good tools that fit on a thumb drive

I have been on the lookout lately for some good tools to fill up my flash drive and I thought I would ask the Server Fault community for recommendations on good tools that will fit onto a thumb drive. Some I use are Driver Packs, CCleaner and the…
Shard
  • 1,432
  • 4
  • 21
  • 35
183
votes
6 answers

What port does SFTP use?

Does SFTP use port 21 or port 22?
Daniel
  • 3,741
  • 7
  • 32
  • 33
183
votes
18 answers

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
Galen
  • 1,983
  • 2
  • 12
  • 10
181
votes
9 answers

Check if array is empty in Bash

I have an array which gets filled with different error messages as my script runs. I need a way to check if it is empty of not at the end of the script and take a specific action if it is. I have already tried treating it like a normal VAR and using…
Marcos Sander
  • 1,821
  • 2
  • 12
  • 5
180
votes
16 answers

Why is DNS failover not recommended?

From reading, it seems like DNS failover is not recommended just because DNS wasn't designed for it. But if you have two webservers on different subnets hosting redundant content, what other methods are there to ensure that all traffic gets routed…
Lin
  • 2,869
  • 6
  • 26
  • 25
180
votes
10 answers

Nginx enable site command

We all know how to enable a website using apache on Linux. I'm pretty sure that we all agree on using the a2ensite command. Unfortunately, there is no default equivalent command that comes with Nginx, but it did happen that I installed some package…
HXH
  • 2,905
  • 2
  • 17
  • 13
179
votes
8 answers

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen # fails: Cannot open your terminal '/dev/pts/0' I have a script…
sdot257
  • 3,039
  • 5
  • 29
  • 38
178
votes
12 answers

What does "Warning: untrusted X11 forwarding setup failed: xauth key data not generated" mean when ssh'ing with -X?

When I use ssh -X on my Mac (running OS X 10.6.7) to connect to my Ubuntu (11.04) box, I get the following warning: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication…
Daryl Spitzer
  • 2,946
  • 9
  • 33
  • 40
177
votes
31 answers

How do I prevent accidental rm -rf /*?

I just ran rm -rf /* accidentally, but I meant rm -rf ./* (notice the star after the slash). alias rm='rm -i' and --preserve-root by default didn't save me, so are there any automatic safeguards for this? I wasn't root and cancelled the command…
Valentin Nemcev
  • 1,965
  • 2
  • 13
  • 12
176
votes
8 answers

How do I verify the speed of my NIC?

I just installed a new gigabit network interface card (NIC) in Linux. How do I tell if it is really set to gigabit speeds? I see ethtool has an option to set the speed, but I can't seem to figure out how to report its current speed.
User1
  • 2,386
  • 4
  • 19
  • 21
175
votes
5 answers

SSL Certificate Location on UNIX/Linux

Is there any standard or convention for where SSL certificates and associated private keys should go on the UNIX/Linux filesystem?
John Topley
  • 2,045
  • 3
  • 16
  • 17