Giter Club home page Giter Club logo

Comments (4)

PJ-Singh-001 avatar PJ-Singh-001 commented on August 17, 2024 1

You may be taking the wrong approach by trying to copy files and configure the package after installation.

App Image

Instead of copying files after installation, use a template for the home directory for all new users.

  1. In Cubic's Terminal Page, create a Desktop directory in /etc/skel, if it does not exist, and then cd into the new directory.

    mkdir /etc/skel/Desktop
    cd /etc/skel/Desktop
    
  2. Drag and drop the file software.AppImage onto the Terminal Page to copy it into the Desktop directory.

  3. When the new user ubuntu is created, software.AppImage will be automatically copied to /home/ubuntu/Desktop and the correct ownership ubuntu:ubuntu will be asigned.

LightDM

Instead of configuring LightDM after installation, try to configure it while you are cusomizing the OS by executing the following command in Cubic's Terminal Page.

DEBIAN_FRONTEND=noninteractive dpkg-reconfigure lightdm

from cubic.

misiek303 avatar misiek303 commented on August 17, 2024

I found the error code in the crash report. It says invalid user ubuntu. Should ubuntu user exist by now when running late-commands ?

Screenshot 2024-03-09 at 7 28 45 PM

from cubic.

PJ-Singh-001 avatar PJ-Singh-001 commented on August 17, 2024

I have little experience with cloud-config. However, using preseed, I found that late_command does not work in Ubuntu, and success_command should be used instead. Perhaps this is similar for cloud-config as well?

Here is an example of how I update grub and copy a custom grub config file after installation, using preseed. Notice, only one success_command is allowed, so it is necessary to string all of the commands together using semicolons (;). Could this also be a requirement for cloud-config?

ubiquity ubiquity/success_command string \
    in-target bash -c 'update-grub'; \
    in-target bash -c 'cp /usr/share/grub/default/grub /etc/default/grub';

Also, why do you need the sudo command at this point in the installation? The installer is already running with root privileges. Perhaps this is why you are seeing the ubuntu user error?

from cubic.

misiek303 avatar misiek303 commented on August 17, 2024

Oh cool thank you I will give a shot

from cubic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.