Search

'2021/01'에 해당되는 글 5건

  1. 2021.01.22 Pi Case 40 | Cooler Master (1)
  2. 2021.01.21 Orange Pi Zero2
  3. 2021.01.16 NanoPi NEO2 Black
  4. 2021.01.15 Install CodeTyphon in QT5 environment on Mac
  5. 2021.01.03 NanoPi M4V2 : Armbian Linux 버전

Pi Case 40 | Cooler Master

OS/Raspberry Pi 2021. 1. 22. 02:20 Posted by 파란크리스마스

출처

Pi Case 40 | Cooler Master

쿨러나 PC용 케이스로 유명한 쿨러마스터에서 만든 라즈베리파이용 케이스입니다. 킥스타트에서 처음 소개 되었고, 현재는 아마존에서도 구입이 가능합니다.

시중에 라즈베리파이 케이스가 많아서 특별하게 더 다른것은 없지만, 개인적으로 디자인은 마음에 들었습니다.

쿨러 없이 상판이 알루미늄으로 CPU의 열이 전도 되어 상판 전체적으로 방열하도록 되어 있고, 하판은 플라스틱으로 되어 있어서 아쉬운 부분이 있습니다.

GPIO핀은 상판에서 꽃아 90도로 회전해서 오른쪽 벽에 GPIO를 사용할 수 있도록 되어 있습니다. 고무로된 덥개를 열면 됩니다.

댓글을 달아 주세요

  1. 무료자료 2021.02.09 13:46  댓글주소  수정/삭제  댓글쓰기

    안녕하세요.
    2월의 시작~즐겁게 시작하셨나 모르겠습니다.
    티스토리 포럼에서 블로그 주소보고 방문하였습니다.

    다름이 아니라 무료 블로그 교육자료를 배포하고 있습니다. 구글 드라이브에서 다운로드 받아 정독해보시면 블로그 운영에 도움이 되실겁니다.
    https://drive.google.com/file/d/1Jgv7XshH-kH9IYuIDEcvl2YE3K3Iwrdi/view?usp=sharing

    현재 네이버 카페도 운영중에 있는데요.
    저의 2020년 7월 ~ 12월 수익이 궁금하시다면 아래글에서 확인해보세요.
    https://cafe.naver.com/blog300/2607

    원하지 않았던 정보였다면 죄송합니다.
    2021년 풍성한 한해가 되시길 기원합니다.

Orange Pi Zero2

OS/Orange PI 2021. 1. 21. 21:46 Posted by 파란크리스마스

출처

Orange Pi Zero2

Shenzhen Xunlong Software CO.,Limited 제공 이미지, 스펙

댓글을 달아 주세요

NanoPi NEO2 Black

OS/NanoPi 2021. 1. 16. 02:18 Posted by 파란크리스마스

출처

리눅스 정보 확인

CPU 정보 확인

pi@NanoPi-NEO2-Black:~$ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4
 
 ... 생략 ...
 
Hardware        : Allwinnersun50iw2Family
Revision        : 0000
Serial          : 0000000000000000

instruction set architecture (ISA)

pi@NanoPi-NEO2-Black:~$ uname -i
aarch64

eMMC에 OS 설치

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

eMMC 확인

pi@NanoPi-NEO2-Black:~$ sudo fdisk -l | grep Disk
Disk /dev/mmcblk0: 59.5 GiB, 63864569856 bytes, 124735488 sectors
Disklabel type: dos
Disk identifier: 0xd70475ff
Disk /dev/mmcblk1: 29.1 GiB, 31268536320 bytes, 61071360 sectors
Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors

eMMC에 OS 설치

pi@NanoPi-NEO2-Black:~$ sudo dd if=nanopi-neo2-black_sd_friendlycore-xenial_4.14_arm64_20191219.img of=/dev/mmcblk1 bs=10MB
278+1 records in
278+1 records out
2787115008 bytes (2.8 GB, 2.6 GiB) copied, 123.871 s, 22.5 MB/s

원격 데스크톱 설치

desktop environment 설치

pi@NanoPi-NEO2-Black:~$ sudo apt install xfce4

Xrdp 설치

pi@NanoPi-NEO2-Black:~$ sudo apt install xrdp

xrdp 서비스 상태 확인

