2

Is using raspi-config on Ubuntu an anti-pattern or there's an equivalent package made just for Ubuntu?

I'd like to use it to easily control OverlayFS for example. Is this possible with Ubuntu on RPi 4?

2

raspi-config is a simple (if long and involved) shell script to configure Pi hardware and Raspbian settings. It is just a front end to the underlying system commands.

As Ubuntu (which doesn't even have a supported Desktop OS) uses different networking, kernel and many other packages it would need a Ubuntu specific version (there was a version for Ubuntu MATE 16.04). Canonical, in its infinite wisdom, has not provided an equivalent.

It would be feasible for a Ubuntu user to write a version for Ubuntu.

2

You could use following script to install raspi-config to any Debian like OS.

wget https://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20200601_all.deb -P /tmp
sudo apt-get install libnewt0.52 whiptail parted triggerhappy lua5.1 alsa-utils -y
# Auto install dependancies on eg. ubuntu server on RPI
sudo apt-get install -fy
sudo dpkg -i /tmp/raspi-config_20200601_all.deb

But it couldn't be really useful as said @Milliways because of different OS libs.

1
  • 1
    In Lubuntu 18.04 LTS on x86 (Eee PC 900) I only had to sudo apt install lua5.1 in order to install raspi-config_20210119_all.deb. – mobluse Feb 1 at 12:00
0

I wanted to do a USB boot from a PI 4. (My microSD card would not boot... see below). I am currently running Ubuntu 21.04 on a Raspberry PI 4.

  1. First I upgraded the firmware with rpi-eeprom-update.
  2. I found that when ran raspi-config that there were no boot options for booting from a USB device. I then retrieved the latest version of raspi-config with wget.
  3. I made sure that everything is up to date with apt-get.
  4. I installed the raspi-config source with dpkg (note that the wget stored the file in your current directory).
  5. Launched raspi-config
  6. Select "6 Advanced Options"
  7. Select "A6 Boot Order"
  8. Select the boot order option you want, "B1 SD Card Boot" or "B2 USB Boot"

I ran into the problem with Ubuntu that the superblock on the microSD card was not longer writable (Flash drive wear?) and every attempt would drop into Busybox with a failed fsck. Running fsck manually did not help. If you are worried about running into this situation you may choose to configure

sudo rpi-eeprom-update -d -a
wget https://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20210604_all.deb
sudo apt-get install -fy
sudo dpkg -i raspi-config_20210604_all.deb
sudo raspi-config

6 Advanced Options     Configure advanced settings

A6 Boot Order              Choose network or USB device boot

B1 SD Card Boot Boot from SD Card if available, otherwise boot from USB

B2 USB Boot     Boot from USB if available, otherwise boot from SD Card

Now I need to locate (or compile from sources) a Rescue CD ISO. If you have the situation I encountered you will need to eventually replace the booting microSD card, but first you can recover your data files stored on the microSD card. I wound up putting the failed microSD card into a USB microSD card reader and I was able to extract all of the files I wanted before tossing the microSD

New contributor
sailnfool is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

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.