Hi there 👋

记录、分享折腾笔记。

[更新]Folderclone谷歌Google Drive共享云端硬盘转存相互转移拷贝复制文件的正确姿势

超级详细Folderclone使用的图文教程,更新新版Folderclone的使用方法 更新新版folderclone使用方法 详情https://github.com/Spazzlo/folderclone [可选]加入Google Drive团队盘 没有Google Drive团队盘的小伙伴可以自助添加 英国谢菲尔德大学:https://gdrive.zppcw.cn/ 404 NOT FOUND:https://gd.404edu.workers.dev/ https://gd.zxd.workers.dev/ http://leon.educationhost.cloud/ swccd.edu团队盘:https://teamdrive.xcpx.workers.dev/ 洛杉矶加利福尼亚大学团队盘:https://ucla.ur.workers.dev/ 日本国際大学团队盘:https://iuj.ur.workers.dev/ 自动创建:https://www.teamdrive.workers.dev 感谢大佬提供的Google Drive团队盘 ===新版folderclone教程开始=== 第一步 安装folderclone Linux Debian/Ubuntu安装 apt update apt install python3-pip git screen -y git clone https://github.com/Spazzlo/folderclone.git cd folderclone pip3 install folderclone CentOS把apt-get替换成yum 因拷贝时间长,防止中断,强烈建议使用screen后台运行。screen简单使用方法 # 创建screen窗口,folderclone名字可自定义 screen -S folderclone # 临时退出使用screen后台运行,按组合键 【Ctrl】【a】【d】 # 回到screen窗口 screen -r folderclone Windows安装 下载Python安装 Python 3.7.4 64-bit 、 Python 3.8.1 下载folderclone源码并解压,比如我的放置在E:\folderclone-master 以管理员身份运行 cmd或Windows PowerShell执行,且确保本地cmd或Windows PowerShell稳定的外网环境。 # 进入folderclone解压根目录 cd E:\folderclone-master pip install folderclone 第二步 开启Drive API服务 打开登陆Python Quickstart 点击Enable the Drive API ...

二月 11, 2020 · admin

Docker部署Chatwoot在线聊天客服

