Firefly-rk3399 开发板环境搭建

Firefly教程网站:http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/started.html

系统烧录:

http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/linux_sdk.html#ubuntu_upgrade

ubuntu系统烧录后用户名:firefly 密码:firefly

1.安装基础环境:

1.1 安装python3.6

输入命令:

sudo add-apt-repository ppa:jonathonf/python-3.6

按Enter确认

输入命令:

sudo apt-get upgrade

sudo apt-get install python3.6

调整Python3的优先级,使得3.6优先级较高

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

重启

sudo reboot

升级pip

sudo python3 -m pip install –upgrade –force pip

安装python编译环境

sudo apt-get install aptitude

sudo aptitude install python3.6-dev

安装依赖:

sudo pip3 install numpy

sudo pip3 install pyserial

sudo pip3 install pandas

sudo pip3 install Matplotlib

 

 

1.2 安装环境

sudo apt-get update

sudo apt-get upgarde

sudo apt-get install python-pip python-dev build-essential

sudo apt-get install python3-pip python3-dev build-essential

sudo apt-get install gedit

sudo apt-get install openssl*

sudo apt-get install ipython3

sudo apt-get install minicom

sudo apt-get install cmake git

sudo apt-get install inetutils-ping

安装中文库和输入法:

sudo apt-get install scim scim-pinyin

安装火狐浏览器:

sudo apt-get install firefox

 

 

2.安装opencv

2.1 安装依赖:

sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

sudo apt-get install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

2.2 安装opencv

下载opencv库的zip文件 我这里下载的是opencv-3.4.0.zip

         cd

mkdir app

         cp Downloads/opencv-3.4.0.zip app/

         cd app

         unzip opencv-3.4.0.zip

         cd opencv-3.4.0

         mkdir release

         cd release

cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..

sudo make -j4 编译的时间比较长,耐心等待吧

编译完成后安装:

sudo make install 安装这一步比较快

 

完成后修改/etc/ld.so.conf文件,在文件中添加:

/usr/local/lib

 

使配置生效:

sudo /sbin/ldconfig

 

测试:

进入python3

输入:import cv2

可以成功导入表示安装成功

 

3.远程登录

3.1 安装ssh

sudo apt-get install openssh-server

         安装完成后可以使用以下命令:

         sudo service sshd status

         sudo service sshd start

3.2  在/etc/ssh/sshd_config文件中追加

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

3.3 免密登录

客户机输入:ssh-keygen -t rsa

一路回车

将生成的.pub文件复制到服务端的~/.ssh/authorized_keys中

3.4 设置静态ip

sudo gedit /etc/network/interfaces

         在后面添加:

auto wlan0

iface wlan0 inet static

address 192.168.0.201

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameservers 192.168.0.1

wpa-ssid "maxiao"

wpa-passphrase "12345678"

wireless-channel 11

 

重启网络:

         sudo /etc/init.d/networking restart

         

posted @ 2019-04-03 16:50  啸傲风月  阅读(5760)  评论(0编辑  收藏  举报