Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

-1

I'm hereby answering my own question. A pi-hero on reddit led me to the solution for my problem: link to original answer on reddit The answer lies in this document: ELI Touch Screen Calibration in Linux First of all, we need to check the name of the display with the following command: xrandr For me, it was DSI-1. Then we need to do the same for our ...


0

It seems it was a problem with the router itself. After a full power cycle of the router it magically got fixed... Thanks to everyone for your help!


0

Follow the instruction: 1.Add the DNS server to host: sudo echo "nameserver my.new.dns.server" | sudo tee /etc/resolv.conf 2.Add the new DNS server to the dnsmasq config file: sudo sed "s/server=.*/server=my.new.dns.server/g" /etc/dnsmasq.confq 3.Restart dnsmasq service: sudo systemctl reload dnsmasq or test this one: sudo service dnsmasq ...


1

linux-headers-rpi appears to be the meta-package which installs the latest kernel headers. This is what you should use on a fully upgraded system. You will need to manually rebuild your custom drivers after a kernel upgrade, but at least the kernel headers will be upgraded automatically.


1

I understand that Pi-hole uses dnsmasq to implement blacklisting, so the first thing I'd try is to edit /etc/dnsmasq.conf and reload the configuration with either killall -s SIGHUP dnsmasq or service dnsmasq restart If that works, you should find a way to edit the config file from a script. This is typically done with sed or awk. Something like: sudo ...


1

Run below command on the terminal to install sudo apt install raspberrypi-kernel-headers


0

If you don't have a scope you sure are in a world of pain. With a few clicks I've found this on the manufacturer's documentation. Comparing their procedures to yours, what differences can you see? One difference I see is they read /dev/ttyS0 and /dev/ttyAMA0 whereas you use /dev/serial0. According to rpi documentation, this is primary uart, usually ...


3

There is a option on the raspi configurations to NOT wait for a ethernet connection to establish and just boot normaly. Its a checkbox. Hope it helps someone


1

Question How to find LÖVE? / to continue, ... Answer Rpi4B buster 19sep > GUI Desktop > Preferences > Add / Remove Software > LÖVE 11.1-2 From imgur with LÖVE LÖVE Moving Wall Paper / to continue, ... References (1) LÖVE 11.1 Mysterious Mysteries Documentation (2) Lua - Wikipedia (3) LUA Programming Manual 5.0 (4) LUA Reference Manual 5.3....


0

Hard to see how we can help. You need to find out why it will not boot. Perhaps look at this boot sticky. If you are only using standard Raspbian software from the Raspbian repositories you should not have problems. If that's the case that indicates a dodgy SD card. Buy a new one from a reputable supplier. If you are downloading software from other ...


1

In order for Windows to index files on a drive, it must create the System Volume Information directory, assigning the drive a GUID, which it saves within that directory. Windows will auto-create this directory upon attaching a removable drive with a Windows recognizable partition (FAT variants and NTFS). To disable, set HKLM\SOFTWARE\Policies\Microsoft\...


1

If I understood correctly, you could disable it only on removable drives: open Local Group Policy Editor goto: Computer Configuration -> Administrative Templates -> Windows Components -> Search enable the following entry: Do not allow locations on removable drives to be added to libraries open the Registry Editor goto: HKEY_LOCAL_MACHINE\SOFTWARE\...


0

You are asking something like "I have a door with a lock but no key". Breaking the lock (using an exploit) I don't see as valid solution. I see mainly two solutions: purchase your own controllable router with internet access or use a reverse tunnel. For direct connecting to the RasPi you need port forwarding. This can be done with your own router you can ...


0

Raspbian is using systemd as init system and to manage services and to emulate old style daemons from the deprecated SysV init system. For compatibility issues look at Compatibility with SysV. crontab is such an emulated system in particular its @reboot function. systemd uses its own *.timer services and Unit files to start services. In man 5 crontab you ...


0

Arguably, if you're OK with modifying the image to auto-run a script at the first boot, you could simply modify the image in the way your script would, and then save that SD card to an image file and use it to flash SD cards you're going to use with new RPis. For instance, if you want all your RPis to have a certain entry in /etc/fstab, you could simply ...


0

dhcpcd is running. I don't recall installing dhclient You may or may not need to install dhclient -- I think it is probably the latter, and in any case it is installed -- but it does not run automatically by default. However, dhcpcd does, as you have acknowledged above. Running both of these things at the same time will probably lead to problems in a ...


1

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 call to qt configure script you must ...


1