pi@NanoPi-NEO2-Black:~$ systemctl status xrdp
● xrdp.service - LSB: Start xrdp and sesman daemons
   Loaded: loaded (/etc/init.d/xrdp; bad; vendor preset: enabled)
   Active: active (running) since Fri 2021-01-15 16:59:06 UTC; 11s ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/xrdp.service
           ├─15133 /usr/sbin/xrdp
           └─15135 /usr/sbin/xrdp-sesman

~/.xsession 생성 및 확인

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

웹브라우저 설치

pi@NanoPi-NEO2-Black:~$ sudo apt install chromium-browser

댓글을 달아 주세요

Install CodeTyphon in QT5 environment on Mac

OS/Mac 2021. 1. 15. 23:41 Posted by 파란크리스마스

출처

xcode 설치

bluesanta@Sunghoui-MacBookPro ~ % xcode-select --install

"sudo" 루트 권한 부여

bluesanta@Sunghoui-MacBookPro ~ % sudo vi /etc/sudoers

%admin          ALL = (ALL) ALL
bluesanta       ALL=(ALL) NOPASSWD: ALL

CodeTyphon 압축 해제

bluesanta@Sunghoui-MacBookPro ~ % cd Downloads/
bluesanta@Sunghoui-MacBookPro Downloads % unzip CodeTyphonIns.zip

7zip 설치

bluesanta@Sunghoui-MacBookPro ~ % brew install p7zip

필수 라이브러리 설치 (xterm, wget, gdb이 설치되어 있는지 먼저 확인 할것)

bluesanta@Sunghoui-MacBookPro ~ % brew install wget gdb
bluesanta@Sunghoui-MacBookPro ~ % ln -s /usr/local/Homebrew/Library/Homebrew/shims/mac/super/gmake /usr/local/bin/gmake
bluesanta@Sunghoui-MacBookPro ~ % ln -s /usr/share/terminfo/78/xterm /usr/local/bin/xterm
bluesanta@Sunghoui-MacBookPro ~ % ln -s /Library/Developer/CommandLineTools/usr/bin/make /usr/local/bin/make
bluesanta@Sunghoui-MacBookPro ~ % ln -s /usr/local/bin/gdb /usr/local/bin/ggdb

Qt 버전 확인

bluesanta@Sunghoui-MacBookPro ~ % /usr/local/Cellar/qt/5.15.2/bin/qmake --version
QMake version 3.1
Using Qt version 5.15.2 in /usr/local/Cellar/qt/5.15.2/lib

Qt5pas 라이브러리 설치 (Option : CodeTyphon 설치시 11) -- Platform (widget) Setup 에서 실행)

qt5-qmake 설치

bluesanta@Sunghoui-MacBookPro ~ % brew install qt5
 
 ... 생략 ...
 
qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.
 
If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.zshrc
 
For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/usr/local/opt/qt/include"
 
==> Summary
🍺  /usr/local/Cellar/qt/5.15.2: 10,688 files, 367.9MB
bluesanta@Sunghoui-MacBookPro ~ % brew install Caskroom/cask/qt-creator
==> Installing Cask qt-creator
==> Moving App 'Qt Creator.app' to '/Applications/Qt Creator.app'.
🍺  qt-creator was successfully installed!

ln_Typhon1_QT5pas_Build.sh 수정

bluesanta@Sunghoui-MacBookPro ScriptsLin % vi ln_Typhon1_QT5pas_Build.sh

qmake 경로 수정

  Darwin)
       vQMake=/usr/local/Cellar/qt/5.15.2/bin/qmake

수동 컴파일 및 설치

bluesanta@Sunghoui-MacBookPro /opt % sudo mkdir -p /opt/local/libexec
bluesanta@Sunghoui-MacBookPro /opt % sudo ln -s /usr/local/Cellar/qt/5.15.2 /opt/
bluesanta@Sunghoui-MacBookPro ScriptsLin % chmod 755 *.sh
bluesanta@Sunghoui-MacBookPro ScriptsLin % ./ln_Typhon1_QT5pas_Build.sh
 
 ... 생략 ...
 
