为树莓派CM系列模块的 eMMC 烧录系统

前言

前段时间树莓派(Raspberry Pi)发布了一款新的计算模块 Compute Module 3 (CM3) ,是自 2014 年初代 CM1 后首次更新。CM3 计算模块有两个版本,一个是“标准”的 CM3,另一个则是 CM3 Lite,价格分别为 30 美元和 25 美元,CM3配备了 1.2GHz 的 BCM2837 处理器,1GB RAM 和 4G eMMC 闪存。相比之下,CM3 Lite(CM3L)没有内置闪存,反倒是提供了 SD 卡接口,用户可按需选择 eMMC 或是 SD 卡,这个功能更新满足了不少老用户对闪存扩容的需求。CM3和 CM1 相比,CM3 的 CPU 性能是原来的 10 倍,内存比翻了 1 倍。而且也会和 Raspberry Pi 3 一样,支持 Win 10 的物联网系统(Windows10 IoT Core)。

最近越来越多的玩家购买了CM模块和底板,但是苦于一直不能上手,原因是不会给CM模块烧录系统,网上也少有相关的教程,从今天U大就指导你如果玩转树莓派CM系列。

教程

1.首先需要准备好CM模块(CM1/CM3/CM3L)

2.准备好CM模块底板

 

3.下载解压win系统需要的驱动和并安装boot工具(bcm270x-boot-driverCM-Boot-Installer

4.将CM模块插上底板,将左上角的跳线帽跳至EN USB BOOT,然后连接USB SLAVE和PC,最后再连接POWER IN电源给底板供电

5.WIN系统会提示安装驱动,可以取消自动更新驱动,变成手动更新驱动(bcm270x-boot-driver),直到驱动安装正常如下图

 

 

 

 

6.运行安装好的boot工具RPiBoot.exe, 这时候CM模块的eMMC就会模拟成内存卡,出现在系统目录下

7.按照通常的TF卡烧录系统的方法,就可以给CM模块的eMMC烧录系统了(TF卡烧录系统方法

注意:目前CM模块的eMMC只有4G,而官方提供的系统大多都超过4G,烧写时可能会中断并提示空间不够,所以玩家在烧录CM系统时请选择适合4G以下的镜像。

原文

本文来自:树莓派实验室

树莓派3上安装配置Kali Linux

0x01 准备工作

用win32diskmanager将kali系统写入tf卡

1)kali官网下载树莓派3镜像文件(https://www.offensive-security.com/kali-linux-arm-images/)

2)win32diskmanager下载安装(傻瓜式写入tf卡,不赘述了)

0x02 连接树莓派3,简单配置kali

1)若身边无多余显示器,也没有路由器的管理权限(有自己路由管理权限的,登入去看下就知道新装的kali的ip了),可以开启笔记本无线网络共享,用网线连接树莓派3和笔记本,再ssh连接树莓派3,具体操作:

开启无线网络共享

用网线连接树莓派3和笔记本, arp -a 查看树莓派3的ip,此处动态的ip即为你pi3的ip地址

使用SecureCRT或putty等工具ssh连接树莓派3(root/toor),接下来你也会的(apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get clean),进入漫长的等待吧,可以出去买杯星爸爸再回来看看。笔者没有配置国内源,如果你想配置,也可以,命令 nano /etc/apt/source.list,复制你想要添加的源即可,我这里添加了下阿里和中科大的源。

#阿里云kali源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free

#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-fre

0x03 安装VNC,远程桌面你的kali

还是先用ssh连接到kali,然后

##apt-get install tightvncserver

安装完之后,开启vnc连接

##tightvncserver

会提示你输入远程时要验证的密码,输入你的密码(系统会提示你需要一定复杂度)

第二个view-only password(应该是指只远程,不授权管理的远程桌面吧,类似qq的那个允许远程,但不授权控制),选n即可;创建完发现是:New ‘X’ desktop is kali:1。

然后在你的笔记本或PC终端上安装vnc(百度下载安装下),打开vnc后输入kali的ip:1(这里后面的“:1”一定要输入),然后键入你刚创建的密码(不是kali系统的密码,允许远程桌面连接的那个密码)

设置vnc服务开机启动(我会另起一文做下说明)

