How to get a straight line?

I'm trying to install drawer guides in an "old" kitchen cabinet. What is the best way to determine a straight line from the front of the cabinet to the back so my brackets will align correctly? McM
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Ruler, level, or make a template that aligns with something in the cabinet.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.