uweb/tags/pc/index.xml

59 lines
4.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>PC on </title>
<link>https://jamesfengcao.gitee.io/uweb/tags/pc/</link>
<description>Recent content in PC on </description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://jamesfengcao.gitee.io/uweb/tags/pc/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>浏览器一键控制台式机/服务器下载资源</title>
<link>https://jamesfengcao.gitee.io/uweb/pcdown/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uweb/pcdown/</guid>
<description>技巧等级:高级
小孩要听英文有声书“The lying games”国内服务器没一个能下的最后还是在手机上用seedr秒下。但seedr的登录要用google人机交互确认用过代理、tunnel至手机等方法台式机死活登录不上。下面言归正传讲一下超微浏览器直接下载资源至台式机的方法
手机需安装uweb定制Termux并在termux下安装openssl在Termux窗口下依次敲入如下命令
apt update
apt upgrade
apt install openssl
脚本pcdownload内容如下(可放置在任意应用内部目录下并相应修改default.longclick配置中文件路径)
#!/data/data/com.termux/files/usr/bin/sh
ssh [user:password]@192.168.2.102 &amp;quot;DISPLAY=:0 firefox \&amp;quot;$1\&amp;quot;&amp;quot;
脚本需设置为可执行Termux下执行命令:
chmod 755 /data/data/com.termux/files/usr/bin/pcdownload
这里假定用户已经在台式机上设好ssh服务台式机IP地址为192.168.2.102准备用firefox下载。如果下载工具不是图形程序则上述脚本中可删去“DISPLAY=:0”。
配置文件/sdcard/uweb/default.longclick如下
PCdown:/data/data/com.termux/files/usr/bin/pcdownload
重启超微浏览器,点击链接下载时会弹出菜单,选择&amp;quot;PCdown&amp;quot;台式机会启动firefox下载手机指定文档。
可能大家有疑问,台式机无法登录,为什么手机可以登录?这是因为手机上应用多哈。</description>
</item>
<item>
<title>笔记及手机复制文本至PC剪贴板</title>
<link>https://jamesfengcao.gitee.io/uweb/pccopy/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uweb/pccopy/</guid>
<description>技巧等级:笔记(中级) PC剪贴板(高级)
手机需安装uweb定制Termux。如使用剪贴板功能termux还需安装openssl。
配置/sdcard/uweb/default.select如下
笔记::(cat;echo;echo;)notes.txt 富文本笔记:html:(cat;echo &#39;&amp;lt;p&amp;lt;/p&#39;;echo;)notes.html 命名笔记:(cat;echo;echo;)%s 复制至PC剪贴板::ssh [user:password]@192.168.2.102 &#34;DISPLAY=:0 xsel -i&#34; 复制富文本至PC剪贴板:html:ssh [user:password]@192.168.2.102 &#34;DISPLAY=:0 xsel -i&#34; 此处假定远程PC的IP地址为192.168.2.102PC已经开通了ssh服务。建议用户配置ssh服务为免密码登录此时用户无需将密码写入文件default.select。用户PC上安装有xsel剪贴板工具。使用其它工具请酌情修改。
重启浏览器,长按“书签”按钮,将弹出菜单。若用户当前窗口并无选中文本,则选取整个页面作相应操作,否则以选中文本为准。
采用以上配置,笔记将储存在/sdcard/uweb目录下文件note.txt或note.html中富文本。命名笔记储存文件则由用户在地址栏输入框内指定。
手机其它应用中的文本可选中后分享给超微浏览器再由超微浏览器作笔记或进一步分享给PC。如果其它应用无法分享选中文本这种情况可以先复制文本至剪贴板。
[在超微浏览器中长按并在新窗口打开此链接](data:text/html;charset=utf-8,&amp;lt;body contenteditable%3E)然后点击窗口并粘贴文本。长按书签按钮选择适当功能即可复制至PC剪贴板。
通过新窗口打开上述链接,超微浏览器因此亦可用作简单的文本/html编辑器。用户可通过“命名笔记”存为地址栏输入框指定文件。
Windows PC 对Windows PC而言vista及以后自带clip.exe此时配置如下
复制文本至PC剪贴板::ssh [user:password]@192.168.2.102 clip.exe
其它推荐工具(读取PC剪贴板)
pclip</description>
</item>
</channel>
</rss>