Chatwoot是一款聊天对话软件,支持Docker部署Chatwoot,详细过程如下 安装docker及docker compose # example in ubuntu apt-get update curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh apt install docker-compose-plugin 查看对应的版本 docker --version docker compose version 创建配置文件 mkdir chatwoot cd chatwoot wget -O .env https://raw.githubusercontent.com/chatwoot/chatwoot/develop/.env.example wget -O docker-compose.yaml https://raw.githubusercontent.com/chatwoot/chatwoot/develop/docker-compose.production.yaml 编辑修改,注意在.env和docker-compose.yaml二者中的POSTGRES_PASSWORD参数必须一致 nano .env SECRET_KEY_BASE值可以用以下命令生成,二选一即可 openssl rand -base64 32 head /dev/urandom | tr -dc A-Za-z0-9 | head -c 63 ; echo '' 我的自定义,示范如下 # Learn about the various environment variables at # https://www.chatwoot.com/docs/self-hosted/configuration/environment-variables/#rails-production-variables # Used to verify the integrity of signed cookies. so ensure a secure value is set # SECRET_KEY_BASE should be alphanumeric. Avoid special characters or symbols. # Use `rake secret` to generate this variable SECRET_KEY_BASE=ZoxaEZz7M/gviLx4iuLw6e141CBKPGkagPGplBgSyrA= # Replace with the URL you are planning to use for your app FRONTEND_URL=http://0.0.0.0:3000 # To use a dedicated URL for help center pages HELPCENTER_URL=http://0.0.0.0:3000 # If the variable is set, all non-authenticated pages would fallback to the default locale. # Whenever a new account is created, the default language will be DEFAULT_LOCALE instead of en # DEFAULT_LOCALE=en # If you plan to use CDN for your assets, set Asset CDN Host ASSET_CDN_HOST= # Force all access to the app over SSL, default is set to false FORCE_SSL=false # This lets you control new sign ups on your chatwoot installation # true : default option, allows sign ups # false : disables all the end points related to sign ups # api_only: disables the UI for signup, but you can create sign ups via the account apis ENABLE_ACCOUNT_SIGNUP=false # Redis config # specify the configs via single URL or individual variables # ref: https://www.iana.org/assignments/uri-schemes/prov/redis # You can also use the following format for the URL: redis://:password@host:port/db_number REDIS_URL=redis://redis:6379 # If you are using docker-compose, set this variable's value to be any string, # which will be the password for the redis service running inside the docker-compose # to make it secure REDIS_PASSWORD=ggt8AQE12vtgZPPq76AQx # Redis Sentinel can be used by passing list of sentinel host and ports e,g. sentinel_host1:port1,sentinel_host2:port2 REDIS_SENTINELS= # Redis sentinel master name is required when using sentinel, default value is "mymaster". # You can find list of master using "SENTINEL masters" command REDIS_SENTINEL_MASTER_NAME= # By default Chatwoot will pass REDIS_PASSWORD as the password value for sentinels # Use the following environment variable to customize passwords for sentinels. # Use empty string if sentinels are configured with out passwords # REDIS_SENTINEL_PASSWORD= # Redis premium breakage in heroku fix # enable the following configuration # ref: https://github.com/chatwoot/chatwoot/issues/2420 # REDIS_OPENSSL_VERIFY_MODE=none # Postgres Database config variables # You can leave POSTGRES_DATABASE blank. The default name of # the database in the production environment is chatwoot_production # POSTGRES_DATABASE= POSTGRES_HOST=postgres POSTGRES_USERNAME=postgres POSTGRES_PASSWORD=trrt75XS91MSFFcf32QPmn RAILS_ENV=development # Changes the Postgres query timeout limit. The default is 14 seconds. Modify only when required. # POSTGRES_STATEMENT_TIMEOUT=14s RAILS_MAX_THREADS=5 # The email from which all outgoing emails are sent # could user either `email@yourdomain.com` or `BrandName <email@yourdomain.com>` MAILER_SENDER_EMAIL=Chatwoot <accounts@chatwoot.com> #SMTP domain key is set up for HELO checking SMTP_DOMAIN=chatwoot.com # Set the value to "mailhog" if using docker-compose for development environments, # Set the value as "localhost" or your SMTP address in other environments # If SMTP_ADDRESS is empty, Chatwoot would try to use sendmail(postfix) SMTP_ADDRESS= SMTP_PORT=1025 SMTP_USERNAME= SMTP_PASSWORD= # plain,login,cram_md5 SMTP_AUTHENTICATION= SMTP_ENABLE_STARTTLS_AUTO=true # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html SMTP_OPENSSL_VERIFY_MODE=peer # Comment out the following environment variables if required by your SMTP server # SMTP_TLS= # SMTP_SSL= # SMTP_OPEN_TIMEOUT # SMTP_READ_TIMEOUT # Mail Incoming # This is the domain set for the reply emails when conversation continuity is enabled MAILER_INBOUND_EMAIL_DOMAIN= # Set this to the appropriate ingress channel with regards to incoming emails # Possible values are : # relay for Exim, Postfix, Qmail # mailgun for Mailgun # mandrill for Mandrill # postmark for Postmark # sendgrid for Sendgrid RAILS_INBOUND_EMAIL_SERVICE= # Use one of the following based on the email ingress service # Ref: https://edgeguides.rubyonrails.org/action_mailbox_basics.html # Set this to a password of your choice and use it in the Inbound webhook RAILS_INBOUND_EMAIL_PASSWORD= MAILGUN_INGRESS_SIGNING_KEY= MANDRILL_INGRESS_API_KEY= # Creating Your Inbound Webhook Instructions for Postmark and Sendgrid: # Inbound webhook URL format: # https://actionmailbox:[YOUR_RAILS_INBOUND_EMAIL_PASSWORD]@[YOUR_CHATWOOT_DOMAIN.COM]/rails/action_mailbox/[RAILS_INBOUND_EMAIL_SERVICE]/inbound_emails # Note: Replace the values inside the brackets; do not include the brackets themselves. # Example: https://actionmailbox:mYRandomPassword3@chatwoot.example.com/rails/action_mailbox/postmark/inbound_emails # For Postmark # Ensure the 'Include raw email content in JSON payload' checkbox is selected in the inbound webhook section. # Storage ACTIVE_STORAGE_SERVICE=local # Amazon S3 # documentation: https://www.chatwoot.com/docs/configuring-s3-bucket-as-cloud-storage S3_BUCKET_NAME= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_REGION= # Log settings # Disable if you want to write logs to a file RAILS_LOG_TO_STDOUT=true LOG_LEVEL=info LOG_SIZE=500 # Configure this environment variable if you want to use lograge instead of rails logger #LOGRAGE_ENABLED=true ### This environment variables are only required if you are setting up social media channels # Facebook # documentation: https://www.chatwoot.com/docs/facebook-setup FB_VERIFY_TOKEN= FB_APP_SECRET= FB_APP_ID= # https://developers.facebook.com/docs/messenger-platform/instagram/get-started#app-dashboard IG_VERIFY_TOKEN= # Twitter # documentation: https://www.chatwoot.com/docs/twitter-app-setup TWITTER_APP_ID= TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_ENVIRONMENT= #slack integration SLACK_CLIENT_ID= SLACK_CLIENT_SECRET= # Google OAuth GOOGLE_OAUTH_CLIENT_ID= GOOGLE_OAUTH_CLIENT_SECRET= GOOGLE_OAUTH_CALLBACK_URL= ### Change this env variable only if you are using a custom build mobile app ## Mobile app env variables IOS_APP_ID=L7YLMN4634.com.chatwoot.app ANDROID_BUNDLE_ID=com.chatwoot.app # https://developers.google.com/android/guides/client-auth (use keytool to print the fingerprint in the first section) ANDROID_SHA256_CERT_FINGERPRINT=AC:73:8E:DE:EB:56:EA:CC:10:87:02:A7:65:37:7B:38:D4:5D:D4:53:F8:3B:FB:D3:C6:28:64:1D:AA:08:1E:D8 ### Smart App Banner # https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html # You can find your app-id in https://itunesconnect.apple.com #IOS_APP_IDENTIFIER=1495796682 ## Push Notification ## generate a new key value here : https://d3v.one/vapid-key-generator/ # VAPID_PUBLIC_KEY= # VAPID_PRIVATE_KEY= # # for mobile apps # FCM_SERVER_KEY= ### APM and Error Monitoring configurations ## Elastic APM ## https://www.elastic.co/guide/en/apm/agent/ruby/current/getting-started-rails.html # ELASTIC_APM_SERVER_URL= # ELASTIC_APM_SECRET_TOKEN= ## Sentry # SENTRY_DSN= ## Scout ## https://scoutapm.com/docs/ruby/configuration # SCOUT_KEY=YOURKEY # SCOUT_NAME=YOURAPPNAME (Production) # SCOUT_MONITOR=true ## NewRelic # https://docs.newrelic.com/docs/agents/ruby-agent/configuration/ruby-agent-configuration/ # NEW_RELIC_LICENSE_KEY= # Set this to true to allow newrelic apm to send logs. # This is turned off by default. # NEW_RELIC_APPLICATION_LOGGING_ENABLED= ## Datadog ## https://github.com/DataDog/dd-trace-rb/blob/master/docs/GettingStarted.md#environment-variables # DD_TRACE_AGENT_URL= # MaxMindDB API key to download GeoLite2 City database # IP_LOOKUP_API_KEY= ## Rack Attack configuration ## To prevent and throttle abusive requests # ENABLE_RACK_ATTACK=true # RACK_ATTACK_LIMIT=300 # ENABLE_RACK_ATTACK_WIDGET_API=true # Comma-separated list of trusted IPs that bypass Rack Attack throttling rules # RACK_ATTACK_ALLOWED_IPS=127.0.0.1,::1,192.168.0.10 ## Running chatwoot as an API only server ## setting this value to true will disable the frontend dashboard endpoints # CW_API_ONLY_SERVER=false ## Development Only Config # if you want to use letter_opener for local emails # LETTER_OPENER=true # meant to be used in github codespaces # WEBPACKER_DEV_SERVER_PUBLIC= # If you want to use official mobile app, # the notifications would be relayed via a Chatwoot server ENABLE_PUSH_RELAY_SERVER=true # Stripe API key STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET= # Set to true if you want to upload files to cloud storage using the signed url # Make sure to follow https://edgeguides.rubyonrails.org/active_storage_overview.html#cross-origin-resource-sharing-cors-configuration on the cloud storage after setting this to true. DIRECT_UPLOADS_ENABLED= #MS OAUTH creds AZURE_APP_ID= AZURE_APP_SECRET= ## Advanced configurations ## Change these values to fine tune performance # control the concurrency setting of sidekiq SIDEKIQ_CONCURRENCY=5 # AI powered features ## OpenAI key # OPENAI_API_KEY= # Housekeeping/Performance related configurations # Set to true if you want to remove stale contact inboxes # contact_inboxes with no conversation older than 90 days will be removed # REMOVE_STALE_CONTACT_INBOX_JOB_STATUS=false 配置docker-compose.yaml文件 ...

