Openwrt资料

我要定一款比较全能的路由功能实现

1、挂无线网卡
2、能接USB打印机,让无网络功能的喷墨打印机实现网络打印
3、接USB挂硬盘,可以通过DLNA服务,让电视和网络播放器、手机能共享硬盘的资料
4、翻墙是必须的,很多资料baidu根本无法满足
5、安装Nginx+php+mysql ==>详细
6、路由基本功能要:qos、防火墙
7、为了让更多人无线接入,无线网络另外采用开放式无线设备做接入点(中兴改的UBNT带128M内存和TOTOLINK A2004NS)

主板选用必须要有千兆口
官网下载好IMG然后u盘启动,用img写入工具,写入装好的512M电子盘。

装一些组件,
opkg install kmod-usb-core
opkg install kmod-usb-ohci          #安装usb ohci控制器驱动
#opkg install kmod-usb-uhci     #UHCI USB控制器
opkg install kmod-usb2                #安装usb2.0
opkg install kmod-usb-storage     #安装usb存储设备驱动
opkg install kmod-fs-ext4              #安装ext4分区格式支持组件
opkg install libext2fs #安装分区格式支持组件
opkg install mount-utils                #挂载卸载工具
opkg install ntfs-3g                      #挂载NTFS
opkg install kmod-fs-vfat              #挂载FAT
opkg install usbutils #安装了这个后可以用 lsusb

挂载用到挂载Swap分区
###在/mnt/sda1/下创建一个64M的交换文件
dd if=/dev/zero of=/mnt/sda1/swapfile bs=1024 count=62142
###将这个交换文件用作Swap分区
mkswap /mnt/sda1/swapfile
###启用活动分区
swapon /mnt/sda1/swapfile

###停止
swapoff /mnt/sda1/swapfile
/etc/fstab文件加一行,好让开机时自动启动swap分区及文件:
/mnt/sda1/swapfile swap swap defaults 0 0 (开机时启动此swap文件)

openwrt 格盘

opkg update

opkg install e2fsprogs #安装格盘软件

mkfs.ext4 /dev/sda1 #格etx4

mkfs.ext3 /dev/sda1 #格etx3

mkfs.ext2 /dev/sda1 #格etx2

挂载windows共享文件 cifs

opkg install kmod-nls-utf8
opkg install kmod-fs-cifs

mkdir /mnt/share
mount -t cifs //192.168.1.2/tool /mnt/share -o username=administrator,password=123456,,nounix,noserverino,iocharset=utf8

2014年10-26第一篇。待续。。。。

内核源更新,原来的
src/gz barrier_breaker http://downloads.openwrt.org/snapshots/trunk/x86/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
(3.10.49)换为:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/luci
src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/packages
src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/telephony
src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/management
src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/x86/generic/packages/oldpackages

=========================
src/gz barrier_breaker_base http://downloads.openwrt.org/snapshots/trunk/x86/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/snapshots/trunk/x86/packages/luci
src/gz barrier_breaker_packages http://downloads.openwrt.org/snapshots/trunk/x86/packages/packages
src/gz barrier_breaker_routing http://downloads.openwrt.org/snapshots/trunk/x86/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/snapshots/trunk/x86/packages/telephony
src/gz barrier_breaker_management http://downloads.openwrt.org/snapshots/trunk/x86/packages/management
#src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/snapshots/trunk/x86/packages/oldpackages
2014年11-25第一篇。待续。。。。

去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

正在跳转到PayPal...

未经允许不得转载:飞翔线 » Openwrt资料