Most Popular

1500 questions
54
votes
12 answers

What are useful .screenrc settings?

Basically like some of my own that I've posted below. I'm looking for added functionality to the programme 'screen'. At the very least have a look at the last line for a fantastic 'menu bar' at the bottom of a screen session. ## gyaresu's .screenrc…
Gareth
  • 8,573
  • 13
  • 44
  • 44
54
votes
16 answers

Stop ssh login from printing motd from the client?

I've got SSH passwordless set up, however it prints the MoTD when it logs in. Is there anyway to stop that happening from the client side? I've tried ssh -q but that doesn't work. I don't want to use ~/.hushlogin nor do I want to change the server…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
54
votes
4 answers

How to enable correct charset HTTP-header in NGINX

What is the right way to enable correct charset headers in NGINX? I'm analyzing my website with Google Page Speed. It says that I should specify the charset of HTML files in HTTP-headers. What is the right way to do this? I already tried to set…
pvorb
  • 1,050
  • 3
  • 11
  • 16
54
votes
10 answers

How do I check the build status of a Jenkins build from the command line?

How do I check the Jenkins build status without switching to the browser? If required, I can create a script using the JSON API, but I was wondering if there is already something like this built in.
Catskul
  • 1,929
  • 4
  • 20
  • 23
54
votes
12 answers

Linux command line utility to resolve host names using /etc/hosts first

There are several command line utilities to resolve host names (host, dig, nslookup), however they all use nameservers exclusively, while applications in general look in /etc/hosts first (using gethostbyname I believe). Is there a command line…
Zulan
  • 625
  • 1
  • 6
  • 8
54
votes
2 answers

How can I increase the value of somaxconn?

I can check its value by cat /proc/sys/net/core/somaxconn, is it OK if I change it simply by echo 1024 > /proc/sys/net/core/somaxconn?
linux_user
  • 541
  • 1
  • 4
  • 3
54
votes
5 answers

Need to add a "Wait" command to a Powershell script

Here is my current code: Write-output “ENTER THE FOLLOWING DETAILS - When Creating Multiple New Accounts Go to EMC hit F5(refresh) and make sure previous new account is listed before proceeding to the next one” $DName = Read-Host…
Paul Masek
  • 722
  • 2
  • 7
  • 16
54
votes
8 answers

How to VNC into an existing X session?

Would like to be able to connect to an existing X display, so can access my work environment and everything I left open from home. I vaguely remember something about using x11vnc in the past. But the package does not exists for Fedora 11, so I am…
grom
  • 799
  • 2
  • 9
  • 11
54
votes
2 answers

Why do I have to edit /etc/sudoers with visudo?

I've noticed that the sudoers file and cron config files act in a special way compared to other config files on Linux. They need to be edited with a special wrapper rather than any text editor. Why is this?
Brian Lyttle
  • 1,757
  • 1
  • 17
  • 17
54
votes
24 answers

Which websites should a system administrator read?

I try to religiously follow planet sysadmin as well as IBM developerworks. Which ones do you read and advise to other system administrators?
tomdeb
  • 709
  • 1
  • 7
  • 10
54
votes
6 answers

Cron: Only get errors in emails?

I finally set up a realistic backup schedule on my data through a shell script, which are handled by cron on tight intervals. Unfortunately, I keep getting empty emails each time the CRON has been executed and not only when things go wrong. Is it…
Industrial
  • 1,579
  • 6
  • 24
  • 37
54
votes
2 answers

Are EC2 security group changes effective immediately for running instances?

I have an EC2 instance running, and it belongs to a security group. If I add a new allowed connection to that security group through AWS Management Console, should that change be effective immediately? Or perhaps only after restart of the…
Jonik
  • 2,961
  • 4
  • 38
  • 48
54
votes
1 answer

Capturing STDERR and STDOUT to 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 filehandle after the redirect, i.e. find . >/tmp/output.txt 2>&1 This instructs the shell to…
PP.
  • 3,316
  • 6
  • 27
  • 31
54
votes
3 answers

Unix socket vs TCP/IP host:port

Could someone please describe to me the pros and cons of using a Unix socket file vs a tcp/ip localhost:port when setting up services on a server (Ubuntu, FWIW)? In this particular instance it's for a Python WSGI server (uWSGI) but I'm just…
Ludo
  • 1,099
  • 3
  • 10
  • 11
54
votes
8 answers

How is fire spread in server rooms and datacenters?

Every now and then I read that a severe fire has happened in some datacenter, lots of equipment has been damaged and customers have gone offline. Now I wonder what is there to support and spread fire? I mean walls in a server room usually have…
sharptooth
  • 2,739
  • 4
  • 32
  • 40