八月 16, 2025 · admin

清除PowerShell的命令历史记录

要清除PowerShell的命令历史记录,你可以尝试以下几种方法: 清空当前会话中的历史记录 在当前 PowerShell 会话中,你可以通过执行以下命令清空历史记录: Clear-History 这个命令会清除当前会话的命令历史记录,但它不会影响你之前的历史记录文件。 删除历史记录文件 PowerShell 会把历史记录保存在用户的配置文件中,如果你想彻底删除历史记录,可以手动删除历史记录文件。 对于 Windows 10 或更高版本: 打开文件资源管理器,导航到以下路径: $env:APPDATA\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt 你也可以直接在 PowerShell 中执行: Remove-Item "$env:APPDATA\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt" 这将删除 PowerShell 的历史记录文件。 禁用历史记录 查找PowerShell配置文件路径 $PROFILE 如果你不希望 PowerShell 记录历史记录,可以禁用历史记录功能。在 PowerShell 配置文件中加入以下代码: $MaximumHistoryCount = 0 这将禁用历史记录的保存。你可以通过编辑$PROFILE文件来永久性禁用它: notepad.exe $PROFILE 在文件中添加 $MaximumHistoryCount = 0 后保存并关闭。

三月 29, 2025 · admin

自建RustDesk远程桌面服务

