This thread may give you some hints on accessing the karaf console on Synology, especially toward the end of it: