I can't say much about leaving home since I didn't go too far and regularly came home on the weekends, but my best advice for you would be to develop good study habits and do your best to attend every session of every one of your classes. I thought I could skip a class here and there and just catch up through textbook reading and whatnot, but that was a very stupid thing to do on my part and just attending the lectures and paying attention helps immensely. If you at least do all of your coursework then it won't be as challenging as it might seem.
When I was fresh out of high school I pretty much did everything wrong and had a terrible time and only lasted about three semesters at a massive state university, but I'd attribute that mostly to some mental health issues I wasn't aware I had at the time, as well as a lack of general maturity, and I think my own mistakes are easy to avoid. For the record I'm doing much better with myself now, but being overwhelmed and not taking the initiative to do anything about it was not a fun time. A lot of schools also offer workshops and whatnot about things like time management, budgeting, dealing with stress, finding a job, etc. that you might consider attending if you're in need of information. At the school I attended, students were constantly urged to get involved in clubs and other sorts of extracurricular enrichment and while I, in all my dunderheadedness at the time, never did anything of the sort, I think it's a good thing to consider when it comes to adjusting and making friends.
A lot of your fellow students will be in the exact same position you are, so remember you're not alone in having to deal with these things for the first time.