NanoPi M4V2 : Armbian Linux 버전

OS/NanoPi 2021. 1. 3. 23:54 Posted by 파란크리스마스

출처

eMMC에 OS 설치

이미지 복원이 완료되면 SD 메모리를 제거하고 재부팅

eMMC 확인

pi@nanopim4v2:~$ fdisk -l | grep Disk
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/mmcblk2: 29.12 GiB, 31268536320 bytes, 61071360 sectors
Disklabel type: gpt
Disk identifier: 73987B6B-4974-4C94-A3E8-58AB2EB7A946
Disk /dev/mmcblk1: 14.86 GiB, 15931539456 bytes, 31116288 sectors
Disklabel type: dos
Disk identifier: 0x75c728fe
Disk /dev/zram0: 50 MiB, 52428800 bytes, 12800 sectors
Disk /dev/zram1: 1.88 GiB, 1992282112 bytes, 486397 sectors

eMMC에 OS 설치

pi@nanopim4v2:~$ sudo dd if=Armbian_20.11.3_Nanopim4v2_focal_current_5.9.14_desktop.img of=/dev/mmcblk2 bs=10MB
368+1 records in
368+1 records out
3686793216 bytes (3.7 GB, 3.4 GiB) copied, 68.1611 s, 54.1 MB/s

원격 데스크톱 설치

Xrdp 설치

pi@nanopim4v2:~$ sudo apt install xrdp xorgxrdp

xrdp 서비스 상태 확인

pi@nanopim4v2:~$ sudo systemctl status xrdp
● xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-01-04 00:48:08 KST; 24s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
   Main PID: 9093 (xrdp)
      Tasks: 1 (limit: 4383)
     Memory: 712.0K
     CGroup: /system.slice/xrdp.service
             └─9093 /usr/sbin/xrdp
 
 1월 04 00:48:07 nanopim4v2 xrdp[9092]: (9092)(281473703223312)[INFO ] address [0.0.0.0] port [3389] mode 1
 1월 04 00:48:07 nanopim4v2 xrdp[9092]: (9092)(281473703223312)[INFO ] listening to port 3389 on 0.0.0.0
 1월 04 00:48:07 nanopim4v2 xrdp[9092]: (9092)(281473703223312)[INFO ] xrdp_listen_pp done
 1월 04 00:48:07 nanopim4v2 xrdp[9092]: (9092)(281473703223312)[DEBUG] Closed socket 7 (AF_INET6 :: port 338>
 1월 04 00:48:07 nanopim4v2 systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after st>
 1월 04 00:48:08 nanopim4v2 systemd[1]: Started xrdp daemon.
 1월 04 00:48:09 nanopim4v2 xrdp[9093]: (9093)(281473703223312)[INFO ] starting xrdp with pid 9093
 1월 04 00:48:09 nanopim4v2 xrdp[9093]: (9093)(281473703223312)[INFO ] address [0.0.0.0] port [3389] mode 1
 1월 04 00:48:09 nanopim4v2 xrdp[9093]: (9093)(281473703223312)[INFO ] listening to port 3389 on 0.0.0.0
 1월 04 00:48:09 nanopim4v2 xrdp[9093]: (9093)(281473703223312)[INFO ] xrdp_listen_pp done

~/.xsession 생성 및 확인

pi@nanopim4v2:~$ ls /usr/bin/*session
/usr/bin/dbus-run-session  /usr/bin/xfce4-session
pi@NanoPi-M4v2:~$ echo "xfce4-session" > ~/.xsession
pi@NanoPi-M4v2:~$ cat ~/.xsession
xfce4-session

한글폰트 설치

pi@orangepi4:~$ sudo apt install language-pack-ko fonts-nanum fonts-nanum-extra

댓글을 달아 주세요