티스토리 뷰
728x90
출처
- NanoPi M4V2 - FriendlyARM WiKi
- NanoPi M4V2 Kit Review - Part 2: FriendlyCore Desktop
- Ubuntu를 WiFi (AP)로 만들어 봅니다. (첫번째 도전) : Tongchun
- How to setup XRDP server on NanoPC-T4/zh - FriendlyARM WiKi
NanoPi M4V2
eMMC에 Linux 설치
출처 : Flash Image to eMMC
- rk3399-sd-friendlydesktop-bionic-4.4-arm64-YYYYMMDD.img : eMMC사용 없이 SD 메모리에 OS 설치
- rk3399-eflasher-friendlydesktop-bionic-4.4-arm64-YYYYMMDD.img : NanoPi-M4V2의 전원을 켜면 SD 메모리에서 부팅되고 EFlasher 유틸리티가 자동으로 실행
eMMC 용량 확인
pi@NanoPi-M4v2:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /dev tmpfs 385M 1.1M 384M 1% /run overlay 52G 3.0G 49G 6% / tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup tmpfs 385M 16K 385M 1% /run/user/1000 /dev/mmcblk1p8 52G 3.0G 49G 6% /media/pi/userdata
Npi-config
출처 : Npi-config - FriendlyARM WiKi
npi-config 커맨드는 password, language, timezone, Hostname, SSH 활성화 / 비활성화, 자동 로그인, 하드웨어 (시리얼 / I2C / SPI / PWM / I2S) 활성화 / 비활성화 등과 같은 시스템 구성을 설정
pi@NanoPi-M4v2:~$ sudo npi-config
네트워크 정보
pi@NanoPi-M4v2:~$ sudo apt install lshw pi@NanoPi-M4v2:~$ sudo lshw -C network *-network:0 description: Wireless interface physical id: 7 logical name: wlan1 serial: d6:12:43:95:43:fc capabilities: ethernet physical wireless configuration: broadcast=yes driver=wl driverversion=0 multicast=yes wireless=IEEE 802.11 *-network:1 description: Wireless interface physical id: 8 logical name: wlan0 serial: d4:12:43:95:43:fc capabilities: ethernet physical wireless configuration: broadcast=yes driver=wl driverversion=0 ip=192.168.0.42 multicast=yes wireless=IEEE 802.11 *-network:2 description: Ethernet interface physical id: 9 logical name: eth0 serial: 4a:e9:88:5c:e0:ce size: 1Gbit/s capacity: 1Gbit/s capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=March_2013 duplex=full ip=192.168.0.2 link=yes multicast=yes port=MII speed=1Gbit/s
hostapd
서비스 상태 확인
pi@NanoPi-M4v2:~$ sudo systemctl status hostapd.service ● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-12-27 04:50:08 UTC; 1min 6s ago Process: 3795 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE) Dec 27 04:50:08 NanoPi-M4v2 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator... Dec 27 04:50:08 NanoPi-M4v2 hostapd[3795]: Configuration file: /etc/hostapd/hostapd.conf Dec 27 04:50:08 NanoPi-M4v2 hostapd[3795]: Could not open configuration file '/etc/hostapd/hostapd.conf' for reading. Dec 27 04:50:08 NanoPi-M4v2 hostapd[3795]: Failed to set up interface with /etc/hostapd/hostapd.conf Dec 27 04:50:08 NanoPi-M4v2 hostapd[3795]: Failed to initialize interface Dec 27 04:50:08 NanoPi-M4v2 systemd[1]: hostapd.service: Control process exited, code=exited status=1 Dec 27 04:50:08 NanoPi-M4v2 systemd[1]: hostapd.service: Failed with result 'exit-code'. Dec 27 04:50:08 NanoPi-M4v2 systemd[1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
hostapd.conf 파일 생성
hostapd 서비스 활성화를 위해서 hostapd.conf 파일 생성합니다.
pi@NanoPi-M4v2:~$ sudo vi /etc/hostapd/hostapd.conf
interface=wlan1 driver=nl80211 ssid=nanopi hw_mode=g channel=11 wpa=2 wpa_passphrase=1234567890 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP macaddr_acl=0
서비스 재실행
pi@NanoPi-M4v2:~$ sudo systemctl restart hostapd.service
원격 데스크톱 설치 (실패)
desktop environment 설치
pi@NanoPi-M4v2:~$ sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
Xrdp 설치
pi@NanoPi-M4v2:~$ sudo apt install xrdp xorgxrdp
xrdp 서비스 상태 확인
pi@NanoPi-M4v2:~$ sudo systemctl status xrdp ● xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2020-12-27 05:30:29 UTC; 15s ago Docs: man:xrdp(8) man:xrdp.ini(5) Main PID: 8874 (xrdp) Tasks: 1 (limit: 4603) CGroup: /system.slice/xrdp.service └─8874 /usr/sbin/xrdp Dec 27 05:30:28 NanoPi-M4v2 systemd[1]: Starting xrdp daemon... Dec 27 05:30:28 NanoPi-M4v2 xrdp[8873]: (8873)(547698823184)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389. Dec 27 05:30:28 NanoPi-M4v2 xrdp[8873]: (8873)(547698823184)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389) Dec 27 05:30:28 NanoPi-M4v2 systemd[1]: xrdp.service: Can't open PID file /var/run/xrdp/xrdp.pid (yet?) after start: No such file or directory Dec 27 05:30:29 NanoPi-M4v2 systemd[1]: Started xrdp daemon. Dec 27 05:30:30 NanoPi-M4v2 xrdp[8874]: (8874)(547698823184)[INFO ] starting xrdp with pid 8874 Dec 27 05:30:30 NanoPi-M4v2 xrdp[8874]: (8874)(547698823184)[INFO ] listening to port 3389 on 0.0.0.0
~/.xsession 생성 및 확인
pi@NanoPi-M4v2:~$ ls /usr/bin/*session /usr/bin/dbus-run-session /usr/bin/gnome-session /usr/bin/gnome-session-custom-session /usr/bin/lxsession /usr/bin/openbox-session /usr/bin/xfce4-session pi@NanoPi-M4v2:~$ echo "xfce4-session" > ~/.xsession pi@NanoPi-M4v2:~$ cat ~/.xsession xfce4-session
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- BPI-M4
- Java
- flex
- 레이싱모델 익스트림 포토 페스티벌
- Delphi
- 송주경
- 동경
- ffmpeg
- JavaScript
- 전예희
- SAS
- android
- 서울오토살롱
- Spring
- 튜닝쇼 2008
- NDK
- 일본여행
- Delphi Tip
- Mac
- ble
- Linux
- koba2010
- ubuntu
- oracle
- Spring MVC
- 지스타2007
- sas2009
- Xcode
- KOBA
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함