Difference between revisions of "Cubic"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://linuxhint.com/customize_ubuntu_iso_create_spin/ Ubuntu is one of the most popular Linux distributions available today that focuses on ease of use and a great...")
 
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
Ubuntu is one of the most popular Linux distributions available today that focuses on ease of use and a great out of the box experience. Like most other distributions, it allows users to boot into Live mode and experience the full OS before installing it on the hard disk.
+
Ubuntu adalah salah satu distribusi Linux paling populer yang tersedia saat ini yang berfokus pada kemudahan penggunaan dan pengalaman yang luar biasa. Seperti kebanyakan distribusi lainnya, ini memungkinkan pengguna untuk boot ke mode Live dan mengalami OS penuh sebelum menginstalnya di hard disk.
It is not uncommon to see a custom version of Ubuntu deployed on multiple PCs in various for-profit and non-profit organizations. In order to make it easier to deploy a custom variant of Ubuntu, these organizations bake their changes in the Live CD or Live USB itself.
 
  
Usually it takes a lot of steps and tinkering to customize an Ubuntu Live CD if you go through command line route. However it is now much easier to create an Ubuntu Remix and distribute it as a Live CD to friends or colleagues, thanks to an excellent GUI app called Cubic.
+
Tidak jarang melihat versi khusus Ubuntu yang digunakan pada banyak PC di berbagai organisasi untuk profit maupun nirlaba. Untuk membuatnya lebih mudah untuk menyebarkan varian khusus Ubuntu, organisasi-organisasi ini membuat perubahan dalam Live CD atau Live USB itu sendiri.
  
Cubic is a graphical application featuring an integrated command line chroot environment terminal. It allows you to create a customized bootable Live ISO image from an existing Ubuntu ISO file and makes tweaking extremely easy by using a step by step navigation structure. You can navigate through your customization project using backward and forward buttons and quit any time you wish. Next time when you launch a Cubic project again, it will resume with all the previous customizations made by you in the ISO.
+
Biasanya dibutuhkan banyak langkah dan penyesuaian untuk menyesuaikan CD Live Ubuntu jika Anda melewati rute baris perintah. Namun sekarang jauh lebih mudah untuk membuat Ubuntu Remix dan mendistribusikannya sebagai Live CD ke teman atau kolega, berkat aplikasi GUI yang sangat baik yang disebut Cubic.
  
This article will walk you through all major customization options available in Cubic, tested with latest ISO image of Ubuntu 19.10. To install Cubic, run the commands below:
+
Cubic adalah aplikasi grafis yang menampilkan terminal lingkungan chroot baris perintah terintegrasi. Hal ini memungkinkan Anda untuk membuat gambar Live ISO yang dapat di-boot yang dapat disesuaikan dari file ISO Ubuntu yang ada dan membuat penyesuaian yang sangat mudah dengan menggunakan struktur navigasi langkah demi langkah. Anda dapat menavigasi melalui proyek kustomisasi Anda menggunakan tombol mundur dan maju dan berhenti kapan saja Anda inginkan. Lain kali ketika Anda meluncurkan proyek Cubic lagi, itu akan dilanjutkan dengan semua penyesuaian sebelumnya yang dibuat oleh Anda di ISO.
  
 +
Artikel ini akan memandu Anda melalui semua opsi penyesuaian utama yang tersedia di Cubic, diuji dengan gambar ISO terbaru dari Ubuntu 20.04. Untuk menginstal Cubic, jalankan perintah di bawah ini:
  
$ sudo apt-add-repository ppa:cubic-wizard/release
+
==Install Ubuntu 20.04==
$ sudo apt update
 
$ sudo apt install cubic
 
Launch it from application launcher and you will be greeted with a welcome screen. Enter a path to your desired project folder where all your customizations and final customized ISO will be stored.
 
  
  
 +
sudo apt-add-repository ppa:cubic-wizard/release
 +
sudo apt update
 +
sudo apt -y install cubic
  
  
On the next screen under “Original ISO…” field, click on “Select” button to choose an ISO image. Cubic will automatically populate all details and metadata in visible input boxes. You can change details under “Custom ISO…” field as per your requirements. By default, Cubic will assign a version number and date to your Custom ISO build.
+
==Jalankan==
  
  
 +
Jalankan
  
 +
cd ~
 +
mkdir -p /home/onno/cubic-test
 +
cubic
  
Click the next button to see Cubic working on the original ISO to create an environment for customization.
+
Tampilan
  
 +
[[File:Cubic1.png|center|200px|thumb]]
  
 +