https://rustdesk.com/ https://github.com/rustdesk 防火墙放行以下端口: TCP (21114, 21115, 21116, 21117, 21118, 21119) UDP (21116) 官方一键安装脚本 wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/install.sh chmod +x install.sh ./install.sh 选择IP或域名 1) IP 2) DNS/Domain Choose your preferred connection method: auto-resolve current WAN IP or enter your DNS/Domain: 选择是否安装HTTP服务 1) Yes 2) No Please choose if you want to download configs and install HTTP server: 查看KEY cat /opt/rustdesk/id_ed25519.pub 增加-k _参数开启强制KEY验证(可选) 修改/etc/systemd/system/rustdeskrelay.service文件中找到ExecStart=/opt/rustdesk/hbbr修改为ExecStart=/opt/rustdesk/hbbr -k _ 修改/etc/systemd/system/rustdesksignal.service文件中找到ExecStart=/opt/rustdesk/hbbs修改为ExecStart=/opt/rustdesk/hbbs -k _ 重新加载后生效,被控端的KEY可以留空不填写,但主控端必须填写 systemctl daemon-reload 卸载删除 rm /etc/systemd/system/gohttpserver.service /etc/systemd/system/rustdeskrelay.service /etc/systemd/system/rustdesksignal.service /etc/systemd/system/multi-user.target.wants/gohttpserver.service rm rf /var/log/gohttp /opt/gohttp /var/log/rustdesk /opt/rustdesk systemctl daemon-reload 手动安装 从Releases · rustdesk/rustdesk-server · GitHub选择合适的版本下载 ...

