kernel image kernel-qemu.
-Cpu arm1176
Simulation ARM1176 CPU. Raspberry Pi board is equipped with Broadcom BCM2835, This processor uses ARM1176JZ-F.
-M 256
The RAM size is 256 MB. the disk cannot be started if it is set to a value larger than MB.
-M versatilepb
Set the simulated development Board type. versatilepb is ARM Versatile Platform Board
-No-reboot
Exit without restarting.
-Serial stdio
Redirects
first, the simplest method on the Raspberry Pi is to use apt-get and then give control to the Openhab user.sudo apt-get install openhab-addon-binding--hr Openhab:openhab/usr/share/openhabNext, you need to tell Openhab to load the binding and configure all the required variables. go to the configuration folder, copy a copy of Openhab-default.cfg, and name it openhab.cfg. Open the file, search for hue, and r
cable to the power supply.
2. Use the raspi-config tool to configure Raspberry Pi
A) view IP addresses
Under normal circumstances, Raspberry Pi can be started, but he still does not know his IP address, and he cannot acc
access mysql:
Mysql-u root-p
Then, you will be prompted to enter the password to enter mysql:
Root @ raspberrypi:/home/pi # mysql-u root-pEnter password:Welcome to the MySQL monitor. Commands endYour MySQL connection id is 43Server version: 5.5.35-0 + wheezy1 (Debian)
Copyright (c) 2000,201 3, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsAffiliates. Other names may be trademarks of
reduces the difficulty of configuring webpages, in fact, he has a configured webpage environment. In his original version, offline download is not supported. I directly clone yaaw to/var/www to access it directly.
Environment Configuration
To configure the Basic Environment for typecho running, we need the following things: database, nginx server, php environment and some plug-ins. in line with the lightweight principle, we do not use too large mysql, but use lightweight sqlite.Nginx Configurat
First, you have to have a vro. Otherwise, the following content cannot be implemented.Second, you have to apply for a free dynamic domain name resolution, because I use TP-LINK router, only support peanut shells, so I applied for dynamic domain name resolution of peanut shells.It's easy to apply for a peanut shell, open the http://www.oray.com, click "register" on the top and apply for a peanut shell passport.
After the application is completed, click my console-product management-Domain Name M
Front-facing:1. hostname Please change from default Raspberrypi to test.comsudo nano /etc/hostnamePlease change the raspberrypi in the file to test.com2. Change the IP address of the Raspberry Pi to static, in this case 172.16.0.68, the gateway exits to 172.16.0.1sudo nano /etc/dhcpcd.confAt the bottom of the document,
vi or nano command to edit the content of the/etc/network/interfaces file. Make sure that the content of the file is displayed as follows.
Auto loIface lo inet loopback
Iface eth0 inet dhcp
Auto wlan0Allow-hotplug wlan0Iface wlan0 inet manualWpa-roam/etc/wpa_supplicant/wpa_supplicant.confIface default inet dhcp
If you do not want to set it as a Dhcp Dynamic IP address or static
Then insert a dual line on the gpio4 pin of Raspberry Pi as the antenna.
UseIfconfigCommand to view your IP address and open it in the browser:Http: // Raspberry Pi IP: 8000/You can view the songs being played, and then you c
network is testing, and the password (psk) is testingPassword.
Adding the network details to the rassberry pi (add the network to Raspberry PI)
Use the nano editor to open the wpa-supplicant configuration file:
Sudo nano/etc/wpa_supplicant/wpa_supplicant.conf
Add the following content at the bottom of the file:
Network = {Ssid = "The_ESSID_from_earlier"Psk = "Yo
to plug in the mouse keyboard on the Raspberry Pi, you can also search the Windows IoT Remote Client tool in the store store, and after installing locally, remotely connect the Raspberry Pi, which is done locally.2.2 Settings for Windows Device PortalUsers can use the browser to log on to the device's Windows devices
Raspberry Pi Mapped network disksudo mount-t cifs-o username=jerry.huang,password=hello2014//10.10.0.1/public/eslpod.com/home/ pi/t/eslpod.com/
Raspberry Pi save file with sudo nano editModify static
, Aria2 WebUI under the Configconfiguration.js Open, will
Host:location.protocol.startsWith (' http ')? Location.hostname: ' localhost '
This line is changed to:
Host:location.protocol.startsWith (' http ')? Location.hostname: ' 0.0.0.0 '
Otherwise there is no way to access outside the server.
Then we can enter the Raspberry Pi intranet IP address on the other ho
software. With noobs, you can install the system without the mirror brush and Write tool, and you can reinstall the system directly on the Raspberry Pi. The official recommendation is to use the Raspberry Pi for the first time and install the system with noobs. )After entering the installation system interface let you
connect to the ssh Raspberry Pi ....
We switched to the windows platform and used Xshell to connect...
Step 1 update the system
Obtain the latest software list yum update, and then let you choose whether to download the update, y will do ....
Step 2: set static IP addresses (recommended)
Configure
: a. Modify Makefile CC = arm-linux-gnueabihf-gcc
B. Locate the location with-m64 and delete-m64.
Step 3: make
Step 4: make install
Install NodeJS http://www.linuxidc.com/Linux/2015-01/111714.htm on (Raspberry Pi) Raspberry Pi
Install Weston http://www.linuxidc.com/Linux/2013-06/86685.htm on
running in the background, first use the following command.FgIt will force it to run for the foreground, and then you can use ctrl-c to stop.It has been tested in several aspects.First, close my WiFi access point. This script does not detect network connections and begins to try to force a connection. After several minutes, connect the power supply access point again.In another experiment, I deleted the MAC address from the address list and allowed the MAC address filtering of the Access Point.
CROSS_COMPILE = arm-linux-gnueabihf-INSTALL_MOD_PATH =/mnt/ext4 modules_install
Copy the kernel and drive to the SD card
# Back up the original kernel firstCp/mnt/fat32/$ KERNEL. img/mnt/fat32/$ KERNEL-backup.imgScripts/mkknlimg arch/arm/boot/zImage mnt/fat32/$ KERNEL. imgCp arch/arm/boot/dts/*. dtb/mnt/fat32/Cp arch/arm/boot/dts/overlays/*. dtb */mnt/fat32/overlays/Cp arch/arm/boot/dts/overlays/README/mnt/fat32/overlays/
Update firmware
Tar xvf firmware-master.tar.gzCd firmware-master# Replaci
mode; (5) Photo time, set to 1 second; (6) image size, set to 640x480. The script will automatically take 78 photos, each of which will apply different special effect parameters.
To execute this script, you only need to enter the following command line:
$ python name_of_this_script.py
Below are some samples captured.
Small benefits
In addition to using the raspistill command line tool to manipulate the raspicam camera module, there are other methods to use. Picamera is a python library tha
resize2fs /dev/mmcblk0p2
This command expands the second partition to the new space.
Check hard disk usage. OK
df -hOperating principle
First, the Linux primary partition and the Swap partition are deleted. The starting position of the re-built primary partition is the same as that of the original primary partition, and then the data of the original primary partition is not changed, but the size of the primary partition is changed.
How to run Ubuntu Snappy Core in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.