连接成功。

 

0x04 重新调整磁盘大小(安装gparted)

重新调整下你的kali盘符大小,默认装完,可以查看下系统的大小(df -h)

发现才6.7G(我的tf卡有32G),所以我们要resize下磁盘大小,需要安装gparted

##apt-get install gparted

安装完之后,启动

##gparted

重启调整下磁盘大小,拉到最大,确定,应用(apply)。

0x05 完全安装你的kali(kali-linux-full)

安装后之后,你会发现kali上只有一部分工具,那么我们需要完全安装kali

##apt-get install kali-linux-full

安装过程中会让你选择一些配置,根据自己的喜好选择下(什么自动切换mac之类的),接下来又是漫长的等待

本文永久更新链接地址http://www.linuxidc.com/Linux/2017-10/147705.htm

 

 

 

DietPi——树莓派上的轻量级系统

随着树莓派的逐步发展,官方的Raspbian系统在一步步完善和开发,软件和资源越来越多,往往也意味着慢慢地臃肿。
而DietPi就是在这样的背景下被开发出来,在DietPi系统中,默认只有一些必要的软件,其他的任何不需要的软件在初始化的DietPi上面都是不存在的;在干净和简洁的同时,在DietPi上安装需要的软件也比其他软件方便和简单。

安装配置DietPi

初次配置时需要网络连接

下载镜像

在官网的下载页面下载对应的板子的镜像。

解压并烧写

  • 在Windows上可以使用Win32DiskImager
  • 在Linux上可以用dd命令
dd if=/path/to/DietPi_vXX.img of=/dev/sdb

配置WiFi(可选)

将烧写好的SD卡插入电脑,和Raspbian类似,DietPi上有一个文件dietpi.txt也是用来做开机时的配置。

在这个文件里面设置好

Wifi_Enabled=1
Wifi_SSID=MySSID
Wifi_KEY=MyWifiKey

给板子上电

把SD卡插入板子,然后上电,之后DietPi会自动重启两次来完成初次的配置。

登录

默认的用户名是root,密码是dietpi
假如上面的WiFi配置成功了,那么这里也能直接ssh了,DietPi默认装了Dropbear SSH Server。

DietPi默认是没有桌面环境的,所以这个时候还是只能终端操作。

选择软件安装

接下来就可以选择你需要的软件来进行个性化的安装了,可以安装的软件包括以下这么多选择:

桌面

  • LXDE – 高度优化的轻量级桌面
  • MATE – Gnome 2桌面
  • XFCE – 轻量级桌面
  • GnuStep – 另类的桌面系统
  • Chromium – 浏览器

远程桌面

  • Tightvnc Server – 远程桌面软件
  • VNC4 Server – 远程桌面软件
  • NoMachine – 功能更丰富的远程桌面软件
  • XRDP – 针对Windows客户端的远程桌面软件
  • RealVNC Server – 远程桌面软件

媒体系统

  • Kodi – Media Centre / Player
  • YMPD – Lightweight web Interface audio player for MPD
  • O!MPD – Feature-rich web Interface audio player for MPD
  • CAVA – Optional: Console-based audio visualizer for MPD
  • Mopidy – Web Interface Music /Radio Player
  • SubSonic – Feature rich media streaming server with web interface.
  • SqueezeBox – Also known as Logitech Media Server.
  • SqueezeLite – Audio player for SqueezeBox.
  • Shairport Sync – AirPlay audio player with multiroom sync
  • BruteFIR – EQ and Digital Room Correction via ALSA.
  • ReadyMedia – (MiniDLNA) Media streaming server (DLNA, UPnP)
  • Ampache – Web interface media streaming server.
  • Emby – Web interface media streaming server.
  • Plex Media Server – Web interface media streaming server.
  • PlexPy – Monitoring and tracking tool for Plex Media Server.
  • Murmur – Mumble VoIP Server
  • Roon Bridge – Turns your device into a Roon capable audio player
  • Roon Server – Turns your device into a Roon capable audio player and Roon core
  • NAA Daemon – Signalyst Network Audio Adaptor (NAA).
  • IceCast – Shoutcast Streaming Server, including DarkIce.
  • jRiver – Media Center
  • Koel – Web interface streaming server.

