Converting .nii file to .stl file
Looks like you didn't include a space between the -i flag and the file, though you did include the space in this question. Try running the command but include spaces between your flags and file directories:

recon-all -s mybrain -all -i /home/fsuser/Desktop/brainscan.nii