Not suggesting you do this unless you are comfortable with potentially screwing up your printer, but you can gain access if you have a linux computer available and aren’t afraid of opening your printer.
- Important: Disconnect power from the printer before doing anything.
- Open the side panel.
- Locate the Raspberry Pi. It should be near the front and above the other electronics.
- Unscrew the 4 nylon nuts holding the Pi in place.
- Gently push the Pi out of the mounting plate until you can access the sd-card on the bottom edge of the Pi. Be careful not to knock any cables loose.
- Place the sd-card in a linux computer.
- As root, mount the sd-card’s second partition: For example, if your sd-card shows up as /dev/sdb, then type mount /dev/sdb2 /mnt
- Run mkpassword -m sha-512 and enter your desired password. Keep the resulting hash.
- Back up the file /mnt/etc/shadow in case you screw up.
- Edit the file /mnt/etc/shadow and locate the line for the user named pi.
- Paste the saved hash in place of the old password hash located between the first and second colons on the pi user’s line.
- Save the file. (Optional: Use dd to back up the entire sd-card so you can recover from any software problems/corruption.)
- Unmount the sd-card and eject it.
- Place the sd-card in Pi and put the Pi back into its proper place.
- Reattach the four nylon nuts and close up the printer.
You can now start the printer and ssh to it as the pi user. This user has sudo root access.
Octoprint is written in Python and I believe the changes used in the Titan 2 should be visible directly.