Simple implementation of Raspberry Pi WEB control, Raspberry Pi web
Final Effect
#! /Usr/bin/env python3from bottle import get, post, run, request, template @ get ("/") def index (): return template ("index ") @ post ("/cmd") def cmd (): print ("press the button:" + request. body. read (). decode () return "OK" run (host = "0.0.0.0 ")
That's right. I just want to explain 10 sentences:
1 .#! /Usr/bin/env py
To make the Raspberry Pi convenient operation, it is necessary to configure the wireless network card, which can greatly enhance the mobile and convenience of Raspberry Pi, in fact, the configuration of wireless network card is basically the same as the normal Linux platform configuration wireless network card, several methods are similar, the following:One, the first method: through the configuration of th
Screen is a virtual Terminal manager. We can use it to manage the terminal interface in the background so that when SSH disconnects, there is no need to be afraid of an ongoing operation interruption.First, installationsudo apt-get updatesudo apt-get Install screenSecond, use1. Create a virtual terminalUse putty to log in to the Raspberry Pi after execution:Screen-s Terminal1This creates a terminal named Terminal1.At this point we can do anything, suc
For many IoT applications, using a Raspberry Pi to build an intelligent gateway is no longer appropriate, but the market of those "XX smart", "XX center" direct seconds kill it!Hardware needs to be extended: SD card, WiFi, Bluetooth, USB hub,tft display.What software is needed: scripting engine, remote login service, Web server, messaging server, processing server, forwarding server, Smart Display software, interactive control software ... Some of the
Tag: Dial get Sha file network div reg NULL implementationWant to know how the Raspberry Pi through the 4G Network module communication How to achieve, see this article (http://www.lxway.com/95811506.htm), ready to next have the opportunity to practice, first retained learning;One, 4G Luci configuration1. Create a new Wwan interface;2, the Internet mode for automatic access to DHCP;3, the physical setting choice wwan0;4. Firewall Select WANSecond, the
: Sometimes we want to remotely connect to a linux GUI to manage machines. here we need to use tightvncserver and xtightvncviewer.
The ip address of my Raspberry Pi is 10.141.247.134. the ip address of the client to connect to Raspberry Pi is 10.141.247.12.
1. Install tightvncserver on raspberry's machine first (set the software source based on another blog post)
Sudo apt-get install tightvncserver
2.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/48980993 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys 1, about Raspberry Pi
https://www.raspberrypi.orgRaspberry Pi is an arm development board, only the cigarette box size, the latest version of the Raspberry Pi 2. 4 cup 900mhz,1g memory size, 4 USB ports.https://www.rasp
NOOBS-Multi-operating system installer, can be different support Raspberry Pi of the popular operating system installed in an SD card and provide a boot management tool, the installation of different operating systems independent, non-impact, is a more interesting way to play.From version 1.3.1 to 1.3.9,noobs are available for offline multi-os inclusion, but the remaining versions do not support this feature, the most recent 1.9.1, for example, the of
The default raspberry is not self-samb and requires manual installation.If the default rasp source is not good enough, you can use the following from the online search:Deb http://Mirrors.cqu.edu.cn/raspbian/raspbian wheezy main contrib non-free RPIDEB-SRC http://mirrors.cqu.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPIDeb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy main contrib non-free RPIDEB-SRC http://mirrors.tuna.tsing
Raspberry Pi Command line:sudo apt-get install TightvncserverAfter installation, be sure to set up a VNC password with this command first:vncpasswd(Enter the operation password two times, then ask whether to set a view (view-only) password, as you like, generally not necessary. )set boot up:You need to create a file in/etc/init.d/. For example Tightvncserver (note: The name of the startup script, which has the same habit as the program name).sudo nano
Reprint please specify: @ Xiao Wu Yi Http://www.cnblogs.com/xiaowuyi qq Group: 64770604The Raspberry Pi production NAS process is described in http://www.cnblogs.com/xiaowuyi/p/4051238.html.Bypy is a Baidu cloud/Baidu network Disk Python client, the main purpose is in the Linux Environment (command line) sync Baidu Cloud disk space. Bypy requires more than python2.7 version, the latest version is Https://github.com/houtianze/bypyFirst, Bypy installati
0 PrefaceThis document describes how to modify the Raspberry Pi software source. If you use the raspbian system, the method for modifying the software source is the same as that for Ubuntu, you can find the latest software source image in the http://www.raspbian.org and modify the content in the/etc/APT/sources file.
[Related blog] [Raspberry Pi Study Notes-index blog]-Please pay attention to more blog post
About Raspberry Pi:
Raspberry Pi is a Linux-based PC equipped with a 256 MHz processor, memory, SD card and Ethernet support. It has two USB interfaces and supports HDMI and RCA output. It is reported that although the Raspberry Pi looks very mini-it only has one credit card, it can run games like thunder hammer 3: arena and play P videos. The hardware foundation
Raspberry Pi uses peanut shells for Internet access and raspberry peanut shells
Raspberrypi uses the Intranet ing of peanut shells.I. Raspberry Pi environment II. Required Software III. Operation Method IV. Additional instructions: these commands can be used only after the first execution.
Start:Oraynewph start View status:Oraynewph status Reset application:Or
If the device is not received, after using VNC login, the display resolution is very small, should be 480p, resulting in a very inconvenient use.By modifying the/boot/config.txt file, the desktop can also be displayed at a set resolution when the monitor is not connected. Here's how:1. Open Config.txt FileMethod One: Use the SD card reader to open the Config.txt file in the boot folder in the Windows environmentMethod Two: After entering the raspberry
Raspberry Pi configures apache php and Raspberry Pi apachephp
Apache + MySql + Php.
1, InstallationApache
Apache can use the following command to install sudo apt-get install apache2
The default Apache path is/var/www/
The configuration file path is/etc/apache2/
You can use sudo nano/etc/apache2/ports. conf to modify the listening port number.
Restart the service to take effect: sudo service apache2 rest
Raspberry Pi (Raspberry Pi) builds a Linux system (PiLFS) from scratch (II), raspberrypilfs
7. Build a temporary system
1. General Compilation Guide
A. Check whether the settings are correct.LFSEnvironment Variable
echo $LFS
B. Assume that you have correctly set the host system requirements and symbolic links.
C. For each software package:
(1) make sure you useLfsUser
(2) Unless otherwise specified, delete
= g # Top bottom = g # Bottom OpenURL = w # Open Song Home rate = R # Mark like/cancel like next = n # next Song bye = b # no longer play quit = q # exit pause = p # pause loop = L # single Loop mute = m # mute code /li>
Problems encounteredRaspberry Pi Interface cannot display ChineseUsing the command sudo raspi-config, use the SPACEBAR to tick the front with "zh-cn UTF-8" option.Then sudo rebootTo modify the encoding of the SSH client, take Xshell as an example: File-properties-terminal-
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.