티스토리 뷰
728x90
Orange PI Zero
출처 : 스터디메이크 :: 오렌지파이 제로 보드 간단 사용기
Xunlong Orange Pi Zero
OS 설치
OS 다운로드 - Orange Pi Zero – armbian
vi 설치
$ sudo apt-get install vim
Orange PI Zero 와이파이 설정
출처 : 오렌지파이 제로 무선인터넷 설정 1.2 암비안 와이파이 설정
$ sudo nmtui
SD 확장
SD 확장전 용량확인
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 1.6G 1.2G 349M 78% / devtmpfs 168M 0 168M 0% /dev tmpfs 224M 0 224M 0% /dev/shm tmpfs 224M 8.5M 216M 4% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 224M 0 224M 0% /sys/fs/cgroup tmpfs 224M 4.0K 224M 1% /tmp /dev/mmcblk0p1 63M 4.6M 59M 8% /media/boot tmpfs 45M 0 45M 0% /run/user/107 tmpfs 45M 0 45M 0% /run/user/1000
SD FDisk
orangepi@OrangePizero:~$ sudo fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.25.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000b04ea Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 40960 172031 131072 64M b W95 FAT32 /dev/mmcblk0p2 172032 3514367 3342336 1.6G 83 Linux Command (m for help): d Partition number (1,2, default 2): 2 Partition 2 has been deleted. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (2048-15523839, default 2048): 172032 Last sector, +sectors or +size{K,M,G,T,P} (172032-15523839, default 15523839): Created a new partition 2 of type 'Linux' and of size 7.3 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). orangepi@OrangePizero:~$ sudo shutdown -r now
SD 확장
$ sudo resize2fs /dev/mmcblk0p2 resize2fs 1.42.12 (29-Aug-2014) Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 The filesystem on /dev/mmcblk0p2 is now 1918976 (4k) blocks long.
SD 확장 확인
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 7.3G 1.2G 5.8G 17% / devtmpfs 168M 0 168M 0% /dev tmpfs 224M 0 224M 0% /dev/shm tmpfs 224M 8.5M 216M 4% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 224M 0 224M 0% /sys/fs/cgroup tmpfs 224M 4.0K 224M 1% /tmp /dev/mmcblk0p1 63M 4.6M 59M 8% /media/boot tmpfs 45M 0 45M 0% /run/user/107 tmpfs 45M 0 45M 0% /run/user/1000
vnc 설치
출처 : Armbian: Access the Remote Desktop of Orange Pi with VNC
vnc 설치
$ sudo apt-get update && apt-get upgrade $ sudo apt-get install tightvncserver
vnc 사용자 추가
$ su - # adduser vnc Adding user `vnc' ... Adding new group `vnc' (1001) ... Adding new user `vnc' (1001) with group `vnc' ... Creating home directory `/home/vnc' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for vnc Enter the new value, or press ENTER for the default Full Name []: VNCuser Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n]
vnc 사용자 추가
# gpasswd -a vnc sudo Adding user vnc to group sudo
vnc 서버 실행
# su - vnc $ vncserver :1 You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? *** buffer overflow detected ***: vncpasswd terminated xauth: file /home/vnc/.Xauthority does not exist New 'X' desktop is OrangePizero:1 Creating default startup script /home/vnc/.vnc/xstartup Starting applications specified in /home/vnc/.vnc/xstartup Log file is /home/vnc/.vnc/OrangePizero:1.log
JDK 설치
$ sudo apt install -t jessie-backports openjdk-8-jre openjdk-8-jre-headless openjdk-8-jdk openjdk-8-jdk-headless ca-certificates-java
JAVA_HOME 환경변수 추가
$ sudo vi /etc/profile
내용 추가 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Spring
- Delphi Tip
- Spring MVC
- NDK
- 송주경
- sas2009
- 지스타2007
- 튜닝쇼 2008
- Java
- Xcode
- flex
- android
- koba2010
- Mac
- ubuntu
- 전예희
- SAS
- ble
- 동경
- 일본여행
- oracle
- 서울오토살롱
- KOBA
- Delphi
- Linux
- MySQL
- 레이싱모델 익스트림 포토 페스티벌
- ffmpeg
- JavaScript
- BPI-M4
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함