树莓派程序开机启动设置。关于开机启动,我在网上找的一个教程,然后照着做了一次。需要开机启动的程序是自己写的我的是一个数据传输的程序,名字为 trans.py 开机启动脚本,保存在/etc/init.d目录下面:#!/bin/bash# /etc/init.d/trans### BEGIN INIT INFO# Provides: xiaofeng# Required-Start: $remote_fs $syslog# Required-Stop: $remote_fs $syslog# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: trans...
http://www.debian-administration.org/articles/228As a means of distributing large collections of files FTP is still a popular
choice, despite the rise of bittorrent, and the growing number of HTTP
servers.FTP is an often overlooked method of storing and giving access to files, in
many cases FTP servers have been retired in place of webservers such as
Apache.But there are a lot of cases where o...
使用htpdate同步时间由于树莓派板子上没有 RTC 硬件和电池,因此树莓派上的系统时间重启是保存不了的。网上已经有人想到应对 NTP 被防火墙封掉类似的需求了,开源的 htpdate 命令直接使用 HTTP 协议来进行系统时间同步,项目主页在这里:https://github.com/iridium77/htpdatehtpdate 的原理也非常简单,直接解析 HTTP 协议头中的服务器时间信息,然后设置本地时间,我们来看百度返回的 HTTP 头:HTTP/1.1 200 OKDate Mon, 13 Oct ...
默认Raspberry不自带samb,需要手动安装。如果默认的rasp源不好用的话,可以使用下面从网上找的:deb http://mirrors.cqu.edu.cn/Raspbian/raspbian wheezy main contrib non-free rpi
deb-src http://mirrors.cqu.edu.cn/Raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbi...
1.更换Rasbian的默认apt-get源sudo vi /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy ...
简介我看过最好的教程是https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04常用命令ssh -L 59000:localhost:5901 -C -N -l lee 192.168.31.26‘
记得vnc配置的是 127.0.0.1:59000原文:https://www.cnblogs.com/eat-too-much/p/14255897.html
树莓派(Raspberry Pi)搭建简单的lamp服务;1. LAMP 的安装sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql–安装mysql、apache、phpsudo chmod 777 /var/www/–设置web目录的权限2. phpmyadmin 安装sudo apt-get install phpmyadmin–安装后选择apache23.配置sudo a2enmod rewrite–启用 apahce 的 mod_rewrite 模块sudo ln -s /usr/share/phpmyadmin /var/www 建立连接把apache和phpmyadmin结合...
·树莓派3(Raspberry Pi 3)安装Win10 IOT1、格式化SD卡(用SDFormatter工具)650) this.width=650;" title="IOT0001.png" src="/upload/getfiles/default/2022/11/9/20221109030739552.jpg" /> 2、下载noobs lite即可(https://www.raspberrypi.org/downloads/noobs/),解压到SD卡中,启动Raspberry Pi 3650) this.width=650;" title="IOT0002.png" src="/upload/getfiles/default/2022/11/9/20221109030739743.jpg" /> 3、然后进...
在買了 Raspberry Pi 後,到底能拿來做什麼事情呢?有幾個想法一起分享 這裡有初學者教學的影片,非常值得一看。http://www.youtube.com/user/RaspberryPiBeginners 1. 插上擴充卡,DIY 或教學。 當然最主要用法,插上 GPIO 卡,接上麵包板,拉一些電路,控制 LED 來顯示些什麼,或是生產啤酒 (http://forum.talkonly.net/viewthread.php?tid=15049) 等等,似乎是主要的用法。 2. 放在客廳看影片(mpeg4) 及播放藍光 DVD。 但是我...
很多刚接触树莓派的朋友都不知道怎么在局域网中查找树莓派的IP地址(一般的内网IP由DHCP随机分配),但如果你知道树莓派的MAC地址,这就好办多了。用python跑如下代码,ip地址就有了。import os
res = os.popen(‘arp -a‘).readlines()
for I in res:
if "00:00:5e:00:xx:xx" in I:
print I[:20]该程序在CentOS6.x / Fedora 19系统上调试通过用查MAC的方式获取Raspberry Pi树莓派的ip地址原文:http://bl...
1import cv2 as cv2import sys3import logging as log4 5# openvino_fd_myriad.py 6 filename =‘./‘ 7 8 log.basicConfig(format="[ %(levelname)s ] %(message)s", level=log.INFO, stream=sys.stdout)910if len(sys.argv) > 1 :
11 filename = filename + sys.argv[1]
12else:
13 filename = filename + ‘Girls.jpg‘1415 log.info("Image is " + filename)
16# Load the model.17 net = cv.dnn.readNet(‘face-detec...
Build a Raspberry Pi powered live train station sign for your deskBuild your own UK train station platform departure display (next train indicator) with live data using a Raspberry Pi Zero, OLED display and 3D printed case - a cool (and practical!) desktop gadget. It involves a bit of software, a bit of soldering, and some 3D printing too.https://www.balena.io/blog/build-a-raspberry-pi-powered-tra...
1、mysqlhttp://dev.mysql.com/doc/refman/5.5/en/index.html安装sudo apt-get install updatesudo apt-get install mysql-server-5.5 mysql-client-5.52、安装web.pysudo apt-get install python-pipsudo pip install web.pyhtml模板$def with(todos)$if todos==‘me‘:<html><body><h1>My test</h1><p>Hello World</p><hr /><form name=‘input‘ action="www.baidu.com" method="get"><input type="text" name="user"><input ty...
树莓派放在抽屉里吃灰有半年多了,去年玩了1个月后就没怎么开整了,上个月没工作,刚好有点闲暇,就把树莓派翻出来折腾,刚好碰到落网改版了,想起以前在树莓派论坛看到有网友拿树莓派来听豆瓣电台,代码那时我都下过,而且用树莓派试过,我喜欢上落网听歌,于是就想写一个
类似的python脚本....首先 发现落网改版后 那些
mp3的信息就存在试听的html页面上的一个叫volPlaylist的js对象,比以前去相应的xml里找简单多了。 用树莓派...
1 使用Remmina Remote Desktopubuntu 14.04自带一款远程桌面叫作 Remmina Remote Desktop利用它即可方便打开已经开启VNC server的raspberry pi650) this.width=650;" src="/upload/getfiles/default/2022/11/14/20221114095537811.jpg" title="Selection_001.png" />如图,已经新建好了一个raspberry的链接。新建服务链接填写链接name选择链接所使用protocol,注意要选VNC填写server的地址填写登录user name以及password如图:650)...