Results 1 to 3 of 3

Thread: HOWTO: Final Guide for CD remastering. Inside KDE!

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    5

    HOWTO: Final Guide for CD remastering. Inside KDE!

    This is a mix of tips and how-tos I gathered during the last weeks. Since there are too many tutorials, and some of them are old or incorrect I wanna make an easy and oriented one for anyone starting or for the guys with doubts remastering from CD.
    I tried with knoppix, whoppix, miniknoppix, feather and some other knoppix based distros I can't remember.

    Enjoy it.


    1) First I created the partitions: hda1 with 1gb for SWAP, and hda2 with ~6gb for ext3.

    2) Then I booted the live cd knoppix/feather/miniknoppix/<put your knoppix based distro name here>

    3) Become root
    sudo su

    4) Mounting partition
    mount -t ext3 /dev/hda2 /mnt/hda2

    5) Creating folders
    mkdir /mnt/hda2/source
    mkdir /mnt/hda2/source/KNOPPIX
    mkdir /mnt/hda2/master
    mkdir /mnt/hda2/master/KNOPPIX
    mkdir /mnt/hda2/master/boot
    mkdir /mnt/hda2/master/boot/isolinux

    6) Copying files
    cp –a /KNOPPIX/* /mnt/hda2/source/KNOPPIX
    cp /cdrom/boot/isolinux/* /mnt/hda2/master/boot/isolinux
    rm -f /mnt/hda2/source/KNOPPIX/etc/resolv.conf
    cp /etc/resolv.conf /mnt/hda2/source/KNOPPIX/etc/resolv.conf
    cp /etc/X11/XF86Config-4 /mnt/hda2/source/KNOPPIX/etc/X11/XF86Config-4

    6.1) To Edit BOOT LOGO read the post from "je" at:
    http://www.knoppix.net/forum/viewtopic.php?t=7


    7) Working inside the copied files (chroot)
    cd /mnt/hda2/source
    chroot KNOPPIX
    mount -t proc /proc proc

    8) Setting up the configurations to customise the distro inside X ;)
    cd /home
    cp -R /etc/skel knoppix
    chown -R knoppix.knoppix knoppix/
    vi /etc/X11/Xwrapper.config
    Change the line:
    allowed_users=console
    to:
    allowed_users=anybody

    9) Now lets use the default user "knoppix" instead root to customize KDE
    su knoppix
    cd /home/knoppix
    startx /usr/bin/startkde -- :1

    10) Now change anything you want inside kde


    11) Removing Stuff
    apt-get update
    apt-get remove --purge tetex-base
    apt-get remove --purge kde-18n-**
    apt-get remove --purge vim
    apt-get remove --purge emacs21
    apt-get remove --purge etc... and so on...
    rm -rf /usr/src/*
    rm -rf /usr/share/doc/*

    12) To install stuff..
    apt-get update
    apt-get install packagename

    13) Checking what we got installed. The next line will show in order what is installed and how big it is. We can remove them using: apt-get remove --purge packagename
    dpkg-query -W —-showformat='${Installed-Size} ${Package}\n' | sort -n

    14) Removing orphan packages (will remove useless stuff)
    deborphan | xargs apt-get -y —purge remove
    deborphan --find-config | xargs dpkg --purge

    14.1) Find out what is big by folders
    du -cb / | sort -n

    15) Restoring some options we changed before
    vi /etc/X11/Xwrapper.config
    Change the line:
    allowed_users=anybody
    to:
    allowed_users=console
    rm -fr /etc/X11/XF86Config-4
    vi /etc/resolv.conf
    Change:
    nameserver x.x.x.x
    to:
    #nameserver 127.0.0.1


    16) Getting back to console
    click on K (kde menu), LogOut, End Sesssion


    17) Restoring skel (default user) folders, configs, files to be restored when the live cd is made
    exit
    cd /home
    rm -rf /etc/skel
    mv knoppix/ skel
    mv skel /etc
    chown -R root.root /etc/skel

    18) Clear stuff and things we typed
    apt-get clean
    apt-get autoclean
    rm -f /etc/skel/.bash_history
    rm -f root/.bash_history


    19) Done. Let's get out from chroot and come back to the live cd we booted.
    umount /proc
    CTRL+d


    20) Lets create an image of what we have done
    mkisofs –R /mnt/hda2/source/KNOPPIX | create_compressed_fs –b – 65536 > /mnt/hda2/master/KNOPPIX/KNOPPIX

    21) And finally, let's create the .iso file
    cd /mnt/hda2/master
    mkisofs -pad -l -r -J -v -V "MyDistro" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o MyDistro.iso /mnt/hda2/master/


    If you have anyother tips or errors/typos I did, please post it. Let's make a good guide that can be done for everyone and learn with the process.

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Location
    Hong Kong
    Posts
    5
    Hi, I think I following similar procedure, (it actually the guide at http://www.knoppix.net/wiki/Remaster..._Install_HowTo ) to remaster from HDD install. However, once I burn the CD and try to boot the machine, while KDE starting, it ask me to login as the user I've created and there are many permission deny message. Most are skipable except:

    Could not start ksmserver. Check your installion.

    You don't have this problem? And there is user Knoppix in the system already???

  3. #3
    Junior Member
    Join Date
    May 2005
    Posts
    5
    Quote Originally Posted by carfield
    Hi, I think I following similar procedure, (it actually the guide at http://www.knoppix.net/wiki/Remaster..._Install_HowTo ) to remaster from HDD install. However, once I burn the CD and try to boot the machine, while KDE starting, it ask me to login as the user I've created and there are many permission deny message. Most are skipable except:

    Could not start ksmserver. Check your installion.

    You don't have this problem? And there is user Knoppix in the system already???
    I never had this problem. Are you changing users passwords?
    BTW, that wiki HOWTO is a remaster from the hdd, my howto is a remaster from cd.

    cheers

Similar Threads

  1. 5.0.1 remastering guide available?
    By johnnybhoy67 in forum Customising & Remastering
    Replies: 1
    Last Post: 10-12-2006, 01:04 PM
  2. HOWTO: Speedtouch USb (Idiots guide, by an idiot!)
    By sprinkles in forum Networking
    Replies: 25
    Last Post: 09-26-2006, 09:11 PM
  3. Replies: 2
    Last Post: 07-10-2004, 10:54 PM
  4. Addition to the remastering guide
    By kiko in forum Customising & Remastering
    Replies: 0
    Last Post: 11-28-2003, 06:07 AM
  5. How to? Final remastering cleanup
    By arkaine23 in forum Customising & Remastering
    Replies: 0
    Last Post: 11-12-2003, 05:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11 picture

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11

$62.50



HYNIX HMA84GR7AFR4N-VK 32GB PC4-2666V 2RX4 RDIMM MEMORY HMA84GR7AFR4N-VK picture

HYNIX HMA84GR7AFR4N-VK 32GB PC4-2666V 2RX4 RDIMM MEMORY HMA84GR7AFR4N-VK

$189.99



Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick picture

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick

$289.80



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TEAMGROUP T-Force Zeus 64GB (2x32GB) DDR4 2666MHz PC4-21300 Desktop RAM Kit picture

TEAMGROUP T-Force Zeus 64GB (2x32GB) DDR4 2666MHz PC4-21300 Desktop RAM Kit

$199.99



Lot of 3 SK HYNIX 16GB 1RX4 PC4-2666V-RC2-11 DDR4 Server MEMORY HMA82GR7AFR4N-VK picture

Lot of 3 SK HYNIX 16GB 1RX4 PC4-2666V-RC2-11 DDR4 Server MEMORY HMA82GR7AFR4N-VK

$180.00



SAMSUNG M386A8K40BM2-CTD 64GB (1X64GB) 4DRX4 PC4-2666V DDR4 MEMORY picture

SAMSUNG M386A8K40BM2-CTD 64GB (1X64GB) 4DRX4 PC4-2666V DDR4 MEMORY

$270.00



Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1 picture

Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1

$399.00



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98