2017年6月

lede的snmp配置文件

lede的snmp配置文件

agentaddress UDP:161
sysLocation office
sysContact bofh@example.com
sysName HeartOfGold
com2sec ro default public
com2sec rw localhost private
group public v1 ro
group public v2c ro
group public usm ro
group private v1 rw
group private v2c rw
group private usm rw
view all included .1
access public "" any noauth exact all none none
access private "" any noauth exact all all all
exec  filedescriptors /bin/cat /proc/sys/fs/file-nr

7620N 软件源

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay

src/gz 17.01_core http://downloads.pandorabox.com.cn/pandorabox/targets/ralink/mt7620/packages
src/gz 17.01_base http://downloads.pandorabox.com.cn/pandorabox/packages/mipsel_24kec_dsp/base
src/gz 17.01_lafite http://downloads.pandorabox.com.cn/pandorabox/packages/mipsel_24kec_dsp/lafite
src/gz 17.01_luci http://downloads.pandorabox.com.cn/pandorabox/packages/mipsel_24kec_dsp/luci
src/gz 17.01_mtkdrv http://downloads.pandorabox.com.cn/pandorabox/packages/mipsel_24kec_dsp/mtkdrv
src/gz 17.01_packages http://downloads.pandorabox.com.cn/pandorabox/packages/mipsel_24kec_dsp/packages

RASPBIAN配置无线网卡

编辑 /etc/wpa_supplicant/wpa_supplicant.conf 文件,添加:

network={
    ssid="无线网名称"
    psk="无线网密码"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    group=CCMP
    auth_alg=OPEN
}
  1. 自动获取ip地址,

编辑 /etc/network/interfaces文件,修改为

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
  1. 配置固定ip地址

编辑 /etc/network/interfaces文件,修改为

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
    ipaddr 192.168.1.100
    netmask 255.255.255.0
    gateway 192.168.1.1

Nginx下网页错位解决办法

最近遇到Nginx下网页错位,通过chrome的开发者工具发现这么一句话
Resource interpreted as Stylesheet but transferred with MIME type application/octet-stream:

解决办法也很简单,在配置文件中加入

include mime.types;

就行了,该文件内容如下


- 阅读剩余部分 -

Alpine 常见问题

wget https问题 , 解决方法

apk update && apk add ca-certificates && update-ca-certificates && apk add openssl

开发工具安装

apk add build-base && apk add alpine-sdk