Create a custom ISO file under Xubuntu

Source: Internet
Author: User
Tags gtk

by Han;

1. Open the command editor to create a file

# sudo su

# CD/

# mkdir opt

# mkdir/opt/custom_conf

# mkdir/opt/custom_conf/user_custom_conf

# Mkdir/opt/custom_conf/user_custom_conf/config

2. Copy the custom settings to the/opt/custom_conf/user_custom_conf/config file

# Cd/home/user/.config

# ls

# Cp-r */opt/custom_conf/user_custom_conf/config/

3. Create a script to copy custom settings to a new computer

# cd/opt/custom_conf/

# Nano copy_custom_conf.sh
#!/bin/bash
cd/opt/custom_conf/user_custom_conf/config/
echo 1|sudo-s CP-RF */home/user/.config/

4. Download and unzip the Distroshare Ubuntu Imager (Bash) script

# cd/opt/custom_conf/

# wget HTTPS://codeload.github.com/distroshare/distroshare-ubuntu-imager/zip/master

# MV Master Distroshare-ubuntu-Imager-master. Zip

5. Create a script that generates a custom ISO file

# cd/opt/custom_conf/

# Nano gen_iso.sh

#!/bin/bash
cd/opt/custom_conf/
Unzip distroshare-ubuntu-imager-master.zip-d/tmp/folder
Cd/tmp/folder/distroshare-ubuntu-imager-master
SOURCE distroshare-ubuntu-imager.sh
Cd/home/distroshare/

6. Execute the gen_iso.sh script to generate the custom ISO file

# source Gen_iso.sh

After 10-20 minutes of waiting, the resulting ISO file will be seen under/home/distroshare: Live-cd.iso

Note:

(1) After extracting the Distroshare Ubuntu Imager (Bash) script, you can see the extracted files:

# Cd/tmp/folder/distroshare-ubuntu-imager-master

# LL
Total Dosage 68
Drwxr-xr-x 2 root root 4096 September 10 2015./
Drwxr-xr-x 3 root root 4096 September 23 09:35.. /
-rw-r--r--1 root root 1410 September distroshare-ubuntu-imager.config
-rwxr-xr-x 1 root root 16335 September distroshare-ubuntu-imager.sh*
-rw-r--r--1 root root 18026 September LICENSE
-rw-r--r--1 root root 368 September plugininstall.patch
-rw-r--r--1 root root 1372 September readme.md
-rw-r--r--1 root root 1550 September Ubiquity_frontend_gtk_dialog_size.patch
-rw-r--r--1 root root 543 September Ubiquity.patch
-rw-r--r--1 root root 800 September user-setup-apply.patch

    • Distroshare-ubuntu-imager.config: Customizing profiles for Live CDs
    • DISTROSHARE-UBUNTU-IMAGER.SH: Automated script for generating custom images

(2) You can modify the Distroshare-ubuntu-imager.config configuration file as you want

# cd/tmp/folder/distroshare-ubuntu-imager-master/

# Nano Distroshare-ubuntu-imager.config

The GTK option defines whether GTK or Qt is installed, and if not installed it can be changed to no
gtk= "YES"

Work defines the working directory of the script, and the resulting ISO storage directory
work= "/home/distroshare"

If you need to support EFI, you can change it to YES
Efi= "NO"

By default, the script creates a Live CD in the Kernel version used by the current system, and if you want to specify a kernel version, you can change the following configuration
kernel_version=$ (UNAME-R)

7. Create a startup USB drive

After plugging in the USB stick, check the location of the USB flash drive:

# fdisk-l

# dd If=live-cd.iso Of=/dev/sdb bs=1m

8. Install the new Xubuntu system

After installing the new Xubuntu system with the USB stick, configure the custom settings:

Open Command Command Editor

# sudo su

# cd/opt/custom_conf/

# source Copy_custom_conf.sh

Create a custom ISO file under Xubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.