On this image You will find the famous Commodore 64 emulator VICE. This emulator works just on the console and not by SSH connection, so You will need TV and keyboard connected directly
to the RPi.
The configuration has been made for using audio and video through HDMI, but You can change this options to get audio through jack and video through RCA.
When powering on the RPi there is an automatic login with the user c64 (password c64) and then the emulator is started. There are some files already installed in the /home/c64/c64 folder, split by disk images, tape images and other.
For the options press F12 on the keyboard. To manage the options just search on the internet or read the online manual.
On the internet I found someone that was able to connect an old joystick to the RPi. If You wish to try by yourself You can visit his blog.