<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Android/Linux的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/kangear</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; kangear]]></copyright><item><title><![CDATA[MacBook（M1）上安装Ubuntu虚拟机]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/131400516</link><guid>https://blog.youkuaiyun.com/kangear/article/details/131400516</guid><author>kangear</author><pubDate>Mon, 26 Jun 2023 16:39:08 +0800</pubDate><description><![CDATA[本人介绍了在M1版本的Mac上如何安装Ubuntu虚拟机。]]></description><category></category></item><item><title><![CDATA[查看打印机支持的语言（1284DeviceID）sudo /usr/lib/cups/backend/usb]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/131397201</link><guid>https://blog.youkuaiyun.com/kangear/article/details/131397201</guid><author>kangear</author><pubDate>Mon, 26 Jun 2023 14:47:35 +0800</pubDate><description><![CDATA[好多年不弄，您猜怎么着，忘了叫一干净。现在写下来永远留存，好记性不如赖笔头。]]></description><category></category></item><item><title><![CDATA[手机当作电脑无线摄像头]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/120250666</link><guid>https://blog.youkuaiyun.com/kangear/article/details/120250666</guid><author>kangear</author><pubDate>Sun, 12 Sep 2021 14:58:50 +0800</pubDate><description><![CDATA[手机当作电脑无线摄像头
前言
为什么会有这个需求，因为在录制视频时，需要展示一些实物，就需要使用摄像头来展示。但是购买的USB摄像头还不如旧手机像素高。不如把旧手机利用起来，然后就开始搜索手机当作电脑无线摄像头。找到了下列软件，我最终使用的是iVCam，因为没有付费，视频上会有水印，但是问题不是太大。关于为什么必须是“无线”，因为有线形式电脑和手机其实自带了PTP协议，手机插入到电脑上可以直接当成电脑的有线摄像头，但是并不好用。而目前无线的速度也比较快，使用无线可以让手机不用线连着电脑。




Softw]]></description><category></category></item><item><title><![CDATA[Android Studio打开旧工程的正确姿势]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117879379</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117879379</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 15:59:52 +0800</pubDate><description><![CDATA[Android Studio打开旧工程的正确姿势
Andriod Studio发展比较快，现在一般使用3.6.3的com.android.tools.build:gradle。如果打开一些2.x.x版本的会报各种错误。比如识别不了google()方法，比如能编译但是不能自动安装。你可能会问为什么要打开一些旧工程呢？Github上的一个sdk大部分都是2.x.x，甚至一些大厂出的sdk也是这样，你要使用sdk看demo的时候就必须要下载打开旧工程了。这是没有办法。Android Studio没有像Office]]></description><category></category></item><item><title><![CDATA[ubuntu 18.04 nginx日志中记录请求体和响应体]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117879323</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117879323</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 15:57:57 +0800</pubDate><description><![CDATA[ubuntu 18.04 nginx日志中记录请求体和响应体
安装lua模块
sudo apt-get install nginx-plus-module-lua

设置一个全局格式
# /etc/nginx/nginx.conf
log_format json_combined escape=json
  '{'
    '"t":"$time_local",'
    '"remote_addr":"$remote_addr",'
   # '"remote_user":"$remote_user",']]></description><category></category></item><item><title><![CDATA[MacBook 升级成10.15.3之后，CC2015上之前能正常使用的插件失败了]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117879212</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117879212</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 15:54:55 +0800</pubDate><description><![CDATA[系统版本：10.15.3
PS版本：CC2015
问题：升级成10.15.3之后，CC2015上之前能正常使用的插件失败了。
The plugin crema is incompatible with this version of generator-core. generator-core version: 3.4.0, plugin compatibility: ~3.5
安装CC 2018出现：
APP开发者需要更新此APP以使其在这个版本的macOS下正常工作。请联系开发者了解更多信息。

经过搜]]></description><category></category></item><item><title><![CDATA[MacBook M1之我见]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117878094</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117878094</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 15:45:11 +0800</pubDate><description><![CDATA[MacBook M1安装常用软件
同事用上了M1的MacBook，让我帮其装常用软件，我装了Sketch``Photoshop``After Effect``Office，感觉没有什么难度。
下面蹭热度从我的角度聊聊M1芯片，当然它是一个ARM芯片，也就是和手机一个架构的的CPU，其实在Linux世界几年前就有类似M1的方案，比如各种能跑Ubuntu系统的Pi。
不过很一直是极客的玩物，比如做一个家用磁盘，做一个浇水小玩意儿，简易的PC。而Apple一旦做这种事，是直接面向消费者的，直接越过极客的玩物到消费]]></description><category></category></item><item><title><![CDATA[Ubuntu 18.04 安装eclipse CDT]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117877933</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117877933</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 15:18:08 +0800</pubDate><description><![CDATA[按照网上执行这个
sudo apt install eclipse eclipse-cdt

会报这个
log file.....
!SESSION Fri Aug 16 14:39:20 IST 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-08-16 14:39:20.065
!MESSAGE Exception launching the Eclipse Plat]]></description><category></category></item><item><title><![CDATA[replaceOkHttpClient过时，改用setOkHttpClientFactory]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117877263</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117877263</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 14:55:12 +0800</pubDate><description><![CDATA[标题同样可以起《React Native如何优雅的进行http请求》，要进行http请求免不了需要公共参数，token，cookie。但是如果在原生部分已经实现此功能了，在RN中需要再次实现就会比较麻烦，且会造成维护困难。所以需要网络请求如果能在Native层汇合，由Native层统一管理公共参数，token，cookie等等。会让RN的业务写起来非常方便。
通过关键词React Native custon okhttp能搜索到一些资料，比如0.43版本之前使用replaceOkHttpClient方法进行]]></description><category></category></item><item><title><![CDATA[TypeError: null is not an object evaluating _rngesturehandlerModule.default.direction]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117877238</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117877238</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 14:53:51 +0800</pubDate><description><![CDATA[TypeError: null is not an object ( evaluating ‘RNGestureHandlerModule.default.Direction’)
在做React Native时遇到这个错误，然后把代码回退到没有此问题的版本，也还是有此问题，比较怪异。通过大局观来看问题应该类似缓存引起的。手机卸载最近装的测试程序，重启，然后就恢复正常了，具体哪一步使得变好了，暂时不清楚。

...]]></description><category></category></item><item><title><![CDATA[Android 6.0 ROM(angler-mtc20l-factory-b7864fdb) 刷机]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117877140</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117877140</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 14:51:06 +0800</pubDate><description><![CDATA[Android 6.0 ROM(angler-mtc20l-factory-b7864fdb) 刷机
采用过高版本的fastboot和过低版本都会报错，采用platform-tools_r23-linux版本可以正常刷机。

]]></description><category></category></item><item><title><![CDATA[Ubuntu上编译ARM程序]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117877023</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117877023</guid><author>kangear</author><pubDate>Sun, 13 Jun 2021 14:47:30 +0800</pubDate><description><![CDATA[Ubuntu上编译ARM程序
前言
MacBook都直接采用arm架构的m1芯片了，arm越来越强大了。其实还能给嵌入式Linux开发者带来好处，虽然好处不是直接的。
Ubuntu的源上已经支持多架构，通俗讲就是可以在x86电脑上装上armhf的所有库文件。如果想把x86的程序编译成arm版本的，只需要将gcc改成arm-linux-gnueabihf-gcc就可以实现了。
步骤
sudo dpkg --add-architecture armhf

修改软件源/etc/apt/sources.list
将]]></description><category></category></item><item><title><![CDATA[ERROR: There are no scenarios； must have at least one.]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/117080151</link><guid>https://blog.youkuaiyun.com/kangear/article/details/117080151</guid><author>kangear</author><pubDate>Thu, 20 May 2021 16:02:20 +0800</pubDate><description><![CDATA[系统：
Ubuntu 18.04

解决方案
You’ve got the wrong yarn. The yarn you’re executing comes from the cmdtest package. Uninstalling cmdtest first should fix this:
sudo apt remove cmdtest

Once you’ve uninstalled it, run the commands below to install yarn properly:
cu]]></description><category></category></item><item><title><![CDATA[Xcode假死打不开解决方案－删除配置文件]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/114759428</link><guid>https://blog.youkuaiyun.com/kangear/article/details/114759428</guid><author>kangear</author><pubDate>Sat, 13 Mar 2021 19:36:25 +0800</pubDate><description><![CDATA[Xcode假死打不开解决方案－删除配置文件
rm -rf $HOME/Library/Application Support/Developer/Shared/Xcode
rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
rm -rf $HOME/Library/Developer/Xcode


]]></description><category></category></item><item><title><![CDATA[ECS上跑docker磁盘被占满]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/113858405</link><guid>https://blog.youkuaiyun.com/kangear/article/details/113858405</guid><author>kangear</author><pubDate>Fri, 19 Feb 2021 10:18:54 +0800</pubDate><description><![CDATA[ECS上跑了几个docker容器，40G硬盘被占满了，使用以下命令清除也解决不了
docker system prune -a &amp;&amp; docker volume prune

根据这里的https://stackoverflow.com/a/55587497/2193455的提示，找到是日志文件过大的原因。
I had this issue… It was the log that was huge. Logs are here :
/var/lib/docker/containers/&l]]></description><category></category></item><item><title><![CDATA[Git三大件高级用法]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/112977834</link><guid>https://blog.youkuaiyun.com/kangear/article/details/112977834</guid><author>kangear</author><pubDate>Fri, 22 Jan 2021 09:47:36 +0800</pubDate><description><![CDATA[clone
之前
git clone xxxx.git

之后
git clone --recurse-submodules xxxx.git

区别：将子模块也同步clone下来。
来源：https://stackoverflow.com/a/3797061/2193455
pull
git pull origin master

merge
git fetch --tags origin
git merge v2.2.88

add
没有不同之处；
commit
没有不同之处；
push
之前
git ]]></description><category></category></item><item><title><![CDATA[Nginx实现版本控制]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/110390779</link><guid>https://blog.youkuaiyun.com/kangear/article/details/110390779</guid><author>kangear</author><pubDate>Mon, 30 Nov 2020 16:12:34 +0800</pubDate><description><![CDATA[尝试按照https://blog.youkuaiyun.com/liuxiao723846/article/details/54925328这里的方法进行无感知版本升级，如下：
location / {
        root    html;
        index   index.html index.htm index.php;
        proxy_redirect      off;
        proxy_set_header    X-Forwarded-For $proxy_add_x_]]></description><category></category></item><item><title><![CDATA[letsencrypt遇到Validations for new domains are disabled in the V1 API]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/109929352</link><guid>https://blog.youkuaiyun.com/kangear/article/details/109929352</guid><author>kangear</author><pubDate>Sun, 22 Nov 2020 11:58:22 +0800</pubDate><description><![CDATA[letsencrypt遇到Validations for new domains are disabled in the V1 API
$ sudo letsencrypt certonly --webroot -w /var/www/html -d example.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Start]]></description><category></category></item><item><title><![CDATA[Ubuntu 18.04安装docker]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/109733016</link><guid>https://blog.youkuaiyun.com/kangear/article/details/109733016</guid><author>kangear</author><pubDate>Mon, 16 Nov 2020 23:58:44 +0800</pubDate><description><![CDATA[sudo apt-get remove docker docker-engine docker.io containerd runc

sudo apt-get update

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
    
curl -fsSL https://download.doc]]></description><category></category></item><item><title><![CDATA[The “https://packagist.org/packages.json“ file could not be downloaded]]></title><link>https://blog.youkuaiyun.com/kangear/article/details/109732706</link><guid>https://blog.youkuaiyun.com/kangear/article/details/109732706</guid><author>kangear</author><pubDate>Mon, 16 Nov 2020 23:26:08 +0800</pubDate><description><![CDATA[The “https://packagist.org/packages.json” file could not be downloaded
$ sudo composer create-project xxxxx xxxxx

                                                                                                   
  [Composer\Downloader\TransportException]]></description><category></category></item></channel></rss>