It’s okay, I managed to solve the mistake. I placed myself in the root folder

cd /root vim.curlrc

Once I got in, I went in.

proxy=http://nom_or_ip_address_of_proxy:port/

then register and restart the installation of Fog