Once you have Raspbian installed, it is advisable to set up a user account. The Raspberry Pi Foundation's version of Raspbian already has a user pi
, with the password raspberry
. A system running with the default password is not secure as the password is widely known. To avoid this problem, the password needs to be changed. The default install does not have a root password set and the user is expected to use sudo
to run commands as root. As a result, many beginners never learn the difference between a root and a user account. This leads to misuse of sudo
and other issues later on. A root password is set in order to allow administrative tasks to be carried out in a standard root shell and an extra user account is added to standardize the install using the following steps:
pi
.# passwd
# sudo -i
passwd
to change the password. As you are in a root shell, this will change the root password this time.# adduser steve
# usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev, input,spi,gpio steve
If you would like to boot the desktop automatically as the new user, this can be easily accomplished without raspi-config
:
# update-rc.d lightdmd enable 2
autologin-user
variable in /etc/lightdm/lightdm.conf
as required. You should note that leaving it commented out with a #
will present you with a login window every time you boot up, which is slightly more secure and is especially recommended if you have multiple users.The reverse can be accomplished simply by disabling the LightDM service.
Once you installed the operating system, you can use the keyboard, mouse, and HDMI screen to get started with the development. However, many of you might not have a USB keyboard, USB mouse, and HDMI screen. In such cases, you need to access Raspberry Pi remotely.
3.22.61.226