mv -f Qt5Pas Qt5Pas.framework/Versions/1/Qt5Pas
ln -s Versions/Current/Qt5Pas Qt5Pas.framework/Qt5Pas
rm -f -r /usr/local/Cellar/qt/5.15.2/lib/Qt5Pas.framework
/usr/local/Cellar/qt/5.15.2/bin/qmake -install qinstall Qt5Pas.framework /usr/local/Cellar/qt/5.15.2/lib/Qt5Pas.framework
strip -S -x /usr/local/Cellar/qt/5.15.2/lib/Qt5Pas.framework/Versions/1/Qt5Pas
/usr/local/codetyphon/qt5pas/x86_64-darwin
make install
   
   
---------------------------------------
[INFO]: Qt5Pas.framework Library finish Build OK for x86_64-darwin
   
   
---------------------------------------------------------
    Make qt5pas Libraries Links
---------------------------------------------------------
   
[INFO] Make Qt5Pas.framework links to /Library/Frameworks/Qt5Pas.framework for x86_64-darwin finish OK

fpc.cnf 수정

bluesanta@Sunghoui-MacBookPro ScriptsLin % vi /usr/local/codetyphon/fpc/fpc64/bin/x86_64-darwin/fpc.cnf

# -------------
# Linking
# -------------
-Ff/Library/Frameworks

CodeTyphon 설치 스크립트 실행

bluesanta@Sunghoui-MacBookPro Downloads % cd CodeTyphonIns/
bluesanta@Sunghoui-MacBookPro CodeTyphonIns % export FPCOPT=-Ff/Library/Frameworks
bluesanta@Sunghoui-MacBookPro CodeTyphonIns % ./install.sh

0번 선택

====================================================
             CodeTyphon Studio 
            Version 7.30 (GEN 7)
  Installation for Linux-Solaris-Openindiana-MacOS
          FreeBSD-NetBSD-OpenBSD-DragonFly
====================================================
 
   0) Install CodeTyphon Studio
 
   9) Exit
 
>>> Select an action (press 0..9 key): 0

11번 선택

====================================================
  CodeTyphon Studio 7.30 Setup for Darwin64
   Settings: Platform=cocoa  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 11

5번 QT5 선택

====================================================
    CodeTyphon Studio MacOS Platform (widget) Setup 
        Current Platform: cocoa
====================================================
   
Warning: Install System Libraries after every Platform change
   
   1) Cocoa         (Default)
   2) Carbon
   3) GTK2
   4) QT4
   5) QT5
   6) GTK3           (Experimental)
   7) FpGUI          (Experimental)
   8) CustomDrawn    (Experimental)
   
   9) Back to Main Setup
   
>>> Select a platform (press 0..9 key): 5

12번 선택

====================================================
  CodeTyphon Studio 7.30 Setup for Darwin64
   Settings: Platform=qt5  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 12

1번 선택

====================================================
    CodeTyphon Studio Multi-Architecture Setup
      Current Multiarch Mode: 0
====================================================
   
   0) NO  Multi-Architecture Mode (Multiarch=0)
   
   1) Use Multi-Architecture Mode (Multiarch=1)
   
   
   9) Back to Main Setup
   
>>> Select Mode (press 0..9 key): 1

0번 선택 ( 0) Install System Libraries )

====================================================
  CodeTyphon Studio 7.30 Setup for Darwin64
   Settings: Platform=qt5  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 0

8번 선택 ( 8) Remove and Build ALL )

====================================================
  CodeTyphon Studio 7.30 Setup for Darwin64
   Settings: Platform=qt5  Multiarch Mode=1
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 8

9번 선택 ( 9) EXIT )

====================================================
  CodeTyphon Studio 7.30 Setup for Darwin64
   Settings: Platform=qt5  Multiarch Mode=0
====================================================
   
   0) Install System Libraries
   1) Run CodeTyphon Center (CTC)
   
     11) -- Platform (widget) Setup
     12) -- Multi-Architecture Setup
   
   3) Remove FreePascal
   4) Remove and Build FreePascal
   
   5) Remove Typhon IDE
   6) Remove and Build Typhon IDE
   
   7) Remove ALL
   8) Remove and Build ALL
   
   9) EXIT
   
>>> Select an action (press 0..9 key): 9

/opt/local/libexec/qt5

bluesanta@Sunghoui-MacBookPro libexec % sudo ln -s /opt/local/libexec/qt5-mac/ /opt/local/libexec/qt5

실행

댓글을 달아 주세요

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

댓글을 달아 주세요