If your doing it on fixed, I learned by setting pedals just right, turning wheel toward the leading foot, and then placing bike with front wheel in the corner of my bedroom. Then I'd get on the bike, then let the bike roll back out of the corner a few inches as controlled as possible with a lot of weight on the top of the bars, then push back forward touching the wall. Repeat over and over until could back out then back in but with minimal wall support, then eventualy could just roll out of the corner and just stand there.
After I got the hang of it I was trackstanding, and finding id been moving closer and closer to the bed with the small movements back and forth and had to bunnyhop it away from the bed and could maintain the track stand between small hops. It took me like a week to learn spending something like 15-20 mins a day. Its a bit different on the street and I fail now and then, but all in all its quite easy once you get the hang of it.
Oh and once I got the hang of it, I didnt need to apply much weight to the bars anymore and could even 1 hand it for short periods.