Can you please walk me through the process of setting up GoMining in a step-by-step manner? I'm particularly interested in knowing the initial steps required, such as choosing the right hardware and software, configuring the system, and connecting it to a mining pool. Additionally, I'd like to understand the importance of security measures and how to optimize my mining performance. Can you also provide any tips on maintaining the system and avoiding common pitfalls during the setup process? Thank you in advance for your guidance.