- Details
Here is a very simple code snippet to ask for an input without showing it on display. Great for all password inputs.
#!/bin/sh
read -p "Username: " uname
stty -echo
read -p "Password: " passw; echo
stty echo
1 comment
- Details
Some day you wake up and everything is broken. Your lighttpd log is filled with:
(response.c.544) file not found ... or so: Too many open files
(mod_proxy.c.744) socket failed: Too many open files
(network_linux_sendfile.c.143) open failed: Too many open files
(response.c.544) file not found ... or so: Too many open files /favicon.ico ->
I'm sure every admin running some popular service (or poorly coded software
) has faced this problem.
- Details
On Debian, the hostname is set at startup thanks to the script /etc/init.d/hostname.sh which uses the file /etc/hostname. We can use this file to update the computer hostname and its FQDN (fully qualified domain name).
Page 3 of 3