티스토리 뷰

OS/Orange PI

Orange Pi 4B

파란크리스마스 2020. 11. 25. 01:53
728x90

출처

Linux 정보 확인

orangepi@orangepi4:~$ cat /etc/issue
Debian GNU/Linux 9 \n \l

emmc에 linux 설치

완료 후 SD메모리를 제거하고 재부팅

orangepi@orangepi4:~$ sudo install_to_emmc
 
Mon Dec 14 16:05:52 UTC 2020
===============================
Installing Linux system to emmc
===============================
 
 
WARNING: EMMC WILL BE ERASED !, Continue (y/N)?  y
Formating partition, please wait ...
GPT fdisk (gdisk) version 1.0.1
 
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present
 
Found valid GPT with protective MBR; using GPT.
 
Command (? for help): 
Expert command (? for help): Partition number (1-4): Enter the partition's new unique GUID ('R' to randomize): New GUID is 615E0000-0000-4B53-8000-1D28000054A9
 
Expert command (? for help): 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
 
Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/mmcblk1.
The operation has completed successfully.
  linux partition formated.
Instaling u-boot to EMMC ...
Instaling boot.img to EMMC ...
 
Mounting EMMC partitions...
 
Copying file system to EMMC ...
 
 
*******************************
Linux system installed to EMMC.
*******************************

IP 확인

orangepi@orangepi4:~$ ip addr show
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 02:fa:df:50:80:7d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global dynamic eth0
       valid_lft 6567sec preferred_lft 6567sec
    inet6 fe80::2aac:17b:6b35:953a/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0:  mtu 1500 qdisc pfifo_fast state DORMANT group default qlen 1000
    link/ether d4:12:43:26:11:e0 brd ff:ff:ff:ff:ff:ff

한글폰트 설치

pi@orangepi4:~$ sudo apt install fonts-nanum font-nanum-coding fonts-nanum-extra

원격 데스크톱 설치

일반적으로 Linux 서버에는 기본적으로 데스크톱 환경이 설치되어 있지 않습니다. 첫 번째 단계는 X11과 Xrdp의 백엔드 역할을 할 데스크톱 환경을 설치하는 것입니다.

데비안 저장소에서 사용할 수있는 여러 데스크톱 환경 (DE)이 있습니다. 여기에서는 Xfce를 설치할 것입니다. 빠르고 안정적이며 가벼운 데스크톱 환경으로 원격 서버에서 사용하기에 이상적입니다. Gnome과 같은 다른 데스크탑 환경을 선호하는 경우 Xfce 대신 설치할 수 있습니다.

orangepi@orangepi4:~$ sudo apt update
orangepi@orangepi4:~$ sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

Xrdp 설치

orangepi@orangepi4:~$ sudo apt install xrdp

xrdp 서비스 상태 확인

orangepi@orangepi4:~$ sudo systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-12-22 14:37:39 UTC; 50s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
 Main PID: 29490 (xrdp)
   CGroup: /system.slice/xrdp.service
           └─29490 /usr/sbin/xrdp

Dec 22 14:37:38 orangepi4 systemd[1]: Starting xrdp daemon...
Dec 22 14:37:38 orangepi4 systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or 
Dec 22 14:37:39 orangepi4 systemd[1]: Started xrdp daemon.
Dec 22 14:37:40 orangepi4 xrdp[29490]: (29490)(548437458944)[INFO ] starting xrdp with pid 29490
Dec 22 14:37:40 orangepi4 xrdp[29490]: (29490)(548437458944)[INFO ] listening to port 3389 on 0.0.0.0

~/.xsession 확인

orangepi@orangepi4:~$ cat ~/.xsession
xfce4-session

KDE 설치

KDE 데스크탑 설치

orangepi@orangepi4:~$ sudo apt -y install task-kde-desktop

Plasma 설정

KDE로 원격 데스크탑 실행시 설정

orangepi@orangepi4:~$ sudo echo "startkde" > ~/.xsession
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함