Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone know if this guide still works for noble? #61

Closed
tertitten74 opened this issue Apr 24, 2024 · 17 comments · Fixed by #65
Closed

Anyone know if this guide still works for noble? #61

tertitten74 opened this issue Apr 24, 2024 · 17 comments · Fixed by #65
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tertitten74
Copy link

Hi, first, thanks a lot for this guide, I just have one simple question, anyone know if this still works on noble desktop?
I've been using cubic for my images so far, but unfortunately it works less than optimal for noble.

@Runa-Chin
Copy link

Hi, first, thanks a lot for this guide, I just have one simple question, anyone know if this still works on noble desktop? I've been using cubic for my images so far, but unfortunately it works less than optimal for noble.

This tutorial also last updates two years ago, but it still works. Even little complicated, you just need change it into Noble. I'd using this tutorial and change the value from Jammy into Noble.

@oldtime54
Copy link

I also have used this tutorial and had to change some settings in the build.sh, chroot._build.sh and my config.sh file.
It also uses the old installer and not the new flutter one. No snaps installed as I remove them in my config.sh file.

@Runa-Chin
Copy link

Runa-Chin commented May 22, 2024

I also have used this tutorial and had to change some settings in the build.sh, chroot._build.sh and my config.sh file. It also uses the old installer and not the new flutter one. No snaps installed as I remove them in my config.sh file.

You had block an Snapd installation with APT rule look like what Linux Mint do ? And you know, Ubiquity are still good even now Ubuntu had no more cares and priority new installer than improve what the best thing ever they develop and make user satisfied. And I think this original repo are being olds and may incompatible with newest LTS version or incompatible with Ubuntu Devel (rolling version of Ubuntu).

What should we do ?

Copy/Clone this repo by importing into your GitHub or whatever Git platform you had use and make some changes. Don't forget to add credits from original repo and always check your own cloned repo.

@tba-devel
Copy link

Everything works fine until dpkg-reconfigure resolvconf which cannot be accomplished because this version uses systemd-resolved instead. Was anyone able to overcome this?

@oldtime54
Copy link

I had changed this in the chroot_build.sh file to fix that issue. I changed it to systemd-resolved and that fixes that.

@tba-devel
Copy link

tba-devel commented May 31, 2024

I had changed this in the chroot_build.sh file to fix that issue. I changed it to systemd-resolved and that fixes that.

I see, but how did you manage dpkg-reconfigure resolvconf ? you can't dpkg-reconfigure systemd-resolved ..

@Runa-Chin
Copy link

Runa-Chin commented Jun 11, 2024

I had changed this in the chroot_build.sh file to fix that issue. I changed it to systemd-resolved and that fixes that.

I see, but how did you manage dpkg-reconfigure resolvconf ? you can't dpkg-reconfigure systemd-resolved ..

Well, why just change "resolvconf" into "systemd-resolvd" instead ? So, you type dpkg-reconfigure systemd-resolvd and let it works. The biggest difference between Jammy and Noble makes we're need to evaluate it again.

@tba-devel
Copy link

I had changed this in the chroot_build.sh file to fix that issue. I changed it to systemd-resolved and that fixes that.

I see, but how did you manage dpkg-reconfigure resolvconf ? you can't dpkg-reconfigure systemd-resolved ..

Well, why just change "resolvconf" into "systemd-resolvd" instead ? So, you type dpkg-reconfigure systemd-resolvd and let it works. The biggest difference between Jammy and Noble makes we're need to evaluate it again.

Well, I figured it out at last, just left out the dpkg-reconfigure and everything seems to work ok so far !

@LiveFreeDead
Copy link

LiveFreeDead commented Jul 31, 2024

I found I don't have internet still, I tried remarking the line out, can I get clarification on what finally worked as no one says change, line 149 to such and such to make this work.

Please, PLEASE if anyone has the answer to getting this to build with network working share it as I've been stuck for 3 days and found this script last night only to have it still not work, keeping in mind I am building ubuntu-cinnamon, I am about to do a stock Ubuntu to see if that behaves, but I really don't want Gnome.

----------------Another issue with cinnamon that should be checked for and excluded in the script so it doesn't abort -------
I am building a ubuntu-cinnamon-minimal and got
cp: cannot stat 'chroot/boot/memtest86+.bin': No such file or directory

so I did the following changes to make that work for me:

Line 146 - 161
	## memtest86
    #sudo cp chroot/boot/memtest86+.bin image/install/memtest86+

    #wget --progress=dot https://www.memtest86.com/downloads/memtest86-usb.zip -O image/install/memtest86-usb.zip
    #unzip -p image/install/memtest86-usb.zip memtest86-usb.img > image/install/memtest86
    #rm -f image/install/memtest86-usb.zip
    
    Line 179 - 189
    
    #menuentry "Test memory Memtest86+ (BIOS)" {
#   linux16 /install/memtest86+
#}

#menuentry "Test memory Memtest86 (UEFI, long load time)" {
#   insmod part_gpt
#   insmod search_fs_uuid
 #  insmod chain
 #  loopback loop /install/memtest86
 #  chainloader (loop,gpt1)/efi/boot/BOOTX64.efi
#}

@LiveFreeDead
Copy link

Also is there a way to make the script pick defaults instead of having to wait around to pick locales etc, I'd like to automate it with the defaults and be able to come back to a ISO not a prompt for languages.