Pakai folder /home/onno/cubic-test untuk bekerja
  
Once the process is finished, you will be taken to a chroot terminal. Chroot allows you to run commands inside a sandboxed file system completely unaware and disconnected from any other file systems present on the system. Any changes made inside chroot affect root directory of its running processes and children only. Cubic passes all the changes made in chroot to the Live ISO.
+
[[File:Cubic2.png|center|200px|thumb]]
  
 +
Iso original
  
 +
[[File:Cubic3.png|center|200px|thumb]]
  
 +
Cubic akan meng-extract ISO
  
Inside the chroot environment, we will begin by adding universe repository to increase the number of apps available to install:
+
[[File:Cubic4.png|center|200px|thumb]]
  
$ sudo add-apt-repository universe
+
Masuk ke virtual environment di Cubic
$ sudo apt update
 
You can now start customizing the ISO. Since Cubic creates a chroot for full Ubuntu filesystem extracted from the ISO, you can run all terminal commands that you would typically do in a full blown Ubuntu desktop installation. These customizations can be endless depending on your requirements, this article will touch only some of them. Lets install VLC app:
 
  
$ sudo apt install vlc
+
[[File:Cubic5.png|center|200px|thumb]]
  
 +
Di virtual environment ini kita bisa menambahkan atau mengurangi aplikasi,
 +
misalnya,
  
You can add a PPA repository and flatpak packages as well. Unfortunately, in my testing, Snap packages didn’t work at all. I was successful in installing them in chroot, but none of these packages ended up in the final ISO build. Let’s install Steam flatpak by running commands below in chroot:
+
* Install apps
 +
apt update
 +
apt -y install nama-aplikasi
  
 +
* Ubah wallpaper
 +
gsettings get org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/warty-final-ubuntu.png'
 +
gsettings set org.gnome.desktop.background picture-uri file:////usr/share/backgrounds/ubuntu-default-greyscale-wallpaper.png
  
$ sudo apt install flatpak
+
* Contoh
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 
$ flatpak install flathub com.valvesoftware.Steam
 
  
 +
sudo apt update
 +
sudo apt install vlc
  
Any files that you want to end up in custom ISO can be dragged on chroot window. One typical use case is to add additional wallpapers in “usr/share/backgrounds” directory. After you drag and drop a file on chroot window, a new window for uploading files appears. Click on “Copy” button to add files to the root of custom ISO filesystem.
+
sudo apt install flatpak
 +
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 +
flatpak install flathub com.valvesoftware.Steam
  
  
  
 +
[Optional] Setting Apps Autoremove
  
Below is a small example where I have added a new wallpaper to /usr/share/backgrounds directory in the chroot filesystem.
+
[[File:Cubic6.png|center|200px|thumb]]
  
  
 +
[Optional] Ubah Kernel
  
Once you are done with chroot, click on the next button to reach advanced settings layout. The first tab allows you to select packages that you want to be removed after installation finishes from your customized live ISO.
+
[[File:Cubic7.png|center|200px|thumb]]
  
 +
[Optional] Ubah Compression
  
 +
[[File:Cubic8.png|center|200px|thumb]]
  
  
The second tab allows you to select a specific kernel for the customized live ISO.
+
Proses Generate ISO Baru
  
 +
[[File:Cubic9.png|center|200px|thumb]]
  
  
The third tab allows you to customize preseed files. These preseed files are used to automate installation. For example, if you are building this ISO for users in a specific time zone, you can modify preseed files to choose that time zone and it will be automatically selected during installation. It is possible to completely automate installation process by choosing predetermined values for every field in the default installer.
+
Finish
  
 +
[[File:Cubic10.png|center|200px|thumb]]
  
  
  
The last tab allows you to customise boot parameters and boot behaviour of the live ISO.
+
Hasil bisa dilihat di folder yang di set sebelumnya
 
 
 
 
 
 
When you are finished with all the customizations, click on the “Generate” tab. You can always go to previous step during any stage of customization.
 
 
 
 
 
 
 
 
 
Finally, click on the finish button to end the customization of ISO image.
 
 
 
 
 
 
 
Cubic will then show all details and metadata about your custom ISO. Your customized build will be located in the project directory.
 
 
 
 
 
 
 
After booting into the custom ISO, we can see the customizations made in previous steps through Cubic.
 
 
 
 
 
 
 
To make any new customizations to an ISO already built by Cubic, just reopen the already existing project folder.
 
 
 
