Openwrt版本为Chaos Calmer 15.05.1
准备工作:
刷好以后wifi默认没有启用,使用网线连接lan口 进入http://192.168.1.1 用户名root密码为空 然后更改root密码并打开ssh登录后续操作均使用ssh连接后操作
在安装包之前请先执行
opkg update
开启5G
opkg install kmod-mt76
安装后重启路由器web界面就会出现5g配置,已知bug:无法使用auto频道。
配置samba共享
安装所需包
opkg install kmod-usb-storage kmod-fs-ext4 kmod-fs-ntfs kmod-fs-hfs kmod-fs-hfsplus samba36-server挂载硬盘
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
samba配置文件
config samba
option homes '1'
option workgroup 'WORKGROUP'
option name 'NasServer'
option description 'NasServer Share'
config sambashare
option name 'nas'
option read_only 'no'
option path '/mnt/sda1'
option guest_ok 'yes
开机自动挂载
cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
/bin/mount /dev/sda1 /mnt/sda1
exit 0
pptp nat穿透
opkg install kmod-nf-nathelper-extra
评论已关闭