Where can I install my 12v dc2dc charger in my truck

Can I install it under the hood near the firewall or under the driver seat?

As close to the battery being charged as practical is always good practice.