If you have 2 benches or a bench and a chair, do bench dips.
I had the same idea as you for a pullup bar. I bolted two short pieces of 2x4 to the joists in my basement, drilled large holes through them and put a length of 1 inch pipe through them. It works, but looks kinda ghetto. I'm trying to think up a better way