PDA

View Full Version : Remastersys Guide - Create Your Own Ubuntu-based Distro


grndslm
February 18th, 2009, 05:46 PM
NOTE: Beware of copying and pasting commands with < > brackets as it completely depends on your individual setup.

REMASTERSYS RESOURCES
+ IMPORTANT resources & files:
Remastersys Home (http://www.geekconnection.org/remastersys/remastersystool.html)
Remastersys Forum Home (http://www.geekconnection.org/remastersys/forums/index.php)
Remastersys Wiki (http://klikit.pbwiki.com/Remastersys)
Capink's in-depth explanation (http://www.remastersys.klikit-linux.com/capink.html) of Fragadelic's Remastersys script
Or if you're a scripter, examine /usr/bin/remastersys. I tried adding the -noI -noD -noF switches inside the script so that squashfs would be uncompressed, but the boot and install take nearly 40% longer on machines with only 512MB of ram. That, in addition to wasted disk space and possibly bandwidth, means you should prolly just avoid making that same change.
And when you edit /etc/remastersys.conf, DO NOT change the LIVEUSER variable to "user" or "gdm".
Add one of these repositories, depending on your distro:

# Remastersys Debian
deb http://www.geekconnection.org/remastersys/repository debian/

# Remastersys Ubuntu (For Gutsy & Earlier - version 2.0.11-1)
deb http://www.geekconnection.org/remastersys/repository remastersys/

# Remastersys Ubuntu (For Hardy, Intrepid, & Jaunty - version 2.0.12-1)
deb http://www.geekconnection.org/remastersys/repository ubuntu/

# Remastersys Ubuntu (For Karmic & Newer w/ grub2 support - version 2.0.13-1)
deb http://www.geekconnection.org/remastersys/repository karmic/

REMASTERSYS NOTES
The only real difference between backup and dist modes is that backup mode copies the /home directory to the CD/DVD. Dist mode auto-logins to the desktop with the LIVEUSER you create, whereas backup mode stops at GDM, waiting for a specific user on your current machine to login and eventually find their normal desktop on the CD/DVD and the installed system.
Either way, the compressed filesystem will need to be 4GB or less. No buts about it, unless of course, you're a genius with ample time on your hands. That also means backup mode will need to include your /home folder in that 4 GB iso.
Run aptitude clean to get rid of unnecessary .debs.
When you run remastersys dist, you create your dist CDFS, which is eventually converted into your dist ISO. If you only need to edit one file, such as menu.lst so you can change Grub's timeout... just go to the CDFS chroot ( /home/remastersys/ISOTMP/ ) and you'll see the filesystem layout of your dist CD. In this example, edit /home/remastersys/ISOTMP/boot/grub/menu.lst and then you'll be ready to run remastersys dist iso since there's no reason to run the regular dist command and completely re-create the CDFS.
If you've already run remastersys, and you need to make drastic changes, make sure to run remastersys clean before remastersys dist.
When you're ready to test the .iso out, use a virtual machine like VMware, VirtualBox, or QEMU... so you don't have to waste any CDs or time burning the CDs.
And just FAIR WARNING: I would highly consider avoiding Intrepid & Jaunty if you're planning on many, many people using this, particularly machines with Intel-based graphics... as I've found two Intel machines that display a cruddy Xorg immediately after only upgrading default Ubuntu packages (NOT installing anything extra yet)... but I do like most of the software better in Intrepid. Jaunty is definitely still too new right now. Debian Lenny might be best for a larger, supported distro as it is now officially stable.


DISTRO PREP
Upgrade and install all your packages. Google Desktop might be a possible addition to your dist.
Remove all unnecessary packages. Here is a nice guide (http://ubuntuforums.org/showthread.php?t=820804) with an example of what I've chosen to remove from my system:
aptitude purge ubuntu-desktop ttf-arabeyes ttf-arphic-uming ttf-indic-fonts-core ttf-kochi-gothic ttf-kochi-mincho ttf-lao ttf-malayalam-fonts ttf-thai-tlwg ttf-unfonts-core language-support-en language-support-translations-en language-support-writing-en myspell-en-za openoffice.org-thesaurus-en-au openoffice.org-l10n-en-za openoffice.org-l10n-en-gb openoffice.org-help-en-gb scim scim-bridge-agent scim-bridge-client-gtk scim-gtk2-immodule scim-modules-socket libscim8c2a libchewing3 brltty brltty-x11 gnome-app-install ubufox apturl tracker tracker-search-tool libdeskbar-tracker libtracker-gtk0 deskbar-applet fast-user-switch-applet tomboy
Move all backgrounds to /usr/share/backgrounds/
Move all GDM themes to /usr/share/gdm/themes/
Move all other themes to /usr/share/themes/
Move all icons & cursors to /usr/share/icons/
Likewise, move all usplash themes somewhere in /usr/share/, or splashy themes to /etc/splashy/themes/
Make your graphical changes (GNOME, KDE, etc.). I use GNOME, and I like to move my volume applet to the top right for easy wheel scrolling of volume. Everybody I know that uses Ubuntu says that's their favorite part about the way I configure it for them. I add the weather applet to the left of the volume applet, and then I add the system monitor applet somewhere on the top panel and enable the memory, networking, swap, & hard disk graphs. I lock the applets and panels. It's best to organize these applets thru the gconf-editor. Then, I right-click the applications menu to edit it and do a little trimming. I use the GNOME Keyboard app to make the CapsLock an extra Ctrl key. I also edit the GNOME "Sessions" and "Services" apps to trim them down to something I find more reasonable (i.e. - no bluetooth, no automatic upgrade manager, & no "user folders update", among other things). Then I use sysv-rc-conf to trim some more. If you want to use Compiz Fusion, it's prolly best to install fusion-icon and switch to metacity right before copying your config files to /etc/skel/. I make sure Nautilus, Firefox [extensions], and other programs are setup the way I like...


COPY WORTHY CONFIG FOLDERS TO SYSTEM WIDE FOLDERS
Don't copy .xchat/ as it saves your username in the config.
Don't copy .wine/ as it is very problematic, try using the global wine folder, which is (??).
Clear all Firefox cache and GNOME Recent Documents cache right before doing this.
Clearly, you must be a superuser to do this, so don't forget about sudo. Now might be a good time to use sudo's -s switch so you don't need to type sudo before all these commands:
sudo -s
cp -Rf .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ /etc/skel/
cp -Rf .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ /root/
cd /etc/skel
chown -R root:root .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/
cd /root
chown -R root:root .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/

GDM
Use GNOME "Login Window" app to select your new theme and login background colors.
Remember the HEX values for the color, as you'll need them later.
Search for the terms GraphicalTheme & GtkTheme in these two files and you'll see 4 variables you need to change your GDM theme, GtkTheme, and 2 background color for pre- and post-login. Should be near lines 504, 347, & 466.
sudo <EDITOR> /etc/gdm/gdm.conf
sudo <EDITOR> /etc/gdm.conf-custom

BOOT SPLASH
Only way I know of to customize Usplash is to use the Startup Manager program.
Using most Usplash themes was buggy for me on recent versions of Ubuntu.
As long as the theme works on your computer, it should work on both the dist cd & dist install.
Splashy is an easy alternative to Ubuntu's default Usplash.
Splashy allows you to create boot, shutdown, suspend, resume, & error images of your choice with a progress bar. Just make sure to use PNGs otherwise you'll get an Error -3.
Simply this command to create splashy themes:
splashy -c

BOOT LOADER
This is only for the CD, it will not copy to the dist install as ubiquity & update-grub create a custom Grub config for the new system during install.
If you want to alter the installed Grub, update-grub must be altered, then the package must be flagged to never upgrade.
You could also choose ISOLINUX if GRUB doesn't work on some extremely rare chipsets.
EDIT the Grub config files in /etc/remastersys/grub/:
sudo <EDITOR> menu.lst.gutsyandbefore -OR- menu.lst.hardyandlater
CREATE Grub background & move to proper folder:
convert infile.jpg -resize 640x480 -colors 14 -depth 8 splash.xpm.gz
mv splash.xpm.gz /etc/remastersys/grub/
If you plan on editing the update-grub script to reflect your changes on the installed system, you can move your splash image to the shared folder:
mv splash.xpm.gz /usr/share/grub-installer/splash.xpm.gz

PRESEEDING
Preseeding allows you to customize what variables are passed to the Ubiquity installer, but it only works if you use ubiquity's --automatic switch. I don't need to make it automatic for everybody yet, but whenever I install it I can simply press Alt+F2 and type in "ubiquity --automatic" so that my language, time zone, & keyboard layout are automatically passed to the installer. I only use this in my config right now, but there are more options available which can be seen here, in this example guide (https://help.ubuntu.com/8.04/installation-guide/i386/appendix-preseed.html).
Eventually remastersys will copy all preseeds from the /etc/remastersys/preseed/ folder for multiple machines and/or purposes.
Until then, just add your own preseed options to /etc/remastersys/preseed/custom.preseed


# Locale sets language and country.
d-i debian-installer/locale string en_US

# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
#d-i console-setup/modelcode string pc105
d-i console-setup/layoutcode string us
# To select a variant of the selected layout (if you leave this out, the
# basic form of the layout will be used):
#d-i console-setup/variantcode string dvorak

# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean false

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string US/Central

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
#d-i clock-setup/ntp-server ntp.example.com

STATIC DNS (OpenDNS), EVEN WITH DHCP
EDIT resolvconf:

sudo -s
mkdir /etc/resolvconf/resolv.conf/
<EDITOR> /etc/resolvconf/resolv.conf/base
+ ADD:
nameserver 208.67.222.222
nameserver 208.67.220.220

EDIT the DHCP client:

<EDITOR> /etc/dhcp3/dhclient.conf
+ REPLACE the "#prepend domain-name-servers" line with this:
prepend domain-name-servers 208.67.222.222,208.67.220.220;

RESTRICTED FIRMWARE AND DRIVERS
It's prolly a good idea to add restricted hardware drivers or firmware, especially for wireless networking.
It's also prolly a good idea to let the jockey-gtk "Hardware Drivers" app juggle between the multiple Nvidia and ATI drivers *after* installation. There are older, legacy graphics cards that won't work with the newest drivers from these manufacturers' websites.
I only wanted to support all the wireless cards possible and NTFS support for easy resizing of Windows partitions, so I installed these packages:

sudo aptitude install b43-fwcutter ndisgtk madwifi linux-restricted-modules ntfs-3g ntfs-config

USB PERSISTENCE
If using 8.10 or later, simply use the usb-creator tool, which is installed by default in Intrepid.
If using 8.04 LTS, you can add usb-creator by following these instructions (http://ubuntuliving.blogspot.com/2008/11/usb-creator-for-hardy.html)... however, persistence still won't work with the default 8.04 initrd.
As long as you can copy and paste, it might be easier to just ignore this program and follow these manual instructions... (NOTE: Everything before the fdisk command must be run before remastersys dist to work properly)


---- BEGIN PREPARATION ----

sudo -s
<EDITOR> /usr/share/initramfs-tools/scripts/casper (for 8.04 and earlier ONLY)
+ REMOVE this section: ",mode=755"
<EDITOR> /usr/share/initramfs-tools/init (for 8.04 and earlier ONLY)
+ ADD the lines preceded by a + between the lines preceded by a *:
* break)
* break=premount
* ;;
*
+ persistent)
+ PERSISTENT=yes
+ root_persistence=casper-rw
+ home_persistence=home-rw
+ ;;
+
* esac
For all versions of Ubuntu, if you'd like to take away the prompt at shutdown to remove the CD from the tray and press ENTER, consider this step [...'cause I'm not positive it's the right solution]:
chmod -x /etc/rc[06].d/*casper
Now re-run remastersys to implement these new initramfs changes:
remastersys clean; remastersys dist

---- END PREPARATION ----

fdisk /dev/sd<X> (replacing <X> with what you believe, 110% sure, is your flash drive)
Now, add 2 to 4 partitions depending on the size of your distro, whether you want a separate partition for your home directory, and whether you want a FAT16/32 partition for easy access on Windows machines. Make sure the first partition is bootable. Now format and label your partitions:
mkfs.ext2 -L <distroName> /dev/sd<X>1
mkfs.ext2 -L casper-rw /dev/sd<X>2
mkfs.ext2 -L home-rw /dev/sd<X>3
mkfs.vfat -F 16 -n files /dev/sd<X>4
Now pull out the drive & plug it back in.
cd /media/cdrom/
cp -R boot boot.catalog casper/ .disk/ md5sum.txt preseed/ README.diskdefines /media/<distroName>/
cd /boot/grub/
cp ./*stage* /media/<distroName>/boot/grub/
<EDITOR> /media/<distroName>/boot/grub/menu.lst
+ ADD a boot menu along these lines...

default 0
timeout 7

#color cyan/blue white/blue
#splashimage=/boot/splash.xpm.gz

title Start Ubuntu in Graphical Mode
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper root=/dev/ram rw persistent
initrd /casper/initrd.gz

#title Install Ubuntu
#kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper root=/dev/ram #only-ubiquity
#initrd /casper/initrd.gz

title Start Ubuntu in Demo Mode
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper root=/dev/ram
initrd /casper/initrd.gz

title Start Ubuntu in Safe Graphical Mode
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper root=/dev/ram xforcevesa rw persistent
initrd /casper/initrd.gz

#title Start Ubuntu in Text Only Mode
#kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper root=/dev/ram #textonly rw persistent
#initrd /casper/initrd.gz

#title Check the CD/DVD for defects
#kernel /casper/vmlinuz boot=casper integrity-check
#initrd /casper/initrd.gz

title Memory Test
kernel /boot/memtest

title Boot the First Hard Disk
root (hd1)
chainloader +1
Install grub to the MBR of the flash drive:
grub
$ grub > geometry (hd <Press TAB key now, making sure to realize which one is your USB>
$ grub > root (hd<1>,0)
$ grub > setup (hd<1>,0)
$ grub > quit

ADD WUBI TO YOUR DIST
For right now, there's a decent bit of editing to /usr/bin/remastersys and /etc/remastersys.conf.
Just read the Remastersys + Wubi Guide (http://ubuntuforums.org/showthread.php?t=1062504), which I'm thinking could be made simpler by just offering a copy of the edited remastersys script.

grndslm
February 19th, 2009, 05:12 PM
Made a couple changes for clarification.

blazemore
February 19th, 2009, 09:06 PM
USB persistance can be achieved with the USB Creator tool in Intrepid. You could make your Debian or Hardy based distro, then use an Intrepid installation to make a persistant bootable USB :)

grndslm
February 20th, 2009, 11:57 AM
USB persistance can be achieved with the USB Creator tool in Intrepid. You could make your Debian or Hardy based distro, then use an Intrepid installation to make a persistant bootable USB :)Say Wha?!?

I've had a huge Xorg problem by merely upgrading the default Ubuntu packages from Intrepid & Jaunty on a couple Intel video laptops I have... so I'd like to stick with Hardy or maybe try out Debian whenever I've got a lotta free time.

Soo... how can I use the Intrepid installation to make a Hardy based distro persistent?? I see things like usb-creator and Unetbootin. Is the tool in Intrepid different from usb-creator? Does the Intrepid tool make USB persistence from any LiveCD, such as one I create with remastersys??

joborohe
February 22nd, 2009, 11:16 AM
Hey Guys

when I follow CapInk's guide on remastersys' website http://www.remastersys.klikit-linux.com/capink.html

everything work except the home user (after install) has no folder in his directory and if I create one, it goes directly on the desktop. Does anyone have a fix for this?

thanks

blazemore
February 23rd, 2009, 05:32 AM
What you can do is this:

1. Make your remastersys distro. It's really easy to do this, you can use the small "tutorial" on the website.

2. Copy your iso onto a USB flash drive or something

3. Boot from the Intrepid LiveCD, move your iso file from the USB to the Desktop, go to System->Administration->Make USB startup disk (or something)

4. Select the iso file, and select the USB stick you want to install to

5. Select how much of the USB stick you'd like to dedicate to persistance. If the USB stick is going to be used exclusively as a liveUSB, you can safely set this to maximum.

darthchaosofrspw
February 23rd, 2009, 10:53 AM
I've been messing with Remastersys since Feb. when I created my first remaster of gOS Rocket E. Lately I've been using Remastersys with Xubuntu Hardy to create my own customized XXCE distro. Adding a bunch of web apps and changing all the default graphics and stuff to make it XXCE and not just an Xubuntu ripoff. The last one I did was after I installed LXDE and uninstalled Xfce4. (I also had to remove network-manager and install Wicd.)

grndslm
February 23rd, 2009, 04:07 PM
5. Select how much of the USB stick you'd like to dedicate to persistance. If the USB stick is going to be used exclusively as a liveUSB, you can safely set this to maximum.Thanks for the instructions. I realized that the application in Intrepid is usb-creator, which can be added to Hardy... so I shouldn't need the Intrepid LiveCD.

I did need an explanation of what the slider was for allocating how much persistence space you wanted. Seems like what isn't used is available for traditional flash drive usage.

grndslm
February 23rd, 2009, 04:09 PM
Hey Guys

when I follow CapInk's guide on remastersys' website http://www.remastersys.klikit-linux.com/capink.html

everything work except the home user (after install) has no folder in his directory and if I create one, it goes directly on the desktop. Does anyone have a fix for this?

thanks
You might be better off asking at the remastersys forum, linked to at the top of this guide. Just curious, tho... what's wrong with just running remastersys backup or remastersys dist... or simply altering the /usr/bin/remastersys script if it isn't exactly what you want??

grndslm
February 23rd, 2009, 07:47 PM
UPDATED...

- Fixed /etc/remastersys.conf path.
- Added STATIC DNS (OpenDNS) section
- Added USB PERSISTENCE section.
- Found one more thing for me to look into -- restricted firmware.

I've always bought Intel-based laptops because I knew they had open source drivers. Yesterday, I ran across a lappy with Broadcom wireless (yucky!). The firmware and "firmware cutter" were obviously not on the LiveCD, so I couldn't get online. I'm not around the computer at the moment, but I'm wondering if anybody else has remastered a LiveCD with the firmware already in place at /lib/firmware/ ?? Would Jockey still be needed to enable the driver? ... or would it then be capable of auto-detection on boot from the CD/DVD?

grndslm
February 23rd, 2009, 10:27 PM
Supposedly it will automatically be loaded at boot... so that's great news. Can't wait to test it out tomorrow.

Do you guys know of any other such restricted firmware/drivers, particularly in the networking department (I'm certainly familiar with both NVidia & ATI)??

grndslm
February 26th, 2009, 02:06 AM
UPDATED once more... this is easier than I thought.

JECHO
February 26th, 2009, 02:49 AM
Hey Guys

when I follow CapInk's guide on remastersys' website http://www.remastersys.klikit-linux.com/capink.html

everything work except the home user (after install) has no folder in his directory and if I create one, it goes directly on the desktop. Does anyone have a fix for this?

thanks

i have had that same problem using eeebuntu so im sure the fix is the same... go here: http://forum.eeebuntu.org/viewtopic.php?f=26&t=783

and follow the "How to do it yourself" post. :)

grndslm
March 5th, 2009, 11:14 PM
Soo... anybody else find this useful?

Or are there more general tips like these that you feel most people would benefit from?

phpadik
March 7th, 2009, 02:53 PM
Thank you very much for this very informative guide. Our organization is planning to remaster Ubuntu. We are targetting fellow students.

We are planning to make 2 remasters, one for Computer Science/Electrical Engineering/Electronics and Communications Engineering/Computer Engineering students and another one for the other students.

The difference will be the first remaster will have preinstalled IDEs and compilers. Both of them will have the usual apps needed by students.

tsedrey
March 7th, 2009, 06:00 PM
This is a great guide, thank you.

I have been desperately trying for the last few days to get remastersys to do exactly what I want.

My friends are semi-against linux and they told me that if I could recreate my desktop into a liveCD, they'd try it. So, I installed a fresh copy on a new partition and installed the programs, made some visual tweaks, etc. I've tried both dist and backup options and I am still having trouble with a few things, maybe they aren't possible, maybe they are...I could use some help please. I am also using 8.10, which may be the cause of some of the issues.

-Emerald theme does not work on the liveCD (not that surprising), but it doesn't work after install either.
-I have added conky to sessions, and it works fine for me, but on the liveCD and after the install it doesn't work.
-I disabled the splash screen, but it still comes up for the liveCD and after install

Basically (and I don't know if this is possible), I want to take an exact snapshot of the partition I have, reproduce it on a liveCD so that my friends can play around with it and then install it if they want with their user name/information.

Can this be done?
Thanks,
David

grndslm
March 12th, 2009, 02:15 AM
We are planning to make 2 remasters, one for Computer Science/Electrical Engineering/Electronics and Communications Engineering/Computer Engineering students and another one for the other students.

The difference will be the first remaster will have preinstalled IDEs and compilers. Both of them will have the usual apps needed by students.
I wish I woulda had an EE distro when I was in college, so I wouldn't have had to install XP.

BTW, Geany was a nice, lightweight semi-IDE. I liked it at least.

grndslm
March 12th, 2009, 02:24 AM
This is a great guide, thank you.

I have been desperately trying for the last few days to get remastersys to do exactly what I want.

...

Basically (and I don't know if this is possible), I want to take an exact snapshot of the partition I have, reproduce it on a liveCD so that my friends can play around with it and then install it if they want with their user name/information.

Can this be done?
Thanks,
DavidRemastersys is definitely the tool for the job. I've definitely gotten more working with Remastersys than I ever thought I'd be able to do at this point in time. The key is to understand how all other individual apps work, where their configs go, what's in those configs, etc. Copy the right ones to /etc/skel/ and you're all set.

A good way to test the /etc/skel/ folder out is to simply create a new user with the adduser command and then login and you should see your dock, etc. If something doesn't work, the configs aren't setup.

As for the splash screen, I'm assuming you're referring to Usplash, in which case you pretty much must use startupmanager. It should automatically invoke the "update-initramfs -u" command as you close the app. If you really want to get rid of usplash, you could certainly "sudo aptitude purge usplash" as well.

May the Force be with you all!

grndslm
March 12th, 2009, 02:58 AM
Also... don't forget that the LiveCD must use a basic window manager, like metacity. 3D Effects, like Compiz, aren't supported because Ubuntu's casper scripts automatically disable the fglrx & nvidia drivers.

munishvit
March 13th, 2009, 12:55 AM
Hey guys
Using 'create a USB startup disk', I installed my distro ISO image to USB. But when trying to use this live USB on my friends system, I get the following message:
SYSLINUX 3.53 Debian-2007-12-11 EBIOS Copyright (C) 1994-2007 H. Peter Anvin
Could not find kernel image: linux
boot:

Here the detail what I did:
On a fresh installation of Ubuntu 8.04, I ran update-manager, then installed following packages:
Sun java 6 jre (bin gets automatically installed)
Sun java 6 plugin
CHM Viewer
StarDict
VLC
Amarok
Qalculate
ISO Master
Ex Falso
GStreamer ffmpeg video plugin
GStreamer extra plugins
NTFS configuration tool
Advanced Desktop Effects Settings (ccsm)
Gmount-iso
tcsh
build-essential
flashplugin-nonfree
nrg2iso
remastersys

and then uninstalled the following:
Audio CD Extractor
Calculator
F-Spot Photo Manager
XSane Image Scanner

then,
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo -s
cp -Rf .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ .openoffice.org2/ /etc/skel/
cp -Rf .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ .openoffice.org2/ /root/
cd /etc/skel
chown -R root:root .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ .openoffice.org2/
cd /root
chown -R root:root .config/ .fontconfig/ .gconf/ .gconfd/ .gnome2/ .mozilla/ .nautilus/ .openoffice.org2/

from gui, using 'remastersys backup' tool I picked 'clean' and then 'dist' to get the image. Then finally installed 'usb-creator' and to get live-USB.

but its not working, perhaps because of apt-get autoremove.
Could anyone tell, is there problem in image itself or I need to give some command at boot?
thanks

munishvit
March 13th, 2009, 03:31 PM
Hey guys
Using 'create a USB startup disk', I installed my distro ISO image to USB. But when trying to use this live USB on my friends system, I get the following message:
Could anyone tell, is there problem in image itself or I need to give some command at boot?
thanks

Can anybody help me? Please...

grndslm
March 13th, 2009, 08:12 PM
Sorry, dude!! I just got my 32GB flash drive in the mail today... so I haven't even gotten to that part yet.

I couldn't imagine apt-get autoremove being your problem, and I also don't see why you'd use it after you use apt-get clean. I think clean should be all you need.

I'm guessing your issue prolly has something to do with the boot loader. If you really want to figure it out, I'd highly recommend stopping by the Remastersys forum (http://loscompanion.com/forums/index.php#6) and asking Fragadelic, the Remastersys developer.

munishvit
March 14th, 2009, 01:21 AM
Sorry, dude!! I just got my 32GB flash drive in the mail today... so I haven't even gotten to that part yet.

I couldn't imagine apt-get autoremove being your problem, and I also don't see why you'd use it after you use apt-get clean. I think clean should be all you need.

I'm guessing your issue prolly has something to do with the boot loader. If you really want to figure it out, I'd highly recommend stopping by the Remastersys forum (http://loscompanion.com/forums/index.php#6) and asking Fragadelic, the Remastersys developer.

I would have tried burning the image on CD if it would have been less then 700MB. Well, as I gave all the details about what I did; what do you think, could there be any problem in image itself?
I will try to get it burned on DVD and then try to boot.
Anyway, thanks for your recommendation.

grndslm
March 14th, 2009, 04:34 AM
You could also try adding a vanilla Ubuntu ISO to the USB for starters... and then go one by one. It's prolly got something to do with initrd??

munishvit
March 15th, 2009, 02:31 AM
You could also try adding a vanilla Ubuntu ISO to the USB for starters... and then go one by one. It's prolly got something to do with initrd??

I'll try...thanks

Edit:
Customized Live Image was perfectly fine, just had problem with Live-USB...that too is solved using unetbootin.
http://loscompanion.com/forums/index.php?topic=6690.0

grndslm
March 21st, 2009, 07:06 PM
I'm about to add some more stuff later today...

Get ready!!

ranch hand
March 21st, 2009, 10:15 PM
This is a great thread and how to. Thanks a bunch.

I have already made on remaster of 8.10 and am going to do another now that I know what I do not and do like from the first (ain't RW great). This thread will make my life a lot easier.

grndslm
March 22nd, 2009, 02:47 AM
RW *is* great. I can't get all of my config files to save with USB persistence, tho. Some things seem to save, while others don't.

Anyway, I updated the USB Persistence section as much as I could tonight (getting tired) and a couple Remastersys links, like the new Remastersys forum home.

Tomorrow, I should be able to add another section on what files are good candidates to remove if you're running outta space... and I'll be trying to see if I can clean the formatting up a bit, but it gets more and more difficult as I add new sections.

grndslm
March 22nd, 2009, 06:41 PM
UPDATED...

Added the section on suggested packages to remove and changed formatting for easier readability.

grndslm
March 23rd, 2009, 09:25 PM
UPDATED a few minor things... and mostly made the guide more portable between different forums.

grndslm
April 4th, 2009, 03:08 AM
Now the guide lists the new remastersys repositories.

Hopefully within the next week I'll find some time to finish the USB persistence section... like how to customize global Firefox settings/extensions, how to properly disable the prompt at shutdown/reboot to eject the CD and hit enter, pros & cons of fat16, fat32, ext2, & ext3, if compressing a distro customized for usb persistence is actually beneficial, etc. Stay tuned!

Hybodus
April 4th, 2009, 07:49 PM
I am an admin on a Uk Chat server which does a nightly internet radio show for our chatters. We have quite a few requests to be DJ's but due to microsoft software this is not always possible, software not compatible, driver issues, I'm sure you can understand.
Since I have an interest in linux I was looking for an alternative, which I have found, but would appreciate a little help/pointers to fullfill
I can create a live cd no problem using the following:

Using ubuntu mini I have built a system but I am stuck on automounting local drives. I need automounting due to most of the users been windows based and having them delve into the terminal will result in disaster.

From Ubuntu mini, installed xorg, slim, openbox, fbpanel, thunar, thunar-volman, xfce4-mixer, feh, idjc and its dependents. I can install Remastersys and have a working live cd but for the automounting.

I have a basic system that works and looks reasonable for a newbie but the automounting is stopping further progress. I need all local drives to be automounted so that a user only needs it to be clicked on to activate.
Any pointers would be appreciated, thank you

Hybodus

I changed thunar and thunar-volman for nautilus and gnome-volume-manager and its working as I want now :)

grndslm
April 7th, 2009, 07:19 PM
I have not heard of Ubuntu Mini. Is it the minimal Ubuntu install... or Ubuntu Mini Remix?

Either way, perhaps you'd wanna tell Fragadelic about it here: http://loscompanion.com/forums/index.php?topic=3380.0

slickvguy
April 14th, 2009, 01:22 AM
... how to properly disable the prompt at shutdown/reboot to eject the CD and hit enter

/etc/rc0.d/S89casper --> /etc/init.d/casper

Not sure if it's "proper", but I commented a few lines and it seems to work ok.


# eject -p -m /cdrom >/dev/null 2>&1

[ "$prompt" ] || return 0

stty sane < /dev/console

# XXX - i18n
# echo "Please remove the disc and close the tray (if any) then press ENTER: " > /dev/console
# if [ -x /sbin/usplash_write ]; then
# /sbin/usplash_write "TIMEOUT 86400"
# /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
# /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
# fi

# read x < /dev/console

chang5562
April 16th, 2009, 07:34 PM
grndslm:
I a newbie of ubuntu. I tried to learn more of LiveCD. I basically created a LiveCD with remastersys by Backup mode, since I modified my ubuntu 8.10 (kernel 2.6.27) to my need. I want to create a LiveCD so that I can use it to install on my Desktop. I tested a little by creating the bootable iso on a USB stick with usb-creator. It booted OK itself. How can I create a GRUB that have the "Install" menu. I noticed that the syslinux.cfg file has the term- Install, but it did seem work even I changed the TIMEOUT to 30 secs. It still run the Live mode from the Stick.

I referenced to your article by creating a /boot/grub and follow the bottom half of your paper, a menu.lst and all stage files into there. But I still could not do Install. When I run, I got a messaage -"Can't find file" for either kernel /casper/vmlinuz.. initrd /casper/initrd.gz or without /casper.

The remastersys create both vmlinuz and initrd under the /casper. without the adding grub, the USB can boot my customized Ubuntu. but I want to install. Can U help? I may be missing sth.

grndslm
April 17th, 2009, 01:24 PM
I am newbie in ubuntu world. And this guide is very usefull for me. really helpful guideThanks a bunch, man! That's just the kinda inspiration I need to do some more tweaking.

/etc/rc0.d/S89casper --> /etc/init.d/casper

Not sure if it's "proper", but I commented a few lines and it seems to work ok.


# eject -p -m /cdrom >/dev/null 2>&1

[ "$prompt" ] || return 0

stty sane < /dev/console

# XXX - i18n
# echo "Please remove the disc and close the tray (if any) then press ENTER: " > /dev/console
# if [ -x /sbin/usplash_write ]; then
# /sbin/usplash_write "TIMEOUT 86400"
# /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
# /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
# fi

# read x < /dev/console
Thanks, man! That would probly be the proper way, alright. AWESOME! I love it when I don't have to do all the work. I will add it to the guide as soon as I confirm it works the way one would expect it to.

grndslm:
I a newbie of ubuntu. I tried to learn more of LiveCD. I basically created a LiveCD with remastersys by Backup mode, since I modified my ubuntu 8.10 (kernel 2.6.27) to my need. I want to create a LiveCD so that I can use it to install on my Desktop. I tested a little by creating the bootable iso on a USB stick with usb-creator. It booted OK itself. How can I create a GRUB that have the "Install" menu. I noticed that the syslinux.cfg file has the term- Install, but it did seem work even I changed the TIMEOUT to 30 secs. It still run the Live mode from the Stick.

I referenced to your article by creating a /boot/grub and follow the bottom half of your paper, a menu.lst and all stage files into there. But I still could not do Install. When I run, I got a messaage -"Can't find file" for either kernel /casper/vmlinuz.. initrd /casper/initrd.gz or without /casper.

The remastersys create both vmlinuz and initrd under the /casper. without the adding grub, the USB can boot my customized Ubuntu. but I want to install. Can U help? I may be missing sth.You can use either syslinux or grub. Once you have the proper syntax in the boot menu (in grub, that means having "root=/dev/ram rw persistent" in the kernel line for your persistent session), you need to follow the steps to install grub to your hard drive (which must have a partition with a bootable flag). Syslinux has its own syntax for the boot menu and its own command to install itself to the hard drive.

If you still can't manage to figure it out after that, I would stop by the Remastersys Forum (http://www.geekconnection.org/remastersys/forums/index.php) and ask the developer of Remastersys, even tho this problem is outside the scope of the Remastersys script. Somebody there can definitely help you.

Have a good day!

chang5562
April 17th, 2009, 07:32 PM
grndslm:
Thanks. This time I carefully repeated (by typing) the step of creating the menu.lst and the grub steps, it works!!.:D

But this is not what I really want. Maybe I did not make clear of my intention.

Since I modified my Ubuntu and created an image of it and put on LiveUSB. I hope I can use this to install onto the HD of my Desktop. Clearly this LiveUSB only runs in the memory (as /dev/ram). How can I install the image into the HD, like regular Ubuntu, which has to go through all those installation steps (ie. language, keyboard, partition, assign user...)

Should Remastersys include sth else?

Thanks.

dot2kode
April 17th, 2009, 09:15 PM
@grndslm

Very nice guide man..Thanks for taking the time to put this all together...much appreciated... :D

I started using this for full system backup's on dvdrw's with rsync for nightly /home...works great...plus you can have a copy of your system on a dvd/usb to take with with you...very nice application..Keep up the good work bro... =D>

grndslm
April 20th, 2009, 03:23 AM
grndslm:
Since I modified my Ubuntu and created an image of it and put on LiveUSB. I hope I can use this to install onto the HD of my Desktop. Clearly this LiveUSB only runs in the memory (as /dev/ram). How can I install the image into the HD, like regular Ubuntu, which has to go through all those installation steps (ie. language, keyboard, partition, assign user...)

Should Remastersys include sth else?
If the live cd works... you should be able to run ubiquity. I think it's a dependency of remastersys. Pretty sure there should be an icon on your desktop??

chang5562
April 20th, 2009, 01:04 PM
grndslm:
thanks again for ur help.

How stupid I was? I removed the ubuquity.desktop, the install icon disappeared. However, I am wondering why the "Install" from the grub menu, either set-up from the original syslinux or by the GRUB creation process, did not work?

anyway, I am going to run - install, to make sure my modification is still there.

grndslm
April 20th, 2009, 01:22 PM
The boot menu options are a little funny right now, for sure. I think the text install only works for Debian systems right now or something. Fragadelic's supposed to release a version of remastersys that enables text installs for Ubuntu, but we can only wait for now.

Ubiquity's the way to go for now.

grndslm
May 1st, 2009, 04:04 PM
Anybody use 9.04 with Remastersys??

grndslm
May 1st, 2009, 04:09 PM
Also, can I add tags to a thread that was already created, like this one?? Just wanted to add a few tags like... remastersys, customization, customize, custom, distro, distribution

Is that possible?

joborohe
May 13th, 2009, 10:57 AM
anyone experience cups problems on your remaster copy?

everytime i do it i have to completely remove cups, manually delete the folder /etc/cups and then reinstall to work.

just wondering if you guys knew how to avoid that.

Fragadelic
May 19th, 2009, 02:34 PM
anyone experience cups problems on your remaster copy?

everytime i do it i have to completely remove cups, manually delete the folder /etc/cups and then reinstall to work.

just wondering if you guys knew how to avoid that.

You're using an old version of remastersys. I believe I fixed it in 2.0.12. The problem is that the ssl keys are only valid for the actual initial install and the livecd but after it is installed they become invalid. ssl keys are removed in the 2.0.12 version.

thepianist
May 24th, 2009, 01:11 PM
Hi first of all , thanks for your work !

I read the thread but I couldn't understand how to edit kernel options.
My problem is that I need to make a dist which contains special option to recognize a touchpad , I need this option in live and in install versions

When I inspect /home/remasterys/remastersys/dummysysv , I didn't finf /boot directory :-(

If you can help me ... Thanks !!

grndslm
July 19th, 2009, 01:47 AM
Hi first of all , thanks for your work !

If you can help me ... Thanks !!No problem, man.

Unfortunately, I can't help you.

I've actually have been away from the keyboard for FAAAAARR too long. Had a problem with my mobo that was "oxidized", waiting for warranty, didn't go thru, waited to receive mobo to try the "baking method" as seen on Hardforum and OCforums, didn't work, researching a mobo, getting an open box item from Newegg, it didn't work, so i had to wait for them to approve the RMA, blah blah... just ended up getting a cheap board that wouldn't allow me to use all 4 of my memory cards. I'm kinda pissed.

Anyway, It's gonna take me a lotta time to get back into the groove of things, as I need to merge files between so many different computers and just get my shiz organized again. Once I'm reorganized, I'll be back in action. It might take awhile, tho, because I've got a few other large tasks on the plate right now.

Any new tips from more experienced users or experiences from new users are most welcomed!!

grndslm
August 27th, 2009, 02:38 PM
:KS:guitar::KS - shameless bump - :KS:guitar::KS

grndslm
October 4th, 2009, 09:40 PM
:KS:guitar::KS - ONE MO' TIME - :KS:guitar::KS

I'll be updating this whenever Karmic Koala is officially released on October 29th. WOO HOO! :popcorn: I'm about to test out the Beta right now to see how things have improved in Ubuntu Land. I have a laptop that's still using Gutsy, but it's not getting anymore updates... and even Hardy is starting to get a bit long in the tooth. I skipped Jaunty, so hopefully the Karmic Beta will lift up my spirits again. I think it will.

I'll get a Karmic refresh on all my computers and then I'm gonna pick up a smartphone with WebOS or Android to keep on geekin' on. :shock:

grndslm
November 7th, 2009, 01:43 AM
Anybody get any use outta this?

I've been too slammed to think about Remastersys, but oh how I wish I had the time or a spare computer to mess with this stuff again.

kartal
November 16th, 2009, 11:25 AM
Hi

I think I successfully created my .iso. Can I get rid of "ISOTMP and "dummysys"? Would they need to be around the iso at all?

thanks

grndslm
November 21st, 2009, 02:45 AM
As long as you can see the ISO, you should be good to go. You can add it to a virtual machine or you can go ahead and burn it to test out on another computer. You might wanna keep the ISOTMP, etc. if you later discover that there's only one file you'd like to edit before actually burning the ISO. It provides you a way to remake the ISO quicker if you erred.

My DVD burner just broke when I was labeling about 200 CDs I have that weren't labeled to begin with!! I'll be getting back into this within the next month or two for sure.

Fragadelic has released version 2.0.13 just for Ubuntu Karmic, so you guys might wanna get that if that's what you're gonna use as your foundation. I'll update the guide to reflect this new version as soon as I get my DVD drive.

](*,)

grndslm
November 25th, 2009, 02:05 AM
BAM!!

Karmic version added to OP (http://ubuntuforums.org/showthread.php?t=1073838).

Anybody else having any success? Or even failures?

grndslm
December 29th, 2009, 01:19 AM
Well...

I've got a new DVD burner and an SSD drive for my OS.

:guitar:

Hopefully I can do some work now.

:):):)

grndslm
February 11th, 2010, 03:22 PM
Hmm... no time for me.

How about you? :D

grndslm
March 18th, 2010, 07:01 AM
You guys don't mean to tell me that NONE of you can create your own customized Linux distribution??

I can... :P