Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ISO Image

  • 22-02-2025 04:55PM
    #1
    Registered Users Posts: 232 ✭✭


    Hi

    Can you tell me if this is possible. If I freshly install Ubuntu and install my favorite apps and configure settings to my liking, can I create an ISO image with theses apps and settings?

    Thanks



«1

Comments

  • Registered Users, Registered Users 2 Posts: 2,775 ✭✭✭niallb


    There were a few tools that allowed for this in the past.

    Does it have to be based on Ubuntu?



  • Moderators, Regional Midwest Moderators Posts: 11,282 Mod ✭✭✭✭MarkR


    Ok, I asked Gemini, because I was curious. Gist of it is making your own iso may not be the way to go, and to try backing up your configuration.

    It's possible to create a customized Ubuntu ISO with your preferred applications and settings, but it's important to understand that it's not a simple, straightforward process. Here's a breakdown:

    Challenges and Considerations:

    * System Stability:

    * Creating a perfect, universally compatible ISO can be tricky. Changes to system files or configurations can lead to instability on different hardware.

    * Maintenance:

    * Maintaining a custom ISO requires ongoing effort. As Ubuntu and applications update, your ISO might become outdated.

    * Size:

    * Adding numerous applications will significantly increase the ISO's size.

    Approaches:

    * Tools and Methods:

    * Historically, tools like "Remastersys" were used for this purpose, but their availability and support have varied.

    * Alternatives like "Pinguy Builder" have also been used.

    * More advanced users might use tools like "mkisofs" or "genisoimage" in conjunction with system backup and restoration techniques.

    * Using scripts to install applications after a standard ubuntu install. This is a very reliable method, and can be easily updated.

    * Focus on Configuration:

    * Instead of creating a full ISO, consider focusing on backing up and restoring your configuration files. Most user settings are stored in your home directory.

    * You can create scripts to automate the installation of your favorite applications. This approach is often more manageable than creating a complete ISO.

    * Package Lists:

    * You can generate a list of your installed packages and use that list to install the same packages on a fresh Ubuntu installation. This is a very useful way to recreate a software environment.

    Key Points:

    * While creating a custom ISO is technically possible, it requires technical expertise and careful planning.

    * Backing up configuration files and using scripts to automate application installation are often more practical solutions.

    * When thinking about making a ISO, consider if you are trying to deploy this to many computers, or just to have a personal backup. If it is only for personal backup, then backing up the user home directory and having a script to install all needed software, will be much more efficient.

    In summary, you can achieve a similar result to a custom ISO by using scripting and configuration backups.



  • Registered Users, Registered Users 2 Posts: 72,777 ✭✭✭✭L1011


    Not easily, and realistically there's a good chance you'll exceed the max size of a DVD-R in the process.

    Taking a disk image that will can be recovered to the same system is easier, but recovering to a different system is less reliable. Clonezilla is what I used for this in the past.



  • Registered Users, Registered Users 2 Posts: 2,775 ✭✭✭niallb


    Any more detail on why it has to be Ubuntu than"yes'"?

    There are other distros which are better suited to solving this particular need.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    Presumably it's the distro they use and are most familiar with.



  • Registered Users, Registered Users 2 Posts: 11,010 ✭✭✭✭28064212


    You will get better answers if you expand on why you would want to do this. It is quite likely that creating an ISO image is not the correct solution to the problem you're actually trying to address

    Boardsie Enhancement Suite - a browser extension to make using Boards on desktop a better experience (includes full-width display, keyboard shortcuts, dark mode, and more). Now available through your browser's extension store.

    Firefox: https://addons.mozilla.org/addon/boardsie-enhancement-suite/

    Chrome/Edge/Opera: https://chromewebstore.google.com/detail/boardsie-enhancement-suit/bbgnmnfagihoohjkofdnofcfmkpdmmce



  • Registered Users, Registered Users 2 Posts: 9,342 ✭✭✭limnam


    assuming your reason isn't related to being offline

    A better idea might be to configure your system/config etc with something like ansible. You can use a local ansible install.

    Then you can just boot up off a net cd or similar and run a script to install everything using ansible from a local script.



  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    If what the OP is trying to do is configure the system how they want it, and then be able to duplicate it later, perhaps this is what they need: https://kernelpanic.life/software/cloning-a-system-with-ansible.html



  • Registered Users Posts: 232 ✭✭the O Reilly connection


    It's the current OS I'm using. I normally reinstall it every couple of months to avoid the build up of cluster and viruses. I also like to change the password and I discovered this is the only way to do it. But it can be quite a pain when I have to reinstall my favorite programs and apps such as Virtual Box and Tor.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    Making a CD/DVD of your install is not going to help you because in a few months time when you go to do a reinstall, it's going to be out of date, so the first thing you will have to do is a distribution upgrade.

    What you could do is put /home in a separate partition and /opt in a separate partition. Install virtual box and other larger applications to /opt and when you do a reinstall install the OS to /, but retain your existing /home and /opt.

    Personally I just periodically do a clear out of clutter and then do a dist-upgrade.

    If you are worried about viruses, run ClamAV.



  • Registered Users, Registered Users 2 Posts: 2,775 ✭✭✭niallb


    What kind of desktop do you use?
    How are you installing Virtual Box and Tor ?


    By the way… Reinstalling ubuntu is not the only way to change your password. Far from it!



  • Registered Users, Registered Users 2 Posts: 6,295 ✭✭✭CalamariFritti


    I'm sorry to say this but the level of knowledge you seem to have means you're most likely not going to be up to the task. I dont mean that in a bad way at all just saying it the way I see it trying to save you from a whole lot of frustration and disappointment. Also the reasons why you want your own ISO arent really valid reasons. For starters whats that password thing you're on about? Thats just crazy talk. Same with the reinstall every two months because of 'clusters' (what are they btw?) and viruses. Sorry I dont mean to be mean I just dont think you know what you're at really.



  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    My first introduction to Linux was a distribution called muLinux(mu as in the Greek letter). It ran off a 3.5 inch floppy. My next intro was running a knoppix live CD.

    With Linux, you have to try things and make mistakes before you know what you are at really.

    My PC had what was called a winmodem, and would not work with Linux out of the box. Browsing online I found a guide for getting it working which involved recompiling the kernel. Downloading the kernel source code over dialup could take weeks so I got the city link into town (about an hours journey), went to an internet cafe to download the source code, burnt to 2 CDs, and went home again (also printed out the instructions).

    During the compile process it said "Enter disk 3 of 4". I only had 2.

    So, next day, back on the bus…

    I learnt a valuable lesson that day. Check your installation media. Check hashes and check how many you have before starting.

    The OP might be inexperienced but we all were once.

    @OP, you can change the password of any user any time by running passwd as that user in a shell.



  • Registered Users, Registered Users 2 Posts: 1,311 ✭✭✭tphase


    @CalamariFritti I think the OP means clutter, not clusters.

    I can think of some instances where you (well, I) might want to have an image of a 'pristine' system with all the required software installed and any unnecessary bloat/clutter etc removed. However those instances would be very particular and nothing like what the OP thinks he requires.

    I run Ubuntu on my laptop which is more than 5 years old. I upgraded the OS once, apply updates when they come out and declutter occasionally. I don't run an anti-virus program but probably should run a scan every now and then. However I don't visit dodgy websites, open dodgy links in emails or stick in unknown usb sticks so I reckon I'm safe enough. I'm not going to admit how often I've changed my password 🤔 but to do it every couple of months is a bit much IMO unless forced to by your employer. If the data is that important, it should be encrypted.

    The OP seems to be putting themselves through a lot of hardship for no good reason, or at least none that they've revealed here



  • Registered Users Posts: 232 ✭✭the O Reilly connection


    Thanks for your input. However, I am interested in knowing how to transfer my current OS from my laptop to a Desktop or Raspberry PI. I think you have already answered this question.



  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption




  • Registered Users, Registered Users 2 Posts: 2,669 ✭✭✭Markus Antonius


    +3 for clonezilla. Works great for windows as well. Put it on a USB and make sure to load it into RAM for fastest functionality



  • Registered Users Posts: 232 ✭✭the O Reilly connection


    If I clone the hardrive, does that mean it will clone all the deleted contents too?



  • Registered Users, Registered Users 2 Posts: 72,777 ✭✭✭✭L1011


    No, it's not a block level clone (well, it can be but that won't be the mode you'll be using)

    A block level clone could only be rewritten to an identical disk/SSD so would be pointless for regular users.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    Depends how you have deleted the things.

    I don't know what desktop environment you are using, but most have a recycle bin type feature. You can empty that before the cloning. If you use the rm command, there's no safety net. So no, you won't copy the deleted stuff.



  • Moderators, Regional Midwest Moderators Posts: 11,282 Mod ✭✭✭✭MarkR


    Will clonezilla work across different architectures? Never used Linux on a raspberry, so don't know. Is the drive on the pi drive large enough to install the image? Does the pi need different partitions that would be overwritten by clonezilla?



  • Registered Users, Registered Users 2 Posts: 40 samvimes


    This may/not work with Ubuntu, would be worth testing though

    https://github.com/bergmann-max/debain-preseed-iso-generator



  • Registered Users, Registered Users 2 Posts: 72,777 ✭✭✭✭L1011


    You can't copy an x86/x64 image to a Pi anyway.

    Somehow missed that this was the intent.

    So this just can't be done, Clonezilla or not - the devices don't have compatible processors.



  • Registered Users, Registered Users 2 Posts: 1,311 ✭✭✭tphase


    You didn't miss it, the OP added this as new information later in the thread. I was going to point it out but then couldn't be arsed😴



  • Registered Users Posts: 232 ✭✭the O Reilly connection


    So in theory, someone could steal the content of your hard-drive without you knowing it.



  • Registered Users, Registered Users 2 Posts: 72,777 ✭✭✭✭L1011


    If someone has physical access to your computer, you have to consider it compromised. Unless the disks are encrypted and it was already powered off - disk encryption keys have been recovered from memory or the TPM on powered on computers.



  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    Which is why I always encrypt the hard drive of my laptop.



  • Registered Users Posts: 232 ✭✭the O Reilly connection




  • Advertisement
  • Registered Users, Registered Users 2 Posts: 11,687 ✭✭✭✭LambshankRedemption


    Vulnerable to what exactly? Someone would have to break in to the person's house to clone their hard drive. Having gone to that effort they could just steal the computer.



Advertisement