- 浏览: 2539076 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Play Raspberry Pi(6)Upgrade and Docker
Download the latest file again from here https://www.raspberrypi.org/downloads/raspbian/
The file is 2016-05-27-raspbian-jessie-lite.img
following this link
http://sillycat.iteye.com/blog/2166582
1 Set up Network
The installation is fine and I set up user carl. But it seems some difference to set up the static IP.
http://www.jeffgeerling.com/blog/2016/setting-static-ip-address-raspbian-jessie-lite-on-raspberry-pi
> cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.198
gateway 192.168.0.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
And I need to change another config file for this new version.
> cat /etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
…snip...
interface eth0
static ip_address=192.168.0.198
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4
2 Set up Disk
http://sillycat.iteye.com/blog/2254550
>sudo apt-get install ntfs-3g
>sudo fdisk -l
>sudo mkdir /mnt/driver1
>sudo mount -t auto /dev/sda1 /mnt/driver1
Give more AC Power to USB
>sudo vi /boot/config.txt
Add this 2 lines and reboot the system.
max_usb_current=1
safe_mode_gpio=4
3 Set up Docker on Server
http://sillycat.iteye.com/blog/2264110
https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/downloads/
download the latest docker file
> wget https://downloads.hypriot.com/docker-hypriot_1.10.3-1_armhf.deb
Install that on the server
> sudo dpkg -i docker-hypriot_1.10.3-1_armhf.deb
enable the sudo er to run it
> sudo usermod -aG docker carl
> sudo systemctl enable docker.service
Reboot the system, then we can use
> docker images
> docker ps
> docker info
Configure docker to using USB drivers.
> cat /etc/default/docker
# Docker Upstart and SysVinit configuration file
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="--storage-driver=overlay -D -g /opt/docker"
Check the docker Information
>docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.10.3
Storage Driver: overlay
Backing Filesystem: <unknown>
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.11+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 434.7 MiB
Name: raspberrypi1
ID: V467:PPZX:4MYC:SQXY:QHOD:KKM3:7WKN:SGY4:RSGV:MXV3:R4QG:W4BV
Debug mode (server): true
File Descriptors: 11
Goroutines: 20
System Time: 2016-06-16T11:23:08.393869157-05:00
EventsListeners: 0
Init SHA1: 0db326fc09273474242804e87e11e1d9930fb95b
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /mnt/driver1/data/docker
WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
Yeah, start to set up mongo, ftp and all other things in docker.
http://sillycat.iteye.com/blog/2264656
http://sillycat.iteye.com/blog/2255064
References:
https://www.raspberrypi.org/downloads/raspbian/
https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/
http://sillycat.iteye.com/blog/2166582
Download the latest file again from here https://www.raspberrypi.org/downloads/raspbian/
The file is 2016-05-27-raspbian-jessie-lite.img
following this link
http://sillycat.iteye.com/blog/2166582
1 Set up Network
The installation is fine and I set up user carl. But it seems some difference to set up the static IP.
http://www.jeffgeerling.com/blog/2016/setting-static-ip-address-raspbian-jessie-lite-on-raspberry-pi
> cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.198
gateway 192.168.0.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
And I need to change another config file for this new version.
> cat /etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
…snip...
interface eth0
static ip_address=192.168.0.198
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4
2 Set up Disk
http://sillycat.iteye.com/blog/2254550
>sudo apt-get install ntfs-3g
>sudo fdisk -l
>sudo mkdir /mnt/driver1
>sudo mount -t auto /dev/sda1 /mnt/driver1
Give more AC Power to USB
>sudo vi /boot/config.txt
Add this 2 lines and reboot the system.
max_usb_current=1
safe_mode_gpio=4
3 Set up Docker on Server
http://sillycat.iteye.com/blog/2264110
https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/downloads/
download the latest docker file
> wget https://downloads.hypriot.com/docker-hypriot_1.10.3-1_armhf.deb
Install that on the server
> sudo dpkg -i docker-hypriot_1.10.3-1_armhf.deb
enable the sudo er to run it
> sudo usermod -aG docker carl
> sudo systemctl enable docker.service
Reboot the system, then we can use
> docker images
> docker ps
> docker info
Configure docker to using USB drivers.
> cat /etc/default/docker
# Docker Upstart and SysVinit configuration file
# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="--storage-driver=overlay -D -g /opt/docker"
Check the docker Information
>docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.10.3
Storage Driver: overlay
Backing Filesystem: <unknown>
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.11+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 434.7 MiB
Name: raspberrypi1
ID: V467:PPZX:4MYC:SQXY:QHOD:KKM3:7WKN:SGY4:RSGV:MXV3:R4QG:W4BV
Debug mode (server): true
File Descriptors: 11
Goroutines: 20
System Time: 2016-06-16T11:23:08.393869157-05:00
EventsListeners: 0
Init SHA1: 0db326fc09273474242804e87e11e1d9930fb95b
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /mnt/driver1/data/docker
WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
Yeah, start to set up mongo, ftp and all other things in docker.
http://sillycat.iteye.com/blog/2264656
http://sillycat.iteye.com/blog/2255064
References:
https://www.raspberrypi.org/downloads/raspbian/
https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/
http://sillycat.iteye.com/blog/2166582
发表评论
-
Update Site will come soon
2021-06-02 04:10 1672I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 310I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 465NodeJS12 and Zlib It works as ... -
Diskspace Check and Fix
2020-04-01 00:28 407Diskspace Check and Fix First ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 361Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 362Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 328Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 419Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 428Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 364Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 444VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 376Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 462NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 413Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 330Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 242GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 443GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 320GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 306Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 310Serverless with NodeJS and Tenc ...
相关推荐
You'll work with Linux driver information and explore the different Raspberry Pi models, including the Pi Zero, Pi Zero W, Pi 2, Pi3 B and Pi3 B+. You'll also review a variety of project examples ...
The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens ...
介绍Raspberry Pi 4的用户手册,值得一读。 In our opinion, you will certainly adore the Raspberry Pi 4. Ultra-small, affordable, even cheaper than most video games, you can use the Pi to build ...
Get started with Raspberry Pi Zero and put all of its exciting features to use Create fun games and programs with little or no programming experience Learn to use this super-tiny PC to control ...
MEDIA CENTER WITH XBMC AND RASPBERRY PI 2 MINIATURE BALLOON MINECRAFT SERVER RUNNING ON RASPBERRY PI 2 CHAPTER 3: USING THE RASPBERRY PI 2FOR YOUR PROJECT DIFFERENCES BETWEEN THE ARDUINO BOARD AND ...
Explore Raspberry Pi 2's hardware through the Assembly, C/C++, and Python programming languages Experiment with connecting electronics up to your Raspberry Pi 2 and interacting with them through ...
使用Raspberry Pi 进行这些活动可能会有局限性,因为它们的处理能力并不足以匹敌真正的超级计算机,但是通过使用多个 Raspberry Pi 组成集群,可以实现并行计算来提高处理速度。Raspberry Pi 集群可以执行一些计算...
Revolutionize the way you interact with your home and become part of the rapidly growing group of hobbyists and enthusiasts by combining the powerful Raspberry Pi with an Arduino board. Starting with...
《Wiley Learning Python with Raspberry Pi 2014》是一本专为初学者设计的教程,旨在引导读者通过树莓派这一小型计算机平台学习Python编程。这本书由2014年出版,当时Python已是编程界的热门语言,而树莓派因其低...
The world of Raspberry Pi is evolving quickly, with many new interface boards and software libraries becoming available all the time. In this cookbook, prolific hacker and author Simon Monk provides ...
By customizing and utilising LED-based modules into the Raspberry Pi board, exciting projects can be obtained. A countdown timer, a digital clock, a traffic light controller, and a remote light ...
rpi-hubot-docker-template Raspberry Pi上的Hubot Docker容器模板如何在Raspberry Pi上使用Docker 上安装。 请参阅以设置环境。用法克隆此仓库 $ git clone https://github.com/knjcode/rpi-hubot-docker-template$...
Chapter 6: The Raspberry Pi Configuration Tool Chapter 7: Advanced Raspberry Pi Configuration Part II: Building a Media Centre or Productivity Machine Chapter 8: The Pi as a Home Theatre PC Chapter 9...
《Raspberry Pi快速入门指南》是一本面向初学者的实用手册,由Maik Schmidt撰写,国内译者王峰、王江伟、王汝波共同翻译。该书为读者详细介绍了Raspberry Pi这一款迷你Linux计算机的使用方法,并指导用户如何通过...
docker-arm_20.10.6 资源