apt install bind9
Note: i have the IP : 192.168.1.109 by DHCP
edit the network settings file
| #!/bin/sh | |
| MYSQLADMIN_CFG="/etc/mysql/mariadb.conf.d/90-mysqladmin.cnf" | |
| # generate password | |
| PASS=$(perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'); | |
| # adjust /etc/mysql/debian.cnf (used as defaults file by system scripts) | |
| sed -i "s/^password =.*$/password = ${PASS}/" /etc/mysql/debian.cnf | |
| sed -i "s/^user =.*$/user = debian-sys-maint/" /etc/mysql/debian.cnf | |
| # create config file for mysqladmin itself (maybe not needed) | |
| umask 066 | |
| cat > ${MYSQLADMIN_CFG} <<EOF | 
| apt install jpegoptim pngquant optipng | 
| # Maintainer: Michael Herzberg | |
| # Maintainer: Severin Glöckner <severin.gloeckner@stud.htwk-leipzig.de> | |
| # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> | |
| # Contributor: Christian Hesse <mail@eworm.de> | |
| pkgbase=mariadb-10.3 | |
| pkgname=('mariadb-libs-10.3' 'mariadb-clients-10.3' 'mytop-10.3' 'mariadb-10.3') | |
| pkgver=10.3.12 | |
| pkgrel=2 | |
| arch=('x86_64') | 
    sudo apt install mysql-client
	or
    sudo apt-get install mysql-client
; PHP's default character set is set to UTF-8.
Complete guide to go to hell and back. © @Lion 🔉
Install google-drive-ocamlfuse on Debian Jessie and later.
Source: https://github.com/astrada/google-drive-ocamlfuse/wiki/How-to-install-from-source-on-Debian-Jessie
| #!/bin/bash -e | |
| ### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved. | |
| ### Secure plesk clean installation with hostname certificate by Let's Encrypt | |
| export PYTHONWARNINGS="ignore:Non-standard path" | |
| LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"} | |
| HOSTNAME=$(hostname) | |
| # Use staging server for testing | |
| # --server https://acme-staging.api.letsencrypt.org/directory | 
| #!/bin/bash | |
| set -e | |
| # Usage: | |
| # rsync_parallel.sh [--parallel=N] [rsync args...] | |
| # | |
| # Options: | |
| # --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
| # | |
| # Notes: | 
On Tue Oct 27, 2015, history.state.gov began buckling under load, intermittently issuing 500 errors. Nginx's error log was sprinkled with the following errors:
2015/10/27 21:48:36 [crit] 2475#0: accept4() failed (24: Too many open files) 2015/10/27 21:48:36 [alert] 2475#0: *7163915 socket() failed (24: Too many open files) while connecting to upstream...
An article at http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ provided directions that mostly worked. Below are the steps we followed. The steps that diverged from the article's directions are marked with an *.
su to run ulimit on the nginx account, use ps aux | grep nginx to locate nginx's process IDs. Then query each process's file handle limits using cat /proc/pid/limits (where pid is the process id retrieved from ps). (Note: sudo may be necessary on your system for the cat command here, depending on your system.)fs.file-max = 70000 to /etc/sysctl.conf| #!/bin/bash | |
| # Setup Debian PXEinstall environment | |
| export MYIP=10.66.6.1 # TODO: Setup this | |
| export MYINTERFACE=$(netstat -ie | grep -B1 "$MYIP" | head -n1 | awk '{print $1}') | |
| if [ -z "$MYINTERFACE" ] | |
| then | |
| echo "Setup ip $MYIP first" |