Use this tag for asking about programs you have written to perform system-administration tasks. Non-programming questions about system administration are off-topic for Stack Overflow and should not be asked here.
Questions tagged [system-administration]
983 questions
13
votes
10 answers
How can I show file sizes with commas when getting a directory listing with 'ls -l'?
You can do 'ls -l' to get a detailed directory listing like this:
-rw-rw-rw- 1 alice themonkeys 1159995999 2008-08-20 07:01 foo.log
-rw-rw-rw- 1 bob bob 244251992 2008-08-20 05:30 bar.txt
But notice how you have to slide your finger…

dreeves
- 26,430
- 45
- 154
- 229
12
votes
8 answers
What would be the simplest system to send sms from linux server?
What would be the simplest system to send sms from linux server? It`s a Debian system. There would be not much SMSes. What hardware and software to use? Maybe use some SMS sending service?

Kazimieras Aliulis
- 1,531
- 3
- 13
- 25
12
votes
1 answer
Only allow certain countries traffic access specific page
I am using --with-http_geoip_module for identify traffic. There are some pages that I only want certain country to access. Here is configuration:
For http
http{
geoip_country /usr/share/GeoIP/GeoIP.dat; # the country IP database
map…

dev-jim
- 2,404
- 6
- 35
- 61
12
votes
3 answers
How to install libpython2.7.so
I have installed Python 2.6.6 at
[17:50:21 root@data.dev:~]# which python
/usr/local/bin/python
also Python 2.7.6 at
[17:51:12 root@data.dev:~]# which python2.7
/usr/local/bin/python2.7
But libpython2.7.so is missing
[17:48:52 root@data.dev:~]#…

roy
- 6,344
- 24
- 92
- 174
12
votes
3 answers
Why use Apache over NGINX/Cherokee/Lighttpd?
Apache has been the de facto standard web server for over a decade, but recent years have brought us web servers that consume less RAM and handle many more requests per second using fewer threads and asynchronous i/o. In my opinion, I also find the…

codysoyland
- 633
- 1
- 5
- 7
12
votes
1 answer
what is the proper way to test NFS performance
I'm given a project where the only objective is to monitor a network's NFS performance. I know there's a bunch of open source tools out there, but still I would like to get the basic idea behind in order to better tweak those around. So the network…

fy_iceworld
- 656
- 2
- 10
- 20
12
votes
8 answers
Sniffing network traffic for signs of viruses/spyware
How can I connect a system to a network and sniff for virus/spyware related traffic? I'd like to plug in a network cable, fire up an appropriate tool sand have it scan the data for any signs of problems. I don't expect this to find everything, and…

DrStalker
- 9,061
- 17
- 43
- 47
11
votes
5 answers
How to export a variable in Bash
I need to set a system environment variable from a Bash script that would be available outside of the current scope. So you would normally export environment variables like this:
export MY_VAR=/opt/my_var
But I need the environment variable to be…

mbrevoort
- 5,075
- 6
- 38
- 48
11
votes
5 answers
Postgresql 9.3 on Centos 7 with custom PGDATA
I am trying to set up Postgresql 9.3 server on Centos 7 (installation via yum) inside a custom directory, which in my case is an encrypted partition (/custom_container/database) that is mounted on startup. For a certain reason Postgresql does not…

Vitaly Stanchits
- 658
- 2
- 7
- 24
11
votes
2 answers
Chef correct way to load new rpm and install package
I am trying to install the latest version of php on a centos box and am struggling.
The cookbook i have been looking at is the opscode one: https://github.com/opscode-cookbooks/php
It doesnt look like i can install php 5.5 using that.
To install…

Marty Wallace
- 34,046
- 53
- 137
- 200
10
votes
4 answers
Update website with a single command (git push) instead of FTP drag and dropping
Situation:
I have a local copy of a website
I have a server that I have SSH access to
What do I want to do?
Commit locally until I'm happy with my code
Make branches locally
Have one master branch that is the one that should be pushed to the…

Wolfr
- 5,055
- 4
- 25
- 31
10
votes
4 answers
Can a script be used as an interpreter by the #! hashbang line?
I'm trying to write a bash script which will behave as a basic interpreter, but it doesn't seem to work: The custom interpreter doesn't appear to be invoked. What am I doing wrong?
Here's a simple setup illustrating the problem:
/bin/interpreter:…

Tom Rees
- 681
- 4
- 17
10
votes
1 answer
What is a crashloop?
I'm reading Google's Site Reliability Engineering book and ran across the word crashloop which I've never heard before and have not been able to locate a definition
"If a task tries to use more resources than it requested, Borg kills the task and…

Taylor Clark
- 153
- 2
- 7
10
votes
14 answers
Sender and receiver to transfer files over ssh on request?
I created a program that iterates over a bunch of files and invokes for some of them:
scp user@host:
However, in my case, there may be thousands of small files that need to transferred, and scp is opening a new ssh connection for…

Bruno De Fraine
- 45,466
- 8
- 54
- 65
10
votes
1 answer
Hyperledger Fabric Composer - restricting access rights of system administrators
My question is on access control in hyperledger fabric composer.
Assume you have a business network, in which you have the following participants:
Sellers
(Potential) Buyers
A seller is an employee of a company that sells products to a buying…

steady_progress
- 3,311
- 10
- 31
- 62