"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets
Create a new Debian 8 droplet and login as root
:
# Description: How to assign VPC addresses to Docker containers associated as secondary IP addresses to an ENI in AWS | |
# Operating System: Amazon Linux AMI 2016.09.1 (HVM) | |
# Prerequisites: | |
# - Assign N number of secondary IP addresses to network interface on Docker host | |
# - Each new container requires additional assignment of secondary IP addresses | |
# - Containers can be launched with --net=none to avoid adding a Docker networked NIC (docker run --net=none -d imageId) | |
# Credit to https://github.com/jpetazzo/pipework for steps on linking IP address | |
################# Setup Bridge of eth0 ###################### | |
yum install bridge-utils -y |
#!/bin/bash | |
/usr/sbin/service aria2 stop | |
list=`wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt|awk NF|sed ":a;N;s/\n/,/g;ta"` | |
if [ -z "`grep "bt-tracker" /root/.aria2/aria2.conf`" ]; then | |
sed -i '$a bt-tracker='${list} /root/.aria2/aria2.conf | |
echo add...... | |
else | |
sed -i "s@bt-tracker.*@bt-tracker=$list@g" /root/.aria2/aria2.conf | |
echo update...... | |
fi |
#!/bin/bash | |
echo ". {" > Corefile | |
echo " forward . 208.67.222.222:443 208.67.222.222:5353 208.67.220.220:443 208.67.220.220:5353 tls://1.0.0.1 tls://8.8.8.8 tls://8.8.4.4 {" >> Corefile | |
china=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/accelerated-domains.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
apple=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/apple.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
google=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/google.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
echo " except $china $apple $google" >> Corefile | |
echo " }" >> Corefile | |
echo " proxy . 116.228.111.118 180.168.255.18" >> Corefile | |
echo " log" >> Corefile |
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf | |
ExecReload=/usr/bin/supervisorctl reload | |
ExecStop=/usr/bin/supervisorctl shutdown |