Redmi 5Plus Liunx(PostmarketOS) Installation Tutorial

Redmi 5Plus

Setup 1 unlock bootloader

Reference: https://www.miui.com/unlock/index.html
Notice:

  • miflush_unlock requires a windows os
  • If the unlock tool does not recognize the phone, you need to install the driver manually in the device manager, select the path miflush_unlock/driver.
  1. Download Xiaomi Official Unlock Tool (miflush_unlock): https://www.miui.com/unlock/download.html
  2. Run miflush_unlock.exe, login to Xiaomi account
  3. Go to “Settings -> Developer Options -> Device Unlocked Status” to bind your xiaomi account and device.
  4. Enter Bootloader mode manually (after powering off the computer, press and hold the Power On and Volume Down buttons at the same time).
  5. Connect your phone via USB and click the “Unlock” button

Setup 2 Download android sdk

https://developer.android.google.cn/tools/releases/platforms?hl=en
macos can be installed using homebrew, brew install android-platform-tools

  1. Download android platform-tools
  2. Configuring Environment Variables

Setup 3 Download PostmarketOS images

https://images.postmarketos.org/bpo/v23.12/xiaomi-vince/phosh/20240327-0824/
Decompression command: xz --decompress xxx.xz

  1. 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince-boot.img.xz
  2. 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince-lk2nd.img.xz
  3. 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince.img.xz

Setup 4 Write images to phone

Notice: Run fastboot devices to make sure your device is detected.

# 1. flush lk2nd 
fastboot flash boot 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince-lk2nd.img
# 2. wait for the reboot to complete
fastboot reboot
# 3. flush boot
fastboot flash boot 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince-boot.img
# 4. flush os
fastboot flash userdata 20240327-0824-postmarketOS-v23.12-phosh-22.3-xiaomi-vince.img
# 5. wipe the system partition
fastboot erase system
# 6. reboot
fastboot reboot

If all goes correctly, you should now be running postmarketOS! Enjoy!

Setup 5 Login your OS

username: user
password: 147147
PIN Code: 147147

Finally

Replace /etc/apk/repositories with the following

http://mirrors.tuna.tsinghua.edu.cn/postmarketOS/master
http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/main
http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/community

Update Mirror

sudo apk update
sudo apk upgrade -a

Optimization [optional]

  1. Disable GUI:

Reduce memory usage by 700m

# disable
sudo rc-update del tinydm
sudo reboot
# enable
sudo rc-update add tinydm default
  1. Disable modemmanager

Reduce memory usage by 100m
Notice: ModemManager is used to control mobile broadband (2G/3G/4G) devices and connections

# disable
sudo rc-update del modemmanager

# enable
sudo rc-update add modemmanager default
  1. Disable firewall
sudo service nftables stop
sudo rc-update del nftables
  1. Disable pulseaudio

Reduce memory usage by 700m

# disable
echo "autospawn = no" > $HOME/.config/pulse/client.conf
pkill -f pulseaudio

# enable
rm -f $HOME/.config/pulse/client.conf
sudo service pulseaudio start

Github Link

  • 15
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Linux Redis是指在Linux系统上安装和使用Redis数据库。要在Linux上安装Redis,可以按照以下步骤进行操作: 1. 安装Redis的依赖项。 2. 上传Redis安装包并解压。 3. 启动Redis,可以使用默认配置启动,也可以指定配置文件启动。 4. 可以使用命令行客户端或图形化桌面客户端连接Redis。 具体的安装步骤和命令如下: 1. 安装Redis的依赖项。 - 可以使用包管理器安装依赖项,例如在Ubuntu上使用apt-get命令:`sudo apt-get install build-essential tcl` 2. 上传Redis安装包并解压。 - 可以从Redis官方网站下载最新的稳定版本的Redis安装包。 - 上传安装包到Linux服务器,并解压缩安装包。 3. 启动Redis。 - 可以使用以下命令启动Redis: - 默认启动:`systemctl start redis` - 指定配置文件启动:`redis-server /path/to/redis.conf` - 可以使用以下命令停止Redis:`systemctl stop redis` - 可以使用以下命令重启Redis:`systemctl restart redis` - 可以使用以下命令查看Redis的状态:`systemctl status redis` 4. 连接Redis。 - 可以使用命令行客户端连接Redis:`redis-cli` - 可以使用图形化桌面客户端连接Redis,需要先安装图形化桌面客户端并建立连接。 请注意,Redis官方没有提供Windows版本的安装包,因此在课程中我们会基于Linux系统来安装Redis。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* [Liunx 环境下进入 Redis](https://blog.csdn.net/m0_67265464/article/details/126434814)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Redis安装说明(转 侵删)](https://blog.csdn.net/weixin_44160079/article/details/123252938)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值