Install raspi-config on Ubuntu
There are many reasons one my wish to install raspi-config on Ubuntu, such as correcting keyboard mapping (a common occurrence with Raspberry Pi keyboards, where the U becomes a 4 and a I becomes a 5 etc, making it impossible to type).
If this is your problem, as it was mine using a late 2012 Mac-Mini with Ubuntu, not a Raspberry Pi, then, as i did, you can follow these steps. First, you need to add the Raspberry Pi repository to your sources list. This can be done by running the following command:
echo "deb http://archive.raspberrypi.org/debian/ buster main" | sudo tee /etc/apt/sources.list.d/raspberry-pi.list
Next, add the GPG key for the repository to ensure the packages are authenticated:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7FA3303E
After adding the repository and the key, update your package list:
sudo apt update
Now, you can install raspi-config using the following command:
sudo apt install raspi-config
Once installed, you can run raspi-config by typing:
sudo raspi-config
This will open the configuration tool, allowing you to manage various settings for your Raspberry Pi. If you encounter any issues during the installation, you may need to check if the repository is correctly added and if the package is available in the repository.