This marks the end of this article. Cubic is the only graphical ISO customization tool available today for Ubuntu. There have been other projects in the past, but development activities have ceased for them over time. The only other alternative to Cubic is to use numerous terminal commands to modify an Ubuntu ISO. But thanks to Cubic’s user friendly and intuitive interface, we don’t have to resort to lengthy and error prone command line mechanics to build an ISO.
 
  
 +
ls cubic-test/
  
 +
cubic.conf
 +
custom-disk
 +
custom-root
 +
ubuntu-20.04.0-2020.06.08-desktop-amd64.iso
 +
ubuntu-20.04.0-2020.06.08-desktop-amd64.md5
  
  
 +
Kita bisa gunakan file iso baru buatan kita sendiri :) ..
  
 
==Referensi==
 
==Referensi==

Latest revision as of 07:20, 8 June 2020

Sumber: https://linuxhint.com/customize_ubuntu_iso_create_spin/


Ubuntu adalah salah satu distribusi Linux paling populer yang tersedia saat ini yang berfokus pada kemudahan penggunaan dan pengalaman yang luar biasa. Seperti kebanyakan distribusi lainnya, ini memungkinkan pengguna untuk boot ke mode Live dan mengalami OS penuh sebelum menginstalnya di hard disk.

Tidak jarang melihat versi khusus Ubuntu yang digunakan pada banyak PC di berbagai organisasi untuk profit maupun nirlaba. Untuk membuatnya lebih mudah untuk menyebarkan varian khusus Ubuntu, organisasi-organisasi ini membuat perubahan dalam Live CD atau Live USB itu sendiri.

Biasanya dibutuhkan banyak langkah dan penyesuaian untuk menyesuaikan CD Live Ubuntu jika Anda melewati rute baris perintah. Namun sekarang jauh lebih mudah untuk membuat Ubuntu Remix dan mendistribusikannya sebagai Live CD ke teman atau kolega, berkat aplikasi GUI yang sangat baik yang disebut Cubic.

Cubic adalah aplikasi grafis yang menampilkan terminal lingkungan chroot baris perintah terintegrasi. Hal ini memungkinkan Anda untuk membuat gambar Live ISO yang dapat di-boot yang dapat disesuaikan dari file ISO Ubuntu yang ada dan membuat penyesuaian yang sangat mudah dengan menggunakan struktur navigasi langkah demi langkah. Anda dapat menavigasi melalui proyek kustomisasi Anda menggunakan tombol mundur dan maju dan berhenti kapan saja Anda inginkan. Lain kali ketika Anda meluncurkan proyek Cubic lagi, itu akan dilanjutkan dengan semua penyesuaian sebelumnya yang dibuat oleh Anda di ISO.

Artikel ini akan memandu Anda melalui semua opsi penyesuaian utama yang tersedia di Cubic, diuji dengan gambar ISO terbaru dari Ubuntu 20.04. Untuk menginstal Cubic, jalankan perintah di bawah ini:

Install Ubuntu 20.04

sudo apt-add-repository ppa:cubic-wizard/release
sudo apt update
sudo apt -y install cubic


Jalankan

Jalankan

cd ~
mkdir -p /home/onno/cubic-test
cubic

Tampilan

Cubic1.png

Pakai folder /home/onno/cubic-test untuk bekerja

Cubic2.png

Iso original

Cubic3.png

Cubic akan meng-extract ISO

Cubic4.png

Masuk ke virtual environment di Cubic

Cubic5.png

Di virtual environment ini kita bisa menambahkan atau mengurangi aplikasi, misalnya,

  • Install apps
apt update
apt -y install nama-aplikasi
  • Ubah wallpaper
gsettings get org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/warty-final-ubuntu.png'
gsettings set org.gnome.desktop.background picture-uri file:////usr/share/backgrounds/ubuntu-default-greyscale-wallpaper.png
  • Contoh
sudo apt update
sudo apt install vlc
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.valvesoftware.Steam


[Optional] Setting Apps Autoremove

Cubic6.png


[Optional] Ubah Kernel

Cubic7.png

[Optional] Ubah Compression

Cubic8.png


Proses Generate ISO Baru

Cubic9.png


Finish

Cubic10.png


Hasil bisa dilihat di folder yang di set sebelumnya

ls cubic-test/
cubic.conf
custom-disk
custom-root
ubuntu-20.04.0-2020.06.08-desktop-amd64.iso
ubuntu-20.04.0-2020.06.08-desktop-amd64.md5


Kita bisa gunakan file iso baru buatan kita sendiri :) ..

Referensi

Pranala Menarik