三月 9, 2025 · admin

搭建CNS服务器

https://github.com/mmmdbybyd/CNS 一键搭建cns 安装 wget http://binary.quicknet.cyou/cns/cns.sh && chmod +x cns.sh && ./cns.sh 卸载 wget http://binary.quicknet.cyou/cns/cns.sh && chmod +x cns.sh && ./cns.sh uninstall 启动命令 ./cns -daemon=true -json=cns.json https://github.com/AiziChen/CNS 下载 wget https://github.com/AiziChen/CNS/releases/download/v0.2.4/cns-linux-amd64 mv cns-linux-amd64 /usr/bin/ chmod +x /usr/bin/cns-linux-amd64 创建配置文件/etc/cns-config.cfg proxyKey = Meng udpFlag = httpUDP listenAddr = :443 password = yourpassword udpTimeout = 30 tcpKeepAlive = 60 pidPath = cns.pid enableDnsTcpOverUdp = #t enableHttpDNS = #t enableTFO = #t 客户端需要用到的是服务器的IP:端口号、密码 设置开机自动启动 echo "[Unit] Description=cns After=network.service [Service] Type=simple User=root Group=root ExecStart=/usr/bin/cns-linux-amd64 -config-file=/etc/cns-config.cfg -daemon PrivateTmp=true Restart=on-failure [Install] WantedBy=multi-user.target" > /etc/systemd/system/cns.service 管理cns systemctl daemon-reload systemctl enable cns.service systemctl start cns.service 客户端使用 可以配合 https://github.com/mmmdbybyd/CLNC ...

一月 30, 2025 · admin

Serv00.com搭建使用

Serv00.comRevolutionary Free Hosting 提供免费的PHP,MYSQL,SMTP,PostgreSQL,MongoDB,可以SSH连接创建自己的应用,可以绑定域名,无广告。 注册 注册Serv00 建议用gmail邮箱,不要用微软邮箱,因为就是提示成功它也收不到邮件. 注册小技巧 gmail邮箱可以无限别名,假设已经有一个yourname@gmail.com那么可以使用别名在用户名后面添加+或者.后面加其它随机字母数字,比如使用yourname+6dhj68kkm@gmail.com 或者 yourname.jdjjs64kpo@gmail.com 达到使用1个gmail邮箱来注册多个serv00账号,账号信息邮件在yourname@gmail.com接收。注册成功就能在邮件里面看到相关账号信息 搭建 面板设置 打开Additional services , Run your own applications 使状态 Status改为 Enabled开启 可最多3个端口号,在Port reservation,Add port中设置添加。 搭建hy2,tuic,vmess 提前在面板添加1个tcp端口给vmess使用,2个udp端口分别给tuic和hy2用 https://github.com/yixiu001/serv00-singbox wget https://raw.githubusercontent.com/yixiu001/serv00-singbox/main/yixiu.sh chmod +x yixiu.sh 编辑yixiu.sh修改tcp与udp端口为面板对应添加的端口,修改uuid为自己的 UUID在线生成或者命令行生成 cat /proc/sys/kernel/random/uuid 然后创建screen窗口 curl -O https://raw.githubusercontent.com/eooce/ssh_tool/main/index.js && curl -O https://raw.githubusercontent.com/eooce/nodejs-argo/main/package.json && npm install && chmod +x index.js && screen node index.js 再次执行 ./yixiu.sh 复制节点信息使用 搭建vmess+argo 如果ip端口被xxx了,可套用cloudflare的argo,实现CDN减速 https://github.com/eooce/scripts vmess-ws-tls(argo)一键脚本 必填变量:PORT=TCP端口 可选变量:UUID NEZHA_SERVER NEZHA_PORT NEZHA_KEY CFIP CFPORT bash <(curl -Ls https://raw.githubusercontent.com/eooce/scripts/master/containers-shell/00_vmess.sh) 修改00_vmess.sh中的TCP端口,uuid,argo的token域名 ...

