/boot/config.txt and append:
to the end of the file and reboot.
When receiving large amounts of output over SSH the Raspberry Pi might render the console inoperable and the connection will time out in a few seconds.
The following command adds some module options to the wifi kernel module to disable power management which is apparently responsible for the former issue.
echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee --append /etc/modprobe.d/8192cu.conf
Create a blank file named
ssh with no extension at the root of the boot partition of the SD card in order to make Raspbian start the SSH daemon on boot. One use for this trick is combining the Raspberry Pi with an ethernet hat such that the Raspberry can be setup without needing to attach a monitor and keyboard.
vcgencmd codec_enabled MPG2 vcgencmd codec_enabled WVC1
Note that the Raspberry Pi 4 does not have hardware decoders such that the commands will most likely state
will yield the controls available on the Raspberry Pi:
# amixer controls numid=3,iface=MIXER,name='PCM Playback Route' numid=2,iface=MIXER,name='PCM Playback Switch' numid=1,iface=MIXER,name='PCM Playback Volume'
The Raspberry Pi 2,3 and 4 can commute between sending sound through the audio jack:
amixer cset numid=3 1
or the HDMI output:
amixer cset numid=3 2
amixer cset numid=3
to set the sound selection to autodetect where the jack will be used only if the HDMI cable is not connected.
Any of the following symptoms are to be detected?
They may all boil down to a non-uniform MTU setting across the network.
The Raspberry Pi when connected to a PC can configure itself as an USB gadget and start a network over USB. A RNDIS network adapter is needed in most cases and can be downloaded from here:
In order to log into the Raspberry Pi over SSH via the USB port, edit
config.txt and add:
cmdline.txt and add the following to the kernel parameters between
Finally, add a blank file named
ssh with no contents to the root of the
The Raspberry can now be connected to a PC via its USB port (not the USB port marked
PWR). The PC that the Raspberry Pi connects to will act as a router and should forward packets to the Raspberry Pi.
Assuming that the Raspberry has been freshly set up, to connect via SSH, issue:
ssh firstname.lastname@example.org and enter
raspberry at the password prompt.