Alibabacloud.com offers a wide variety of articles about can raspberry pi run windows, easily find your can raspberry pi run windows information here online.
/linux.gitGit clone -- depth 1 git: // github.com/raspberrypi/tools.gitGit clone git: // github.com/raspberrypi/firmware.git
Install the tool chain and add it to the environment variable:
Tar xvf tools-master.tar.gz-C/optVim/etc/profileExport PATH = $ PATH:/opt/tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin./Etc/profileMusic linux-rpi-4.1.y linuxCd linux
Ensure that the compilation directory is clean (if extracted from the tar.gz file, it can be omitted)
Make mrproper
G
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
Raspberry Pi can do a lot of interesting things, it is equivalent to a small computer, installed on the system can be used as a small server home.
With this small server, you can implement an "offline" Download machine. But offline download here is not really offline, because the Raspberry Pi is still online-since the
How to Use image effects on Raspberry Pi
Now you can use the Raspberry Pi camera module ("raspi cam") to add a variety of image effects to your photos, just like using a card camera. The raspistill command line tool provides a wide range of image effects options for Raspberry
"select * from Temps;" In the console and return the results as follows. rpi.cpu|2014-08-03 10:40:40|48.7rpi.cpu|2014-08-03 10:41:41|48.7rpi.cpu|2014-08-03 10:42:41|49.2RPi.CPU| 2014-08-03 10:43:41|48.7rpi.cpu|2014-08-03 10:44:41|48.7rpi.cpu|2014-08-03 10:45:41|49.23 boot background run"Startup script"--auto-start.shCreate a new auto-start.sh script in this directory, as follows #!/bin/bashcd/home/pi/pytho
without your password. In this way, even if someone copies your key, they cannot impersonate you for access. If you want to use a password, enter the password, press enter, and then enter the password again as prompted. If you press enter without entering anything, the password is not used.
Now you should be able to see files such as id_ras and id_ras.pub in the. Ssh folder in your home directory:
ls ~/.sshauthorized_keys id_rsa id_rsa.pub known_hosts
HereId_rsaThe file is your private key,
device to the common Nic, and then connect to the Internet through the NIC. That is, the NAT structure mentioned above. Next, we need to configure the NAT address table to open/etc/sysctl.confAdd the following configuration file to the last line of the file:
net.ipv4.ip_forward=1
Then, start NAT in the kernel:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEsudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPTsudo iptables -A FORWARD -i wlan0 -o eth0
installed, ~/.BASHRC must only source the Setup.bash for the version of you is currently using.If you just want to change the environment of your current shell, you can type:$ source/opt/ros/indigo/setup.bashIf you use zsh instead of bash your need to run the following commands to set up your shell:$ echo "Source/opt/ros/indigo/setup.zsh" >> ~/.ZSHRC$ source ~/.ZSHRC4. Maintaining a Source Checkout4.1 Updating the WorkspaceSee the Ubuntu source insta
On the Windows platform you need to download and install a VNC client program. Commonly used are TightVNC, you can download from tightvnc.com.Select the corresponding 32-bit or 64-bit version according to your window System version. If you do not know your window System version, you can view it in the Control Panel. Download the installation file and run it.During the installation process, you will have the
Requirement
Without a network, a keyboard, or a monitor, controlling Raspberry Pi becomes a problem. I accidentally saw an article today.ArticleThat is, you can directly control the Raspberry Pi through the serial port. Give a decisive try. The effect is good. Share it with others!Pai_^ Preparation
-pi/i2c-python-library-3-axis-mems-gyro-itg-3205-with-the-raspberry-pi/
Create the 'i2c _ itg3205.py' script. Pay attention to the location of the script. Make sure that you can reference the downloaded 'i2clibraries' package or add the downloaded Python package to the Reference Path.
From i2clibraries import i2c_itg3205From time import *
Itg3205 = i2c_itg3205.i2
as follows:Enter the Raspberry Pi system, set password for the VNC server, and enter the following in the terminal:$ sudo vncpasswdEnter the action password two times, and then ask if you want to set a view(view-only)Password, this can not be set.Next, start the Raspberry Pi vnc Server. Please enter for example the fo
tts_main(filename, words):
token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
text = urllib.parse.quote(words)
uuid = "xxxx"
resp = baidu_tts_by_post(text, uuid, token)
f = open("test.mp3", "wb")
f.write(resp)
f.close()
After obtaining the audio file, you can use the mpg123 player to play the video.
Mpg123 test.pdf
Integration
Finally, combine the three parts.
You can first integrate python-related code into main. py, as shown below:
import asr
import tts
import robot
(path, O_RDONLY); if (fd
6. gpio flip operation[Main function]
int main(int argc, char *argv[]){ int i = 0; GPIOExport(POUT); GPIODirection(POUT, OUT); for (i = 0; i [Makefile] -- the code tab here may display problems. Use the code repository as the main component.
# Executable File target = test # dependency target SRCS = gpio-sysfs.c # target file objs =$ (SRCS :. C =. o) # command compiler and options cc = gcccflags =-wall-STD = gnu99 $ (target): $ (objs) $ (CC)-O [e
One: Perform an upgrade on the Raspberry Pi:
1 : Updating the software source
$ sudo apt-get update
2 : Replace the old package
$ sudo apt-getupgrade
3 : Perform a Raspberry Pi firmware upgrade:
1, Raspberry Pi firmware: Can be
, the host! = Build when the compilation is cross-compilation. If no designation will run ' config.guess ' to detect;>>--prefix: installation directory; >>--help: view parameters;>>--target: This parameter is special, indicating the target platform name that needs to be processed, primarily in the context of program language tools such as compilers and assembler, if no value is specified using host. Generally used to compile tools, such as to the arm
= Urllib.parse.quote (words)
UUID = "xxxx"
RESP = baidu_tts_by_post (text, uuid, token)
f = open ("Test.mp3", "WB")
F.write (RESP)
F.close ()
After you get the audio file, you can play it using the mpg123 player.
mpg123 Test.mp3
Integration
Finally, put together these three parts.
You can first integrate Python-related code into main.py, as follows:
Import ASR
Import TTS
Import Robot
Words = Asr.asr_main ("Test.wav")
New_word
./user-install-rpi.sh"6" ResultsIn the Opt/sqlite-rpi folder, there are 4 subfolders, including the SQLite executable file in "Bin", the interface API for SQLite in "include", including the dynamic in the Sqlite3.h and Sqlite3ext.h "Lib" folders. Shared library libsqlite3.so.0.8.6 and static shared libraries libsqlite3.a2. Copy to Raspberry PiThe detailed location of these files in the Raspberry
Raspberry Pi-rsync (synchronous)You can use rsync to synchronize folders between different computers. You may want to transfer a file from your desktop computer or laptop to your Raspberry Pi and keep the file updated. Or, you want to automatically transfer the photos taken by Rasp
writing is complete, only the interrupts are run directlyPython pi_temp.pyThis step is complete after the debug is correct4 Add script file auto_start.sh #!/bin/bash cd/home/pi/python-works/yeelink-temp python yeelink-temp.py Reference:Raspberry Pi Learning notes--timed to Yeelink upload Raspberry
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.