@LiveFreeDead
Copy link

LiveFreeDead commented Jul 31, 2024

The GID 999 isn't an issue, I just built ubuntu 24.04 fine and the network works with the line
dpkg-reconfigure resolvconf remarked out with #dpkg-reconfigure resolvconf. That was the onyl change needed, so my network issue is due to something else, I'll try installing ubuntu-gnome-desktop and and cinnamon to see if that works.

sorry about messing up the thread, but I am on a mission today with very little sleep.

-EDIT-

YES that worked, it's 400mb bigger, but to have internet again is a BIG plus, thanks for this script;
here is the modification to make ubuntu cinnamon work with this script with networking enabled:

Edit your config.sh;

# install graphics and desktop
    apt-get install -y \
    ubuntu-gnome-desktop \
    ubuntucinnamon-desktop \

I'd still love to have it automate defaults for locale's etc, I was thinking of trying:

Edit: chroot_build.sh:-

# =============   main  ================

#Make it not ask questions (Glenn 2024)
DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true
export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN

load_config
check_host

# check number of args

That will stop the chroot from asking questions, worked perfect to make a silent build with no interaction.

-EDIT-

I am also going to make it cache the apt archives, so you can build multiple versions to test improvements/changes and it doesn't have to hammer the server, can just grab the updated ones, it's as simple as copying a folder in after debootstrap and copying it out before squishfs cleans it up.

-EDIT-

I added the cache, but as I can not copy lock file it causes an error and the script aborts unless I remark out the set options at the top, I could possible change it to rsync, but as it is I am happy with, I'll start to make my respin on this base now as using Penguins Eggs on Ubuntu 24.04 or Linux Mint v22 is still problematic (for now), Calamares isn't able to partition the installation drive then rsync fails as output isn't ready to write to.

-EDIT-

In the past I used to use Xephyr to setup a remote display to edit the chroot via the GUI, but modern OS's don't work well like that.

@mvallim
Copy link
Owner

mvallim commented Sep 6, 2024

Hi, first, thanks a lot for this guide, I just have one simple question, anyone know if this still works on noble desktop? I've been using cubic for my images so far, but unfortunately it works less than optimal for noble.

This tutorial also last updates two years ago, but it still works. Even little complicated, you just need change it into Noble. I'd using this tutorial and change the value from Jammy into Noble.

@Runa-Chin,

And it's still in the process of being updated; at the moment, I'm working on Secure Boot and the new noble LTS.

All help (issues and PR) is very welcome.

@mvallim
Copy link
Owner

mvallim commented Sep 6, 2024

Hi, first, thanks a lot for this guide, I just have one simple question, anyone know if this still works on noble desktop? I've been using cubic for my images so far, but unfortunately it works less than optimal for noble.

@tertitten74,

I'm working on Secure Boot and the new noble LTS.

@mvallim mvallim self-assigned this Sep 6, 2024
@mvallim mvallim added the enhancement New feature or request label Sep 6, 2024
@mvallim mvallim linked a pull request Sep 6, 2024 that will close this issue
@mvallim mvallim added this to the noble milestone Sep 6, 2024
@Runa-Chin
Copy link

Runa-Chin commented Sep 7, 2024 via email

@mvallim mvallim pinned this issue Sep 8, 2024
@mvallim
Copy link
Owner

mvallim commented Sep 8, 2024

I could help you for pull request for new noble. I'm also working for my own guide which inspired from your guide.

On Sat, Sep 7, 2024, 05:55 Marcos Tischer Vallim @.> wrote: Hi, first, thanks a lot for this guide, I just have one simple question, anyone know if this still works on noble desktop? I've been using cubic for my images so far, but unfortunately it works less than optimal for noble. This tutorial also last updates two years ago, but it still works. Even little complicated, you just need change it into Noble. I'd using this tutorial and change the value from Jammy into Noble. @Runa-Chin https://github.com/Runa-Chin, And it's still in the process of being updated; at the moment, I'm working on Secure Boot and the new noble LTS. All help (issues and PR) is very welcome. — Reply to this email directly, view it on GitHub <#61 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZA5HSL7KRH75RDIEUBFDRTZVIXFRAVCNFSM6AAAAABGX2PX7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZUHEYTIOJWGU . You are receiving this because you were mentioned.Message ID: @.>

@Runa-Chin and @tertitten74,

Launched: https://mvallim.github.io/live-custom-ubuntu-from-scratch/

image

@focuspointlinux
Copy link

I keep failing at this step after moving the image folder

Compress the chroot

After everything has been installed and preconfigured in the chrooted environment, we need to generate an image of everything that was done by following the next steps in the build environment.

I follow the guide to the letter, but still it fails. For me as I continue after those steps it fails when I'm supposed to do this step
sudo mksquashfs chroot image/casper/filesystem.squashfs
-noappend -no-duplicates -no-recovery
-wildcards
-comp xz -b 1M -Xdict-size 100%
-e "var/cache/apt/archives/"
-e "root/
"
-e "root/."
-e "tmp/
"
-e "tmp/.*"
-e "swapfile"
It simply gives me an error that the image folder does not exist, or file does not exist, it's not entirely clear from the error, but it complains about something that does not exist.

@mvallim
Copy link
Owner

mvallim commented Sep 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants