If you forgot your root password for your Debian server use the following procedure to reset. This has been tested on ‘Wheezy’

Press SHIFT on boot to get into the GRUB menu. Select the option to edit the commands (c?). Move the cursor down until you see the line starting ‘linux’ and append the text to below to that line. Press CTRL+x to boot the system.

You will shortly get the command line. At this point, the root file system is still mounted read-only, so enter the following to remount it READ WRITE –

Then type –

Enter your new password. Retype if asked to confirm.
Then restart the machine by typing –

Now you should be able to login with your new root password as required.

motionEye – Turn off the LEDs

By default the /root filesystem is mounted Read Only to protect against corruption. In order to edit files you need to mount it RW first. The procedure below contains all the steps to remount as RW, edit your LED settings and then remount as RO once again.

Mount as RW

Edit /boot/config.txt

Remount as RO

All done.