1

Raspbian does not have a virtual keyboard, at least not reachable by the start menu. I only have a mouse and I want to control my raspberry pi zero, type some commands. What is the easiest way to get virtual keyboard working on it?

Remember: rpi zero does not have wifi so I cannot install things

1

Download matchbox-keyboard and matchbox-keyboard-im packages (link for Raspbian, if you have Buster, you need .deb files version 0.2 dated 28-Jun-2020). Write installation commands in a text file, e.g.:

cd /boot
sudo dpkg -i matchbox*
<- don't forget the newline after the last command

Put the packages and the text file on the FAT partition of the SD card (on the Pi, this will become the /boot folder), plug the card your Pi zero, open the text file with a text editor, and then copy the commands in a terminal window. If you copy a command with the newline character, it gets executed automatically when you paste it.

I don't recommend florence, in my experience this keyboard performs poorly in many scenarios.

3
  • I finally tried this, and this is what I got: imgur.com/a/CwbzPJS. Do you know what's happening? May 23 at 2:21
  • @GuerlandoOCs Looks like you're installing a package which is already installed. If you don't have a working keyboard by now, I recommend you remove both matchbox related packages and install them again from scratch. May 25 at 8:18
  • How should I start this keyboard then? It's not on accessories and I cannot type commands on terminal to see May 25 at 23:11
1

I tried two different ones: matchbox-keyboard and florence.

You will need a connected USB keyboard to be able to try them. Otherwise, use an SSH connection.

Open a "Terminal" and type sudo apt install matchbox-keyboard. You will find it installed under "Accessories" with the name "Keyboard".

In my opinion, florence is better and more intuitive, but it depends on the at-spi2-core package to work properly, or it will hang on first "keystroke".

Try it with sudo apt install florence at-spi2-core. You will find it installed under "Universal Access" with the name "Florence Virtual Keyboard".

2
  • But I can't install things on it because it has no wifi Feb 23 at 20:52
  • cheap wifi dongle will fix that - because to add something you need to install it Feb 24 at 1:35
0

Couldn't make it work with the answer here, but I did:

sleep 30; sudo apt-get install -y matchbox 

as you see, I had 30 seconds to take off the usb keyboard to put the usb ethernet adapter so it could install matchbox

then run

matchbox-keyboard  

for some reason all the usb hubs I tried wouldn't work so I could not use keyboard + ethernet adaptar at the same time

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.