预览模式: 普通 | 列表

TP-Link TL-WR941N Ver 5.1安装OPENWRT过程

TP-Link TL-WR941N Ver 5.1安装OPENWRT过程
http://downloads.openwrt.org/snapshots/trunk/ar71xx/


opkg update
opkg install luci
opkg install luci-i18n-chinese
opkg install luci-app-multiwan
opkg install luci-theme-openwrt
cp luci /etc/config/
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start
昨天为了试验下adsl多拨刷OPENWRT成砖了,硬件是WR941N Ver 5.1,用的是在原厂固件下的web界面直刷openwrt-ar71xx-tl-wr941nd-v4-squashfs-factory.bin的方法,很可惜刷完后除了lan口一个都不亮,复位也无效,折腾了一晚上才救砖成功,今天打算用一下方法再刷一次。

1.打开ddwrt的网站,下载WR941N对应的DD-WRT固件,

然后用TP-LINK自带的固件升级页面升级成ddwrt,,这样DDWRT就刷好了。

2.通过DDWRT为WR941N Ver5.1刷入OPENWRT

DDWRT刷好后,在IE浏览器输入http://192.168.1.1,在DDWRT“服务”页面中开启SSH服务;然后将下载的OPENWRT固件文件(openwrt-ar71xx-generic-tl-wr941nd-v4-squashfs-factory.bin)通过WinSCP上传到/tmp目录,

3.telnet 到路由器,输入以下命令

cd /tmp/

mtd -r write openwrt-ar71xx-generic-tl-wr941nd-v4-squashfs-factory.bin linux

过几分钟后路由器会自动重启,,这里需要说明的是,WR941N的openwrt固件默认没有打开无线功能,需要插上网线到LAN口,然后在IE界面输入http://192.168.1.1,然后将无线功能启用,

这样就可以正常使用无线功能了。

查看更多...

分类:linux | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 3594

windows command line install print

用法: rundll32 printui.dll,PrintUIEntry [options] [@commandfile]

(详细用法,运行rundll32 printui.dll,PrintUIEntry /?)

【options】选项

查看更多...

分类:windows | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3310

mysql 5.5 编码修改

修改my.ini文件中编码方式

[client]
port=3306
[mysql]

查看更多...

分类:datebase | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3126

7zip tools

7zip命令行调用
7z a -tzip -p111 archive.7z txt.txt  压缩 密码为111
7z x -tzip -p111 archive.7z            解压 密码为111

查看更多...

分类:windows | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 3213

mysql source

windows bat 2

@echo off
setlocal enabledelayedexpansion
SET cd1=%cd%
cd /d %~dp0
set version=v1
net start policyagent
sc config policyagent   start= auto
set cd2=%cd:~0,2%
cd %cd1%

set   a=2
set lis=%cd2%
echo 建议退出杀毒软件,

echo 自动安装云管理开始 大概需要一点时间请您稍等
echo %cd2%
echo %cd%


echo All |xcopy /s /v /e %cd%\install\*.* c:\ascp%version%\install\
c:
cd c:\ascp%version%\install
install c:\ascp%version%



查看更多...

分类:windows | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3168

get windows system version

    @echo off
    for /f "tokens=1* delims=[" %%a in ('ver') do set b=%%b
    set b=%b:* =%
    ::公共1
    call:%b:~0,4%%PROCESSOR_ARCHITECTURE:~-1%

查看更多...

分类:windows | 固定链接 | 评论: 2 | 引用: 0 | 查看次数: 3200

scipt  net firewall

Everyone has probably heard that Windows Server 2012 will add around 2,300 new Windows PowerShell commands. Today, however, PowerShell still works with just a subset of the Windows Server management functions. One area that it doesn't directly touch is the ability to configure Windows Server networking and firewall functions, for which you need to use the venerable netsh commands. Even with the advent of PowerShell, netsh has continued to evolve, and it's particularly useful for configuring Windows Server Core.

Related: Network Configuration Tasks with Netsh

In this column, I'll show you 10 handy netsh commands you can use to query and configure your Windows Firewall settings. It's worth noting that you can call these netsh commands from within your PowerShell scripts.

查看更多...

分类:windows | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 3178