美文网首页
树莓派安装记

树莓派安装记

作者: Love_Jane | 来源:发表于2017-11-21 10:27 被阅读0次

感觉自己就是一年瞎折腾的命,树莓派不知道装了多少遍了,这不前几天脆弱的树莓派在小儿手下突然崩溃,后来发现板子没有什么问题,只是SD卡的分区好像出现了问题,导致树莓派在重启的时候无法正常读取数据而卡在一个四色图上。万般无奈,只能重新安装系统,这里就对重新安装系统的过程做一个简单的记录,以防后面还需要重新安装。

  1. SD卡烧写,这个比较简单,直接官网下载最新的镜像写到SD卡就好,不过linux下一直写不成功,只好在windows下用工具写入
  2. 改软件源,这个是非常有必要的,raspberry自带的源太慢,还是阿里的比较靠谱:
 #/etc/apt/source.list
  # deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
  # Uncomment line below then 'apt-get update' to enable 'apt-get source'
  # deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
  deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main non-free contrib
  1. 安装常用的软件
sudo apt update
sudo apt install redis-server tmux python3 python3-pip python3-dev default-libmysqlclient-dev aria2 samba samba-common-dev zsh nginx lua5.3 lua5.3-dev python-dev build-essential cmake w3m ncurses-dev git
  1. 安装oh-my-zsh
  2. 编译安装VIM,因为需要用到YCM,所以只能编译一个带有python扩展的VIM
cd ~
mkdir apps
wget ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2
tar -jxvf vim-8.0.tar.bz2
cd vim80

./configure --prefix=/usr/local/ --enable-multibyte --enable-cscope=yes --enable-pythoninterp=yes --enable-sniff --enable-xim --enable-python3interp=yes --with-python-config-dir=/usr/lib/python2.7/config-arm-linux-gnueabihf --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-arm-linux-gnueabihf
sudo make
sudo make install
vim --version|grep python

  1. 安装 GO
cd ~/apps
wget https://storage.googleapis.com/golang/go1.9.2.linux-armv6l.tar.gz
tar -xzf go1.9.2.linux-armv6l.tar.gz
echo "Please add env variables"
echo "export GOROOT=$HOME/apps/go"
echo "export PATH=$PATH:$GOROOT/bin"
  1. 安装YCM
#bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cd ~/.vim/bundle
git clone --recursive https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
echo "When compiling YCM, Pi needs an extra swap"
sudo dd if=/dev/zero of=/swapfile1GB bs=1M count=1024
sudo mkswap /swapfile1GB
sudo swapon /swapfile1GB
./install.py --go-completer
sudo swapoff -a
sudo rm /swapfile1GB
  1. 安装python包
django
flask
tornado
scipy
ipython
mysqlclient
redis
django_redis
pyserial
pandas
django-extensions

相关文章

  • 树莓派技术网站导航

    树莓派官网 安装 树莓派Mac OS X下安装系统开启ssh登陆 使用教程 树莓派实验室树莓派吧树莓派中文站 项目...

  • 树莓派内网穿透 Ngrok

    部署准备 go语言安装 树莓派和vps安装go的方式有所不同,树莓派下需要编译 树莓派安装go参考 http://...

  • 可移动的图像识别小车(树莓派+摄像头)

    熟悉树莓派 树莓派介绍 树莓派安装系统 picamera的API 树莓派连接显示器不亮屏的解决方案 树莓派摄像头的...

  • 树莓派4B raspberrypi节点加入kubeedge集群并

    树莓派raspberrypi上先安装好Docker 树莓派4B raspberrypi离线安装Docker[htt...

  • 2018-11-03 树莓派安装Ubuntu 16.04 实录

    树莓派安装Ubuntu 16.04 实录 树莓派3B+ Ubuntu 16.04 arm版本 镜像由"树莓派爱好者...

  • 树莓派有关教程

    型号:树莓派3B 树莓派官网 Ubuntu MATE官网 树莓派安装Ubuntu MATE 从Ubuntu MAT...

  • 树莓派安装记

    感觉自己就是一年瞎折腾的命,树莓派不知道装了多少遍了,这不前几天脆弱的树莓派在小儿手下突然崩溃,后来发现板子没有什...

  • 2018-10-14

    树莓派samba使用 树莓派全新安装samba 1、安装所需软件 apt-get install samba sa...

  • 打开远程

    树莓派执行安装 sudo apt-get install xrdp windows: mstsc命令 连接树莓派...

  • 树莓派终端代理

    树莓派安装Shadowsocks客户端 在树莓派上配置Shadowsocks客户端, 这是让树莓派翻QIANG的必...

网友评论

      本文标题:树莓派安装记

      本文链接:https://www.haomeiwen.com/subject/akyivxtx.html