#文中设置均基于最新版的Raspbian系统2016-Version 11
Raspbian in the desktop environment, the system will go into hibernation after a period of time. Tried some methods such as directly with Xset close DPMS, is not successful.
Raspbian uses a lightweight desktop display manager that is LIGHTDM, which allows you to set up Xserver desktop session interaction \ Display, and so on.
1. Open the terminal;
2. Edit/etc/lightdm/lightdm.conf
3. Locate the ' Xserver-command '
Reference: RPi Serial ConnectionThis article from: Http://www.raspberry-projects.com/pi/programming-in-c/uart-serial-port/using-the-uartUsing the UARTIf you is running Raspbian or similar then the UART would be used as a serial console. Using a suitable cable, such as the Ttl-232r-3v3-we, you can connect it to your PC and using some simple terminal software Set to 115200-8-n-1 use the command line interface to the
() Camera.close () Gpio.output (G PIO. Low) def setup (): Gpio.setmode (GPIO). BOARD) # Numbers GPIOs by physical location Gpio.setup (Gpin, GPIO. # Set Green Led Pin mode to Output Gpio.setup (Rpin, GPIO). # Set Red Led Pin mode to Output Gpio.setup (GPIO). Out) Gpio.setup (Btnpin, GPIO. In, Pull_up_down=gpio. PUD_UP) # Set Btnpin ' s mode is input, and the pull-up-to-level (3.3V) Gpio.add_event_detect (Btnpin, GPIO. BOTH, Callback=detect, bo
Raspberry Pi 2 install the latest version FPC and Lazarus 1.5
The Raspberry Pi2 launched in February 2015 does not support Lazarus installation using the previous method. When installing fpc, the following problems occur.
Slave:1. Install subversion and unzipSudo Apt-get updateSudo Apt-get install subversion unizp2. Obtain and compile the latest FreePascal Compil
Pi uses the BCM2836 of the ARMV7 architecture to download the cross compiler ARM-LINUX-GNUEABIHF-GCC.Local Environment: UBUNTU14 + x86_641. Download the compiler address:1). Linaro Open Source organization has the relevant cross-tool chain download, click to enter the page to choose to download, address: https://launchpad.net/linaro-toolchain-binaries/+download 2). The above web site speed is slow, always download failed. Find the domestic website H
1. Preface:
You need to understand the concept of Bitcoin
You need to know the computing power of the Raspberry Pi, which is much less effective than the graphics card mining, the baked cat, the USB mining, etc.
If you want to toss it, come on. 2. Prepare:
You want to dig Bitcoins, first of all to know where to dig Bitcoin, Bitcoin is in a mine, so we register the mine pool account
It could be that the BT
and is easily downloaded and modified by the reader.The following books will not be introduced, share the graphic coverHere is still to recommend my own built Python development Learning Group: 725479218, the group is the development of Python, if you are learning Python, small series welcome you to join, everyone is the software Development Party, not regularly share dry goods (only Python software development-related), Including a copy of my own. 2018 Latest Python Advanced materials and high
Let's see if there are any of the following alternatives, and if not, you need to update the software source:
Install in sequence:
sudo apt-get installqtcreator
sudo apt-get installqt4-default
sudo apt-get install Qt4-designer
sudo apt-get install Qt4-qmlviewer
sudo apt-get install Qt4-qmake
Move the qwt6.1.3 to the Raspberry
Raspberry Pi native Serial port default for console output, if you want to use in your own program need to shut down the system to occupy this serial port.
The method is configured for Rasp-config, or directly modifies the/boot/cmdline.txt
#dwc_otg. lpm_enable=0 console=tty1 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator= Deadline Fsck.repair=yes Rootwai
Dwc_otg.lpm_enable=0 console=tty
Reference:http://blog.csdn.net/flywiththejet/article/details/55258030 1. Write multiple Ros node to be started into the same launch file: my_robot_name_2dnav/ Launch/nav_patrol.launch 2. The Roslaunch command to be started is added to the ~/.BASHRC file: Add the following at the end of the ~/.BASHRC file: ... source/opt/ros/indigo/ Setup.bashsource ~/catkin_ws/devel/setup.bashexport Ros_master_uri=http://192.168.192.166:11311export ROS_ hostname=192.168.192.166 #robot auto startif rostopic list;
First download Ubuntu,3: ubuntu-16.04Extract files to get close to 4G image fileAdd an SSH text document. Login ID and password are: UbuntuChange PasswordAdd VNC Interface Remote control: First update the software library and download VNCsudo apt-get updatesudo apt-get install TightvncserveStart VNCTightvncserverSet VNC boot up and edit with nano text editor:sudo nano/etc/init.d/tightvncserverEnter the following command:#!/bin/sh### BEGIN INIT info# p
sudo ifconfig eth0 192.168.1.212 netmask 255.255.255.0 (192 .... 212 is your bound ip,netmask is the subnet mask)sudo route add default GW 192.168.1.1 (this is your router, this is called Gateway)sudo ifconfig eth0 up (makes setup successful)Exception in your WordPress dashboard in the general settings in the regular URL to your domain name, as if it will be faster, I do not understand why, just know that this will be fast, you like this memory, chang
First, why Choose OpenelecRASPBMC the volume of large functions, the corresponding speed and performance to be weak; Openelec is a lite version, small size function, the corresponding speed and performance have been improved. This depends on our choice, if you like me with multiple sdcard to play Raspberry Pi, then use Openelec as a home Media Center is the most suitable.It is small in size, please refer to
their liking, generally not necessaryBoot auto StartTo set the boot up, you need to/etc/init.d/To create a file in$ vi/etc/init.d/tightvncserver#!/bin/sh# # # BEGIN INIT INFO# Provides:tightvncserver# Required-start: $local _fs# Required-stop: $local _fs# Default-start:2 3 4 5# default-stop:0 1 6# Short-description:start/stop Tightvncserver# # # END INIT INFO# More details see:# HTTP://WWW.PENGUINTUTOR.COM/LINUX/TIGHTVNC# # Customize This entry# Set
The content of this article is Raspberry Pi python get GY-85 nine axis module information example, here using Python curses package development cli window program, used to refresh the sensor reading in real time, see the code first
GY-85.py:
The code is as follows:
#! /Usr/bin/python3#-*-Coding: UTF-8 -*-Import cursesFrom time import *From i2clibraries import i2c_itg3205, i2c_
Uwsgi_params;Uwsgi_pass Unix:/tmp/uwsgi.sock;}}Then use the LN command to create a link to/etc/nginx/sites-enable/, Link's name is also called site, delete the Sites-enable directory under the default link:sudo ln-s/etc/nginx/sites-available/site/etc/nginx/sites-enabled/( Note: This is ln's lowercase command )sudo rm/etc/nginx/sites-enabled/default4) Start deployment1. Start Uwsgi, command is sudo uwsgi-x myapp_config.xml, will play a lot of words, if not loaded project success can be seen from
that the appropriate content is modified according to the actual situation:
[Unit]
Description=wireless Static IP Connectivity
Wants=network.target
Before=network.target
[Service]
Type=oneshot
Remainafterexit=yes
Environmentfile=/etc/conf.d/wifi
EXECSTART=/SBIN/IP Link Set Dev wlan0 up
EXECSTART=/SBIN/IP addr Add 192.168.34.1/24 broadcast 192.168.34.255 Dev Wlan0
EXECSTOP=/SBIN/IP addr Flush Dev Wlan0
EXECSTOP=/SBIN/IP Link Set Dev
sudo nano/etc/ntp.confAnd then find
# pool.ntp.org maps to about low-stratum NTP servers. Your Server would# Pick a different set every time it starts up. Please consider joining the# Pool: Server 0.debain.pool.ntp.org IburstServer 1.debain.pool.ntp.org IburstServer 2.debain.pool.ntp.org IburstServer 3.debain.pool.ntp.org Iburst
Or something like that, change it to
# pool.ntp.org maps to about low-stratum NTP servers. Your Server would#
motion #counterlastuploaded =timestamp Motioncounter=0#Otherwise, the hostel is not occupied Else: Motioncounter=0#Check to see if the frames should is displayed to screen ifconf["Show_video"]: #Display the security feedCv2.imshow ("Security Feed", frame) key= Cv2.waitkey (1) 0xFF#if the ' Q ' key is pressed, break from the Lop ifKey = = Ord ("Q"): Break #clear the stream in preparation for the next frameRawcapture.truncate (0)Conf.json{ "Sh
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.