BT/下载

  • Transmission – Lightweight BitTorrent server with web interface
  • Deluge – Alternative BitTorrent server with web interface
  • qBitTorrent – Lightweight and fast (c++) BitTorrent server with web interface
  • rTorrent – BitTorrent server with ruTorrent web interface
  • Aria2 – Download manager with web interface
  • SABnzbd – NZB download manager with web interface.
  • SickRage – Automatically download TV shows
  • Sonarr – Automatically download TV shows
  • Radarr – Automatically download Movies
  • CouchPotato – Automatically download movies.
  • Jackett – API Support for your favorite torrent trackers.
  • NZBget – NZB download manager with web interface.
  • HTPC Manager – combines all your favorite software into one slick interface.

模拟器和游戏客户端

  • OpenTyrian – Gaming
  • Cuberite – Fast Minecraft server with web interface
  • MineOS – Multiple Minecraft servers with web interface
  • AmiBerry – Amiga emulation system, further developed optimized builds of uae4arm-rpi
  • DXX-Rebirth – Descent 1 & 2 OpenGL port
  • Steam – Steam client

相机

  • DietPi-Cam – RPi Camera / Web Interface Surveillance
  • MotionEye – Camera / Web Interface Surveillance

云/备份

  • OwnCloud – Your own personal cloud based backup/data storage system
  • NextCloud – Your own personal cloud based backup/data storage system
  • Pydio – Feature-rich backup and sync server with web interface.
  • UrBackup Server – Full backups for systems on your network
  • Gogs – GitHub style server, with web interface.
  • Syncthing – Backup and sync server with web interface.
  • Tonido – Lightweight backup and sync server with web interface, and, cloud access.

社交/搜索

  • Forums – phpbb3
  • WordPress – Website Blog and Publishing platform.
  • Image Gallery – Host and browse your images from a web interface.
  • BaiKal – Lightweight CalDAV + CardDAV server.
  • OpenBazaar – Decentralized peer to peer market server using BitCoin.
  • YaCy – Decentralized open source search engine.

WiFi/热点

  • WiFi HotSpot – Turn your device into a wireless hotspot/access point.
  • Tor HotSpot – Optional: Routes all WiFi HotSpot traffic through the Tor network.

智能家居

  • EmonPi – Lightweight Energy usage stats with EmonPi PCB.
  • Grasshopper – Web App to control Bticino MyHome

硬件项目

  • RPi.GPIO – GPIO Interface library for RPi (python).
  • WiringPi – GPIO Interface library (c).
  • WebIOPi – Web interface to control RPi GPIO.
  • I2c – Enables support for I2c based hardware.
  • Node-Red – Visual tool for wiring together hardware devices, APIs and online services.
  • Mosquitto – Message broker that implements MQTT protocol versions 3.1 and 3.1.1.
  • Blynk Server – iOs and Android apps to control Arduino, ESP8266, Raspberry Pi and similar microcontroller boards over the Internet.

远程访问

  • Remot3.it – (Weaved) Access your device over the internet.
  • VirtualHere – Share physically attached USB devices from your SBC, over the network.

系统管理和监控

  • DietPi-Cloudshell – Lightweight system stats for your LCD display or monitor.
  • Raspcontrol – Web interface system stats
  • Linux Dash – Web interface system stats
  • PhpSysInfo – Web interface system stats
  • RPi Monitor – Web interface system stats
  • NetData – Web interface system stats
  • Webmin – Remote system management with web interface
  • Open Media Vault – Web interface network attached storage (NAS) solution

系统安全

  • Fail2Ban – Protects your system from brute-force attacks

Web服务器栈

  • LAMP Webserver – Apache2 / MySql / PHP
  • LASP Webserver – Apache2 / SQLite / PHP
  • LAAP Webserver – Apache2 / MariaDB / PHP
  • LEMP Webserver – Nginx / MySql / PHP
  • LESP Webserver – Nginx / SQLite / PHP
  • LEAP Webserver – Nginx / MariaDB / PHP
  • LLMP Webserver – Lighttpd / MySql / PHP
  • LLSP Webserver – Lighttpd / SQLite / PHP
  • LLAP Webserver – Lighttpd / MariaDB/ PHP
  • phpMyAdmin – Web interface SQL admin tool
  • Certbot – Free, automated SSL cert creation and setup, allowing https.
  • Tomcat8 – Apache Tomcat server

