instruction stringclasses 1
value | input stringlengths 81 29.2k | output stringlengths 30 23.3k |
|---|---|---|
Answer the following technical question about Raspberry Pi. | Title: How do I build a GCC 4.7 toolchain for cross-compiling?
Body: I already asked this question on Stack Overflow, but I would like to know if anyone managed to build a GCC 4.7 toolchain for ARM cross-compilation (for a x86/x86-64 Linux host). There are many instructions for building GCC from source and many availa... | I found these instructions How to build a cross compiler for your Raspberry Pi . It is a great walk through using a crosstool-ng tool which simplifies configuring a cross-compiler build A LOT (it has a nice curses-based interface) and it supports GCC 4.7. I've followed these steps and ended up with a successful build o... |
Answer the following technical question about Raspberry Pi. | Title: Running 1080p video from within XOrg smoothly
Body: The 1080p examples that work outside of X.Org run very smoothly on my Pi, but within X.Org they don't run very smoothly at all at the moment. Given that X.Org is currently not GPU-accelerated, this is understandable - but with the hardware limitations will runn... | You just need a video player that decodes the video using the GPU. The suggested (and currently the only known) player for the RPi that does this is OMXPlayer . |
Answer the following technical question about Raspberry Pi. | Title: connection failed in apt-get upgrade
Body: I am using Raspberry Pi 3 Model B, and installed raspbian-buster on it. sudo apt-get update works well. But sudo apt-get upgrade shows connection failed. Err:29 http://archive.raspberrypi.org/debian buster/main armhf arandr all 0.1.9-2+rpt4 Connection failed [IP: 93.93.... | As Milliways said, it seems because of the problem in the major release. After I downgrade to Stretch, the 'connection failed' problem does not occur. |
Answer the following technical question about Raspberry Pi. | Title: Bluetooth discoverable mode is automatically turned OFF
Body: I want to set up the Bluetooth on boot so I can connect to it whenever I want with a device which is not trusted by the Raspberry Pi Bluetooth. I set up the Bluetooth on boot on my Raspberry Pi this way. In /etc/rc.local, I added : sudo bluetoothctl <... | I continued my research and found an answer that works for me. There is a DiscoverableTimeout on /etc/bluetooth/main.conf which is, by default, set to 300s. I just add DiscoverableTimeout = 0 on this configuration files. |
Answer the following technical question about Raspberry Pi. | Title: How to start installing Raspbian using serial console?
Body: After finding out that I could redirect serial console output , I purchased a USB to Serial TTL PL2303HX (Prolific chipset) from eBay. Next step was to connect the serial adapter to the Pi. I have downloaded RPI Installer from http://www.raspbian.org/R... | In the files extracted from the RPI Installer, I had to edit cmdline.txt and change this line: console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 to: console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=ttyAMA0,115200 After making that change, I could boot up my Pi and the console was showing in the putty sessio... |
Answer the following technical question about Raspberry Pi. | Title: What sort of throughput is achievabe over the USB 3.0 port on the Pi-4?
Body: Looking to run a router application on the rPi-4, and was wondering if anyone has experience using usb 3.0 -> gigabit ethernet adapters on it - specifically what adapter/chipset worked with what driver, and also what speed was achieved... | I have a Pi 4 Model B/4GB serving a small office as a router/firewall/gateway with dnsmasq (DHCP+DNS), dnscrypt-proxy, chrony (NTP), and a few other odds and ends. It's fairly busy: up to 20 users at a time, lots of file uploads, three main VLANs (plus a management VLAN). There's minimal internal routing for the time b... |
Answer the following technical question about Raspberry Pi. | Title: Does the PoE hat fit in the Raspberry Pi case?
Body: Does the Raspberry PoE hat fit inside the Raspberry Pi 3 Case ? And it might be too soon. But would the same PoE hat, on top of a Raspberry Pi 4 , inside a Raspberry Pi 4 Case also fit? And by "fit" I mean will the cover go on top of it as it naturally would. | I use it with standard RPi cases above on the 3+, the lid will fit but it gets hot in the office so the fan runs all the time, so I run it with the lid off as it is our main DNS box and I want it close to the centre of the network. The machines in the basement have the lid on them and run ok. Whilst the board has an ex... |
Answer the following technical question about Raspberry Pi. | Title: Led on before declaring it
Body: Hello I need some help with my leds, I have 2 leds one green and one red. What I want to do is just turn on the green led (and turn off the red) when I press a push button, that is to say all the time that I'm waiting, the red led will be on and the green off and when I push the ... | I guess the reason why you observe this behaviour in the first seconds is that you don't initialize the output state of the led pins. So, those gpios are in a default state (usually it's LOW, but it might be different for specific pins and depend on other configurations).
It will take a while until cap is initialized a... |
Answer the following technical question about Raspberry Pi. | Title: Creating an image file from an SD card
Body: I have a Raspberry Pi distribution on a bootable 32 GB SD card. What I would like to do, is the following: Shrink the partition to 4 GB (that's the size of the data on the card). Create an .img file from that SD card, so I can use it to create other bootable SD cards ... | There are some possibilities to shrink a partition but you may consider to create a complete new image file and copy your old installation to it. This way you are free to configure your new image as you like. You can modify the size of all partitions so just make the root partition 4 GB before copying. If you have made... |
Answer the following technical question about Raspberry Pi. | Title: Disable autologin on tty1 on stretch 9.9
Body: I found this answere but it doesnt work anymore. How does it work on the new version? | The autologin.conf file for tty1 must be deleted: sudo rm /etc/systemd/System/getty@tty1.service.d/autologin.conf . |
Answer the following technical question about Raspberry Pi. | Title: Raspbmc does not seem to do anything
Body: I have installed raspbmc and it seems to work. It has an IP address, I can ssh into it and ping the outside word from there, it updates the OS when it starts up, I can see the screen on the TV. I am hoping to use it to view sites like netflix and filmon. The problem is... | I was right, I did miss something fundamental :( It seems that very early in my RPi experience I ticked the box in the settings labelled "Live TV" as the main reason I want xbmc is to watch live UK TV via iPlayer or Filmon. This gave me an option of Live TV in the main menu. So that is where I went when I wanted to wa... |
Answer the following technical question about Raspberry Pi. | Title: What Revision(s) does cat /proc/cpuinfo return on the new Pi 4 1/2/4GB?
Body: To enhance my bash script decoding the Revision returned by cat /proc/cpuinfo I'd like to know what the RaspBerry Pi 4 codes for ModelName,Processor and Memory are. (my own one is still underway) Sample sanitized output: LotPings@LegoB... | My 1GB PI4B returns revision a03111. $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
... |
Answer the following technical question about Raspberry Pi. | Title: CE1 not going low for pigpio.spi_open() with flags
Body: I'm attempting to modify joan's test script ( https://raspberrypi.stackexchange.com/a/44320/42126 ) for an RPi SPI master to communicate with an Atmega328P slave. I cannot change which GPIO pins I have configured due to hardware constraints in my project. ... | This seem to be a misunderstanding. The usage of GPIO by the main and auxiliary SPI devices is as follows. MISO MOSI SCLK CE0 CE1 CE2
Main SPI 9 10 11 8 7 -
Aux SPI 19 20 21 18 17 16 If you want to use the auxiliary SPI with a non-standard chip select you will have to toggle the GPIO yourself. Thi... |
Answer the following technical question about Raspberry Pi. | Title: Raspberry Pi can't print to wireless printer
Body: I can print to my wireless printer from my laptop just fine, but I'm having trouble getting it to work from my Raspberry Pi. I found some instructions that said to install cups-client, then edit the cups client.conf file. However, after installing cups-client ... | I don't have any experience with wireless printing via CUPS, but in the past I've had to setup a driver to get CUPS working over USB. This page might help: https://www.openprinting.org/drivers . I'd also test connecting it via USB first. Apologies if I couldn't be of more help. Hoping someone with a bit more experience... |
Answer the following technical question about Raspberry Pi. | Title: Terminal-Only Capable Voip
Body: I am trying to run mumble on my headless pi. Unfortunately, mumble wants an x server to run. Is there any way to get a client to run through only terminal? I cannot seem to find anything quick and simple. Teamspeak apparently refuses to write a version for the pi. I have found as... | linphone is quite small (~25MiB with gtk dependencies IIRC); Try apt-get install linphone-nogtk |
Answer the following technical question about Raspberry Pi. | Title: "Proper" way to (permanently) mount USB hard drive?
Body: What is the proper/best way to have a USB hard drive permanently mounted? I have done this using fstab using disk label as the identifier, but when I disconnected the drive and tried to boot the pi, it wouldn't boot (dropped to a root shell somewhere alon... | using /etc/fstab is the proper way of doing this. if you do not want your system to depend on the drive on startup in case the usb drive is missing you have to set the relevant parameter / options from man fstab nofail do not report errors for this device if it does not
exist. so your f... |
Answer the following technical question about Raspberry Pi. | Title: What happens to the GPIO voltage after shutdown?
Body: I don't have a Raspberry Pi laying around at the moment and I would like to detect if my Raspberry Pi is shuted down. My Idea is that maybe after the Pi shutted down the Voltage at the 3V3 pin will drop and I can detect this. And if this still works when the... | The Pi has 3 "components" the CPU, GPIO and Video Core which are relatively independent.
Even when the Pi is shutdown the Video Core continues to run, and the GPIO pins retain their state; only the CPU is not running. The 3.3V is supplied by separate circuitry and will be present while ever the Pi is connected to a 5V ... |
Answer the following technical question about Raspberry Pi. | Title: No activity LED after shorting a GPIO to ground : dead or fixable?
Body: This is a model 3B+, due to some under-power warnings on the screen I was testing the actual voltage between the 5V and ground pins on the header, but managed to touch pin 40 (SCLK) to pin 39 (GND) with the multimeter probe. This caused the... | Even with 50 years experience as an Electrical Engineer I wouldn't poke at a 0.1" header with a multimeter probe (although the 50 years experience probably taught me the hard way). Attach Du-pont leads to the pins, and measure the flying leads. Test the voltage on Pin 1 (3.3V) - if this is absent the Pi is dead. Connec... |
Answer the following technical question about Raspberry Pi. | Title: SSH into Raspberry Pi connected to OpenVPN
Body: I want to be able to remotely ssh into my rpi, while my rpi is connected to PIA (via OpenVPN). I can ssh into the pi from my local network while the pi is connected to OpenVPN, and I can also ssh into the pi remotely while the pi is not connected to OpenVPN. But w... | The problem is with the routing. You try to connect from remote to the PI, but the return packets are routed through the VPN. The port forwarding might work, you have to find out where it goes wrong. A solution to the routing problem is policy routing. Create a rule: ip rule add sport 22 table 222 This assumes that 22 ... |
Answer the following technical question about Raspberry Pi. | Title: DS3231 doesn't update its internal time?
Body: UPD : with another chip of the same model RTC works just fine, presumably that the chip was broken/damaged. I installed DS3231 RTC clock ( which is detected as DS1307 for some reason). My config.txt looks like gpu_mem=64
dtoverlay=dwc2
dtoverlay=i2c-rtc,ds3231
dtpar... | The ONLY thing you have to do is include in /boot/config.txt: dtoverlay=i2c-rtc,ds3231 All the RTC supported by the Pi kernel use the same rtc-ds1307 driver, but you NEED to tell the driver which chip you actually have. (The different chips have similar instruction sets and registers.) NOTE you NEED to use a separate d... |
Answer the following technical question about Raspberry Pi. | Title: Read ip camera stream video on python using opencv3
Body: I installed opencv3 installation link on my raspberrypi 3 and i've tested this, everything is ok, but when i try to read the ipcamera video stream encountered this error self.stream = cv2.VideoCapture("rtsp://*:*@{}:525/stream2".format(ip_camera_address))... | I install opencv again [ best link for install this ] and i try to install FFmpeg from repository . affter installation of ffmepg i tried to read ipcamera video stream with this script Note : after finshing opencv cmake, FFmpeg subitems most all get YES. self.stream = cv2.VideoCapture("rtsp://user:password@{}:525/stre... |
Answer the following technical question about Raspberry Pi. | Title: How to read Wiegand serial data? (Rx/Tx)
Body: Ok, I am losing my mind... Why is this so damn difficult? Current situation: - 12V Access control device that is connected like this i.e. Wiegand D0 to Tx and D1 to Rx, with voltage dividers. - Raspberry Pi 3 with Raspbian Lite OS. - Configured the GPIO serial port ... | Question How to use Rpi UART to read Wiegand data? Answer No you can't. Wiegand and UART are different animals. They don't talk
to each other. But you can use two Rpi GPIO pins and write a simple python program instead. See details below. Wiegand format summary (1) has two output signal wires, one carrying Bit 1 sign... |
Answer the following technical question about Raspberry Pi. | Title: Can I plug my SD card from Pi 3 into a Pi 4?
Body: If I upgrade the OS to Buster on an OS disk (SD card or USB stick) on my Pi 3, will it work if I boot a Pi 4 off that? Note : My question is not about the merits of upgrading, but if the same disk used for a Pi 3 will work on a Pi 4, assuming it's running Buster... | This can be done, but requires a bit of work to get the bootloader updated for Raspberry Pi 4. Here's how I did it: Back up your SD card!!! This can go wrong any number of ways. Not my fault if you bork something! Upgrade Raspbian on your Pi 3 to Raspbian Buster. Use Gparted on another computer to enlarge the boot part... |
Answer the following technical question about Raspberry Pi. | Title: BitTorrent Sync on RPi with dynamic IP addresses, how to set it up?
Body: I've got a synology DS-212j with the BTSync client set up, and I've also set it up on a Raspberry Pi on the my LAN succesfully. The sync directories work perfect, and now that the test phase goes well, I'd like to use the RPi on my parent'... | Bittorrent Sync uses Bittorrent technology that is inherently peer-to-peer and IP-independent. You do not need need a fixed Internet IP. *This is my assumption as internal working is not revealed anywhere ... Each client makes a small amount of encrypted data (based on secret i presume) and stores it somewhere. Where I... |
Answer the following technical question about Raspberry Pi. | Title: Xorg not working after upgrading to buster
Body: After switching to Raspbian Buster and rebooting RPi3 B+ boots into a shell. (I use the GUI so this is a bit odd) After typing in startx I get this error (I cutout a bunch of junk): (EE) no screens found(EE)
(EE) Server terminated with error (1). Closing log file... | This is the wrong answer. The top answer seems to be much better, but I won't accept it because I didn't try it. I eventually just sucked it up and reflashed my SD card with Buster. Wasn't too bad redoing everything |
Answer the following technical question about Raspberry Pi. | Title: Startup files on raspberry pi 3
Body: I have 4 python scripts running continuously. How I can open them in separate windows on startup? I need see the terminals when it's booting up. I tried rc.local : it's working but I can't see the terminals of each script.
I need that after reboot I can see 4 terminal window... | I'm assuming your using Raspbian Stretch with Desktop or Raspbian Buster with Desktop. Edit the autostart file using: sudo leafpad /etc/xdg/lxsession/LXDE-pi/autostart Autostart file should look similar to: @lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
point-rpi Add your 4 Pyt... |
Answer the following technical question about Raspberry Pi. | Title: How to Monitor GPIO Input Indefinitely Without Recursion
Body: I actually joined StackOverflow to ask this question because I wasn't sure it was RPi specific, but as I was thinking about how to form the question, I realized it might be GPIO specific (for some reason that I'm not even aware of), so hopefully this... | When you have a recursive function like this (one with too much depth potential), you need to convert it into a loop. In this case you have two functions alternating calling each other: while True:
watchopen()
watchclose() This will loop forever (as does the original version, you are exiting on a signal), but you... |
Answer the following technical question about Raspberry Pi. | Title: ssh in local LAN: works with IP, but not by name
Body: On a local LAN, I am trying to ssh into a freshly installed Raspberry Zero WH, by host name. I am connecting from an Ubuntu box. The Rasbperry Pi does boot, and connects to the Wifi. I can see it in my PfSense firewall/router page "Status: DHCP leases" as up... | You think that raspberrypi-zero-wh is that name of your Raspberry Zero WH, but as can be seen in the output of the ping command, that name resolves to 127.0.0.1 . So you don't try to connect to the Raspberry Zero WH, you try to connect to the computer running the ssh command. It seems to be a problem with the assignmen... |
Answer the following technical question about Raspberry Pi. | Title: Automatically Create Hotspot if no Network is Available
Body: I want to automatically create an access point, if there is no network found, so that I can connect to my Raspberry Pi everywhere. If nobody is connected to the hotspot for a while it should search for the networks defined in wpa_supplicant.conf again... | The following can also easily be installed from a github repository that I created here . First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained here : # deinstall classic networking
sudo -Es # if not already done
apt --autoremove purge ifupdown dhcpcd5 isc-dhcp-c... |
Answer the following technical question about Raspberry Pi. | Title: Why does Raspbmc hang randomly?
Body: My Raspberry Pi, running Raspbmc, hangs randomly while navigating in the menu/settings. Any hints what I could check to find out what's happening when it hangs? | Is it crashing or just hanging? You can try the top command it will show the usage of your resources CPU: 34.3% usr 10.8% sys 54.0% nic 0.0% idle 0.0% io 0.1% irq 0.5% sirq
Load average: 5.66 4.22 3.35 4/110 24166 I am using OpenELEC which is oriented on XBMC for small devices, it is not stable yet, but it worth th... |
Answer the following technical question about Raspberry Pi. | Title: Running Hologram cellular network from startup issues [cannot run on rc.local or .bashrc]
Body: I’m playing around with the hologram Nova cellular USB kit and I’m trying to create an automatic connection using the /etc/rc.local file. Hologram uses it's own way of connecting to a ppp0 network connection and the w... | Please take note that using /etc/rc.local has limitations due to Compatibility with SysV . We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it. Instead you should use a systemd Unit file to start your service. With systemd you have... |
Answer the following technical question about Raspberry Pi. | Title: Is there a way to physically disable wireless networking capabilities?
Body: I'm looking to create a cheap air-gaped computing device to store and utilize sensitive data like cryptocurrency wallet addresses or PGP keys. Now, I'm a total newb when it comes to Raspberry Pi but they do seem suitable for these appli... | You could of course just break out the WLAN chip and bluetooth chip, respectively. The WLan Chip should be the little thing with the raspberry icon on it. But why'd you do this? Fear of getting hacked, ripped off? You have multiple ways of protecting yourself if you feel paranoid.... LEARN USING LINUX: sudo ifconfig wl... |
Answer the following technical question about Raspberry Pi. | Title: Detecting the same RFID tag twice
Body: I have a problem with the MFRC522 library. It seems to me that after the tag was read / written one time correctly, in the next cycle the library always returns 2 on the check whether a card is present or not, meaning it skips one cycle every time. The "request" function s... | Well, after further searching I found an okish solution thanks to This post from Constantine Samoilenko What he said was to cleanup the GPIO at the end of the loop, and also to reinstantiate the MFRC522 object each time the loop restarts. (this creates much overhead and is therefor just a dirty hack, but hey, we are sp... |
Answer the following technical question about Raspberry Pi. | Title: POE without the Rpi Hat?
Body: I have a raspberry pi 3b+ with the 4 PoE connectors. How can I power the Pi with Ethernet without buying the PoE Hat? Is there a link to a schematic for the PoE hat? I need a different board on top of my Pi. Thanks. | Use a POE splitter: I’ve used the following with excellent results. Cheaper than a POE Hat to and leaves the GPIO pins free too!: https://www.amazon.co.uk/gp/product/B074Y6M67F/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 |
Answer the following technical question about Raspberry Pi. | Title: How do I build Qt's mysql-plugin on Raspbian Buster
Body: I try to build the MySQL plugin on a Raspbian Buster with C++ and Qt 5.12.4. Building Qt itself worked fine by following this tutorial: https://www.tal.org/tutorials/building-qt-512-raspberry-pi However, if I add the option -sql-mysql to the command PKG_C... | You need to install the Mariadb packages and the mysql compatibility package in your sysroot. apt install mariadb-client mariadb-common mysql-common
libmariadb-dev-compat libmariadbclient-dev libmariadb-dev-compat package will create all the links necessary for compatibility between mariadb and mysql.
Then, when you ... |
Answer the following technical question about Raspberry Pi. | Title: pi-4 cryptsetup benchmark output?
Body: On the pi-4 what is the output of "cryptsetup benchmark"? I want to asses its performance compared to the pi-3.
Apparently the new "quality standards" require this question to be needlessly verbose thus these 2 extra sentences. | https://forum.odroid.com/viewtopic.php?f=149&t=30103&p=215037 Algorithm | Key. | Encryption. | Decryption
aes-xts. | 512b | 66.1 MiB/s. | 56.8 MiB/s. |
Answer the following technical question about Raspberry Pi. | Title: Raspberry Pi4 extension to PCIe
Body: Is it possible to extend the Raspberry Pi 4 to provide a PCIe connection? I have a PC which has as only purpose to play music using this Soundcard (no Linux drivers that work well) "PCI Express X-Fi Titanium Fatal1ty Pro Series" by Creative and I am happy with the sound. But... | Someone (see links below) has managed to connect a PCIE card to a Raspberry Pi 4 by desoldering the USB chip and connecting to the board, so it's kind of possible if you like soldering and damaging your Pi. The Pi 4 has one set of PCIE lanes, that is used for USB-3 support. I don't think Windows is available for newer... |
Answer the following technical question about Raspberry Pi. | Title: How can i install OpenCV on Raspberry Pi 4 (Raspbian Buster)?
Body: I have tried many days to install OpenCV on my Raspberry Pi 4 with Raspbian Buster but i couldn't get it done. The installation always works but when importing or using cv2 methods like cv2.imshow(), errors come up (see below). Did somebody get ... | You should use OpenCV from the default Raspbian Repository. It is tested and fits best into the Raspbian distribution without errors (I hope :). On Buster you will find with: rpi ~$ apt list python*opencv*
Listing... Done
python-opencv-apps/testing 1.12.0-2 all
python-opencv/testing 3.2.0+dfsg-6 armhf
python3-opencv-ap... |
Answer the following technical question about Raspberry Pi. | Title: Screen resolution when VNCing into a Pi Zero W
Body: I am using TightVNC to get into a Raspberry Pi Zero W, running Raspbian. The pi normally runs headless and I will never attach a monitor to it, only remote in. When I remote in, I see a small desktop (I would guess 640 x 480), surrounded by black. How do I see... | The -geometry switch on the TightVNC command line will set the geometry as you like it. Where that command actually is depends on how you're starting VNC. Common situations are vncserver, xinetd, or using systemd. I did a write-up on setting up TigerVNC with systemd but can be easily applied to tightvnc. See https://gi... |
Answer the following technical question about Raspberry Pi. | Title: 3.5 mm jack speakers not being recognized
Body: Over the past several days, I have tried and failed to make my raspberry pi recognize the speakers that I connected to it through the 3.5mm jack. The USB microphone that I plugged in works perfectly well and I believe that my sound card is good as well. I have spen... | Question How to tell Rpi to use the speakers connected to the USB sound stick? Answer I am using Rpi3B+ stretch 9 GUI Desktop's automatically installed VLC
Media Player. My speaker is connected to the USB hub. Method 1 GUI Desktop Top Menu > Preferences > Audio Device Settings > Sound Card > Choose the following USB ... |
Answer the following technical question about Raspberry Pi. | Title: How to install Jasper on Raspberry Pi 3 (Model B)?
Body: Sorry ahead of time, I'm new to Raspberry Pi's. I am trying to install Jasper by using its guide ( https://jasperproject.github.io/documentation/installation/ ), but I cannot seem to figure it out. In the guide, it says to image the SD card with their .img... | You may try to install Jasper manually. Here is a short summary (for more details see Method 3: Manual Installation )
: Install and configure Raspbian as usual Clone Jasper Github repo and install/configure Jasper Install and configure dependencies for TTS engine But as Milliways said this link is obsolete and Jasper s... |
Answer the following technical question about Raspberry Pi. | Title: Can you use the Raspberry Pi 4 B to control 1 or more Raspberry Pi Zero's?
Body: My project is going to use Pi 4 to connect to 1 or 2 Pi Zeros. I would want the Pi 4 to control the Pi Zeros. Would that work? Also I am going to connect the Pi 4 to the Ethernet. Also would the Pi 4 link the Pi Zero to the internet... | All of your raspberries will be connected to the same network, so in fact you could use a master to drive the other one distributing tasks. This could be achieved by SSH communications.
You should also take a look and force IP to your raspberries on your internet provider box.
I mean you can configure your internet rou... |
Answer the following technical question about Raspberry Pi. | Title: whats the difference between includes from /usr/include/arm-linux-gnueabihf/sys and /usr/include/arm-linux-gnueabihf/bits
Body: I have a hard time to resolve a problem with time.h includes and I noticed that there are two include directories with some overlapping header files:
/usr/include/arm-linux-gnueabihf/sy... | when I need to use ..../bits and when ..../sys Neither. Just use: #include <time.h> This will source /usr/include/time.h , which sources the bits one directly, and probably indirectly sources the sys one too. In any case, the standard C time functions are declared in the toplevel header and for predictable results, s... |
Answer the following technical question about Raspberry Pi. | Title: Raspberry 4 usbmount not working
Body: As the title suggests, I am having issues on the new raspberry pi 4 with buster and USBMOUNT. Well, it's not working. At 3b+ there was a similar issue, you had to edit a file and change MountFlags from slave to shared. Well there isn't a MountFlags setting in the systemd-ud... | I faced the same issue with Raspberry Pi 4 and Raspbian Buster, the solution for me was to modify the following file: /lib/systemd/system/systemd-udevd.service You will see a line like this (I call this Before): PrivateMounts=yes Change this line to this (I call this After): PrivateMounts=no Then I rebooted and it was ... |
Answer the following technical question about Raspberry Pi. | Title: How to send video on remote web server using Raspberry Pi and camera module?
Body: I want to create an IoT device that capture the video and send it to a remote web server via Internet. I don't want to create a webserver inside raspberry pi and access it in other devices like smart phones but rather the Pi based... | You can use python and HTTP POST for non-live stream , you can see an example of python code here . But many other solutions exists with another protocols or languages. |
Answer the following technical question about Raspberry Pi. | Title: What's the RPi camera board called (internally)?
Body: I connected a Rpi-camera board to the camera socket on my RPi (not a usb webcam). I have been searching the internet on how to call the camera in Python.
The camera works ( raspistill and raspivid both work). To be more specific, I'm using the qr-tools libra... | There are now a couple of V4L drivers for the Pi's camera module including an official one ; using such a driver should cause the camera module to show up as /dev/video0 (though you may find you need to fiddle with some settings using v4l2-ctl , as per the linked forum thread). |
Answer the following technical question about Raspberry Pi. | Title: Can't SSH into Raspberry Pi 3b+ from Windows 10
Body: I am unable to ssh into my raspberry pi 3b+ from Windows 10. I was able to up until yesterday evening. Not sure how to troubleshoot at this point. I am able to SSH into the pi from a virtual machine running ubuntu. I'm able to ping the pi from the windows mac... | I finally figure out what the issue was - fail2ban banned my IP. $ sudo iptables -L f2b-sshd -v -n --line-numbers [13:34:09]
Chain f2b-sshd (1 references)
num pkts bytes target prot opt in out source destination
1 44 2288 REJECT ... |
Answer the following technical question about Raspberry Pi. | Title: Cannot connect to RasPi by SSH with WiFi interface only
Body: I'm observing really annoying issues with connectivity to RasPi on WiFi network. I have device connected on both LAN cable and WiFi. If both cable and WiFi dongle are plugged - both interfaces are working fine and I'm able to connect to RasPi through ... | Check to make sure your SSH config is set to listen on all interfaces.
This will ensure that if the system boots and only WiFi is available, it will listen on the WiFi interface. I suspect this is ok based on your above description, but it is worth checking anyway. The other thing I would do is watch the boot process v... |
Answer the following technical question about Raspberry Pi. | Title: Would it be possible to set up a security system like the one in jurassic park?
Body: Would it be possible to set up a security system like the one in jurassic park (the book) using raspberry pi's? If so, how much time would it take, and how much would it cost? Using python as the language. (I'm not 100% sure th... | Question Is it possible to use Rpi and python to build a Jurassic Park security
system? Answer Yes, I guess we would need 1,000 Rpi4, and 2,000 sensors and actuators. But python is not enough, we need other languages like NodeRed which is more suitable for event driven, and web design etc. Perhaps the OP can propose... |
Answer the following technical question about Raspberry Pi. | Title: Powering a raspberry pi 4 using a micro usb power supply with adapters
Body: I previously owned a raspberry pi model 3b+ and have purchased a new raspberry pi 4b (4 gigabyte ram). I have an official micro USB power supply and some micro USB to USB type C converters designed to allow you to use old charging cable... | I have used a micro USB to USB C adapter to power my Pi4B. I used a 2 amp 5V wall-wart to provide the power. Please be aware that I only use my Pi's headless so my current requirements may be less than yours. I am currently powering the Pi4B via the 5V and ground pins on the expansion header (using a 5V UBEC powered ... |
Answer the following technical question about Raspberry Pi. | Title: C Raspberry Pi Zero w, read out button matrix
Body: I have trouble reading out an button matrix with my raspberry pi zero w . I am using pigpio for reading out the gpios, but I don't think this is a software issue. This is my source code: #include <stdio.h>
#include <pigpio.h>
#include <unistd.h>
int main() {
... | I fixed it by using configuring the gpios as pullups instead of pulldowns.
The api didn't return an error, but it seams like is not possible to configure the used pins as pulldown.
To avoid short circuit if two buttons are pressed at the same time I also had to set the not used OUTPUT gpio pins to inputs. This is my ... |
Answer the following technical question about Raspberry Pi. | Title: Force audio output to USB for Alarm Clock
Body: I tried to force audio to audio jack with amixer cset numid=3 1 or using the raspi-config which works for other applications like audacity, vlc and other multimedia software except for the alarm clock alarm-clock-applet https://github.com/joh/alarm-clock , Which I ... | I decided to play the audio out for the mean time using VLC Media Player by adding this custom command vlc --vout none /path/to/alarm.mp3 on the Alert Start Application Box. Which works very well while I keep trying the default to see what went wrong. |
Answer the following technical question about Raspberry Pi. | Title: ssh raspberrypi.local not resolving in OSX
Body: Until recently ssh pi@raspberypi.local worked as would one expect it to normally. However within the last few days it no longer returns anything and will just sit forever until killed manually. The pi in question is ping-able and can be accessed via the IP returne... | It appears the issue was central to fish for some reason. Moving to bash caused ssh to work as expected. Returning to fish and typing out ssh pi@raspberrypi.local in full caused everything to work correctly; no idea why. Best guess is that something was wonky in the stored smart command stuff fish does. |
Answer the following technical question about Raspberry Pi. | Title: Using a Raspberry Pi to connect to a Public Hotspot
Body: Is there a way to use a Raspberry Pi to take a (public) WiFi Signal and create a hotspot such that devices can connect wirelessly to the internet via the Pi? Moreover, can this be done if a network has no password set but requires a user to login with cre... | Setting up an Access point as WiFi router/repeater is not a problem. The problem is the user to login with credentials. I suppose this is done with the internet browser on a login page. You can script this login but there is no standard login procedure. Every site has its own procedure so you have to script every login... |
Answer the following technical question about Raspberry Pi. | Title: Convert 12V to 5V to power RaspberryPi
Body: I have an Eleksmaker laser cutter which has a board with a 12V output (see top of image). I would like to power my RaspberryPi using this 12V output. What is the advantage of powering the RaspberryPi over microUSB instead of hooking 5V onto the GPIO pins? Though I can... | I use buck converters that convert 12VDC to 5VDC to power most of my raspberry pi computers. There are many available but be sure to check the amperage output. Most come with a USB A 5VDC output and that way you can use the microUSB for power thus having fuse protection My RPi Zero computers for my weather station as w... |
Answer the following technical question about Raspberry Pi. | Title: how does the Raspberry Pi PoE shield work?
Body: I would like to do PoE for some Pies, but I dont like the real-estate the PoE hat takes up. what exactly is required for the PoE to work? what pins must I use on the raspberry PI, and what does the PoE hat do?
An electronic schematic would be nice. I saw the mecha... | Here's a schematic you could use as a reference: X2 is wired in so-called passive mode which uses the pinout of 802.3af mode B - DC plus on pins 4 and 5 and DC minus on 7 and 8. These are available on RPi PoE header as TR2_TAP and TR3_TAP respectively: The supply is expected to provide power without any negotiation. Th... |
Answer the following technical question about Raspberry Pi. | Title: how to play audio from python on Raspbian Stretch Lite?
Body: I would like to play selected audio files through the built-in audio port on a Raspberry 3 that is running Raspbian Stretch Lite, from a python program. Unfortunately, none of the libraries or external applications that I have tried for this purpose w... | I have just tested it with two favorite programs: omxplayer and mpv . I used a fresh flashed up to date Raspbian Buster Lite but it shouldn't make a difference to Raspbian Stretch Lite. Playing music with this programs works out of the box without an modifications. For testing first I plugged in a simple earphone into ... |
Answer the following technical question about Raspberry Pi. | Title: GPIO generate 38KHz carrier frequency , understand duty cycle
Body: I try to understand how to generate IR carrier frequency with the raspberry and how PWM and NEC work visually. I learn PWM but I cannot find any explication of duty cycle. Ok it's a percentage of HIGH state on 1 cycle or 1 period or 1Hz ... But ... | A 38 KHz PWM carrier has 38000 cycles per second. Each cycle takes 1 million / 38 thousand microseconds, so approximately 26 microseconds per cycle. The dutycycle is the percentage time the PWM signal is high per cycle. Infrared devices use mark space PWM rather than balanced PWM. All you need to know is that mark sp... |
Answer the following technical question about Raspberry Pi. | Title: Raspberry shutsdown after boot
Body: I just got my first RPi, and installed NOOBS on an SD card etc etc. Followed the official guide and all went fine and Raspbian was installed then it shutdown. So I removed the power plug, waited a while and inserted it again. Now when it boots for a brief second I see the spl... | hustlerinc found his answer thanks to my mentioning of the issue with certain SD cards with NOOBS 1.3 Quote: RPi Awesomeness Another thing, what version of NOOBS are you using and what SD card? If you are using the newest (NOOBS 1.3) there is a known issue with a certain brand of SD cards. He asked me to post as answer... |
Answer the following technical question about Raspberry Pi. | Title: 1-wire device not detected
Body: I'm having trouble getting a 1-wire sensor to be detected on my Raspberry Pi Model 3 B+. The sensor is this temperature and humidity sensor . I have wired the red wire to 3.3V, the black wire to ground and the yellow wire to GPIO4 (physical pin 7). I have also connected a 4.7k re... | I doubt that is a 1-wire (Dallas) bus device. If it's manufactured by Aosong it's much more likely to use their one wire protocol (as used in their DHTxx series of temperature and humidity sensors). The Chinese datasheet confirms it uses the 40-bit Aosong one wire format (you can cut&paste the Chinese glyphs into Googl... |
Answer the following technical question about Raspberry Pi. | Title: Play multiple mp3 files
Body: I need to be able to play up to 8 mp3 files at the same time. Is this possible with the raspberry pi 3b+? They need to be started in python code. | Based on my answer here : The test is done on a Pi Zero with a recent Raspbian, Python 3.6, vlc (along with approx. 150 other packages), and it's Python-bindings. It's using a USB soundcard and alsa . Playing from Python worked straight forward: import vlc
instance = vlc.Instance('--aout=alsa')
p = instance.media_playe... |
Answer the following technical question about Raspberry Pi. | Title: Piscope resolution
Body: I generate a carrier frequency at 38KHz and I see the output LIVE in the piscope, but the "pulse widths" are not perfect ... the pulses are more or less wide when they must all have the same width.
It is a problem of screen resolution due to a big zoom or something like that? The period ... | You have to consider the pigpio sampling rate. By default pigpio samples every 5 µs, so a 26.3 µs square wave might be shown with a duration of 25 µs or 30 µs. The half way point might be 10 µs or 15 µs. If you want to get a better feel look at the time for 10 cycles. 10 cycles = 265 µs. Compare with the same square ... |
Answer the following technical question about Raspberry Pi. | Title: MySQL not starting after powering the Raspberry Pi off
Body: I have a raspberry pi with MySQL installed. I turn off my raspberry Pi by unplugging the power (no system shutdown). At some points the MySQL get infected, and after that it will never turn on again. it gives me this error on startup checking for table... | how can I fix that without "system shutdown" You cannot. is there any... No, there isn't. No operating system in the world is designed to absorb having the cord pulled without a shutdown. If you keep doing this, you will find db corruption is only one of a wide range of possible problems. The purpose of software like... |
Answer the following technical question about Raspberry Pi. | Title: Updating python code with usb
Body: I have a folder in the pi/home directory with python code. Is there a way to update (replace) these files by using one of the usb ports? I would like to be able to plug in the usb, reboot the pi, if there is a usb drive on boot, copy and replace the files in pi/home folder wit... | Yes, you can. First configure your Raspberry Pi to auto-mount USB Storage Devices (guide here ). Then create a script that checks the folders under /media/ where the mounted USB stick would be. If it finds your scripts, replace the old ones with the new ones. Configure your script to run at boot by editing your /etc/rc... |
Answer the following technical question about Raspberry Pi. | Title: are the Zero and Zero W software compatible?
Body: I'm having problems on a brand new Zero, I prepared the SD on a Zero W to install updates and other via internet, I disabled bluetooth and I left wifi enebled in case I'll need to change something on the SD using the Zero W headless. on the Zero W all works like... | If the OS loads correctly but randomly freezes, there might be something wrong with the RPi, but if the boot process gets interrupted, or paused for a very long time without letting you login it most likely means the DHCP server is trying to find the interface in which your Pi was set and thus you may need to boot agai... |
Answer the following technical question about Raspberry Pi. | Title: Created a Raspberry Pi 3B+ Wireless Hotspot, how can I extend the hotspot via Ethernet
Body: I have successfully created a WiFi hotspot for my RPi 3B+ using a Hologram Nova and the embedded WiFi card on the Pi. However I realized that the ethernet interface has disappeared and cannot extend the hotspot to the Et... | On your installation you have predictable network interface names enabled so you will not always find classical interface names like eth0 . Your wired interface has the name enxb827eb3f0e89 . Instead of eth0 you have to use this name. If you don't like predictable network interface names you can use sudo raspi-config t... |
Answer the following technical question about Raspberry Pi. | Title: using serial interface /dev/ttyAMA0 crashes Raspberry Pi
Body: I've disabled console on the GPIO serial interface, lowered the speed to 9600 and had some communications observed with minicom and a simple cat /dev/ttyAMA0 talking to an arduino all ok. Now for some reason the Pi crashed and upon hard reboot if I t... | Ok, well no answers here but thought I'd update it anyway. problem has resolved itself since I upgraded the raspberry pi. I'm really not sure what the cause was but it's no longer a problem since doing. apt-get update
apt-get upgrade |
Answer the following technical question about Raspberry Pi. | Title: Can I connect RaspberryPi GPIO to Nintendo DS Buttons?
Body: I was wondering if I can connect a Raspberry Pi to the buttons of a Nintendo DS. I have seen something similar on Youtube for the Switch controller. My goal is to control the buttons using a Raspberry Pi. | Indeed you can, if you want something easy to play with the GPIO I suggest you WiringPi, if you already worked on Arduino it's the same thing but on raspberry . If i have well understood you you want to make the raspberry play for you ? Some sort of Rogue player? For doing so you will have to understand the schematic o... |
Answer the following technical question about Raspberry Pi. | Title: RPI3B+: What are the four components below the HDMI connector called?
Body: I am trying to get the following RPI3B+ to work. Apparently the machine is booting ok, since I can see it using nmap on my local network: # nmap 192.168.0.23
Starting Nmap 7.70 ( https://nmap.org ) at 2019-07-09 17:37 CEST
Nmap scan rep... | While the official Raspberry schematics don't tell a thing about these components we can learn from the picture of the PCB that they are connected to the paired pins 1 and 3, 4 and 6, 7 and 9, 10 and 12 - that's all the differential signal and clock lines. Since the devices have just four pads (not six) they are not du... |
Answer the following technical question about Raspberry Pi. | Title: Can I drive a custom LED matrix from my Pi
Body: I have an idea for a project, but I am unsure of the best route to take. I am going to create a custom 11x10 LED matrix (addressable LEDs like WS2812) with the intention of lighting up certain LEDs given different input arguments in my code. However, I haven't yet... | What you are trying to achieve doesn't take a lot of ressources , so if it is possible on a Arduino nano, it is possible on a Raspberry Zero ( in terms of ressources ) Then, you will have to drive the LEDs from the Raspberry, for that you will have to use GPIO. GPIO can simply, and in an Arduino way be used with Wiring... |
Answer the following technical question about Raspberry Pi. | Title: Will this TFT LCD work with the Pi?
Body: I got this screen from Amazon, and I mistook it for having RCA input. Anywhoo, it came today and I was wondering if it will work with the Pi. A whole caboodle of reviews said it did, but I don't know what to do about the adapter. Should I cut the cable and run wires dire... | It looks like you are missing a cable: |
Answer the following technical question about Raspberry Pi. | Title: is there any advantage in using Raspbian Buster instead of Stretch on a Raspberry Pi Zero
Body: I was wondering if are there some real advantages in using Buster on a Raspberry Pi Zero, or I should continue using Stretch | What are you doing with this Pi Zero ? If you're doing some project without connection to internet or just locally ( home automation , etc) I would say no. If no big bug endangering your project has been corrected it may no be worth the time and effort required to put again in place your project. Now, if your Zero is h... |
Answer the following technical question about Raspberry Pi. | Title: Peculiar features of I2C communication between RPi and Arduino
Body: I am currently trying to establish two-way communications between an Arduino Leonardo and a Pi model B using the I2C bus, as slave and master respectively. Spookily, the Pi can successfully send commands to the Arduino, but fails when requestin... | For what it's worth, my solution was to work around the problem entirely. I read rumors on other questions that the smbus read_i2c_block_data doesn't actually work, and so I rewrote the code such that the Arduino only ever sends one byte at a time (imitating the behaviour of a register on a basic I2C chip). The final c... |
Answer the following technical question about Raspberry Pi. | Title: Building a 'Packet squirrel" using Raspberry Pi
Body: I recently read about hack5s' Packet squirrel , and now I am interested in building a similar device that sits between 2 endpoints (say router and PC) and monitor all the traffic but be invisible to the 2 endpoints. (Figure) I was thinking of using the RPi's ... | To make a man in the middle attacker with a Raspberry Pi 3B(+) or 4B is very simple. You will use an additional USB/ethernet dongle so you have a second wired interface eth1 available. Now just bridge eth0 and eth1 and you have a complete transparent and stealth device. Start with a fresh flashed image Raspberry Pi OS ... |
Answer the following technical question about Raspberry Pi. | Title: How to implement the push button example using rpio?
Body: Background I am trying to learn how to use the rpio library ( https://github.com/jperkin/node-rpio ) in my nodejs application. What do I want to do So far I have been able to test the blink led example form the documentation, and I was trying to do the p... | Unfortunately I was not able to put it to work using the rpio.poll function However, I managed to listen to the input pin by using a setInterval() method: function status(){
rpio.open(15, rpio.INPUT, rpio.PULL_UP);
setInterval(function(){
var status = rpio.read(15)
console.log(status)
},1000... |
Answer the following technical question about Raspberry Pi. | Title: Reading more than 8 bits from an SI7021 sensor
Body: I am using the Si7021-A20 sensor on a Raspberry Pi Zero WH (headless, controlled via ssh and VNC). I want to get readings using Python (version 3). However, I have a very hard time to actually get more than a single byte of data. Here's what I have now (SI7021... | Credit for the solution goes to @joan. Key here seems to omit the I2C and SMBus python implementations and query the sensor via the pipgio library. Using @joan's pigpio library and his Si7021.py script I finally got a solution that uses the full resolution. I've written in detail in my blog post about how I used the li... |
Answer the following technical question about Raspberry Pi. | Title: Can't connect to the samba server?
Body: I am trying to set up a file sharing server on this here raspberry pi. The pi is running on Raspbian. I have it plugged in to my Google Wi-Fi router via Ethernet. SSH and ping are working fine, but when I try to install samba it is unable to connect to the server. I can c... | I was getting the same thing and this worked for me. Try running: sudo apt update && sudo apt full-upgrade -y Then install Samba as normal. I got this from here |
Answer the following technical question about Raspberry Pi. | Title: Help in setup for RPi3 for internet connection sharing to eth0 and wlan0 (from eth1)
Body: I have already setup the RPi3 for share my internet connection (from eth1 usb ethernet dongle) to my eth0 (Rpi3 internal ethernet port). The "ASCII diagram" is this: Internet -> Fiber Router (192.168.1.1) -> Rpi3 # eth1 (u... | As far as I understand you want to extend your local network with a wifi access point in addition to the wired network and all devices, no matter if they are associated to the access point or connected by wire, should have access to the internet. This can be achieved with a bridge. The wifi interface wlan0 and the wire... |
Answer the following technical question about Raspberry Pi. | Title: Changing to XFCE from LXDE
Body: Apologies if this seems straight forward but I've recently downloaded XFCE to replace LXDE environment. I did this by using sudo apt-get install xfce4 and following all the instructions. Then to remove LXDE I carried out: sudo apt-get --purge remove lxde
sudo apt-get clean My pro... | I posted this question in the Linux Stack Exchange as well, and a user named Vasa1 suggested to check apt-cache show lxde which listed all the associated packages with lxde, and therefore since lxde is a meta package, I therefore had to delete and remove the other associated packages in order to run startx to boot xfce... |
Answer the following technical question about Raspberry Pi. | Title: Cannot get installed system to output component video, but NOOBS can
Body: Background: Pi 3 B+ connected to an old tube TV with front composite video connection. I've installed NOOBS on a 32GB microSD card, and am able to successfully boot it, using the keyboard 4 key (NTSC) to display the graphical installer. ... | According to the forum topic posted here , the newest version of Raspbian (Buster) had an option added to support the Pi 4 that broke component video out. Downgrading my Raspbian version and using a bare install solved this issue for me. |
Answer the following technical question about Raspberry Pi. | Title: Using SD card from 3 B+ in 3
Body: I have a SD Card wich works perfectly on my Pi 3 B+ but I want to use it in my other Pi 3 but the Pi doesnt seem to start. Is there something that needs to be changed to use the same Card for both versions? | No rep to comment yet, so this goes as answer. This is generally a bad idea to use the same SD card swapping between devices, as each of them has its own configuration - despite the same system. Devices differ by on-board components id, or even might be different due to newer revision of board. I own 2 rPi 1 B+ and swa... |
Answer the following technical question about Raspberry Pi. | Title: Raspberry PI to PC communication
Body: I am thinking of using Raspberry Pi to share Internet from a PC. The Raspberry Pi would have a Wi-Fi module which would be running in AD-HOC mode. The Raspberry Pi would be connected to a PC through a USB cable. The PC is the only device connected to the Internet. I plan to... | I think you can use Serial to USB connection for your plan. I'm using Serial->USB converter for debug messages and login via serial line. There are many information about serial to USB connection in raspberrypi.stackexchange.com answers. At this page there is an information about network connection with pppd through Se... |
Answer the following technical question about Raspberry Pi. | Title: One coil is always active on my stepper motor(ULN2003)
Body: When I startup my pi or stop my script, the led on the ULN2003 lights up and stays. That means that one coil is active and the motor is heating up. At the end of my script I introduced a few lines of code which set all input pins to zero. stepper_pins ... | I haven't looked through all the code so this is still a guess. If there is a call to cleanup() in the code during exit that will switch the GPIO you use back to INPUT mode. You are using GPIO 3 and 4. When set as INPUTS they will both be high. GPIO 3 will be high because it has an external 1k8 pull-up to 3V3. GPIO ... |
Answer the following technical question about Raspberry Pi. | Title: How to disable wifi in Raspberry Pi 4
Body: How to disable WiFi in Raspberry Pi4, possibly keeping the chip powered off. | Raspbian is managing hardware with overlays. In /boot/overlays/README you will find: Name: pi3-disable-wifi
Info: Disable Pi3 onboard WiFi
Load: dtoverlay=pi3-disable-wifi
Params: <None> I suggest you just add dtoverlay=pi3-disable-wifi to /boot/config.txt to disable wifi. I have tested it with a Raspberry Pi 4B.... |
Answer the following technical question about Raspberry Pi. | Title: Dhcpcd config file - two wifi configs at once
Body: I have a Raspberry Pi Zero W v 1.1, to which I don't have any way to connect display adapter, therefore I communicate with it through ssh. It is connected to one isolated wifi network(with no internet access) for this connection. I need to connect it to another... | You can create different wpa_supplicant files for each interface. If you search my Answer on setting up network “Use different wpa_supplicant files “ explains. Create a file named wpa_supplicant-"$interface".conf in /etc/wpa_supplicant/ e.g. wpa_supplicant-wlan0.conf will only be used by wlan0. It is a good idea to en... |
Answer the following technical question about Raspberry Pi. | Title: RPi 3 - Reduce power consumption
Body: I am looking to reduce the power consumption to a minimum on my RPi 3. For my project, the Raspberry Pi Zero is not an option. for now, I disabled Bluetooth and WiFi and made sure to kill some process when the PI is running on battery until the power comes back. however, I ... | As far as I know, you can not disable only one USB. When you turn USBs power off, also the Ethernet port turned off. I don't know if there is a way to disable USB/Ethernet in config.txt, but in cmd line you can do it with: echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/unbind To enable the ports use: echo '1-1' | sudo t... |
Answer the following technical question about Raspberry Pi. | Title: Controlling a headless torrent server via transmission
Body: I'm running transmission-daemon on a Raspberry Pi running headless Raspbian. I can SSH into it fine, and the FTP server on it runs without a hitch, but I can't use the terminal interface for Transmission to control it. Running: $ transmission-remote -m... | Transmission-daemon has a web interface. If you want a pure command line interface, use transmission-cli Otherwise if you want to use transmission-remote, you'll need to modify /etc/transmission-daemon/settings.json and modify this line - "rpc-authentication-required": true, and make the true a false |
Answer the following technical question about Raspberry Pi. | Title: lxterminal show tool bar
Body: In Lxterminal I chose the option under "Display" to hide the toolbar, thinking that pressing F10 would make it pop up again. It doesn't. Without the toolbar, I can't see/access the toolbar. Is there a command to bring it back? The man page was not helpful to me. | Run nano ~/.config/lxterminal/lxterminal.conf , and change this line: hidemenubar=true to: hidemenubar=false Press Ctrl + O to save, and Ctrl + X to exit. Then exit LXTerminal if that is what you are currently using. This works even in LXTerminal Another way would be to right click and click 'Preferences', and untick '... |
Answer the following technical question about Raspberry Pi. | Title: How durable are the Raspberry Pi and the Raspberry Pi Camera?
Body: I plan to use my Pi and the Pi camera v2 no IR version as a wildlife camera. Now my question is can I run the camera in the winter (maybe -10 degrees Celsius) and will it still work like the Raspberry Pi? My other question is can the Raspberry +... | Raspberry Pi devices themselves do not have any proper International Protection Rating , therefore device itself is not recommended for such usage. From my own experiences, Raspberry Pi devices can survive temperatures as low as -20°C(at least one in my backpack worked well) but need to be treated as a bare motherboard... |
Answer the following technical question about Raspberry Pi. | Title: Where is the USB2 OTG port on the RPi 4 Model B located?
Body: According to this answer the Raspberry Pi 4 Model B has a total of five USB ports (two USB3 host, two USB2 host, one USB2 OTG). Where is the fifth USB2 OTG port located and how can I use it? Can I use it with OTG Gadget mode? | USB2 OTG port is inside the USB-C connector. Yes, you will be able to use the Gadget mode drivers, as it's an upstream-facing (slave) USB port. OTG is a rather bad name here, because it means a port which can work as both upstream-facing and downstream-facing (i.e. as a host, similar to other USB ports on the RPi). Yet... |
Answer the following technical question about Raspberry Pi. | Title: How to login throught ssh to my raspberry with a lcd screen
Body: So I just got a 3.5 inch lcd screen for my raspberry 3 b+. I connected it and installed the drivers and is working fine, but when it boots it prompts me with the ssh login (obviously, I just didnt think about that). I want to have the same ssh ses... | You can use tmux for this ( apt install tmux ). First find a tutorial you like to get the hang of how it works generally (it is pretty popular amongst linux users and has been around for more than a decade, so there's plenty of stuff online). 1 One of the first things you will learn is how to create, detach, and join ... |
Answer the following technical question about Raspberry Pi. | Title: Network or shutdown issues on my Arch Pi
Body: I'm using a B board as a headless print/scan server with Cups installed on Arch. The pi is plugged into a linksys router with DHCP, but i'm using the "Reserve IP address" feature on the router to ensure it has a consistent IP address. I'm powering it with a Samsung ... | It could be a weak power supply or something running on the Arch that causes it to hang. Difficult to say. You need to inspect logs and try and work it out. Maybe the Pi itself is damaged? You can use the built in watchdog to reset the Pi if it hangs though. sudo apt-get install watchdog Uncomment the following line in... |
Answer the following technical question about Raspberry Pi. | Title: Raspbian keyboard layout
Body: I want to set my keyboard settings to Swedish, but on the Raspbian configuration tool my keyboard is not on the list. Update : Changing XKBLAYOUT to "se" doesn't work. And internationalization in raspi-config doesn't either. My keyboard is a Logitech Wireless Touch Keyboard K400r, ... | Take a look at the Raspberry Pi wiki on re-mapping the keyboard with Debian Squeeze : Re-mapping the keyboard with Debian Squeeze If different letters appear on-screen from that which you typed, you
need to reconfigure you keyboard settings. In Debian, from a command
line type: sudo dpkg-reconfigure keyboard-config... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 15