-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
dbc1a05
commit 81072ba
Showing
7 changed files
with
989 additions
and
36 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -46,8 +46,8 @@ | |
<meta property="og:type" content="website"> | ||
|
||
<meta itemprop="name" content="CYRUS STUDIO"> | ||
<meta itemprop="datePublished" content="2024-08-30T03:55:54+08:00"> | ||
<meta itemprop="dateModified" content="2024-08-30T03:55:54+08:00"> | ||
<meta itemprop="datePublished" content="2024-09-01T12:39:32+08:00"> | ||
<meta itemprop="dateModified" content="2024-09-01T12:39:32+08:00"> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="CYRUS STUDIO"> | ||
|
||
|
@@ -149,17 +149,21 @@ <h1 class="flex-none"> | |
|
||
<div class="blah w-100"> | ||
<h1 class="f3 fw1 athelas mt0 lh-title"> | ||
<a href="/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/" class="color-inherit dim link"> | ||
Windows下创建FTP服务器,实现文件共享 | ||
<a href="/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/" class="color-inherit dim link"> | ||
编译LineageOS模拟器镜像,导出到AndroidStudio | ||
</a> | ||
</h1> | ||
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> | ||
版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/ | ||
创建FTP服务器 在【启用和关闭 Windows 功能】中选中【FTP服务】【IIS管理控制台】 应用更改完成后,重启电脑。 | ||
执行 ipconfig 命令查看当前电脑的ip,比如这里ip地址为 192.168.0.112 | ||
无线局域网适配器 WLAN:连接特定的 DNS 后缀 . . . . . . . :本地链接 IPv6 地址. . . . . . . . : fe80::74b9:ae56:5d90:79ff%6IPv4 地址 . . . . . . . . . . . . : 192.168.0.112子网掩码 . . . . . . . . . . . . : 255.255.255.0默认网关. . . . | ||
源码下载 LineageOS官网:https://lineageos.org/ LineageOS源码 github 地址:https://github.com/LineageOS/android LineageOS源码国内镜像地址:https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/ | ||
源码大概需要150GB的硬盘空间,编译完成差不多300G 1. 配置git git config --global user.email "[email protected]"git config --global user.name "Your Name" 2. 安装 repo mkdir ~/binPATH=~/bin:$PATHcurl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo 3. 安装 Git LFS sudo apt install git-lfsgit lfs install 4. 设置REPO_URL 找到 repo 所在路径 | ||
which repo 编辑 repo | ||
nano /home/cyrus/bin/repo 可以看到repo会优先取环境变量中的REPO_URL,否则默认使用googlesource | ||
Ctrl +X 退出nano | ||
通过下面的命令设置 REPO_URL 环境变量,设置为清华大学镜像源,解决国内访问不了 googlesource 问题 | ||
export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ 5. 下载源码 创建目录 | ||
</div> | ||
<a href="/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
<a href="/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
|
||
</div> | ||
</div> | ||
|
@@ -176,19 +180,17 @@ <h1 class="f3 fw1 athelas mt0 lh-title"> | |
|
||
<div class="blah w-100"> | ||
<h1 class="f3 fw1 athelas mt0 lh-title"> | ||
<a href="/blog/posts/magiskboot%E7%BC%96%E8%AF%91%E8%A7%A3%E5%8C%85%E6%89%93%E5%8C%85boot.img/" class="color-inherit dim link"> | ||
MagiskBoot编译&解包&打包boot.img | ||
<a href="/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/" class="color-inherit dim link"> | ||
Windows下创建FTP服务器,实现文件共享 | ||
</a> | ||
</h1> | ||
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> | ||
版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/ | ||
编译环境准备 1. Windows下启用开发者模式,因为需要 symbolic link 支持 2. 安装 python3.8+,并配置PATH环境变量 | ||
# 查看python版本信息py --version# 查看所有已安装的 Python 解释器路径py -0p 3. git 启用 symbolic links | ||
# 启用 symbolic linksgit config --global core.symlinks true# 查看 git 配置git config --global --list 4. 安装 Android Studio ,设置环境变量 ANDROID_HOME 为 Android SDK 文件夹的路径。该路径可以在 Android Studio 的设置中找到。 | ||
5. 下载 Magisk 源码 | ||
# 下载 Magisk 源码git clone --recurse-submodules https://github.com/topjohnwu/Magisk.git# 如果子模块克隆失败,可以手动克隆这些子模块。进入对应的子模块路径,然后执行以下命令git submodule update --init --recursive 6. | ||
创建FTP服务器 在【启用和关闭 Windows 功能】中选中【FTP服务】【IIS管理控制台】 应用更改完成后,重启电脑。 | ||
执行 ipconfig 命令查看当前电脑的ip,比如这里ip地址为 192.168.0.112 | ||
无线局域网适配器 WLAN:连接特定的 DNS 后缀 . . . . . . . :本地链接 IPv6 地址. . . . . . . . : fe80::74b9:ae56:5d90:79ff%6IPv4 地址 . . . . . . . . . . . . : 192.168.0.112子网掩码 . . . . . . . . . . . . : 255.255.255.0默认网关. . . . | ||
</div> | ||
<a href="/blog/posts/magiskboot%E7%BC%96%E8%AF%91%E8%A7%A3%E5%8C%85%E6%89%93%E5%8C%85boot.img/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
<a href="/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
|
||
</div> | ||
</div> | ||
|
@@ -205,19 +207,19 @@ <h1 class="f3 fw1 athelas mt0 lh-title"> | |
|
||
<div class="blah w-100"> | ||
<h1 class="f3 fw1 athelas mt0 lh-title"> | ||
<a href="/blog/posts/linux%E4%B8%8B%E4%BB%A3%E7%90%86%E8%AE%BE%E7%BD%AE/" class="color-inherit dim link"> | ||
Linux下代理设置 | ||
<a href="/blog/posts/magiskboot%E7%BC%96%E8%AF%91%E8%A7%A3%E5%8C%85%E6%89%93%E5%8C%85boot.img/" class="color-inherit dim link"> | ||
MagiskBoot编译&解包&打包boot.img | ||
</a> | ||
</h1> | ||
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> | ||
版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/ | ||
1. 下载安装clash-verge 下载 clash-verge https://github.com/clash-verge-rev/clash-verge-rev/releases | ||
我这边用的是 ubuntu22,下载 clash-verge_1.7.5_amd64.deb | ||
安装 clash-verge | ||
# 安装相关依赖sudo apt updatesudo apt install -fsudo apt install libayatana-appindicator3-1 libwebkit2gtk-4.0-37 libgtk-3-0# 安装clash-vergesudo dpkg -i clash-verge_1.7.5_amd64.deb# 卸载clash-vergesudo dpkg -r clash-verge# 启动 Clash Verge(nohup 命令可以让进程在后台运行,即使关闭终端也不会影响进程运行。)# nohup 会创建一个 nohup.out 文件来记录输出日志。nohup clash-verge & 2. 解决显示乱码问题 安装一些常见的字体包 | ||
sudo apt updatesudo apt install fonts-noto-cjk fonts-noto fonts-noto-core fonts-noto-ui-core fonts-wqy-zenhei 3. 导入订阅地址,开启代理 设置 关闭 IPV6 设置 勾选 系统代理 我这里科学上网使用的是魔戒,注册地址:https://mojie. | ||
编译环境准备 1. Windows下启用开发者模式,因为需要 symbolic link 支持 2. 安装 python3.8+,并配置PATH环境变量 | ||
# 查看python版本信息py --version# 查看所有已安装的 Python 解释器路径py -0p 3. git 启用 symbolic links | ||
# 启用 symbolic linksgit config --global core.symlinks true# 查看 git 配置git config --global --list 4. 安装 Android Studio ,设置环境变量 ANDROID_HOME 为 Android SDK 文件夹的路径。该路径可以在 Android Studio 的设置中找到。 | ||
5. 下载 Magisk 源码 | ||
# 下载 Magisk 源码git clone --recurse-submodules https://github.com/topjohnwu/Magisk.git# 如果子模块克隆失败,可以手动克隆这些子模块。进入对应的子模块路径,然后执行以下命令git submodule update --init --recursive 6. | ||
</div> | ||
<a href="/blog/posts/linux%E4%B8%8B%E4%BB%A3%E7%90%86%E8%AE%BE%E7%BD%AE/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
<a href="/blog/posts/magiskboot%E7%BC%96%E8%AF%91%E8%A7%A3%E5%8C%85%E6%89%93%E5%8C%85boot.img/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
|
||
</div> | ||
</div> | ||
|
@@ -233,6 +235,12 @@ <h1 class="f3 fw1 athelas mt0 lh-title"> | |
<h1 class="f3">More</h1> | ||
|
||
|
||
<h2 class="f5 fw4 mb4 dib mr3"> | ||
<a href="/blog/posts/linux%E4%B8%8B%E4%BB%A3%E7%90%86%E8%AE%BE%E7%BD%AE/" class="link black dim"> | ||
Linux下代理设置 | ||
</a> | ||
</h2> | ||
|
||
<h2 class="f5 fw4 mb4 dib mr3"> | ||
<a href="/blog/posts/%E8%8D%A3%E8%80%80magicbook-x14-%E6%89%A9%E5%AE%B91tb%E5%9B%BA%E6%80%81/" class="link black dim"> | ||
荣耀Magicbook x14 扩容1TB固态 | ||
|
@@ -251,12 +259,6 @@ <h2 class="f5 fw4 mb4 dib mr3"> | |
</a> | ||
</h2> | ||
|
||
<h2 class="f5 fw4 mb4 dib mr3"> | ||
<a href="/blog/posts/%E7%BC%96%E8%AF%91%E8%87%AA%E5%AE%9A%E4%B9%89linux%E5%86%85%E6%A0%B8%E4%BD%BFwsl%E6%94%AF%E6%8C%81%E8%AE%BF%E9%97%AEwindows%E4%B8%8Busb%E8%AE%BE%E5%A4%87/" class="link black dim"> | ||
编译自定义Linux内核,使WSL支持访问Windows下USB设备 | ||
</a> | ||
</h2> | ||
|
||
|
||
|
||
|
||
|
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 |
---|---|---|
|
@@ -6,8 +6,15 @@ | |
<description>Recent content on CYRUS STUDIO</description> | ||
<generator>Hugo</generator> | ||
<language>zh-CN</language> | ||
<lastBuildDate>Fri, 30 Aug 2024 03:55:54 +0800</lastBuildDate> | ||
<lastBuildDate>Sun, 01 Sep 2024 12:39:32 +0800</lastBuildDate> | ||
<atom:link href="https://cyrus-studio.github.io/blog/index.xml" rel="self" type="application/rss+xml" /> | ||
<item> | ||
<title>编译LineageOS模拟器镜像,导出到AndroidStudio</title> | ||
<link>https://cyrus-studio.github.io/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/</link> | ||
<pubDate>Sun, 01 Sep 2024 12:39:32 +0800</pubDate> | ||
<guid>https://cyrus-studio.github.io/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/</guid> | ||
<description>版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/
源码下载 LineageOS官网:https://lineageos.org/ LineageOS源码 github 地址:https://github.com/LineageOS/android LineageOS源码国内镜像地址:https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/
源码大概需要150GB的硬盘空间,编译完成差不多300G 1. 配置git git config --global user.email &#34;[email protected]&#34;
git config --global user.name &#34;Your Name&#34; 2. 安装 repo mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo &gt; ~/bin/repo
chmod a+x ~/bin/repo 3. 安装 Git LFS sudo apt install git-lfs
git lfs install 4. 设置REPO_URL 找到 repo 所在路径
which repo 编辑 repo
nano /home/cyrus/bin/repo 可以看到repo会优先取环境变量中的REPO_URL,否则默认使用googlesource
Ctrl +X 退出nano
通过下面的命令设置 REPO_URL 环境变量,设置为清华大学镜像源,解决国内访问不了 googlesource 问题
export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ 5. 下载源码 创建目录</description> | ||
</item> | ||
<item> | ||
<title>Windows下创建FTP服务器,实现文件共享</title> | ||
<link>https://cyrus-studio.github.io/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/</link> | ||
|
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 |
---|---|---|
|
@@ -46,8 +46,8 @@ | |
<meta property="og:type" content="website"> | ||
|
||
<meta itemprop="name" content="Posts"> | ||
<meta itemprop="datePublished" content="2024-08-30T03:55:54+08:00"> | ||
<meta itemprop="dateModified" content="2024-08-30T03:55:54+08:00"> | ||
<meta itemprop="datePublished" content="2024-09-01T12:39:32+08:00"> | ||
<meta itemprop="dateModified" content="2024-09-01T12:39:32+08:00"> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="Posts"> | ||
|
||
|
@@ -121,6 +121,31 @@ <h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title"> | |
<div class="relative w-100 w-30-l mb4 bg-white"> | ||
<div class="relative w-100 mb4 bg-white nested-copy-line-height"> | ||
<div class="bg-white mb3 pa4 gray overflow-hidden"> | ||
<span class="f6 db">Posts</span> | ||
<h1 class="f3 near-black"> | ||
<a href="/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/" class="link black dim"> | ||
编译LineageOS模拟器镜像,导出到AndroidStudio | ||
</a> | ||
</h1> | ||
<div class="nested-links f5 lh-copy nested-copy-line-height"> | ||
版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/ | ||
源码下载 LineageOS官网:https://lineageos.org/ LineageOS源码 github 地址:https://github.com/LineageOS/android LineageOS源码国内镜像地址:https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/ | ||
源码大概需要150GB的硬盘空间,编译完成差不多300G 1. 配置git git config --global user.email "[email protected]"git config --global user.name "Your Name" 2. 安装 repo mkdir ~/binPATH=~/bin:$PATHcurl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo 3. 安装 Git LFS sudo apt install git-lfsgit lfs install 4. 设置REPO_URL 找到 repo 所在路径 | ||
which repo 编辑 repo | ||
nano /home/cyrus/bin/repo 可以看到repo会优先取环境变量中的REPO_URL,否则默认使用googlesource | ||
Ctrl +X 退出nano | ||
通过下面的命令设置 REPO_URL 环境变量,设置为清华大学镜像源,解决国内访问不了 googlesource 问题 | ||
export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ 5. 下载源码 创建目录 | ||
</div> | ||
<a href="/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="relative w-100 w-30-l mb4 bg-white"> | ||
<div class="relative w-100 mb4 bg-white nested-copy-line-height"> | ||
<div class="bg-white mb3 pa4 gray overflow-hidden"> | ||
<span class="f6 db">Posts</span> | ||
<h1 class="f3 near-black"> | ||
<a href="/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/" class="link black dim"> | ||
|
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 |
---|---|---|
|
@@ -6,8 +6,15 @@ | |
<description>Recent content in Posts on CYRUS STUDIO</description> | ||
<generator>Hugo</generator> | ||
<language>zh-CN</language> | ||
<lastBuildDate>Fri, 30 Aug 2024 03:55:54 +0800</lastBuildDate> | ||
<lastBuildDate>Sun, 01 Sep 2024 12:39:32 +0800</lastBuildDate> | ||
<atom:link href="https://cyrus-studio.github.io/blog/posts/index.xml" rel="self" type="application/rss+xml" /> | ||
<item> | ||
<title>编译LineageOS模拟器镜像,导出到AndroidStudio</title> | ||
<link>https://cyrus-studio.github.io/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/</link> | ||
<pubDate>Sun, 01 Sep 2024 12:39:32 +0800</pubDate> | ||
<guid>https://cyrus-studio.github.io/blog/posts/%E7%BC%96%E8%AF%91lineageos%E6%A8%A1%E6%8B%9F%E5%99%A8%E9%95%9C%E5%83%8F%E5%AF%BC%E5%87%BA%E5%88%B0androidstudio/</guid> | ||
<description>版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/
源码下载 LineageOS官网:https://lineageos.org/ LineageOS源码 github 地址:https://github.com/LineageOS/android LineageOS源码国内镜像地址:https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/
源码大概需要150GB的硬盘空间,编译完成差不多300G 1. 配置git git config --global user.email &#34;[email protected]&#34;
git config --global user.name &#34;Your Name&#34; 2. 安装 repo mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo &gt; ~/bin/repo
chmod a+x ~/bin/repo 3. 安装 Git LFS sudo apt install git-lfs
git lfs install 4. 设置REPO_URL 找到 repo 所在路径
which repo 编辑 repo
nano /home/cyrus/bin/repo 可以看到repo会优先取环境变量中的REPO_URL,否则默认使用googlesource
Ctrl +X 退出nano
通过下面的命令设置 REPO_URL 环境变量,设置为清华大学镜像源,解决国内访问不了 googlesource 问题
export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ 5. 下载源码 创建目录</description> | ||
</item> | ||
<item> | ||
<title>Windows下创建FTP服务器,实现文件共享</title> | ||
<link>https://cyrus-studio.github.io/blog/posts/windows%E4%B8%8B%E5%88%9B%E5%BB%BAftp%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%9E%E7%8E%B0%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB/</link> | ||
|
Oops, something went wrong.