Most Popular

1500 questions
56
votes
9 answers

How do I run a local bash script on remote machines via ssh?

I am looking for a way to push configuration from one central machine to several remote machines without the need to install anything on the remote machines. The aim is to do something like you would find with tools like cfengine, but on a set of…
tremoloqui
  • 1,303
  • 1
  • 10
  • 9
56
votes
9 answers

What's the difference between apt-get and aptitude?

I don't get why there are two different programs in a minimal install to install software. Don't they do the same thing? Is there a big difference? I have read everywhere to use aptitude over apt-get but I still don't know the difference
Thomaschaaf
  • 3,092
  • 5
  • 30
  • 24
56
votes
4 answers

Free public SSH server for testing purposes

I'm writing an application that makes connections to SSH servers. It doesn't need anything specific from the server (except running under GNU/Linux). I need SSH servers for running my application tests. I was wondering, is there some kind of free…
nicoulaj
  • 1,175
  • 2
  • 10
  • 12
56
votes
4 answers

how to run cron job every 3 months?

What would be the crontab entry look like for a job that runs on the first day of every third month?
haim evgi
  • 753
  • 1
  • 10
  • 15
56
votes
6 answers

How to configure basic authentication in Apache httpd virtual hosts?

I'm trying to configure mercurial access using Apache http. It requires authentication. My /etc/apache2/sites-enabled/mercurial looks like this: NameVirtualHost *:8080 UseCanonicalName Off ServerAdmin …
Jader Dias
  • 4,705
  • 19
  • 50
  • 51
56
votes
4 answers

PowerShell script, showing commands run

I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing them in yourself. This would be similar to "echo…
Nelson Rothermel
  • 573
  • 1
  • 5
  • 9
55
votes
6 answers

Puppet vs Chef, pro and contra from users and use cases

I already googled and read the "to-puppet-or-to-chef-that-is-the-question" article. I'm interested in use cases, real world implementations in which people had choosen one or the other on real problems bases. I'm particularly interested in…
drAlberT
  • 10,949
  • 7
  • 39
  • 52
55
votes
4 answers

Does Wi-Fi traffic from one client to another travel via the access point?

Consider a Wi-Fi network with one access point and two clients, operating in marginal conditions due to range, etc. Client 1 is communicating with Client 2. Obviously the Access Point (AP) must be in range of both (assuming no fancy mesh modes,…
Pete
  • 653
  • 5
  • 4
55
votes
1 answer

What does "Connection: close" mean when used in the response message?

When the client uses the Connection: close header in the request message, this means that it wants the server to close the connection after sending the response message. I thought that this header is only used in the request messages, but I have…
user365656
  • 553
  • 1
  • 4
  • 4
55
votes
6 answers

What is the recommended CIDR when creating VPC on AWS?

I have been creating AWS VPCs and I am wondering if there is a recommended CIDR value when creating VPCs. What are the factors that I must consider when choosing a CIDR and does the CIDR value affect the performance of the network?
Gene Diaz
  • 707
  • 1
  • 7
  • 12
55
votes
3 answers

Isn't Ctrl-Alt-Delete on Linux *really* dangerous?

Is the default Ctrl-Alt-Delete shutdown -r functionality on Linux systems a dangerous feature? Years ago, when I deployed physical systems with attached keyboards and monitors, I'd sometimes modify the /etc/inittab on Red Hat systems to disable the…
ewwhite
  • 197,159
  • 92
  • 443
  • 809
55
votes
1 answer

What's the difference between sudo su - postgres and sudo -u postgres?

PostgreSQL users peer authentication on unix sockets by default, where the unix user must be the same as the PostgreSQL user. So people frequently use su or sudo to become the postgres superuser. I often see people using constructs like: sudo su -…
Craig Ringer
  • 11,083
  • 9
  • 40
  • 61
55
votes
7 answers

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not compatible with the framework I was working with so…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
55
votes
2 answers

ServerAliveCountMax in SSH

What does the ServerAliveCountMax in SSH actually do? I am trying to ensure that when I connect to my server via SSH that the connection remains open for a long period of time instead of the connection dying after a short period of inactivity. This…
John Crawford
  • 2,005
  • 3
  • 15
  • 9
55
votes
8 answers

How to remove Private Key Password from pkcs12 container?

I extracted certificate using Chrome's SSL/export command. Then provided it as input to openvpn - in the config for openvpn: pkcs12 "path/to/pkcs12_container" When calling openvpn ~/openvp_config it asks for a password for private key (wich I…
Ayrat
  • 653
  • 1
  • 5
  • 6