Difference between revisions of "Raspberry Pi"
m |
m (→Shellinabox is handy for Raspberry Pi) |
||
Line 29: | Line 29: | ||
sudo apt-get install openssl shellinabox | sudo apt-get install openssl shellinabox | ||
By default, shellinaboxd listens on TCP port 4200 on localhost. | By default, shellinaboxd listens on TCP port 4200 on localhost. | ||
+ | |||
+ | Now you can use a WEB BROWSER to gain terminal access to your Raspberry Pi! |
Revision as of 17:31, 7 February 2019
Lost Root/Admin Password
- Power down and pull the SD card out from your Pi and put it into your computer.
- Open the file 'cmdline.txt' and add 'init=/bin/sh' to the end. This will cause the machine to boot to single user mode.
- Put the SD card back in the Pi and boot.
- When the prompt comes up, type 'su' to log in as root (no password needed).
- Type "passwd pi" and then follow the prompts to enter a new password.
- Shut the machine down, then pull the card again and put the cmdline.txt file back the way it was by removing the 'init=/bin/sh' bit.
The cmdline.txt should look something like this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait init=/bin/sh
This file should contain a line of text that resembles the line below.
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
additional comments:
You must modify this file so that the Raspberry Pi starts on the bin/sh script, which will allow you to change the password of your Raspberry Pi without knowing it. To do this, simply add the line below to the end of the file and save it.
init=/bin/sh
Shellinabox is handy for Raspberry Pi
Shellinabox has a built-in web server that runs as a web-based SSH client on a specified port and prompt you a web terminal emulator to access and control your Raspberry Pi SSH Shell remotely using any AJAX/JavaScript and CSS enabled browsers without the need of any additional browser plugins such as FireSSH.
On Debian, Ubuntu and Linux Mint
sudo apt-cache search shellinabox sudo apt-get install openssl shellinabox
By default, shellinaboxd listens on TCP port 4200 on localhost.
Now you can use a WEB BROWSER to gain terminal access to your Raspberry Pi!