could not lock config file /chia-blockchain/.git/modules/chia-blockchain-gui/config: Permission denied
fatal: could not set 'core.worktree' to '../../../chia-blockchain-gui'
Did you checkout the code as root/sudo, or move the checked out code using sudo, or do any other step as root/sudo? If unsure, look at the output of:
ls -l /chia-blockchain/.git/modules/chia-blockchain-gui/
If any of that shows as being owned by root (3rd column), then run:
sudo chown -R username:groupname /chia-blockchain
Where username is your username, and groupname is typically also your username if you’re using e.g. the user created during the install process, e.g. my username is chia so it would look like:
You don’t need to use the GUI to plot, you can just run:
chia plots create
However, I would recommend using a plotting manager especially if you want it to be unattended (e.g. plotman, swar, something else, I use plotman but haven’t tried swar so can’t recommend one or the other).