Remastered Mint CD/DVD

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Remastered Mint CD/DVD

Postby oobetimer on Wed Jul 11, 2012 11:31 am

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
Attachments
make iso.png
make iso.png (79.99 KiB) Viewed 5494 times
Testing the distro.png
Testing the distro.png (237.26 KiB) Viewed 5494 times
User avatar
oobetimer
Level 7
Level 7
 
Posts: 1889
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle

Linux Mint is funded by ads and donations.
 

Re: Remastered Mint CD/DVD

Postby Webtest on Sun Sep 08, 2013 12:39 pm

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 4 GB - Mint 10 Gnome, Mint 13 Mate, Mint 15 Mate <on LOCKED Kanguru USB drives>
Webtest
Level 3
Level 3
 
Posts: 176
Joined: Sun Feb 21, 2010 4:45 pm
Location: Carlisle, Pennsylvania, USA

Re: Remastered Mint CD/DVD

Postby skinnyMan on Mon Oct 07, 2013 9:03 am

I will give your system a try, I followed this guide http://ubuntuforums.org/showthread.php?t=688872 but the final ISO always comes out to be about 800MB which is way to big for what I am trying to do. Thanks.
skinnyMan
Level 1
Level 1
 
Posts: 3
Joined: Tue Aug 20, 2013 3:40 pm

Re: Remastered Mint CD/DVD

Postby administrollaattori on Tue Oct 08, 2013 10:47 am

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 -> viewtopic.php?f=46&t=145009#p766232
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Remastered JWM desktop live CD

Postby administrollaattori on Sat Apr 19, 2014 2:01 pm

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:
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Re: Remastered LightMint liveCD

Postby administrollaattori on Mon Apr 21, 2014 3:08 pm

LightMint 17 version 2

size 678 MB
lightmint2.png

Image
Attachments: .conkyrc and .jwmrec
jwmrc.tar.gz
.jwmrc
(2.29 KiB) Downloaded 17 times
conkyrc.tar.gz
.conkyrc
(4.74 KiB) Downloaded 13 times

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
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

LightMint iceWM

Postby administrollaattori on Sun Apr 27, 2014 1:09 pm

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:
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Re: Remastered Mint CD/DVD

Postby HL84 on Mon Apr 28, 2014 1:37 pm

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.
HL84
Level 1
Level 1
 
Posts: 3
Joined: Mon Apr 28, 2014 1:30 pm

Re: Remastered Mint CD/DVD

Postby administrollaattori on Wed Apr 30, 2014 2:14 pm

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
(18 KiB) Downloaded 34 times

Image
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Re: Remastered Mint CD/DVD

Postby HL84 on Wed Apr 30, 2014 11:35 pm

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.)
HL84
Level 1
Level 1
 
Posts: 3
Joined: Mon Apr 28, 2014 1:30 pm

Re: Remastered Mint CD/DVD

Postby Zorba on Thu May 01, 2014 12:00 am

Thank you for such a nice tutorial :D
Image
User avatar
Zorba
Level 8
Level 8
 
Posts: 2279
Joined: Tue May 29, 2012 10:12 pm
Location: Tunisia

Re: Remastered Mint CD/DVD

Postby administrollaattori on Thu May 01, 2014 5:53 am

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
(2.03 KiB) Downloaded 29 times
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Re: Remastered Mint CD/DVD

Postby HL84 on Fri May 02, 2014 12:43 am

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).
HL84
Level 1
Level 1
 
Posts: 3
Joined: Mon Apr 28, 2014 1:30 pm

Re: Remastered Mint CD/DVD

Postby administrollaattori on Fri May 02, 2014 3:33 am

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
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

LightMint iceWM

Postby administrollaattori on Fri May 02, 2014 12:47 pm

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 =
User avatar
administrollaattori
Level 6
Level 6
 
Posts: 1464
Joined: Tue Sep 03, 2013 4:51 am

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 11 guests