select a dark sky location away from light pollution
consider having something of interest in the foreground (you may wish to take an initial single shot of the foreground using different exposure settings)
use a camera with a wide angle lens on a tripod manually focussed on the stars
ensure battery is fully charged
depending on your level of light pollution, set your camera exposure to something like RAW file mode, manual exposure, ISO 800, f/2.2, WB 4000K, 30secs (60secs if your camera has this) - do a test exposure and adjust as needed - if your lens only opens to f/4 as its widest aperture then you may need to use ISO 1600-3200
turn off long exposure noise reduction (as this will take another 30sec “dark frame” or blank photo resulting in gaps in your star trails)
turn of image stabilisation (“SteadyShot” on Sony)
after you have done some test shots and happy with focus, composition and exposure, set the camera to intervalometer mode:
on Sony:
it is called Interval Shooting Func which Shoot Mode/Drive 1 page of Camera 1 menu
set Interval Shooting = ON
Shooting Start Time = 1 sec (ensure there are no visible gaps in trails)
Shooting interval = exposure duration + 1sec eg. 31sec if shutter set to 30secs
Number of shots = 2x total exposure duration = as a minimum this probably should be around 60 for 30 minutes long trails but you could do much longer
now you are you are ready to start shooting press the shutter button and leave it