Running IOTA IRI on Rock64 with Docker

rock64iri code can be found on GitHub: https://github.com/YuanGao-NAU/IOTA Since IRI 1.6.1 got a lot of improvements in memory management I felt it was a good time to get my rock64 out of the shelf again. IRI runs perfectly fine with 2GB of RAM these days so running it on the rock64 got a lot easier (without swap-file, hickups and so […]

Neural Network DEMO with Rock64@Pine64 aarch64 OS and USB3.0

Neural Network DEMO with Rock64@Pine64 aarch64 OS and USB3.0 Code can be found on GitHub: https://github.com/YuanGao-NAU/EdgeTPU Installation of Packages for Demo OpenCV with Python3.5 Needs installation from source code reason why pip3 not providing comaptible opencv-phton. First of all, Install bellow in SDCard(>16GB) by Ethcer, Armbian_5.75_Rock64_Debian_stretch_default_4.4.174_desktop.img boot! apt install bellow, python3-pip python-pip pip3 install setuptools Check Python --version 3.5.3 To […]

Estimation of Google Edge TPU Accelerator

Estimation of Google Edge TPU Accelerator Code can be found on GitHub: https://github.com/YuanGao-NAU/EdgeTPU Estimates Edge TPU performace on some linux system such as RaspberryPi, Rock64@Pine64 etc. As of now, Raspbian OS bases on Ubuntu Xenial(16.04 LTS) build as 32bit OS. Rock64@Pine64 has compatible form factor of RaspberryPi 3 Model B(+), but Rock64@Pine64 supports many variant Destribution of Linux such as […]

Visual Studio 2019 Key

Hi guys, here are two keys for visual studio 2019: Visual Studio 2019 Enterprise BF8Y8-GN2QH-T84XB-QVY3B-RC4DF Visual Studio 2019 Professional NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y Hope that can help you guys.

How to deploy Pi Dashboard on Rock64

Introduction This blog is based on How to install LAMP/LNMP on rock64 with aapanel. So, in order to install pi dashboard successfully, you need to install a web server with PHP support first. What is Pi Dashboard? Pi Dashboard (Pi Dashboard) is an open source IoT device monitoring tool. At present, it is mainly targeted at the Raspberry Pi platform, […]

How to install LAMP/LNMP on Rock64 with aapanel

What is aapanel? aaPanel, a simple but powerful control panel, can manage the web server through web-based GUI(Graphical User Interface). aaPanel provides the one-click function such as one-click install LNMP/LAMP developing environment and software. The main goal is helping users to save the time of deploying, thus users just focus on their own project that is fine. What do you […]

基于RK3399芯片的Orange Pi4与树莓派4B对比

价格 树莓派4B早已名声在外,至于刚上线的这款Orange Pi 4,其中不带emmc的版本,功能与树莓派4B差不多,但是价格却低了不少,值得研究。下面是两款板子分别的硬件参数。 Orange Pi 4的硬件特性 砍掉了部分不常用的功能之后,新品Orange Pi 4面积比前任小了一半多,依旧采用瑞芯微RK3399,具有双频Wi-Fi、蓝牙5.0、一个 HDMI 2.0接口和3.5mm耳机插口、千兆网口、MIPI CSI相机接口、立体声耳机接口、1个USB3.0、2个USB2.0、1个USB 3.0 Type-C 。除了基础的40pin GPIO接口之外,还增添了24pin PCIE接口,可接PCIE网卡、SATA硬盘等设备。 Raspberry Pi 树莓派4代破天荒的使用了千兆网(3B+是伪千兆),并且加入了USB3.0接口。与此同时,还支持双屏异显,但美中不足的是其充电接口设计存在缺陷,部分线缆无法正常使用。并且,树莓派4使用Micro HDMI接口,使用时还需转接线才行,这确实是一大槽点。不过4代相对于之前还是有很大进步的,用说牙膏厂的话就是这次一屁股坐在了牙膏管上。希望下一代能加入PCIE接口。 结语 毫无疑问,树莓派在社区支持上是完爆其他的板子的,尤其是它的GPIO,目前其他板子的GPIO能够作为卖点的几乎没有,树莓派可以说是独领风骚。因此,如果需要接外围设备使用的建议买树莓派使用。其他应用的话酌情考虑吧。当然,这不是说其他板子不行,近几年来armbian发展很迅猛,几乎支持了所有的开发板(貌似移除了树莓派)。如果不考虑使用树莓派的GPIO的话倒是有很多板子可以一战。而且armbian的支持可以说是非常好,一直在更新,目前已经用上了ubuntu bionic以及debian buster,可以说是非常的与时俱进了。因此,如果不使用GPIO的话,建议考虑其他开源板子,或许可以带来更大的性能提升。

Linux如何使程序开机自动在后台运行

前言 在日常使用linux时我们总会遇到这样的问题,需要使程序在后台保持开机自动运行。例如常见的服务ssh,cron等。我之前使用过centOs,对于这个系统非常简单,只要把可执行文件放到特定目录即可保证开机运行,但是就我所知,在比较新的debian和ubuntu下都无效,需要使用systemctl来操作,比较麻烦。所以,今天我要介绍的是如何使用cron实现这一目的。 方法 shell脚本 在此,我们创建一个脚本名为task.sh,内容如下: #!/bin/bash #ps -ef |grep zookeeper 这个就是看zookeeper的启动情况 #grep -v "grep" 是为了去掉查询 grep的那一条 #wc -l 是计数的 COUNT=$(ps -ef |grep zookeeper |grep -v "grep" |wc -l) echo $COUNT if [ $COUNT -eq 0 ]; then ./zookeeper else echo is RUN fi 创建cron任务 通过crontab 命令,我们可以在固定的间隔时间执行指定的系统指令或 shell script脚本。时间间隔的单位可以是分钟、小时、日、月、周及以上的任意组合。这个命令非常适合周期性的日志分析或数据备份等工作。 在命令行输入以下命令打开cron任务列表文件: crontab -e 如果是第一次打开,会出现如下提示: 不同的系统可能会有不同的选项,选择自己会的即可。 打开以后就界面如下所示: 可以看到,里面啥都没有。但是不同的系统可能不一样,有的会有一些注释告诉你怎么用并给几个示例。下面我们学习一下如何使用crontab。crontab的格式如下: #分 时 日 月 星期 […]

Easiest Way to Install VS code on Raspberry Pi

Brief Introduction What's vscode? VS code is a text editor developed by Microsoft. It is a powerful and nice editor, many plugins are available and almost covers all of the programming languages. That's why a lot of people are using it. In this work, I will help you to install vs code on raspberry pi. features debug tools varies of […]

How to install pi dashboard on Raspberry Pi

What is Pi Dashboard? Pi Dashboard (Pi Dashboard) is an open source IoT device monitoring tool. At present, it is mainly targeted at the Raspberry Pi platform, and it is compatible with other hardware products which are similar to Raspberry Pi. You only need to install the PHP server environment on the Raspberry Pi, and you can easily deploy a […]