Select which pages to show sidebar?

Is there a way to select a single page/post on which to show the sidebar? I also need a way to show a sidebar on only a select custom post type taxonomy term.
Is there a way to do this?
Thank you!