Remastered Mint CD/DVD

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
oobetimer

Remastered Mint CD/DVD

Post by oobetimer »

1. Install the next packages (if not installed)
sudo apt-get install squashfs-tools genisoimage

2. Make a folder livecdtmp
mkdir ~/livecdtmp

3. Go to the folder
cd ~/livecdtmp

4. Make folders extract-cd and mnt
mkdir extract-cd mnt

5. Mount linuxmint-13-mate-dvd-32bit.iso (Download first of course)
sudo mount -o loop ~/linuxmint-13-mate-dvd-32bit.iso mnt

6. Move the image to the folder extract-cd
sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd

7. Extract squashfs and move extracted to folder edit
sudo unsquashfs mnt/casper/filesystem.squashfs
sudo mv squashfs-root edit


8. Copy resolv.conf and mount /dev to the chroot-system. If there is no resolv.conf, make it first
nm-tool # Tells the DNS
sudo nano /etc/resolv.conf


nameserver here_your_primary_DNS
nameserver here_your_secondary_DNS


sudo cp /etc/resolv.conf edit/etc/
sudo mount --bind /dev/ edit/dev


9. Chroot to the system
sudo chroot edit

10. Mount and export things
mount -t proc none /proc && mount -t sysfs none /sys && mount -t devpts none /dev/pts

export HOME=/root && export LC_ALL=C


11. Update package cache
apt-get update

12. Query installed packages by size
dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' | sort -nr | less

q gets you out from query

13. Edit the system (install/remove packages, etc.). When removing packages, use purge so that packages settings are disappearing also. An example:
apt-get purge ubiquity-slideshow-mint apt-xapian-index
apt-get install gnome-ppp