See Prevent dhcpcd from configuring an interface in How to set up networking/WiFi Add denyinterfaces eth1 to the end of /etc/dhcpcd.conf (but above any other added interface lines). NOTE eth1 may result in unpredictable results, as there will be a race condition in the enumeration of the interfaces. You should use Predictable Network Interface Names


1

Raspbian on Raspberry Pi 4 uses ARMv7 binaries while Pi Zero uses ARMv6hf. You can easily use ARMv6hf binaries on ARMv7 CPUs but not the other way around. So build your libraries on your target platform or use cross compilation.


1

Try adding this to /boot/config.txt; I had a lot of trouble with a Hannspree HT161 that has a resolution of 1366x768 - this sets to closest HDMI res of 1360 x 768 hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=87 hdmi_cvt=1360 768 60 3


1

You should look at logrotate: it's a tool designed to run as a cron job which will automatically rotate, compress, delete and mail logfiles based on the rules you write in its config file. Here's a sample config from the man page: /var/log/messages { rotate 5 weekly postrotate /usr/bin/killall -HUP syslogd endscript } This means: ...


-1

Question (1) How come LIRC stuff so old, any new tutorials and drivers out there? (2) How to get LIRC to work in Rpi2B+ buster? Answer (1) You might find some updated stuff and some get around in Ref 1 below. (2) The most updated tutorial on LIRC setup is dated 2019aug. I tried it and found it good (Ref 2, Appendix A). / to continue, .....


2

It really doesn't help using a tutorial from five years ago on a modern system. Too much has changed. lirc_rpi has been replaced by dtoverlay=gpio-ir and dtoverlay=gpio-ir-tx in /boot/config.txt. See https://raspberrypi.org/forums/viewtopic.php?t=243583 for more details.


0

Try sudo systemctl hibernate You could also suspend it if you wanted to with sudo systemctl suspend


0

If the GUI is already configured to run, you just need to set the DISPLAY environment variable in the script that launches your Python script. If you're using /etc/rc.local just add export DISPLAY=:0. If you're using a .service file add Environment=DISPLAY=:0 to the [Service] section (see Raspberry Pi run commands on boot). It might be helpful to make sure ...


0

If you want Raspbian with just the necessary services, start with a download of Raspbian Buster Lite 2019-09-26 from https://downloads.raspberrypi.org/raspbian_lite_latest Then add in any pieces that are missing that you need to run your server. You can find the things that delay boot time (usually networking) with systemd-analyze and systemd-analyze blame ...


0

Rather than check an existing list, I'd suggest running service --status-all and looking at what's already running. Installs take on a life of their own after you've been using them for a while. Some of the listed services you'll probably recognize. The rest are easy enough to Google and work out if you need it. Checking my own service list, which is from a ...


0

Your question isn't easy to answer. it depends on what you want to have running. "Raspbian Buster Light" will have a much smaller list of mandatory services than "Raspbian Buster with desktop and recommended software". And no, I haven't seen a list of needed services for this installations. I think all running services are needed to have a stable operating ...


0

I was able to get it working adding some lines to the modprobe: sudo modprobe g_mass_storage file=/piusb.bin stall=0 ro=0 removable=1\ idVendor=0x0781 idProduct=0x5572 bcdDevice=0x0126 iManufacturer="SanDisk"\ iProduct="Cruzer Switch" iSerialNumber="4C597515973308202393" I am able to mount it and share it via SAMBA, But there are conflicts between the ...


0

If you boot to the command line the OS quite correctly reports "Cannot connect to Xserver" because there isn't one! If your (unlisted) code needs X either boot to GUI or run startx


0

Silly me, it was as simple as installing the deluge-gtk on the Pi - and now everything's golden! For anyone interested, just run sudo apt-get install deluge-gtk in the terminal, then running the command deluge-gtk will get everything running, note that you will have to leave classic mode if the daemon is already running!


0

Assume you are using the latest Raspbian. The answer of your first question is yes. And it is the red one. Your second question is not clear. But you can safe remove your device with the safe remove icon in the tray.A GUI can not corrupt your stick , but a power issue can.


1

You give an important detail in a comment: "I then deleted all networks from wpa_supplicant.conf and rebooted. It then again put the network into the file but could not connect. It can however still connect to my mobile hotspot." You should edit the question and add it to it. I seems there is an application that updates /etc/wpa_supplicant/wpa_supplicant....


1

As far as I understand you want to have two client connections to two different remote hotspots, one access point for WORK and one access point for GUESTS. These are so called managed connections. On a Raspberry Pi you can look what interface combinations are possible with: rpi ~$ iw list --- snip --- valid interface combinations: * #{ managed } <= ...