九月 2, 2024 · admin

Debian12 Gnome桌面安装ibus五笔输入法

Debian12 默认安装的是Gnome桌面,安装ibus五笔输入法,输入su root然后root密码 安装ibus五笔 apt-get update apt-get install ibus ibus-table-wubi 配置输入法 以普通用户身份输入下面的命令打开ibus配置窗口。 ibus-setup 选择输入法标签,选中极点五笔然后点击添加按钮。添加之后,关闭窗口。 打开Gnome的设置面板,选择键盘。 在底部点击输入源。 点击加号添加输入源。 选择极点五笔。点击添加按钮。 现在你可以用Super+空格键来调出五笔输入法了。如果调不出,请重新登录或重启Debian系统。 转载自https://www.ywnz.com/linuxjc/704.html

八月 27, 2024 · admin

PaperMod主题添加valine评论

Valine 一款快速、简洁且高效的无后端评论系统。服务端可以借助LeanCloud免费部署到Vercel 部署 (服务端) 配置Valine 注册LeanCloud 账号: 进入 LeanCloud 官网注册一个国际账号。 创建一个新的应用以便使用 LeanCloud 提供的后端服务。 在Vercel 部署 (服务端) 关联github账号登陆,创建Valine应用,名称任意,例如Valine 获取 Valine App ID 和 App Key: 在 LeanCloud 控制台中,进入你创建的应用。 在左侧导航栏中找到“设置”选项。 在应用凭证部分,复制 App ID、App Key、REST API 服务器地址 在Vercel的应用中依次进入【settings】、【environment-variables】添加上面获取的环境变量LEAN_KEY与LEAN_ID值。然后进入【deployments】【Redeploy】重新部署生效。 完成后会自动分配一个二级域名,类似xxx-xxx-xxxx-projects.vercel.app【可选】进入【settings】【domains】绑定自己的域名 评论通知的环境设置在在进入leancloud应用的Play=== CLIENT ENGINE === 设置 添加自定义环境变量 【Redeploy】重新部署生效。 valine评论数据管理 点击Visit打开进入https://xxx-xxx-xxxx-projects.vercel.app 是一个独立的网页单面。 在域名后边加上/ui/register注册,默认首次注册的用户是为评论管理员,可以删除评论等操作,也可以进入LeanCloud的控制台找到数据存储=>结构化数据=>Comment,在这里你可以对评论的数据进行管理 在Hugo主题中引入Valine 以PaperMod主题为例,找到需要添加Valine的页面或模板文件,以下方法二选一 方法一:在~/themes/PaperMod/layouts/_default/single.html添加以下代码 复制替换 LeanCloud 控制台中的【设置】【应用凭证】的App ID、App Key、REST API 服务器地址值 <div id="comments"></div> <script src="https://cdn.jsdelivr.net/npm/vue"></script> <script src="https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js"></script> <script> new Valine({ el: '#comments', appId: 'App-ID', appKey: 'App-Key', serverURLs: "REST API 服务器地址", placeholder: '说点什么吧...', }); </script> 方法二: 修改~/themes/PaperMod/layouts/partials/comments.html的内容如下 ...

八月 18, 2024 · admin

fly.io部署alist与vaultwarden版本的Bitwarden

