티스토리 뷰
728x90
Orange PI Zero
출처 : 스터디메이크 :: 오렌지파이 제로 보드 간단 사용기
Xunlong Orange Pi Zero
OS 설치
OS 다운로드 - Orange Pi Zero – armbian
UART USB 케이블 연결
부팅후 계정 설정
Ubuntu 16.04.3 LTS orangepizero ttyS0 orangepizero login: root Password: [1234] You are required to change your password immediately (root enforced) Changing password for root. (current) UNIX password: [1234] Enter new UNIX password: [orangepi] Retype new UNIX password: [orangepi] ___ ____ _ _____ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) |__ /___ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | / // _ \ '__/ _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | / /| __/ | | (_) | \___/|_| \__,_|_| |_|\__, |\___| |_| |_| /____\___|_| \___/ |___/ Welcome to ARMBIAN 5.35 user-built Ubuntu 16.04.3 LTS 3.4.113-sun8i System load: 0.03 0.14 0.07 Up time: 4 min Memory usage: 6 % of 494MB IP: CPU temp: 46°C Usage of /: 71% of 1.4G [ General system configuration (beta): armbian-config ] Warning: a reboot is needed to finish resizing the filesystem Please reboot the system as soon as possible New to Armbian? Check the documentation first: https://docs.armbian.com Thank you for choosing Armbian! Support: www.armbian.com Creating a new user account. Pressto abort Please provide a username (eg. your forename): pi Trying to add user pi Adding user `pi' ... Adding new group `pi' (1000) ... Adding new user `pi' (1000) with group `pi' ... Creating home directory `/home/pi' ... Copying files from `/etc/skel' ... Enter new UNIX password: [orangepi] Retype new UNIX password: [orangepi] passwd: password updated successfully Changing the user information for pi Enter the new value, or press ENTER for the default Full Name []: pi Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Dear pi, your account pi has been created and is sudo enabled. Please use this account for your daily work from now on. Warning: a reboot is needed to finish resizing the filesystem Please reboot the system now root@orangepizero:~#
Wifi 설정
출처 : 014. Raspberry Pi 라즈베리 파이 - wheezy무선랜 ... - Tsunami - Tistory
$ cd /etc/ifplugd/action.d/ $ sudo mv ifupdown ifupdown.bk $ sudo cp /etc/wpa_supplicant/ifupdown.sh ./ifupdown
armbian 와이파이 설정
출처 : 오렌지파이 제로 무선인터넷 설정 1.2 암비안 와이파이 설정
$ sudo nmtui
SD 확장
SD 확장전 용량확인
$ df -h Filesystem Size Used Avail Use% Mounted on udev 181M 0 181M 0% /dev tmpfs 50M 1.2M 49M 3% /run /dev/mmcblk0p1 7.2G 1.1G 6.1G 15% / tmpfs 248M 0 248M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 248M 0 248M 0% /sys/fs/cgroup tmpfs 248M 0 248M 0% /tmp log2ram 50M 1.3M 49M 3% /var/log tmpfs 50M 0 50M 0% /run/user/1000
SD FDisk
pi@orangepizero:~$ sudo fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.27.1). 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: 14.9 GiB, 15931539456 bytes, 31116288 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: 0xa3a6ea09 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 15213343 15205152 7.3G 83 Linux Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-31116287, default 2048): 8192 Last sector, +sectors or +size{K,M,G,T,P} (8192-31116287, default 31116287): Created a new partition 1 of type 'Linux' and of size 14.9 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). pi@orangepizero:~$ sudo shutdown -r now
SD 확장
$ sudo resize2fs /dev/mmcblk0p1 [sudo] password for pi: resize2fs 1.42.13 (17-May-2015) Filesystem at /dev/mmcblk0p1 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 The filesystem on /dev/mmcblk0p1 is now 3888512 (4k) blocks long.
SD 확장 확인
$ df -h Filesystem Size Used Avail Use% Mounted on udev 181M 0 181M 0% /dev tmpfs 50M 1.2M 49M 3% /run /dev/mmcblk0p1 15G 1.1G 14G 8% / tmpfs 248M 0 248M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 248M 0 248M 0% /sys/fs/cgroup tmpfs 248M 0 248M 0% /tmp log2ram 50M 1.5M 49M 3% /var/log tmpfs 50M 0 50M 0% /run/user/1000
JDK 설치
출처 : Install Java 8 on Armbian (Orange Pi Lite or higher) • DIY Projects
저장소 추가
$ sudo add-apt-repository ppa:webupd8team/java
추가한 저장소 반영
$ sudo apt-get update
JDK 설치
$ sudo apt-get install oracle-java8-installer
JAVA_HOME 환경변수 추가
$ sudo vi /etc/profile
내용 추가 export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
JDK 설치 확인
$ $JAVA_HOME/bin/java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) Client VM (build 25.151-b12, mixed mode)
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- NDK
- android
- MySQL
- sas2009
- ffmpeg
- JavaScript
- SAS
- flex
- 지스타2007
- 서울오토살롱
- koba2010
- 동경
- oracle
- Linux
- Spring
- 송주경
- 전예희
- KOBA
- Mac
- ble
- Delphi Tip
- ubuntu
- Spring MVC
- BPI-M4
- Delphi
- 튜닝쇼 2008
- Xcode
- Java
- 레이싱모델 익스트림 포토 페스티벌
- 일본여행
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함