Jump to: navigation, search

Customizing Ubuntu Desktop CD

769 bytes added, 21:35, 27 June 2008
Adding our packages
==Adding our packages==
For the sake of simplicity, let's assume that you have collected all the packages you want to add in a separate directory <code>new/debs</code> relative to your working directory. That is, there's <code>new</code> dir with the subdir <code>debs</code> where all the deb packages are collected. Let's copy all these packages onto the target filesystem (any place will do for now, but I chose <code>/root</code>): <pre>cp new/debs/* squash/root/</pre> Then we will prepare <code>chroot</code> environment like so: <pre>mount -t proc proc squash/proc
mount -t sysfs sysfs squash/sys</pre> and then we will "change root" (<code>chroot</code>) to that target filesystem and install packages. <pre>chroot squash dpkg -i /root/gramps_3.0.1-1_all.deb</pre> Changing root means we will see '''only''' the target filesystem as if we were trully running it it and it were our root filesystem. So the above command changes root to <code>squash</code> and then runs <code>dpkg -i /root/gramps_3.0.1-1_all.deb</code> command to install GRAMPS. You will need to repeat that line for every package you want to install. After you are done, remove the debs from the <code>/root</code> of the target: <pre>rm squash/root/*.deb</pre> If you'd like to modify the desktop look, set up custom launchers for the user and the like, you would need to copy all this stuff into <code>/etc/skel</code> of the target. This is because no user accounts exist yet, and there is no way to modify the home directories. But the <code>/etc/skel</code> gets copied into the new home directory of every new user. <pre>for fl in `ls -A new/home`; do cp -R new/home/$fl squash/etc/skeldone</pre> The thing is, some of that contents may be files and some are directories like <code>.gramps</code> which will need to copy recursively.

Navigation menu