- 开启ipv4转发
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
- 安装dnsmasq 和pdnsd解决dns污染
DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd
[Interface] | |
Address = 10.200.200.3/32 | |
PrivateKey = [Client's private key] | |
DNS = 8.8.8.8 | |
[Peer] | |
PublicKey = [Server's public key] | |
PresharedKey = [Pre-shared key, same for server and client] | |
Endpoint = [Server Addr:Server Port] | |
AllowedIPs = 0.0.0.0/0 |
[Unit] | |
Description=Record SSD smart status | |
Before=suspend.target | |
[Service] | |
Type=oneshot | |
ExecStart=/opt/scripts/ssd-monitor.sh | |
RemainAfterExit=no | |
[Install] |
#!/bin/bash | |
# | |
# extend second screen with different scaling | |
# | |
# Copyright (C) 2015 http://www.shuyz.com | |
# REF: 1. http://blog.jamiek.it/2015/04/manually-fixing-multiple-screens-with.html | |
# 2. https://bbs.archlinux.org/viewtopic.php?id=118999 | |
# 3. http://unix.stackexchange.com/questions/101809/how-can-i-automatically-update-my-monitor-layout-in-xfce |
background yes | |
use_xft yes | |
xftfont 123:size=6 | |
xftalpha 0.1 | |
update_interval 2 | |
total_run_times 0 | |
own_window yes | |
own_window_type normal | |
own_window_transparent yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
###安装
opkg install kmod-usb-serial kmod-usb-serial-pl2303
安装完成之后需要手动载入内核模块:
insmod usbserial
insmod pl2303
###Install
opkg install lighttpd lighttpd-mod-cgi
###Configgure
修改/etc/lighttpd/lighttpd.conf
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
改成static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".lua")
#!/bin/bash | |
export PATH=$PATH:/sbin | |
# Auto reconnect to specified WIFI access point if there is no internect connection | |
# Author: Lance | |
# Website: http://www.shuyz.com | |
# Last updated: 2013/05/25 | |
#your WIFI SSID here to be auto connect | |
SSID=ShuYZ |