First off, you'll need to get some kind of
IR remote or
shutter cable. Once you do that, you can use the Bulb feature on the dial. It'll be the "B" on the dial. Before using it, there is a setting in the menu that you'll have to change. If you go to page
89 of the K-30 instruction manual, it's there. You change it to mode 2. Now this is where the fun begins. Once you've done the settings, make sure to set the camera to use the remote. Put the dial into "B". Press the button on the remote to open the shutter. Expose for whatever length of time you need. Then press the button on the remote to close the shutter. Look at the results on the viewfinder & change whatever ISO or aperture settings you need to change.
There it is in a nutshell, but you really need an IR remote or a cable to do this. You avoid moving the camera. I think Mode 1 is where you have to hold the shutter button, but I don't know anyone that can physically stay still for a long period of time.