Yep. Stack a series of images that are the maximum shutter time your camera allows it to stay open. That time is limited for noise, and heat buildup. You are not going to get a digital to stay open for hours, not would you want to with the noise buildup over time.
My camera has an intervalometer in the menu. I set it to some high number of 30-second exposures 32 seconds apart. (Sometimes at 31 seconds apart, the shutter didn't fire, but the intervalometer kept counting, so I had an exposure missing from the sequence.) Basically then, set up the tripod, point north, start it. Retrieve the camera some hours later, stack the images in Photoshop. Select all the layers and set the blend mode to "lighten." Also, if your camera has a long-exposure noise-reduction setting, disable that. (What it does is after every long exposure, it shoots another of the same time with the shutter closed, and subtracts whatever it captures in the shutter-closed frame from the shutter-open one. Theoretically useful, but loses half of your exposure time.)
I don't recall how long this was, 3 or 4 hours, I think. It appears my tripod head settled at the beginning, shown as a little hook at the start end of the trails. These frames were 15 seconds at
f:2.8, ISO 100, Sigma 30-1.4 on a crop-frame camera, and the result was cropped to remove my house from the bottom right of the picture.
In this shorter sequence from another night, I had a couple of airplanes shoot through my view. While it's possible to simply paint out the lights with the healing brush, that seems a bit tedious. I just went through the layers and blanked the ones with airplane lights. Dim-looking areas of the trails are the result of clouds, as it wasn't a perfectly clear night. This set was shot with 30-second frames at
f:3.5, still ISO 100, and 18mm, with my 18-55 kit lens, again the final image cropped to remove yuckie stuff at the edges. The longer exposure seems to have given smoother trails.
Note to self: Looking at these, I need to try again. Hurricane Michael removed that tree on the left, so my view field is considerably wider now...