Setup user local

From Rsewiki
Revision as of 09:20, 24 December 2021 by Jca (talk | contribs)

Login

login as pi, password raspberry - password may have changed

Add a user called local, this leaves the pi user as is. This can save reformatting and reinstall when the Pi is to be reused.

add a user called local

sudo adduser local
sudo usermod -a --groups adm,cdrom,sudo,audio,video,plugdev,games,users,netdev,input,spi,gpio,i2c,dialout local 

switch user to local, and ensure groups are OK, and network is running

su - local
groups
ifconfig

Note the inet address.

Now it is possible to login (as local) from network.

Get access using hostname

You may change the hostname by changing the name in /etc/hostname. If you do so, then you should restart before the new hostname works.

Now from another PC on the local network

ping hostname.local

Get a console (terminal window) use SSH From linux:

ssh -X local@hostname.local

Or use putty (can be installed in both Linux and Windows - and probably also Apple).

where "hostname" is replaced with the hostname in /etc/hostname.