Aws Profiles
https://www.youtube.com/watch?v=oYsa9TNHMVI
Collector of Interesting things of Technology
Here I will show how to recover your password of your Raspberry Pi (RPI).
If you have access to a GUI (monitor+keyboard) you can try to turn off the RPI safely, but if you don have access or do not have a GUI installed just UNPLUG IT :(.
2. Extract the microSD from the RPI.
STEP 2. Single-Process mode
1. Connect the microSD card to the computer through the adapter if you need it.
2. in your computer navigate to the microSD card and you will find the file cmdline.txt
3. Edit the file adding to the end that you want to start in single-process modedwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/bin/sh4. keep on eye that the cmdline.txt will maintain its structure of ONE LINE file.
5. Save the file and put in the RPI.Pi Fr, R. (2018, March 14). How to recover the password of your Raspberry Pi if you lost it. 2018 Update. –. Howto Raspberry Pi. https://howtoraspberrypi.com/recover-password-raspberry-pi/
Resseting password using init=/bin/sh - Keyboard doesn’t work. (2018, June 19). Raspberry Pi Stack Exchange. https://raspberrypi.stackexchange.com/questions/85146/resseting-password-using-init-bin-sh-keyboard-doesnt-work
NICE!!! you made to work VNC on your Raspberry but when you want to access from your PC Bummer!!! bad news your window is too small, in other words the resolution is really tiny for your monitor.
EASY SOLUTION
1. If you have access to your RPI edit the file /boot/config.txt will do the work!
sudo nano /boot/config.txt
2. uncomment the lines framebuffer and set your desire resolution as shown bellow:
# uncomment to force a console size. By default it will be display's size minus
# overscan. framebuffer_width=1600 framebuffer_height=900
sudo reboot
3. DONE!!!
ANOTHER SOLUTION
You might want to know most common screen resolutions:
Who was in this position?
I changed the default configuration of certain OS in my raspberry and I installed some applications, NOW do I need to do this every time that I want to replicate it?
THE ANSWER: NO!!! you just need to make an image of your memory.
You have TWO options:
OPTION 1. Copy your entire SD card to your local disk and then restore in a different micro SD CARD with software like Win32DiskImager
PROBLEM #1
The SIZE of this image is going to be the same as the capacity of your micro SD CARD.
PROBLEM #2
Too difficult to upload to the Cloud in order to share with friends or co-workers.
** (in my test I had a image of 32GB SD-Card and I obtained 3.7 GB image with this method) **
***(instead of using a Raspberry Pi OS you can follow the same steps using your Linux computer)***
Five Steps and you will be in the Cloud
What do you need:
1. Raspberry pi ( I am using RBP 3B+)
2. Micro SD card that you want to replicate (called microSD Source)
3. Adapter for reading micro SD card to USB
4. Micro SD card with Raspberry Pi OS (RPI OS) with free space, at least the size of the SD-Source.
5. Keyboard, mouse.
NOTE: You can work everything in the Raspberry directly or you can work through your Windows or Mac with VNC.
STEP 1:
1. Insert the memory (microSD Source) with the OS that you want to have the image.
2. Log in with your user and password and install Cockpit
sudo apt install cockpit
1. Insert the micro SD card - Source to the adapter (4a in the figure)
2. Connect the adapter to the Raspberry (4b in the figure)
3. In the console of the raspberry check if your system has mounted the microSD -Source with the command
lsblk -pReferences:
Avenwedde, S., Formy-Duval (Correspondent), A., & Fallon, K. (2021, July 28). Create your own custom Raspberry Pi image. Opensource.Com. https://opensource.com/article/21/7/custom-raspberry-pi-image