当前位置:网站首页>What if once again forgets the login password of raspberry pie? And you don't have a monitor yet! Today, I would like to introduce a method
What if once again forgets the login password of raspberry pie? And you don't have a monitor yet! Today, I would like to introduce a method
2022-07-07 23:32:00 【Little river god is tangled】
Preface
I believe you won't go to your raspberry pie for a long time , Will forget the password , But I don't have a monitor , There is no way to use modification cmdline.txt To retrieve the password . Today, I will introduce a modification pi To change the login password of raspberry pie .
One 、 Preparation before modification
1. A card reader ;
2. It can be used Linux System , such as ubuntu virtual machine .
Two 、 Modification steps
1. Mount the memory card of raspberry pie to the virtual machine
Remove the memory card of raspberry pie , Install it in the card reader and insert it into the computer ; And connect to the virtual machine ,
And then open the terminal , Check whether the memory card exists :
dmesg

Create an empty folder in the current path , And put the memory card sdg2( The first mount is usually sdb2) Mount to this file :
mkdir ext4
sudo mount /dev/sdg2 ext4
cd ext4/
2. Change Password
The passwords for raspberry pie are all in /etc/shadow Under the folder , But the password inside is encrypted , We have no idea what that means :
But what we can only know is ,pi The back two The colon It must be a password . Then we can change the password as long as we modify these contents .
We can start at Ubuntu Create a temporary user in , And the user sets the password , In this way, we can replace the password of this user pi I've got my password .
stay Ubuntu Terminal creation user :
sudo useradd test
sudo passwd test
// Enter your own password
Once created , open Ubuntu Of shadow:
sudo vi /etc/shadow

Now , Just put test The password part of is overwritten pi The same part of , You can successfully change the password of raspberry pie .
边栏推荐
- Lm12 rolling heikin Ashi double K-line filter
- 高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
- Unity3d Learning Notes 6 - GPU instantiation (1)
- 三问TDM
- 统计电影票房排名前10的电影并存入还有一个文件
- Summary of common methods of object class (September 14, 2020)
- Markdown
- First week of July
- SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
- In the field of software engineering, we have been doing scientific research for ten years!
猜你喜欢

First week of July

LeeCode -- 6. Zigzag transformation

LeeCode -- 6. Z 字形变换

New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
![Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the](/img/21/2e99dd6173ab4925ec22290cd4a357.png)
Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."

B / Qurt Utilisateur Guide (36)

进度播报|广州地铁七号线全线29台盾构机全部完成始发

Matlab 信号处理【问答随笔·2】

B_QuRT_User_Guide(38)

leetcode-520. Detect capital letters -js
随机推荐
谷歌浏览器怎么登录及开启同步功能
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
B_ QuRT_ User_ Guide(38)
系统架构设计师备考经验分享:论文出题方向
Three questions TDM
Right click the idea file to create new. There is no solution to create new servlet
Extended tree (I) - graphic analysis and C language implementation
UE4_ Ue5 combined with Logitech handle (F710) use record
V-for traversal object
MySQL Index Optimization Practice I
js 获取对象的key和value
StringUtils工具类
B_QuRT_User_Guide(36)
JS get the key and value of the object
MySQL Index Optimization Practice II
Cloud native is devouring everything. How should developers deal with it?
Freelink open source call center design idea
Design and implementation of spark offline development framework
The 19th Zhejiang Provincial College Programming Contest 2022 f.easyfix chairman tree
Unity3d Learning Notes 6 - GPU instantiation (1)