I’m unsure as to why:
head -c 32 /dev/urandom | base64” >> ~/.zcash/zcash.conf
would not have added a random rpcpassword= to you zcash.conf .
However, you only really require a set rpcuser= and rpcpassword= if you intend to use GPU mining software directly onto the wallet.
Your zcashd is starting because … “Since Bitcoin Core 0.12, an RPC password is no longer required for normal operation. Instead, a random password is automatically generated by bitcoind (or zcashd) and stored in a temporary file on disk. When an RPC client (like bitcoin-cli or zcash-cli) wants to connect, it automatically uses the password from this file.”
However, you should navigate to your zcash.conf via the terminal with:
sudo nano ~/.zcash/zcash.conf
and add / amend the following example:
The echo command is simply generating a ‘random’ rpcpassword for you. As you don’t need to know or remember this password for anything (because your just going to be running a wallet) you can add your own rpcuser and rpcpassword. You could use a random base64 password generator online to effectively provide an example!
“If you want to keep a secret, you must also hide it from yourself.”
Adding rpcallowip=127.0.0.1 will only allow rpc connections from the localhost (i.e. your own pc), so that increases security considerably.
You likely wont need to add gen=1 as that will only solo mine with your computers CPU and at the current network difficulty you would be very very unlikely to mine a single block.