DNS 服务器

  • Pi-hole – A DNS/Web server that will block ads for any device on your network.

文件服务器

  • ProFTP – Simple, efficient, lightweight FTP file server.
  • Samba – Feature rich file server.
  • vsFTPD – Feature rich FTP file server.
  • NFS – Network file system server

VPN 服务器

  • OpenVPN – Easy to use, minimal hassle VPN server
  • PiVPN – OpenVPN installer & management tool

网络负载均衡

  • HaProxy – High performance TCP/HTTP load balancer.

网站域名

  • NoIp – Website URL Address

打印

  • CloudPrint – CUPS print server, with support for Google cloud printing
  • OctoPrint – Web interface for controlling 3D printers

文件服务器选择

  • ProFTP – Simple, efficient, lightweight file server.
  • Samba – Feature rich file server.

SSH选择

  • Dropbear – Lightweight SSH Server
  • OpenSSH – Feature rich SSH server with SFTP/SCP support.

日志系统选择

  • DietPi-Ramlog – Lightweight RAM logging.
  • Full – Full logging system with Rsyslog and Logrotate.

网络服务器选择

  • Apache2 – Feature-rich webserver
  • Nginx – Lightweight webserver
  • Lighttpd – Extremely lightweight webserver

预装软件:

  • dietpi-launcher (Select and Run any of the DietPi programs, all from one place.)
  • dietpi-config (Feature rich configuration tool for your device)
  • dietpi-software (Install optimized and ready to run software)
  • dietpi-uninstall (Allows you to uninstall DietPi software)
  • dietpi-update (Update your version of DietPi)
  • dietpi-backup -(Backup or restore your DietPi system)
  • dietpi-sync – (Allows you to sync/duplicate one directory to another).
  • dietpi-services – (Takes control of software services, enabling DietPi a method of quick service control).
  • dietpi-process_tool – (Tweak system wide nice/priority levels, for most software and processes).
  • dietpi-cleaner (Remove unwanted “junk” from your DietPi system and free up filesystem space)
  • dietpi-bugreport (Sends a bug report to DietPi)
  • dietpi-cron (Allows you to modify all start times for Cron Jobs)
  • dietpi-logclear (Keep ontop of your log files, features clearing and backup modes).
  • dietpi-morsecode (Converts a text file to morse code, then outputs to your screen)
  • dietpi-letsencrypt (Frontend for Lets Encrypt and DietPi integration)
  • htop (The only resource monitor you’ll ever need)
  • DietPi-Ramlog #1 (Mounts /var/log to RAM. Saves your SD card writes, and, uses less than 0.1mb~ of RAM).
  • Dropbear (Lightweight SSH server)

预装脚本

  • treesize (Shows current directory/file sizes, recursive)

 

树莓派完美运行安卓牛轧糖,DIY一部手机吧

20170104150135787-0

GitHub(世界最大程序员社区) 网红 Peter Yoon 已经成功地将 Android 7.0 Nougat 刷入了 树莓派3(Raspberry Pi 3)了!一起来看看树莓派运行的 Android 7.0 的样子吧:

20170104150135832-0

屏幕正脸

20170104150135723-0

下拉通知栏

20170104150135512-0

设置选项

20170104150135381-0

Peter Yoon常用的 ID 是 pero-hd,是一个超级树莓派达人,曾经也成功地给树莓派灌入过 Android TV 的 ROM,他的 GitHub 地址是 https://github.com/peyo-hd 有兴趣的同学也可以一边吃瓜一边围观一下。不过,对于真想上手的同学,需要注意Google 也从未正式发不过针对树莓派的 Android 版本,所以这个 Android 7.0 也只是给大家尝鲜,如果又要用树莓派,又希望稳定性的话,那么可能还是比较推荐多年前的 Android 2.3 Gingerbread 老古董了。

本文来自:树莓派实验室
链接地址:http://shumeipai.nxez.com/2017/01/04/raspberry-pi-runs-perfectly-with-android-nougat.html