It's dead easy. Get some one in car, put in 1st. Open bonet. Look at shift linkage on top of box. The up down movement should be obvious from side to side movement of the gearstick. Adjust cable length to give correct side to side movement.
To adjust cable, push collar back against spring, and pull cable in and out to adjust.
Do the same for front to back movement. It rotates the selector shaft. Again put gearstick in 1st, and adjust cable so that selector shaft on box is in 1st. Try in other gears, and adjust to give best possition.
The factory proceedure involves a pin under the gearshift gator, and a pin on the selector shaft. It's more accurate, but you can get it 99% there doing as above.

2002 1.8T, REVO BT,18G, FAF
2002 180 Tdi REVO
2006 330D sport touring with toys