Create your own Linux Joomla! Demo CD
Article Index
Create your own Linux Joomla! Demo CD
Step by Step Instructions
Test and Clean up
Tips
 

Step by Step instructions to making your own CD under Linux 

1. Create your joomla website on your development system.

2. Create a work directory on your local machine

mkdir/path_to/work

3. Export your Joomla database as a MySQL dump.

To do this, you could use a program such as mysqldump or PHPMyAdmin.

4. Save the dump, following the scheme: name_of_the_database.sql

VERY IMPORTANT the name_of_the_database must be the same as the name of the database in your configuration.php

5. Pack the MySQL dumps into a tarball called mysql-dumps.tar.gz (Note the tarball must have this name)

tar czf mysql-dumps.tar.gz *.sql .

6. Now move the tarball to the work directory.

mv mysql-dumps.tar.gz /path_to/work

7. Edit configuration.php with your favourite text editor to be:

$mosConfig_host = 'localhost';
$mosConfig_user = 'root';
$mosConfig_password = '';
$mosConfig_absolute_path = '/var/www';
$mosConfig_live_site = 'http://localhost';
$mosConfig_cachepath = '/var/www/cache';

8. Save the website to a tarball called htdocs.tar.gz (Note the tarball must have this name)

tar czf htdocs.tar.gz /path_to_website_root/*

 

VERY IMPORTANT Make sure you do not include any backup files or your original configuration.php

9. Now move the tarball to the work directory.

mv htdocs.tar.gz /path_to/work

10. Download lamppix-mini-iso-1.1.iso it is 150Mb in size.

11. Create a new directory on your local machine called source

mkdir /path_to/source

12. Mount the .iso image of lamppix

mount -o loop lamppix-mini.iso /path_to/source

13. Create a new directory on your local machine called master

mkdir /path_to/master

14. Copy the contents of source to master

cp -a /path_to/source/* /path_to/master/

15. Copy the tarballs from your work directory to the master/www directory

cp /path_to/htdocs.tar.gz /path_to/master/www/
cp /path_to/mysql-dumps.tar.gz /path_to/master/www/

16. Create a new .iso image

mkisofs -V "LAMPPIX" -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o my-joomla-demo.iso /path_to/master
VERY IMPORTANT. This should be all on one line

17. You are now ready to burn the CD

e.g. cdrecord -v -eject dev=0,0,0 /path_to/my-joola-demo.iso