我正在尝试使用Motion JPEG流媒体流式传输jpgs.我需要安装包libv41-dev作为必需的库,当我安装时sudo apt-get install libv41-dev,我得到Unable to locate package libv41-dev错误.为什么找不到那个包裹?我在谷歌搜索libv41-dev,没有太多的信息出来.该库是linux/videodev.h文件所必需的.谢谢
我想在Raspberry Pi 3上安装最新的稳定版本的Node.js.我该如何做到这一点a)我总是能够更新到最新的LTS版本b)可以在版本之间轻松切换
如何在我的Mac上安装Raspbian OS到我的SD卡而无需安装任何其他软件或应用程序.谷歌上发现的大多数教程都需要安装SD Formatter或者没有提供详细步骤.
关于覆盆子pi
irukeru@raspberrypi ~ $ sudo iwconfig wlan0 mode managed
irukeru@raspberrypi ~ $ sudo iwconfig wlan0 channel 11
irukeru@raspberrypi ~ $ sudo iwconfig wlan0 essid linksys
irukeru@raspberrypi ~ $ sudo iwconfig wlan0 key xxxxxxx
Error for wireless request "Set Encode" (8B2A) :
invalid argument "xxxxxxx".
Run Code Online (Sandbox Code Playgroud)
我也试过了
irukeru@raspberrypi ~ $ sudo iwconfig wlan0 key s:xxxxxxx
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
Run Code Online (Sandbox Code Playgroud)
我是否需要编写密钥的bash代码?
我想学习Raspberry Pi的编程,我对Node.js非常好.我差不多五年没碰过C++了.我知道我可以在Pi上加载Linux,但是如何在Node中进行编程呢?
如果是这样,我该如何处理输入/输出等事情?例如,如果我想制作一个检测到运动并发出哔哔声的简单设备,这是否可以通过Pi上的Node.js来实现?
我正在运行Raspberry Pi运行Raspbian运行Node.js应用程序,并尝试在Pi启动时启动它.我找到了几个例子,但我似乎无法让它工作.我目前的代码是:
#! /bin/sh
# /etc/init.d/MyApp
### BEGIN INIT INFO
# Provides: MyApp.js
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts MyApp.js
# Description: Start / stop MyApp.js at boot / shutdown.
### END INIT INFO
# If you want a command to always run, put it here
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting MyApp.js" …Run Code Online (Sandbox Code Playgroud) 我有这个示例Node.js脚本:
var mdns = require('mdns');
var browser = mdns.createBrowser(mdns.tcp('http'));
browser.on('error', function (error) {
console.log("error");
console.log(error);
});
browser.on('serviceUp', function (service) {
console.log("serviceUp");
console.log(service);
});
browser.start();
Run Code Online (Sandbox Code Playgroud)
在我的Mac上它工作正常,找到了两个服务.如果我在运行Raspbean的Raspberry PI 2上运行完全相同的脚本(连接到同一网络),我得到这个输出:
pi@raspberrypi ~ $ node mdns.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用覆盆子pi型号b +(或任何覆盆子pi)上的RTL8188CUS芯片组启用USB wifi加密狗的监控模式.
$ lsusb
Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
$ sudo iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
Run Code Online (Sandbox Code Playgroud)
根据github / raspberrypi / linux/issues/369,您需要启用内核分发包含但未编译的rtlwifi/rtl8192cu内核模块.这需要对一些文件进行微小修改,如下面"STEP 2"中所述.
该线程中提到的USB问题已从4.1.6+开始解决,因此rtlwifi驱动程序应该可以工作.
在新鲜的覆盆子pi(模型B +)上重新创建的步骤......
第0步:将现有模块和内核更新到最新版本
$ sudo apt-get update
$ sudo rpi-update
$ uname -a
Linux raspberrypi 4.1.7+ #815 PREEMPT Thu Sep 17 17:59:24 BST 2015 armv6l GNU/Linux
Run Code Online (Sandbox Code Playgroud)
第1步:获取raspbian内核源代码并添加缺少的依赖项
$ git clone --depth=1 …Run Code Online (Sandbox Code Playgroud) 我检查了不同的论坛,但我仍然没有使它工作.我喜欢在我的Raspberry PI上安装go(golang) - Raspbian:
同
sudo apt-get install golang
Run Code Online (Sandbox Code Playgroud)
我安装了去和
export GOPATH=$home/pi/gocode
Run Code Online (Sandbox Code Playgroud)
我设置了GOPATH,所以我尝试从主页安装一个带有(sudo go get -u github.com/....)的新程序但是,我只得到" cannot download, $GOPATH not set. For more details see: go help gopath".
我真的因为我看不到的简单错误而疯狂.
如果因为我是Linux和Raspbian的新手而得到一个非常详细的"怎么办"的描述,我会很高兴,所以为真正的dummys所做的一切应该对我来说足够好.谢谢您的帮助.
我正在尝试在安装了 Raspbian buster 的 Raspberry Pi 3+ 上安装 Docker-compose。我按照docker.com 上的说明进行操作。在我输入命令后:sudo curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose。它显示了一个可供下载的表格
似乎没有下载任何内容,只是将文件docker-compose保存在/usr/local/bin/docker-compose. 打开一看,里面是空的。然后我输入命令docker-compose -v,它显示错误/usr/local/bin/docker-compose : line 1: Not: command not found。有人有解决方案吗?
raspbian ×10
raspberry-pi ×7
node.js ×4
linux ×3
wifi ×2
go ×1
init.d ×1
install ×1
installation ×1
linux-kernel ×1
macos ×1
mdns ×1
mjpeg ×1
sd-card ×1
terminal ×1