Just finished doing mine. Glue and staples no doubt. I used an outdoor glue for carpet that I got from Home Depot. Gives you plenty of work time. Not familiar with the other glue suggestion. Takes 24 hrs. for the Home Depot glue to dry before you mount them. Highly recommend using galvanized bolts and washers for the install. When I removed the old bunks the factory bolts were rusted to the point where they were about to fall off. I also tapered the end of the 2x4's at the rear so that when you drive the boat on and off the trailer the boat doesn't hit or rub the sharp edge of the 2x4 possibly cutting the carpet. I also bought a good battery screw gun to install the bolts. Drill a size smaller hole in the wood and it keeps the bolts from splitting the wood. Good luck.
I am a Senager. (Senior teenager) I have everything that I wanted as a teenager, only 50 years later. I don’t have to go to school or work. I get an allowance every month. I don’t have a curfew I have a driver’s license and my own car. The people I hang around with are not scared of getting pregnant. And I have a bass boat.
Life is great!