-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
155 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,9 @@ category: | |
- 笔记 | ||
tag: | ||
- 介绍 | ||
title: Hello World | ||
--- | ||
|
||
# Hello World | ||
|
||
此博客用来记录学习的笔记和~~快乐的~~debug过程 | ||
|
||
正在持续更新中... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
--- | ||
date: 2023-09-16 | ||
category: | ||
- 瞎折腾 | ||
tag: | ||
- 远程开发 | ||
- 平板玩法 | ||
title: 平板+Windows实现远程唤醒+远程桌面 | ||
--- | ||
|
||
众所周知,游戏本性能很好,但是重量很大,且很容易没有电,所以每次出门都需要带上电脑和适配器,再加上其他东西,每天都要背个快5公斤的包做负重训练 | ||
|
||
这时候,就体现出平板加远程桌面的优势了 | ||
|
||
## 远程桌面 | ||
|
||
这个还是比较好实现的,用微软官方的Remote Desktop(在app store中貌似叫Remote Desktop Client)即可,直接去play商店下载就可以了,或者手机或者平板自带的应用商店也可以(一般都有,不排除二般情况,应用商店没且play商店访问不了可以试一试图中在“在更多设备安装”按钮下的的其他商店里找一找) | ||
|
||
![](./img/remoteDesktopPlay.jpg) | ||
|
||
与此同时我们先进行Windows的设置,进入设置->系统->远程桌面,将远程桌面打开即可 | ||
|
||
Remote Desktop下载好以后打开,点击新建 | ||
|
||
![](./img/add.jpg) | ||
|
||
然后输入的电脑的ip即可,如果不清楚,可以打开cmd(Win+R),输入`ipconfig`,找到你上网使用的网卡,IPv4地址即为电脑内网ip,保存即可 | ||
|
||
好了现在可以远程了,但是问题出来了,在宿舍我貌似不需要这个,我需要在校园里使用,这时候就需要修改路由器的设置 | ||
|
||
以水星路由器为例,使用ip或者melogin.cn进入后台管理,进入高级设置->网络参数->IP与Mac绑定,找到你电脑的ip点击绑定即可 | ||
|
||
![](./img/ipandmac.jpg) | ||
|
||
点击高级设置->高级用户->虚拟服务器->添加,内部端口为3389,ip地址为电脑ip,外部端口随意,找一个自己好记的就行 | ||
|
||
![](./img/xunifuwuqi.jpg) | ||
|
||
再回到网络设置->WAN口参数->基本设置中的IP地址即为学校内网IP,也可以在学校认证界面查看,这个IP地址可能会变化,不过周期很长 | ||
|
||
再次回到Remote Desktop进行连接即可,不过这次的IP地址需要为学校的内网IP加上你设置的外部端口号,例如`10.12.0.22:3384`,这样就可以了 | ||
|
||
现在我可以抱着板子在学校任意一个地方连接我的电脑了,当然从理论上讲,配置一下路由器的ddns我还可以从外网访问,不过免费的版本体验可能会不如ToDesk,这是其一,最重要的还是水星的这个ddns我一直没有给配成功,等我在摸索摸索,总之感觉~~水星加上花生壳等于一坨谢特~~ | ||
|
||
下来又有一个问题,如果人不在寝室,电脑还没开机,那不是更完蛋了,总不至于为了用电脑再跑回宿舍吧 | ||
|
||
## 远程唤醒 | ||
|
||
这个远程唤醒我可谓是踩了一万个坑,感觉该遇上和不该遇上的都让我遇上了,先说下过程吧 | ||
|
||
首先说下,远程唤醒只支持有线网络连接,没有网线的就不要再折腾了 | ||
|
||
过程很简单,首先,去到BIOS里,因为版本不一样会有好多叫法,这里就说下找什么,找带有 | ||
``` | ||
WAKE ON LAN | ||
BOOT ON LAN | ||
WAKE UP BY PCI-E | ||
...... | ||
``` | ||
字样的就可以 | ||
|
||
总之就是,~~看见带个唤醒的就给他开开~~(看清楚再开,大致意思是通过网络或者PCI-E唤醒的之类的就开开,开错了不背锅奥) | ||
|
||
以我的机械革命为例吧,把Advanced中有个WAKE ON LAN选线,以及在BOOT中有个BOOT ON LAN选项(这个不确定用不用开,太懒了没去试,但是后来在解决其他问题的时候发现有帖子会说把他开开)都设置为Enable就行了 | ||
|
||
然后进到Windows中,打开设备管理器(右键此电脑就有,找不到就直接进设置搜索) | ||
|
||
找到你的有线网卡,双击打开属性(或者右键,点击属性),点击上方的高级,将`关机 网络唤醒`和`魔术封包唤醒`的值都设置为开启 | ||
|
||
![](./img/advanced.jpg) | ||
|
||
然后点击,电源管理,把三个全勾上(没有电源管理怎么办,别急,在下边的[踩坑点](https://zekee.top/posts/remote/remoteSet.html#踩过的坑)中有解决办法) | ||
|
||
![](./img/batterySetting.jpg) | ||
|
||
至此为止,你理论上就可以进行远程开机了 | ||
|
||
下边我们来进行测试 | ||
|
||
每次开关机测试很麻烦,我们不如直接检测一下电脑是否收到封包,这里就用到[WakeOnLan](https://wwro.lanzouq.com/i1pQK18t96sh)这个软件(密码asdb) | ||
|
||
> 这个软件是来自[DCchen](https://www.zhihu.com/people/1565710276)写的文章[「系统」使用网络唤醒计算机](https://zhuanlan.zhihu.com/p/130717144)中提到的,如果这篇文章的链接失效了,可以去这篇文章中下载 | ||
安装WakeOnLan,完成后打开,点击封包监控诊断工具 | ||
|
||
![](./img/wol.jpg) | ||
|
||
在此界面即可 | ||
|
||
![](./img/wolwatch.jpg) | ||
|
||
接下来去移动设备上安装一个远程唤醒软件,这里我用的是[WolOn - Wake on LAN Widgets](https://play.google.com/store/apps/details?id=com.bitklog.wolon&hl=zh-cn) | ||
|
||
![](./img/wolon.jpg) | ||
|
||
打开之后点击右下的加号,从上往下第一个为从局域网外唤醒,第二个为从局域网内唤醒 | ||
|
||
![](./img/wolstart.jpg) | ||
|
||
我们先从局域网内看起 | ||
|
||
![](./img/wolonlanconfig.jpg) | ||
|
||
有了之前配置远程桌面的经验,这些东西不难拿到,这个网关地址不确定的话就在填写完IP地址后点击网关输入框右边的一个不知道是什么的小图标,他就会帮你填上,完成后点击save即可,剩下的都不要配置 | ||
|
||
然后我们就可以开始测试了 | ||
|
||
点击主页中的配置,如果没有配置信息,看一下右上方你选择的是LAN还是WAN,LAN为局域网内,WAN为局域网外 | ||
|
||
直接点击配置项就可向电脑发送开机信号,这时再回到封包监控诊断工具,如果此时工具中显示出收到好多封包,那么恭喜你,你目前已经理论上成功了,如果没有,这时候你就要查一下你电脑的IP地址是否变化了,然后你可以关机进行下测试了,如果正常开机,那么恭喜你,你彻彻底底的成功了,如果不能正常开机,你可以看下下边的踩坑点中是否有你的情况。 | ||
|
||
之后我们就可以进行局域网外的配置了,同样的,先进入路由器管理界面,进入高级设置->高级用户->虚拟服务器->添加,内部端口为9,IP地址为你电脑地址,外部端口随意 | ||
|
||
![](./img/wolrouterconfig.jpg) | ||
|
||
然后就可以去平板上添加配置了,这次添加的是局域网外的配置,要选择最上边的选项 | ||
|
||
![](./img/wolwanconfig.jpg) | ||
|
||
这次的区别就是,IP地址这一栏填的是你在网络设置->WAN口参数->基本设置中的IP地址,端口为你设置的外部端口,完成后再用刚才的方法进行测试即可 | ||
|
||
> 从公网唤醒这块先挖个坑吧,什么时候我把水星这个ddns配置摸透了再说 | ||
做到这里,如果你没有任何问题,那么恭喜你,已经完成了配置了! | ||
|
||
### 踩过的坑 | ||
|
||
#### 没有电源管理 | ||
|
||
这个大概率是网卡驱动的问题,如果你的网卡驱动是从笔记本供应商的官网下载的并且还不支持,那么你就要考虑从网卡生产公司的官网上下载了 | ||
|
||
比如,机械革命的驱动,官网上下载下来的最新驱动没有电源管理,但是官网上也没有其他的网卡驱动了 | ||
|
||
我就去Realtek官网看了一下,发现官网给出的居然有两个版本,一个是不带电源管理的,这问题的根本原因找到了 | ||
|
||
![](./img/realtek.png) | ||
|
||
下载图中第二个驱动后问题解决! | ||
|
||
#### 能收到封包,但是无法正常开机 | ||
|
||
我遇到的这种情况,很离谱 | ||
|
||
最早的时候我不知道为什么把休眠给关了,就是这个操作,让我多花了两个小时去找为什么我的电脑还不能唤醒 | ||
|
||
这个问题也很好解决,以管理员身份打开powershell,输入`powercfg /h on`回车就好,不输出任何东西,代表成功开启休眠,然后这下就好了 | ||
|
||
当然,我再翻攻略的时候也说了要把电源选项中的用于快速启动给关闭,如果你不能正常启动,也可以看看这一项是否关闭 | ||
|
||
![](./img/controlsettings.jpg) |