Skip to content

Help with some configuration errors #340

@fv-rm

Description

@fv-rm

Good morning,
I wrote on the official Raspberry forum with bls, who helped me discover dsm as a tool for configuring images.
After studying the documentation for a while and doing some hands-on practice, I managed to understand how it works, but I’m encountering some errors during the configuration phase. In addition, I have a few doubts about certain points, which I will include later.

Let’s start with the command I have currently prepared:

sudo sdm --customize \
--plugin user:"adduser=custom|password=custom" \
--plugin L10n:host \
--plugin disables:piwiz \
--cscript /home/path/script.sh \
--plugin apps:apps=xserver-xorg-legacy \
--plugin apps:apps=x11-xserver-utils \
--plugin apps:apps=xinit \
--plugin apps:apps=chromium-browser \
--plugin apps:apps=unclutter \
--plugin apps:apps=fbi \
--plugin apps:apps=xorg \
--plugin apps:apps=python3-qrcode \
--plugin mkdir:"dir=/etc/raspi-config" \
--plugin copyfile:"from=/path/config.service|to=/etc/systemd/system/" \
--plugin copyfile:"from=/path/config.sh|to=/usr/local/bin/|chmod=644" \
--plugin system:"service-enable=config" \
--expand-root --regen-ssh-host-keys --restart \
file.img

In the logs I get the following error: "apt returned an error; review /etc/sdm/apt.log" but it's empty...

I probably misunderstood the configuration of the different "sudo apt install..." commands. Is it perhaps incorrect to use the apps plugin? Also, how can I add --no-install-recommends?

Finally, I still need to insert these configurations, but I haven’t quite figured out how to do so:

  1. sudo dpkg-reconfigure xserver-xorg-legacy > Select Anybody – How can I automate this step?
  2. DHCP configuration with Network Manager – should I be using the correct network plugin? Or does network rely on other configurations? In particular, I would need to run these commands:
sudo nmcli connection add type vlan con-name vlan100 ifname eth0.100 dev eth0 id 100  
sudo nmcli connection modify vlan100 ipv4.method auto  
sudo nmcli connection up vlan100  
sudo nmcli connection modify eth0 ipv4.method disabled  
sudo nmcli connection down eth0  
  1. Is it possible, while writing an image, to simulate its functionality? At the moment, I have to configure the image, write it to the SD card, and insert it into the Raspberry Pi in order to verify that the result is as expected. Isn’t there a way to debug without having to go through these steps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions