In both train and bus stations you will see long lines to buy, book or cancel tickets. Get into attack position and control your place. Women tend to stay aside - I suppose they don't handle them - but sometimes they are the most horny to sneak in.
When you have to book a ticket to an important city, try to do it a few days in advance or you will have an unpleasant surprise after waiting more than half an hour.
At local bus stations with nearby destinations you don't need to buy the ticket at the ticket offices. The names are in Hindi, Tamil, Kannada or whatever language of the state you are in, so ask the first guy you see dressed in brown and he will indicate the bus or the platform to which you should go. Get on the bus and when it has been started the reviewer will come to charge you. Think of a price and possibly it will be three times cheaper.
For long destinations, however, you will have to go through the martyrdom of queuing and buying your ticket at that small open window for dozens of people. When you get to the queue, go to the window and offer a rupee to the agent or the first in the queue to give you a ballot -formulary-. It is necessary to acquire the ticket by filling in your details and the route you are going to make. Go back to the queue, patience, arms and backpack controlling the situation.
If someone tries to sneak in - it always happens - many times someone jumps up the reckless. Join the crew by complaining in English that you have been there for a long time. You will affirm your position and in the process you will make friends. It is an ideal situation to open a conversation or to engage in understanding between others in the line. If you win a friend, however little, he will defend your position in the line with nobility.
Keep the patience and when you finally reach the dream window, deliver the ballot and be direct, forget about please, is it possible ?, etc. and get to the point with an "A ticket to Bangalore for tomorrow" That is more than enough; if you start to doubt, to take out the guide to remember the name of the place, etc. those from behind will begin to pounce on you mercilessly and you will see them pointers to maintain composure.