My best advice about freelancing actually has nothing to do with the technical aspects of working for yourself.
Instead, the most valuable tip I can offer you is: make sure your mindset is correct. You need to choose:
Service over sales.
Excellence over expedience.
Ethics over ease.
Long-term gains over short-term profits.
And especially… possibility over problems.