0

Here is the link to raspbian version infos: https://en.wikipedia.org/wiki/Raspbian


0

My issue happened due to my router rebooting and company coming over whose devices just happened to pick up the same static IP assignments as my two PIs, a 4 and a 0 W. I went inyo the dhcpcd.conf and set the static IPs of each to something that the router will never assign like 192.168.1.200 and 201. I followed the dhcpcd.conf instructions from: https://...


0

You can not use openCV in this way to acces picamera. Try cap.isOpened() it should evaluate FALSE. Just work with picamera module. For rapid capturing refer: https://picamera.readthedocs.io/en/release-1.13/recipes2.html#rapid-capture-and-processing


0

Yes, it is possible to run Stretch on a Pi 4. The easiest way is to run Stretch in a virtual machine within Buster. And I have released a bootable image to do exactly that. Just flash it to an SD card, then boot it, then click the menu item I added: A terminal window will open with a full Stretch CLI. After you enter the username (pi) and password (...


0

There are some who claim to have Stretch on a Pi4, and it is at least theoretically possible, as Stretch is now updated to the same kernel version (4.19.66) as Buster. HOWEVER the Pi4 firmware, boot code and the Pi4 version of the kernel is not included in Stretch, so would have to be manually installed. There is no (simple) way you could use kernel 4.14, ...


1

I solved that problem by using a netgear switch behind my ISP's router. The "Unitymedia ConnectBox" in my case generated about 15% packet loss. I experienced all the problems you described and it's really strange that the wifi connection runs just fine. Also RPi1 and 2 worked with my router as well (haven't bought the RPi3). Try to link your pi's network ...


1

Most EEPROM chips use either SPI or I2C to transfer data, check the docs for the chip you choose to find out which and connect to the appropriate bus on the Pi. From there it's a matter of sending the right commands on the right bus -- again the chip docs will help with this. There is, no doubt, many Python libraries to help with the commands (e.g. https://...


1

The only solution that worked for me is this workaround, which is not ideal: launch the terminal app via autostart when the Linux desktop (LXDE) launches, which then runs xset to set the keyboard repeat rate. First, edit the file /etc/xdg/lxsession/LXDE-pi/autostart (requires root or sudo) And add line @lxterminal Then, edit ~/.bashrc and add the ...


0

The Answer by Joan is correct. But to clarify you can only use ONE serial interface on the GPIO. On all models with on-board WiFi the primary serial interface is connected to Bluetooth. The secondary interface has a few limitations (although for most uses these are not an issue). See How do I make serial work on the Raspberry Pi3 , Pi3B+, PiZeroW


0

Warning: This overrides your wifi connection somehow I configured Bluetooth over SSH following the instructions from Instructables Bluetooth to Putty and then bits from the headless pi over bluetooth tutorial If your image is already running on your Pi, you only need to follow the Editing the image section of the tutorial. And the important part of ...


2

The Pi has many hardware peripherals. The first of each type is labelled with a 0, if there are more than one of that type of hardware peripheral subsequent ones are named 1, 2, etc. The hardware peripherals may be multiplexed onto more than one group of GPIO. In your case you see TX 0 and TX 1 which indicates there are two hardware UARTs. UART 0 may be ...


1

Octave needs a sudo/su permission before it works correctly. I found this problem 3 days ago. Last night I coincidentally wrote sudo octave and found something was different. Then I wrote sudo octave --force-gui and then the octave was good to use. And also the gui interface was changed too. Now I am working fine with octave. If anyone is using raspbian ...


0

The Pi has 3 "components" the CPU, GPIO and Video Core which are relatively independent. See https://raspberrypi.stackexchange.com/a/100125/8697 Any of the commands halt, shutdown, reboot (which are equivalent) will reset the CPU to its bootup state. The Video Core continues to run, and the GPIO pins retail their state. It is only possible to reset the ...


1

is switching only the TV off and leaving the Pi running an option for you? I have a couple running this way - one with OMV and one with Pi-Hole. this way you can also reach the Pi via SSh or VNC from your laptop for example. Another option would be to simply disconnect the TV and connect via VNC from another computer. https://www.raspberrypi.org/...


3

For USB devices you can use lsusb. It should be installed by default in your Pi - if not do: sudo apt-get update sudo apt-get install usbutils later you can run the command lsusb and you should see all the devices connected via USB


0

No, there is no such command. You will have to look at the Pi to see what is connected.


Top 50 recent answers are included