Sometimes it’s useful to automatically run a script on a Pi when it boots up. You might want to start a script that monitors sensors, a Bittorrent client, or a program to back up your Pi to the internet. There are several ways of doing this, and each one has it’s benefits.
In the following examples I’m going to start a program called servod which manages a servo. The program runs in the background and uses the Pi’s GPIO pins to set the position of a servo. Continue reading Run a script on raspberry pi start up
树莓派用服务方式设置开机启动python
最近有个项目利用树莓派来完成,主要是在树莓派上用python写了个脚本来处理一些信息与逻辑。这边就遇到一个问题,即设置该脚本在开机的时候自动运行,而不是需要人登陆到树莓派上在执行这个程序,这样太麻烦了,顶多在实验室玩玩,拿不出去。本文主要讲诉设置该python脚本在树莓派上自动运行。 Continue reading 树莓派用服务方式设置开机启动python
无屏幕和键盘配置树莓派WiFi和SSH
不算是什么新功能了,在树莓派3B发布后不久,树莓派官方 Raspbian 系统久加入了允许在开机前对 WiFi 网络进行配置的机制。 Continue reading 无屏幕和键盘配置树莓派WiFi和SSH
诺基亚E71证书过期
解决方法步骤:
1.功能表—-工具—–程序管理
2.在程序管理界面,点左键【选项】,再点【设置】,对以下选项做调整: Continue reading 诺基亚E71证书过期
Linux端口占用查看
今天发现服务器上Tomcat 8080端口起不来,老提示端口已经被占用。 Continue reading Linux端口占用查看
OS module Python
This module provides a unified interface to a number of operating system functions.
Most of the functions in this module are implemented by platform specific modules, such as posix and nt. The os module automatically loads the right implementation module when it is first imported. Continue reading OS module Python
Most of the functions in this module are implemented by platform specific modules, such as posix and nt. The os module automatically loads the right implementation module when it is first imported. Continue reading OS module Python
fedora下配置DJANGO项目
参考Ubuntu的配置过程,在Fedora下配置多端口站还需要注意: Continue reading fedora下配置DJANGO项目
关于Hamming校验纠错算法
Hamming算法可以对任意字长的内存建立起纠正码(注意,是不止可以检验出错误,还可以纠错)。原理如下: Continue reading 关于Hamming校验纠错算法
中国电信3G网卡拨号设置
用户名为“ctnet@mycdma.cn”,密码为“vnet.mobi”
为左撇子量身定做的鼠标指针_Windows
使用工具:ArtCursors
一、给鼠标指针换个方向
Step 1 Continue reading 为左撇子量身定做的鼠标指针_Windows