14. Clean the system and exit from chroot
apt-get clean
rm -rf /tmp/* ~/.bash_history
rm /etc/resolv.conf
umount /proc
umount /sys
umount /dev/pts
exit


15. Umount edit/dev
sudo umount edit/dev

16. Umount linuxmint-13-mate-dvd-32bit.iso
sudo umount mnt

17. Make ISO
sudo mksquashfs edit extract-cd/casper/filesystem.squashfs

sudo printf $(sudo du -sx --block-size=1 edit | cut -f1) > extract-cd/casper/filesystem.size


- Rename distro
sudo nano extract-cd/README.diskdefines

- Remove old md5sum and make new
cd extract-cd
sudo rm md5sum.txt
find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt


- Build ISO
cd ..

sudo mkisofs -r -V “$IMAGE_NAME” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../your_own_distro.iso extract-cd


18. Change permissions
cd
sudo chmod 777 your_own_distro.iso


19. Test the new distro using VirtualBox, Qemu, etc
User avatar
Webtest
Level 4
Level 4
Posts: 375
Joined: Sun Feb 21, 2010 4:45 pm
Location: Carlisle, Pennsylvania, USA

Re: Remastered Mint CD/DVD

Post by Webtest »

Thank you oobetimer for the most interesting HowTo post.

I've been using Mint LiveMedia for nearly 4 years and have complained a lot about the various nuisances running these systems. I have been thinking about remastering my own version for quite awhile, but am just getting around to it. I was shown the link to this thread and decided to give it a try. However, the ISO file I created and burned via USB Image Writer was not successful in generating a bootable USB drive. I have never had any significant trouble burning bootable LiveMedia for any of the downloaded Linux Mint distro ISOs.

Here is my system: Linux Mint 15 32-bit Mate LiveDVD on a locked SD card, with an external USB hard drive. I already had a copy of the exact ISO file you used for your demo on a data DVD.

Here is what happened: I understood most of the commands and proceeded without difficulty up to step 7:
7. Extract squashfs and move extracted to folder edit
sudo unsquashfs mnt/casper/filesystem.squashfs
>There was one comment during the unsquash: create_inode: socket squashfs-root/run/samba/unexpected ignored
Is this a problem?

I just wanted to try remastering a system, so I did not change any packages and skipped step 13.

I proceeded through the steps up to step 17
17. Make ISO
sudo mksquashfs edit extract-cd/casper/filesystem.squashfs
sudo printf $(sudo du -sx --block-size=1 edit | cut -f1) > extract-cd/casper/filesystem.size
>Got this message: bash: extract-cd/casper/filesystem.size: Permission denied ??? Is this a problem?

I just kept going and I did get an ISO file which I burned onto a USB thumb drive with USB Image Writer. Nice try, but when I try to boot it I just get a BIOS message:
Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key


I would sincerely appreciate any and all comments, suggestions, and assistance in getting this to run.

Blessings in abundance, all the best, & ENJOY!
Art in Carlisle PA, USA
BOAT - a hole in the water that you pour money into
LINUX - a hole in your life that you pour TIME into

HP dx2400 Core 2 Duo 8 GB. Mint 13/15/17.x/18.x Mate <on LOCKED SD cards, and Kanguru USB drives> No Hard Drive / No SSD
skinnyMan

Re: Remastered Mint CD/DVD

Post by skinnyMan »

I will give your system a try, I followed this guide [url]http://ubuntuforums.org/showthread.php?t=688872[/url] but the final ISO always comes out to be about 800MB which is way to big for what I am trying to do. Thanks.
kukamuumuka

Re: Remastered Mint CD/DVD

Post by kukamuumuka »

skinnyMan wrote:but the final ISO always comes out to be about 800MB which is way to big for what I am trying to do. Thanks.
668Mt -> http://forums.linuxmint.com/viewtopic.php?f=46&t=145009#p766232
kukamuumuka

Remastered JWM desktop live CD

Post by kukamuumuka »

Remaster which bases on Lubuntu 14.04 and Linux Mint 17

CD´s size is 693 MB
lightmint17.png
Build this way:

Code: Select all

1. Install the next packages (if not installed)
sudo apt-get install squashfs-tools genisoimage

2. Make a folder livecdtmp
mkdir ~/livecdtmp

3. Go to the folder
cd ~/livecdtmp 

4. Make folders extract-cd and mnt
mkdir extract-cd mnt

5. Mount lubuntu-14.04-desktop-i386.iso (Download first of course)
sudo mount -o loop ~/lubuntu-14.04-desktop-i386.iso mnt

6. Move the image to the folder extract-cd
sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd

7. Extract squashfs and move extracted to folder edit
sudo unsquashfs mnt/casper/filesystem.squashfs
sudo mv squashfs-root edit

8. Copy resolv.conf and mount /dev to the chroot-system. If there is no resolv.conf, make it first
nm-tool # Tells the DNS
sudo nano /etc/resolv.conf

nameserver here_your_primary_DNS
nameserver here_your_secondary_DNS

sudo cp /etc/resolv.conf edit/etc/
sudo mount --bind /dev/ edit/dev

sudo cp ~/.jwmrc.lightmint ~/livecdtmp/edit/etc/skel/.jwmrc
sudo cp ~/.conkyrc ~/livecdtmp/edit/etc/skel

9. Chroot to the system
sudo chroot edit

10. Mount and export things
mount -t proc none /proc && mount -t sysfs none /sys && mount -t devpts none /dev/pts 

export HOME=/root && export LC_ALL=C

nano /etc/apt/sources.list

11. Update package cache
apt-get update

12. Query installed packages by size
dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' | sort -nr | less 

q gets you out from query

apt-get -y remove language-pack-gnome-de-base language-pack-gnome-fr-base language-pack-gnome-es-base language-pack-gnome-ru-base language-pack-de-base language-pack-ru-base language-pack-fr-base pidgin-data gnome-keyring firefox-locale-es firefox apport firefox-locale-en firefox-locale-fr firefox-locale-de sylpheed blueman lubuntu-desktop

apt-get autoremove

apt-get --no-install-recommends install rox-filer

apt-get --no-install-recommends install jwm

apt-get --no-install-recommends install gnome-power-manager

apt-get --no-install-recommends install mintupdate

apt-get --no-install-recommends install pavucontrol

apt-get --no-install-recommends install conky conky-all

apt-get --no-install-recommends install midori thunderbird

apt-get upgrade

14. Clean the system and exit from chroot
apt-get clean

apt-get autoremove

rm -rf /tmp/* ~/.bash_history

rm /etc/resolv.conf
umount /proc 
umount /sys
umount /dev/pts 
exit

15. Umount edit/dev
sudo umount edit/dev

16. Umount lubuntu-14.04-desktop-i386.iso
sudo umount mnt

17. Make ISO
sudo mksquashfs edit extract-cd/casper/filesystem.squashfs

- Rename distro
sudo nano extract-cd/README.diskdefines

- Remove old md5sum and make new
cd extract-cd
sudo rm md5sum.txt
sudo rm wubi.exe
find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt

- Build ISO
cd ..

sudo mkisofs -r -V “$LightMint_17” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../LightMint17.iso extract-cd

18. Change permissions 
cd .. 

sudo chmod 755 LightMint17.iso
/etc/apt/sources.list file:

Code: Select all

deb http://debian.lth.se/linuxmint/ qiana main upstream import 

deb http://extra.linuxmint.com qiana main

deb http://ubuntu.mirror.su.se/ubuntu/ trusty main restricted universe multiverse
deb http://ubuntu.mirror.su.se/ubuntu/ trusty-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Image

Memory usage about 80 to 100 MB idle, when using JWM desktop .. :wink:
kukamuumuka

Re: Remastered LightMint liveCD

Post by kukamuumuka »

LightMint 17 version 2

size 678 MB
lightmint2.png
Image
Attachments: .conkyrc and .jwmrec
jwmrc.tar.gz
conkyrc.tar.gz
If someone want to download the iso, You can download it from copy.com
MD5SUM is 5d8ff6dfc95842f74c98d0ccbb50745a

Edit: Network does not work before adding DNS setting to the /etc/resolv.conf file. An example Google´s Public DNS
1. Disconnect
2. Make a /etc/resolv.conf file

Code: Select all

sudo nano /etc/resolv.conf
... the contents

Code: Select all

nameserver 8.8.8.8
.... save and quit
Ctrl o
Ctrl x
3. Reconnect
https://developers.google.com/speed/public-dns/?hl=fi

Edit2: I made a fixed version with workable /etc/resolv.conf file
kukamuumuka

LightMint iceWM

Post by kukamuumuka »

There is desktop icons via idesk also, but I have to get them working on live CD (also).
lightmint-icewm.png
Image

Image

Fixed version 2 .. :lol:
HL84

Re: Remastered Mint CD/DVD

Post by HL84 »

I am a little bit desperate right now, because so far the remastering hasnt worked yet. I tried several other ways and now I m trying this tutorial here. However at <9.> I get permission denied. What can I do here? Also the two commands before 9. didnt work but I guess they are not that important as they are not included in the original tutorial?
Thanks guys. Any help is apreciated.
kukamuumuka

Re: Remastered Mint CD/DVD

Post by kukamuumuka »

HL84 wrote:I am a little bit desperate right now, because so far the remastering hasnt worked yet. I tried several other ways and now I m trying this tutorial here. However at <9.> I get permission denied. What can I do here? Also the two commands before 9. didnt work but I guess they are not that important as they are not included in the original tutorial?
Thanks guys. Any help is apreciated.
The next attachments may help you .. :wink:
remaster.30.4.2014_text_files.tar.gz
Image
HL84

Re: Remastered Mint CD/DVD

Post by HL84 »

Ok, thank you very much. I will have a further look into it later. Actually what I would like to do is to boot lubuntu 1404 64 Bit in German/Deutsch, take the image "lubuntu-14.04-desktop-amd64.iso" and remaster it that way: install this

Code: Select all

sudo add-apt-repository ppa:upubuntu-com/tor64
sudo apt-get update
sudo apt-get install rar
sudo apt-get install gedit
sudo apt-get install vlc browser-plugin-vlc
sudo apt-get install filezilla
sudo apt-get install catfish 
sudo apt-get install bluefish
sudo apt-get install tor-browser
sudo apt-get install flashplugin-installer
sudo apt-get install libreoffice libreoffice-l10n-de
sudo apt-get install scribus scribus-doc scribus-template
sudo apt-get install pinta
sudo apt-get install gimp
sudo apt-get install gimp-help-de language-pack-gnome-de 
sudo apt-get install inkscape
sudo apt-get install filezilla
sudo apt-get install clementine
sudo apt-get install gscan2pdf 
sudo apt-get install pdfshuffler
sudo apt-get install kazam
sudo apt-get install audacity
sudo apt-get install easytag
sudo apt-get install openshot
sudo apt-get install geary
sudo apt-get install putty
sudo apt-get install thunderbird thunderbird-locale-de
sudo apt-get install texmaker
sudo apt-get install jabref
sudo apt-get install gummi
sudo apt-get install dia
sudo apt-get install asunder
sudo apt-get install lame vorbis-tools flac wavpack
sudo apt-get install soundconverter
sudo apt-get install k9copy
sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad-multiverse
sudo apt-get install remmina
sudo apt-get install remmina-plugin-nx remmina-plugin-rdp remmina-plugin-telepathy remmina-plugin-vnc remmina-plugin-xdmcp
sudo apt-get install radiotray
sudo apt-get install gnome-tetravex
sudo apt-get install libgstreamer0.10-0
sudo apt-get install gstreamer0.10-tools gnome-media
and this

Code: Select all

https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
http://www.bluej.org/download/files/bluej-311.deb
http://mirrors.kernel.org/ubuntu/pool/universe/g/gnome-games/glchess_2.30.0-0ubuntu6_amd64.deb
http://www.yworks.com/products/yed/demo/yEd-3.12.2_64-bit_setup.sh
- redo the panel: replace browser icon with firefox icon. From left to right put these icons in the panel: terminal, pcmanfm, google chrome, firefox, audacious, vlc player, gedit.
- install adblock plus addon in firefox, change firefox homepage into "http://www.google.de" and download-setting into "always ask me..."
- change date & time into Berlin/Europe

besides that I would like to leave everything as it is. do you think this is possible for me to do given your tutorial here? (I'm quite new to linux in general. I was just into windows so far and dos back in the day.)
Brahim Salem

Re: Remastered Mint CD/DVD

Post by Brahim Salem »

Thank you for such a nice tutorial :D
kukamuumuka

Re: Remastered Mint CD/DVD

Post by kukamuumuka »

HL84 wrote:Ok, thank you very much. I will have a further look into it later. Actually what I would like to do is to boot lubuntu 1404 64 Bit in German/Deutsch, take the image "lubuntu-14.04-desktop-amd64.iso" and remaster it that way: install this

Code: Select all

sudo add-apt-repository ppa:upubuntu-com/tor64
sudo apt-get update
sudo apt-get install rar
sudo apt-get install gedit
sudo apt-get install vlc browser-plugin-vlc
sudo apt-get install filezilla
sudo apt-get install catfish 
sudo apt-get install bluefish
sudo apt-get install tor-browser
sudo apt-get install flashplugin-installer
sudo apt-get install libreoffice libreoffice-l10n-de
sudo apt-get install scribus scribus-doc scribus-template
sudo apt-get install pinta
sudo apt-get install gimp
sudo apt-get install gimp-help-de language-pack-gnome-de 
sudo apt-get install inkscape
sudo apt-get install filezilla
sudo apt-get install clementine
sudo apt-get install gscan2pdf 
sudo apt-get install pdfshuffler
sudo apt-get install kazam
sudo apt-get install audacity
sudo apt-get install easytag
sudo apt-get install openshot
sudo apt-get install geary
sudo apt-get install putty
sudo apt-get install thunderbird thunderbird-locale-de
sudo apt-get install texmaker
sudo apt-get install jabref
sudo apt-get install gummi
sudo apt-get install dia
sudo apt-get install asunder
sudo apt-get install lame vorbis-tools flac wavpack
sudo apt-get install soundconverter
sudo apt-get install k9copy
sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad-multiverse
sudo apt-get install remmina
sudo apt-get install remmina-plugin-nx remmina-plugin-rdp remmina-plugin-telepathy remmina-plugin-vnc remmina-plugin-xdmcp
sudo apt-get install radiotray
sudo apt-get install gnome-tetravex
sudo apt-get install libgstreamer0.10-0
sudo apt-get install gstreamer0.10-tools gnome-media
and this

Code: Select all

https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
http://www.bluej.org/download/files/bluej-311.deb
http://mirrors.kernel.org/ubuntu/pool/universe/g/gnome-games/glchess_2.30.0-0ubuntu6_amd64.deb
http://www.yworks.com/products/yed/demo/yEd-3.12.2_64-bit_setup.sh
- redo the panel: replace browser icon with firefox icon. From left to right put these icons in the panel: terminal, pcmanfm, google chrome, firefox, audacious, vlc player, gedit.
- install adblock plus addon in firefox, change firefox homepage into "http://www.google.de" and download-setting into "always ask me..."
- change date & time into Berlin/Europe

besides that I would like to leave everything as it is. do you think this is possible for me to do given your tutorial here? (I'm quite new to linux in general. I was just into windows so far and dos back in the day.)
1. Make the config files using your own desktop graphical way and copy those config files to ~/livecdtmp/edit/etc/skel folder. You need these folders: .config .gconf .mozilla
2. Make a remaster (an attachment)
lubuntu_remaster.txt.tar.gz
HL84

Re: Remastered Mint CD/DVD

Post by HL84 »

Oh, thank you very much for your time. The problem is, that I still get "permission denied" when I type "sudo chroot edit". (9. / 10.)
The only thing that I'm doing differently up to this point is, that I don't use "~/" where I create the "livecdtmp"-folder, but this "/media/lubuntu/1650E3C550E3AA27/lubuntu". Is this a problem here?

Another question: if I'm not able to get this done myself... is it possible that you can create this *.iso for me? I could send you something like 10 to 15 € with paypal in return.
(I have some little adjuments to what I wrote earlier how I would like the DVD to look like).
kukamuumuka

Re: Remastered Mint CD/DVD

Post by kukamuumuka »

HL84 wrote:Oh, thank you very much for your time. The problem is, that I still get "permission denied" when I type "sudo chroot edit". (9. / 10.)
The only thing that I'm doing differently up to this point is, that I don't use "~/" where I create the "livecdtmp"-folder, but this "/media/lubuntu/1650E3C550E3AA27/lubuntu". Is this a problem here?
You need to use linux filesystems like ext3, ext4 .. and so on. Of course you have to have permissions to the building drive.
HL84 wrote: Another question: if I'm not able to get this done myself... is it possible that you can create this *.iso for me? I could send you something like 10 to 15 € with paypal in return.
(I have some little adjuments to what I wrote earlier how I would like the DVD to look like).
I am sure that you will succeed if you make the remaster in your home folder .. :wink:

If you want to support Linux Mint, you can make a donation .. :D
http://www.linuxmint.com/donors.php
kukamuumuka

LightMint iceWM

Post by kukamuumuka »

LightMint iceWM custom liveCD for older computers which cannot work with "modern desktops". Menus are not translated, but if someone want to make own menus, it is easy = just edit using your favorite editor. xforcevesa boot option seem to work with difficult graphic cards like VIA.

Download link for LightMint-iceWM-v5.iso
md5sum dd7a22c07e843bd73962ea22e74ce22d

Image

Username = lightmint
Password =
Pythzor
Level 3
Level 3
Posts: 161
Joined: Fri Jul 09, 2010 7:05 pm

Re: Remastered Mint CD/DVD

Post by Pythzor »

I'm still floundering around here. Does anyone know the username and password for the LightMint17-3.iso? "lightmint" for LightMint iceWM doesn't work.
Intel Core2 Duo, 3.0 GHz, 6 GB ram, 160 GB hdd; Ultimate Edition Oz Unity Star Sapphire (discontinued Ubuntu 14.04 remix that I've been able to upgrade to a 16.04 base); Linux Mint 18.2/Mate.
Pythzor
Level 3
Level 3
Posts: 161
Joined: Fri Jul 09, 2010 7:05 pm

Re: Remastered Mint CD/DVD

Post by Pythzor »

lubuntu.

Found it by watching a Youtube review (https://www.youtube.com/watch?v=htIlUSaYuNY).

I'm posting this with the live CD.

While I can't say I'm impressed with it, I think I'll install it anyway and see if I can install a Mate desktop.

Thanks to administrollaattori and all other contributors for making it.
Intel Core2 Duo, 3.0 GHz, 6 GB ram, 160 GB hdd; Ultimate Edition Oz Unity Star Sapphire (discontinued Ubuntu 14.04 remix that I've been able to upgrade to a 16.04 base); Linux Mint 18.2/Mate.
gatsu1977

Re: Remastered Mint CD/DVD

Post by gatsu1977 »

I create a live-cd modified to my needs perfect installation session start well but when I want to connect a USB flash drive-not mount the flash drive appears not authorized to mount the device.
What could be the failure or if I set something before creating the .iso?.
Post Reply

Return to “Tutorials”