Hello,
You only need a cam, guides and a gear motor. But, 2kg at 5 shakes of 60mm per secod is not going to be a small motor. That is a lot of forece for a portable device, and that amount of shaking will likely cause a lightweight device to jump around. You can complicate the device using ball screws and such, but that will require larger motors and not eliminate the jumping problem at high speeds. If pneumatics are an option (not likely for a portable device) you might get by with a single guided cylinder for a minimum-hassle system. I would guess you will need electronics/controls for speed and time/number of shakes.
Instead ot shaking, is tumbling an option? And do your containers have a secure locking mechanism available?
Best regards,
Stuart Borden.