(Like, dont name a file in your current working directory RPi. Make sure in your current directory that the script is in, that no files are named after modules. If it still says ModuleNotFoundError, than install it using: pip3 install RPi.GPIO. I haven't followed this final instruction yet.Ī) how do I undo this command and allow myself to log into how do I easily transfer the file from one user to the other?Įdit: The file I am referring to is some python code(.py file). At the terminal, launch Python 3 using sudo and try this: sudo python3 > import RPi.GPIO as GPIO. To add a new user, run the sudo adduser adminuser command in the terminal. I got my Pi a couple of weeks ago so I've haven't updated it since setup. All Raspberry Pis come with the default username pi, which should be changed to make it more secure.We create a new user and assign it all rights, and then delete the pi user. sudo apt-get update & sudo apt-get dist-upgrade Example output: adding joshua to group sudo. Example with my name: gpasswd -a joshua sudo. This command will add users to the sudo group, granting them sudo privileges. They recommend entering this line into the terminal. Replace with the name of the user you want to add to the sudoers group.The tutorial then informs me to update my system every now and then, which will take care of any system vulnerabilities. See code for command line entered to lock the pi account. So insteed of removing it (which may cause further problems down the line), you'll simply lock it by forcing the password to expire.)" Note: The reason given to do this is quote "At the time of writing the guide, the "pi" user is still needed for certain system functions. I followed these instructions:ġ.)Make New Super User/Password sudo /usr/sbin/useradd -groups sudo -m robĢ.) Assign Password to new Super User sudo passwd robģ.) Uncheck the "auto login as Pi User" box in Menu->Preferences->Raspberry Pi Configurationĥ.)Ensure new user is indeed super user sudo groupsĦ.) Disable the default Raspberry Pi user. In the tutorial they recommended making a new account and locking the Pi account(for security purposes). I wanted to control my Pi with my PC via ssh.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |