If you are homeless, the first place you should go for help is your local Council - look them up in the phonebook or online. If it is an emergency, use the 24-hour helpline. If there isn't one listed, the police will have it.
Shelter have a free advice phone line on 0808 800 4444. This is staffed by trained housing advisers. Lines are open from 9am to 5pm, Monday to Friday.
Shelter's website is also useful: http://scotland.shelter.org.uk/easyaccess/easy_access.
To find your local Citizen's Advice Bureau go to http://www.cas.org.uk. CAB also provide online advice: http://www.adviceguide.org.uk/scotland/your_family/home_and_neighbourhood_index_scotland.htm.
For help with finding furniture, go to http://www.morethanfurniture.org.uk, which lists furniture projects throughout Scotland.
For specialist advice for refugees and asylum seekers, try http://www.scottishrefugeecouncil.org.uk.
For young people thinking about leaving home, here's good advice: http://www.leavinghome.info.
Scottish Women's Aid offer a 24-hour domestic abuse helpline on 0800 027 1234, and online advice at http://www.scottishwomensaid.org.uk.