现在注册fly.io账号需要绑定信用卡并验证(扣款10刀以下随机金额)后方可免费试用三个256MB内存的服务,每个1GB大小,最多3G的持久化存储 分类 限额 说明 VM: shared-cpu 每个月 2340 小时 可以全天候运行 3 个 256 MB 内存的共享 CPU 的 VM Volumes 3GB 提供 3GB 永久存储 Bandwidth 160 GB/每月 亚洲、印度30G,美国、欧洲100G的outbound流量 Anycast IPs 无限的 IPv6, 每个应用一个 IPv4 每一个额外的 IPv4 地址需要额外每个月 $2 Certificates 10 个活跃的证书 最多 10 个证书 资源定价 Fly.io 计费 获取FLY_API_TOKEN 或在本地执行flyctl auth token查看 Linux安装 curl -L https://fly.io/install.sh | sh 移动到/usr/bin目录下 cp /root/.fly/bin/flyctl /usr/bin 登陆fly.io flyctl auth login 复制提示里面的网址在浏览器中打开完成登陆 部署Bitwarden 使用 SQLite 数据库安装 Vaultwarden。但是您需要为数据库创建卷 flyctl volumes create vaultwarden_data -a APP_NAME -s 1 在 Fly 上启动创建应用 ...

八月 13, 2024 · admin

一加手机oneplus解锁Bootloader并通过KernelSU获取ROOT权限

一加手机是OPPO旗下的子品牌,俗称厂妹机、绿厂机。 解锁Bootloader 一加手机解锁无任何限制,到手就能秒解锁Bootloader,没有套路。好评!! 一、首先激活“开发者模式”: “设置“→“关于手机“→“版本信息“→点击五次“版本号”输入密码即可 返回到“设置“→“系统“→“开发者选项“ “开发者选项“里,找到“OEM解锁”并勾选允许 “开发者选项“里,打开USB调试,以便连接电脑 Tips:OEM解锁保持开启,因为这是解锁BootLoader的硬性开关 二、安装驱动 下载一加手机oneplus电脑驱动.zip解压并依次安装里面的adb驱动、高通驱动、一加驱动。 三、通过ADB进入解锁bootloader 从Google下载ADB档案并解压,打开CMD命令行定位到ADB解压目录下输入 adb devices 检测手机是否连接到电脑 如果出现“XXXXXXXXXXXXXXXXX device”,表示连接成功,然后继续输入 adb reboot bootloader 此时手机将开机状态下重启进入到Fastboot模式,然后再输入 fastboot devices 列出Fastboot模式下的设备,如果未出现“XXXXXXXXXXXXXXXXX device”,表示设备未连接成功,成功后,再次输入 fastboot flashing unlock Fastboot模式下刷入解锁指令,这时候手机会出现BL解锁的英文画面,用音量下键移动到第二行的UNLOCK THE BOOTLOADER上,再按一次开机按键,等待开机后就自动恢复出厂设置,并且解锁BL完成开机。 如果不出意外,手机将会自动格式化后再重启,开机要加载一段时间,请耐心等待。 进入系统界面后再次开启“开发者模式”,勾选允许USB调试即可。 通过KernelSU获取ROOT权限 提取init_boot.img文件 下载对应机型的卡刷包,下载安装MT管理器,用MT管理器打开系统包里面 payload.bin长按 init_boot.img 解压复制一份出来。 通过KernelSU修补 手机内核版本5.15+可以直接修补,使用LKM方式运行KernelSU,不再需要编译内核。 下载安装KernelSU修补刚才提取到init_boot.img文件,成功后生成的新的文件在手机的下载目录,找到它并把它复制到上面的ADB解压目录下。 ADB刷入修补过的init_boot.img文件 打开CMD定位到ADB目录下,然后执行 fastboot flash init_boot init_boot.img fastboot reboot 重启手机后即可通过KernelSU的APP管理ROOT权限与安装模块应用了

六月 20, 2024 · admin