Which one is good to use Torizon or Toradex Linux with LXDE?

Hi @Nolan_Maverick ,

You can use both TorizonCore and our LXDE images, but I’d recommend using TorizonCore since the LXDE images are older, legacy releases.

I saw your last question here: What Linux OS do I need to use to create and use GTK application? and given that it is related to this one, let me clarify one point in particular:

  • When you tried doing sudo apt-get update inside the container, you ran the command as user torizon, which doesn’t have a password in the container; that’s why you couldn’t execute the update. You can get around this by entering the container as root by specifying --user 0 in docker run, but all changes you do there will not be saved. See below how to avoid this.

Keep in mind that TorizonCore was made specifically to use applications inside containers, so there are some caveats to be aware of like:

  • By default, when inside a container every extra package you install via apt install will not be saved after you stop the container. If you need GTK related packages installed in the container you can create a new Docker image by writing a Dockerfile, as instructed here: Modifying TorizonCore Debian Based Container Images | Toradex Developer Center.

  • Also by default a container is not aware of any device connected to the module. You can expose a device with the --device option when running a container e.g.

docker run -it --rm --device=/dev/apalis-uart2 <image_name>

As an alternative way to develop and deploy applications on TorizonCore while abstracting some of the details surrounding Docker, you can use our Visual Studio Code Extension for Torizon to develop your project.

Let me know if this made things clearer.

EDIT: Grammar correction

Best regards,
Lucas Akira

1 Like