1. Download image from URL: https://downloads.raspberrypi.org/raspbian_lite_latest
2. Using win32 Disk Image program, write the 2019-06-20-raspbian-buster-full.img to the mini-sd card.
3. Raspbian stretch Lite default login Linux users. User management in Raspbian is done on the command line.
The default
user is pi , and the
password is raspberry .
You can add users and change each user's password.
4. install ssh
$ sudo apt-get install openssh-server openssh-client
5. Alternatively, use systemctl to start the service
$ sudo systemctl enable ssh
$ sudo systemctl start ssh
6. Add user malex
$ sudo adduser malex
7. Add malex as sudoers
$ sudo vi /etc/sudoers
add:
malex ALL=(ALL:ALL) ALL
8. passwordless ssh
$ sudo ls -al ~/.ssh/id_*.pub
$ sudo ssh-keygen -t rsa -b 4096 -C "azmadriaga@gmail.com"
$ sudo ssh-copy-id malex@192.168.1.100
9. apt-get install nmap
10. apt-get install xrdp
malex@raspberrypi3:~$ sudo apt-get install xrdp
[sudo] password for malex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
vnc4server xbase-clients
Suggested packages:
vnc-java x11-xfs-utils
The following NEW packages will be installed:
vnc4server xbase-clients xrdp
0 upgraded, 3 newly installed, 0 to remove and 11 not upgraded.
Need to get 1,742 kB of archives.
After this operation, 5,519 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com xenial/universe armhf xbase-clients all 1:7.7+13ubuntu3 [4,570 B]
Get:2 http://ports.ubuntu.com xenial/universe armhf vnc4server armhf 4.1.1+xorg4.3.0-37.3ubuntu2 [1,539 kB]
Get:3 http://ports.ubuntu.com xenial/universe armhf xrdp armhf 0.6.1-2 [198 kB]
Fetched 1,742 kB in 4s (370 kB/s)
Selecting previously unselected package xbase-clients.
(Reading database ... 171794 files and directories currently installed.)
Preparing to unpack .../xbase-clients_1%3a7.7+13ubuntu3_all.deb ...
Unpacking xbase-clients (1:7.7+13ubuntu3) ...
Selecting previously unselected package vnc4server.
Preparing to unpack .../vnc4server_4.1.1+xorg4.3.0-37.3ubuntu2_armhf.deb ...
Unpacking vnc4server (4.1.1+xorg4.3.0-37.3ubuntu2) ...
Selecting previously unselected package xrdp.
Preparing to unpack .../xrdp_0.6.1-2_armhf.deb ...
Unpacking xrdp (0.6.1-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up xbase-clients (1:7.7+13ubuntu3) ...
Setting up vnc4server (4.1.1+xorg4.3.0-37.3ubuntu2) ...
update-alternatives: using /usr/bin/vnc4server to provide /usr/bin/vncserver (vncserver) in auto mode
update-alternatives: using /usr/bin/Xvnc4 to provide /usr/bin/Xvnc (Xvnc) in auto mode
update-alternatives: using /usr/bin/x0vnc4server to provide /usr/bin/x0vncserver (x0vncserver) in auto mode
update-alternatives: using /usr/bin/vnc4passwd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode
update-alternatives: using /usr/bin/vnc4config to provide /usr/bin/vncconfig (vncconfig) in auto mode
Setting up xrdp (0.6.1-2) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
malex@raspberrypi3:~$ sudo service xrdp restart
malex@raspberrypi3:~$ sudo apt-get update
Hit:1 http://ports.ubuntu.com xenial InRelease
Hit:2 http://ppa.launchpad.net/flexiondotorg/minecraft/ubuntu xenial InRelease
Get:3 http://ports.ubuntu.com xenial-updates InRelease [109 kB]
Hit:4 http://ppa.launchpad.net/ubuntu-mate-dev/welcome/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu xenial InRelease
Get:6 http://ports.ubuntu.com xenial-security InRelease [107 kB]
Get:7 http://ports.ubuntu.com xenial-backports InRelease [107 kB]
Get:8 http://ports.ubuntu.com xenial-updates/main Sources [317 kB]
Get:9 http://ports.ubuntu.com xenial-updates/main armhf Packages [681 kB]
Get:10 http://ports.ubuntu.com xenial-updates/main Translation-en [337 kB]
Get:11 http://ports.ubuntu.com xenial-security/main Sources [130 kB]
Get:12 http://ports.ubuntu.com xenial-security/main armhf Packages [410 kB]
Get:13 http://ports.ubuntu.com xenial-security/main Translation-en [227 kB]
Fetched 2,425 kB in 6s (386 kB/s)
Reading package lists... Done
malex@raspberrypi3:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libdrm-amdgpu1 libdrm2 libegl1-mesa libgbm1 libgl1-mesa-dri libinput10
libmm-glib0 libqmi-proxy libwayland-egl1-mesa modemmanager
The following packages will be upgraded:
libcapnp-0.5.3
1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/526 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 171877 files and directories currently installed.)
Preparing to unpack .../libcapnp-0.5.3_0.5.3-2ubuntu1.1_armhf.deb ...
Unpacking libcapnp-0.5.3:armhf (0.5.3-2ubuntu1.1) over (0.5.3-2ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libcapnp-0.5.3:armhf (0.5.3-2ubuntu1.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
malex@raspberrypi3:~$
Raspberry Pi 3B+ |