Create a file /home/pi/Desktop/test.desktop:
bash script named test (UTF-8) in /home/pi dir:
echo hello world
chmod u+x /home/pi/test
Edit/Preferences/General, Check ...
If you are using Raspbian then dhcpcd is used for network configuration. Just look into /etc/dhcpcd.conf. At the end you will find some examples for static IP configuration. For further information look at man dhcpcd.conf. For searching in Google you should use raspbian static ip address.
I'm guessing you've been misled by tutorials or blogs which imply or explicitly state that .bashrc can be used for things you want to happen at boot.1 This is essentially false, although it has side effects that might make it seem that otherwise.
.bashrc is a shell initialization file. There are a few different flavours of these, which you can read about ...
Whilst this is more of a general electrical engineering question, rather than a RPi question, logic level conversion is a commonly encountered issue when using an RPi.
+3V3 to RS-232
As Milliways correctly points out RS232 uses positive and negative signal levels, ±3-15 V, see Wikipedia: RS-232 - Voltage Levels and the data is inverted:
Logic zero ...
By default Geany runs Python code using Python2. This can be changed under 'Build','Set Build Commands'. Then change Compile from python to python3 and Execute from python to python3.
The serial read commands changed between Python2 (returns string) and Python3 (returns bytes), adding a .decode() converts bytes to string.
If not sure which version of ...
In my case this worked for me.
$ sudo apt update
$ sudo apt install build-essential module-assistant dkms
$ sudo m-a prepare
then select the menu devices/insert guest...
CD is mounted and select ok
$ sudo sh /media/cdrom/VBoxLinuxAdditions.run
$ sudo reboot
proudly borrowed from, https://www.neontribe.co.uk/debian-virtualbox-guest-additions/
I don't ...
In VirtualBox, you need to install the Guest Additions before it will recognized any other resolutions.
In VirtualBox, choose Insert Guest Additions CD image... from the Devices menu.
Next, you'll need to install the Guest Additions in a Terminal window.
sudo sh /media/cdrom/VBoxLinuxGuestAdditions.run
After rebooting, open a new Terminal and use ...
First there is no need to worry about the used ethernet cable. It doesn't matter if you use a straight forward or a cross over cable. Nearly all devices since years are able to detect this including Raspberry Pi.
Because it is unclear what you want to do, I can only give some general ideas. What does it mean "sending a datastream"? Do you want to send data ...
If I've understood correctly, you want to capture 5 images, each with a different shutter speed, wait five minutes, and then repeat. In that case, capture_sequence isn't applicable as it would capture all frames with the same shutter speed.
In that case, the code you want should look something like this:
from picamera import PiCamera
from time import sleep
the green LED is blinking 4 times and pauses and blinks again and continues this step.
As you have seen this indicates a boot problem, namely that "start.elf is not found".
Didn't find any docs on how to resolve it.
I imagine that is a bit inscrutable if you don't know what it is referring to. start.elf is required to be in the boot partition, which is ...
Reduce the quality of the video by motion.conf file. I mean, decrease these values:
Also, it would be better if you disable some functions like stream_motion off. Additionally, check minimum_gap 0 that the value is "0".
Check THIS link out. It could be useful if you reduce the qualities and turn off unusable ...
Why systemd-analyze shows 3.8s boot time
Actually what it says is "Startup finished in...". At what point "booting" is finished depends on your definition of booting, which is really about context. It could be defined as the amount of time it takes the kernel to load from power on and launch a userland -- I think this would be equivalent to the first ...
You will not get anything at all until the Pi4B has successfully booted.
Your Pi4B has not booted successfully.
Go through this Pi4B specific boot sticky.
If that does not resolve the issue go through the full boot sticky.
A second is not a short period of time for a computer which executes millions of instructions per second.
Neither is it a short period of time to damage hardware designed to handle no more than 3V3.
You have probably destroyed the directly connected GPIO. The damage will likely spread throughout the SoC over time.
Time to buy a new Pi.
The polyfuse isn'...
VLC is getting custom (downstream !) patches for the Raspberry Pi all the time. The foundation pays experienced developers to create and test them. Obviously, without running the latest software you will not see any of it.
VLC uses software decoding without these patches, and will be very slow.
Before you launch the script from ssh:
There are other possible values but, presuming there is only one GUI user logged in on the pi, it will be :0, the first display. You can also get it directly from the desktop (echo $DISPLAY) -- but not from the ssh login.
If you want to program the Pi through the Arduino IDE, this is possible with a little bit of configuration two ways. The first way is online using the Arduino Create cloud tool. Simply follow the getting started link. You'll have to program through the web browser. The second way is setting up a package called RasPiArduino. There is a comprehensive set of ...
You can control the Pi GPIO from a program written and running on your Windows machine.
Arguably the simplest and most supported way will be by using the gpiozero software. In particular see Remote GPIO Recipes.
gpiozero uses pigpio to control the GPIO from a remote machine. If you prefer you can use the pigpio Python module directly.
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 many options to make your service run. ...
Undo the modification you have done.
Bashrc is a simple file name and has no special meaning but the bash shell (that what makes the command line) uses a configuration file $HOME/.bashrc. Notice the dot at the beginning of the filename. It makes the configuration file invisible. You can show it with ls -a. Check if you have the .bashrc file.
The most likely solution is that the I2C device does not support the SMBus read byte command.
i2cdetect uses a variety of probing methods and chooses the one most likely according to the device's address. The pigpio example script is much simpler.
See man i2cdetect
As there is no standard I2C detection command, i2cdetect uses
arbitrary SMBus commands ...
This depends on the task you are running and the screen resolution.
If you want to optimize the GPU memory consumption, you can run
vcgencmd get_mem reloc
vcgencmd get_mem reloc_total
and see how much of the memory you have allocated is actually in use.
As you noted in a comment you are also comfortable with using systemd-networkd. Any device conforming to IEEE 802.11 must provide the ad-hoc Independent Basic Service Set (IBSS) so it is possible to use it by just configuring the WiFi driver. In addition you can also use wpa_supplicant to setup an IBSS ad-hoc network. IBSS was initial specified only without ...
No one can answer your question with any precision for several reasons - one of which is that you've not said how much of a load you'll be placing on the components. You can think of it this way:
component temp = ambient temp + load-induced temp
By load-induced, I mean that as the demand your applications make on CPU and GPU increase, the component ...
It turns out the problem I had was the bootup option I choose. The correct option would have been to choose "Graphical Installer" (there are two install options, probably either, but I went with the graphical one).
The "Run with Persistance" option was just running the OS from the CD.