标签: raspbian

无法找到libv41-dev软件包进行安装

我正在尝试使用Motion JPEG流媒体流式传输jpgs.我需要安装包libv41-dev作为必需的库,当我安装时sudo apt-get install libv41-dev,我得到Unable to locate package libv41-dev错误.为什么找不到那个包裹?我在谷歌搜索libv41-dev,没有太多的信息出来.该库是linux/videodev.h文件所必需的.谢谢

mjpeg raspberry-pi raspbian

11
推荐指数
2
解决办法
8180
查看次数

如何在Raspberry Pi上安装最新版本的node.js?

我想在Raspberry Pi 3上安装最新的稳定版本的Node.js.我该如何做到这一点a)我总是能够更新到最新的LTS版本b)可以在版本之间轻松切换

node.js raspberry-pi raspbian

11
推荐指数
1
解决办法
2万
查看次数

如何在Mac上安装Raspbian到SD卡

如何在我的Mac上安装Raspbian OS到我的SD卡而无需安装任何其他软件或应用程序.谷歌上发现的大多数教程都需要安装SD Formatter或者没有提供详细步骤.

macos install sd-card raspberry-pi raspbian

11
推荐指数
1
解决办法
9032
查看次数

iwconfig - 通过终端上的wifi连接网络

关于覆盆子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代码?

linux terminal wifi raspberry-pi raspbian

10
推荐指数
1
解决办法
6万
查看次数

我可以使用Node.js编程Raspberry Pi吗?

我想学习Raspberry Pi的编程,我对Node.js非常好.我差不多五年没碰过C++了.我知道我可以在Pi上加载Linux,但是如何在Node中进行编程呢?

如果是这样,我该如何处理输入/输出等事情?例如,如果我想制作一个检测到运动并发出哔哔声的简单设备,这是否可以通过Pi上的Node.js来实现?

node.js raspberry-pi raspbian

10
推荐指数
2
解决办法
6694
查看次数

如何在系统启动时启动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)

init.d node.js raspbian

10
推荐指数
3
解决办法
2万
查看次数

Raspberry PI mdns getaddrinfo 3008错误

我有这个示例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)

mdns node.js raspberry-pi raspbian raspberry-pi2

10
推荐指数
2
解决办法
1886
查看次数

在Raspbian上通过USB启用RTL8188CUS的监控模式

我正在尝试使用覆盆子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)

linux linux-kernel wifi wificonfiguration raspbian

10
推荐指数
1
解决办法
1万
查看次数

在Raspbian上安装go(golang)

我检查了不同的论坛,但我仍然没有使它工作.我喜欢在我的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所做的一切应该对我来说足够好.谢谢您的帮助.

linux installation go raspbian

10
推荐指数
1
解决办法
1万
查看次数

Docker-compose: /usr/local/bin/docker-compose : line 1: Not: command not found

我正在尝试在安装了 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。有人有解决方案吗?

raspberry-pi raspbian docker-compose

10
推荐指数
2
解决办法
1万
查看次数