středa 28. února 2018

Instalace Apache2 a PHP 7 na Raspberry Pi

sudo apt-get install apache2 php7.0 php7.0-curl 
       php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt 
        php7.0-mysql php7.0-opcache php7.0-xmlrpc 
       libapache2-mod-php7.0

pondělí 26. února 2018

How to resolve forgotten pi password on NOOBS system on Rasperry Pi

I had to solve a problem to connect to my Raspberry Pi. I didn't use this RaspPi long time and forgot the pi user password.

The following sequence helps me to rescue the password:

1) login the RaspPi in rescue mode (hold Shift during the RaspPi start up)

2) edit the command.txt file. Add <space>init=/bin/sh at the end of command line (just after rootwait command). Exclamation: don't use Enter - the command in command.txt should be in one line.

3) exit the rescue mode and boot. The prompt sign # should appear.

4) run the mount -rw -o remount / command

5) passwd pi command and set a new password

6) remove init=/bin/sh from command.txt