SLAMPPLiveCD : HowTo

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2010-03-05 04:06:30 by KemasAntonius

Additions:
http://slampp.abangadek.com/dl/slampp_gettingfilesoncd.tar.gz

Deletions:
http://lamppix.tinowagner.com/wiki/index.php?GettingYourFilesOnTheCD



Edited on 2005-11-22 09:05:41 by KemasAntonius

Additions:
Wait for a while until a new iso file has been created. It is saved in /tmp directory.

Deletions:
Wait for a while until a new iso file has been created.



Edited on 2005-11-22 09:03:57 by KemasAntonius

Additions:
# create the file that contains the filesystem (burn it on the CD), size: 200 MB
In Linux
First make two working directories, source and master in your recent linux partition in the same directory where you save the iso file.
# mkdir source master
Open SLAMPP iso file you already download before by doing loopback mount to source directory.
# mount -o loop slampp.iso source
All files are now in source directory. Copy those files to master directory created before.
# cp -R --preserve source/* master
Umount source directory and change directory to master.
# umount source
# cd master
You will see that all files in the iso file are now copied to this directory. You can now begin editing the iso. For example, to add a new module, copy the file into modules directory. When finished, you need to run the following scripts to make a new iso. Go to the root of master directory and then type this command:
# ./make_iso.sh /tmp/new-slampp.iso
Wait for a while until a new iso file has been created.
Done. Burn it on the new CD.
In Windows


Deletions:
# create the file that contains the filesystem (burn it on the CD),
size: 200 MB




Edited on 2005-11-22 08:45:52 by KemasAntonius

Additions:

1. Copy to Ram

2. Boot SLAMPP from your hard drive (installing SLAMPP)

3. Use and create a swap partition

4. Use Webmin to manage servers and daemons

5. Web development and design

6. Getting your files on the CD

dd if=/dev/zero of=htdocs.img bs=1M count=200
mount -o loop /mnt/live/mnt/hdc/html/htdocs.img /var/www/htdocs/live

7. Make your own SSL certificates

8. Firewall

9. Multimedia

10. Use a module

11. Edit Iso

12. Uselivemod

13. Make modules

14. Emulation

15. Save and restore configuration/settings



Deletions:

Copy to Ram

Boot SLAMPP from your hard drive (installing SLAMPP)

Use and create a swap partition

Use Webmin to manage servers and daemons

Web development and design

Getting your files on the CD

dd if=/dev/zero of=htdocs.img bs=1M count=300
mount -o loop /cdrom/www/htdocs.img /var/www/htdocs/live

Make your own SSL certificates

Firewall

Multimedia

Use a module

Edit Iso

Uselivemod

Make modules

Emulation

Save and restore configuration/settings





Edited on 2005-11-22 08:42:15 by KemasAntonius

Additions:
sh /etc/webinstall.sh (In the recent version of SLAMPP, you don't have to run this command manually. It is automatically executed during boot process. Thus, make sure you already include your files on the CD before running SLAMPP.)
What happens if your files have huge size, let's say more than 200 MB, meanwhile your physical RAM is limited?
Then follow the following tips given by Tino Wagner:
This kind of problem can be solved through postinstall.sh. Instead of packaging everything in a tar package, you do put them in a seperate loopback system. After that, within postinstall.sh you mount this filesystem to /var/www/htdocs/live.
To speak with code:
# create the file that contains the filesystem (burn it on the CD),
size: 200 MB
dd if=/dev/zero of=htdocs.img bs=1M count=300
# create the filesystem
mkfs.ext2 htdocs.img
# mount it, put in the contents
mount -o loop htdocs.img /mnt
cp $files /mnt
umount /mnt
# put the file on the cd
Then, postinstall.sh will need these lines:
#!/bin/bash
mount -o loop /cdrom/www/htdocs.img /var/www/htdocs/live
#done!


Deletions:
sh /etc/webinstall.sh



Edited on 2005-11-21 08:38:27 by KemasAntonius

Additions:

How To

Copy to Ram

Boot SLAMPP from your hard drive (installing SLAMPP)

Use and create a swap partition

Use Webmin to manage servers and daemons

Web development and design

Getting your files on the CD

Make your own SSL certificates

Firewall

SLAMPP is equipped with three firewall programs which can be used anytime you want. Of course you only need to use one at the time.
Firestarter
This programs has graphical interface to setup firewall rules and can also be used to share internet connections for home network. Very easy to use and handy if you don't know anything about configuring firewall in Linux.
More information can be found on its homepage, http://www.fs-security.com/

Multimedia

Burn a CD
Play music
Open a console and then type 'mpg123' or 'amp' to play music. Of course, don't forget to add the file you want to listen to. Or, just use a graphical interface program, Beep Media Player, which can be found on 'Multimedia' menu.
Play Video
Run 'VLC Media Player' which can play various types of video file. It is located on 'Multimedia' menu.

Use a module

Edit Iso

Uselivemod

Make modules

Emulation

Save and restore configuration/settings



Deletions:

How To

Copy to Ram

Boot SLAMPP from your hard drive (installing SLAMPP)

Use and create a swap partition

Use Webmin to manage servers and daemons

Web development and design

Getting your files on the CD

Make your own SSL certificates

Firewall

SLAMPP is equipped with two firewall programs which can be used anytime you want. Of course you only need to use one at the time.

Multimedia

Burn a CD

Play music

Open a console and then type 'mpg123' or 'amp' to play music. Of course, don't forget to add the file you want to listen to.

Use a module

Edit Iso

Uselivemod

Make modules

Emulation

Save and restore configuration/settings





Edited on 2005-11-21 08:31:12 by KemasAntonius

Additions:
If you want to install SLAMPP on your hard drive, make sure you have a free Linux partition. It could be ext2 or ext3. Then go to your Xfce desktop and double click on the "HD Installation" program icon. Make sure you select the right hard drive partition, you probably don't want to install SLAMPP over another operating system you have. It installs LILO with it, which means that the installation could make Windows, (or other operating systems installed on the drive) unbootable. So you should only do this if you know how to use and edit LILO. As I don't have SATA or RAID on my PC to test with, I can't confirm that this program would work on those systems. For IDE/ATA, before starting the HD installation program please make sure that the partition you would like SLAMPP to be installed to is unmounted. Otherwise, the program will refuse to work.
For people who would like to do the installation on console, just run the following commands:
# cd /hd_install
# python slampp_install_run.py --device=/dev/hda1
Don't foget to change '/dev/hda1' with the right partition.


Deletions:
If you want to install SLAMPP on your hard drive, make sure you have a free Linux partition. It could be ext2 or ext3. Then go to your Xfce desktop and double click on the "HD Installation" program icon. Make sure you select the right hard drive partition, you probably don't want to install SLAMPP over another operating system you have. It installs LILO with it, which means that the install could make Windows, (or other operating systems installed on the drive) unbootable. So you should only do this if you know how to use and edit LILO.
As I don't have SATA or RAID on my PC to test with, I can't confirm that this program would work on those systems. For IDE/ATA, before starting the HD installation program please make sure that the partition you would like SLAMPP to be installed to is unmounted. Otherwise, the program will refuse to work. It will be fixed in the next release of SLAMPP.




Edited on 2005-09-28 02:04:23 by KemasAntonius

Additions:
As I don't have SATA or RAID on my PC to test with, I can't confirm that this program would work on those systems. For IDE/ATA, before starting the HD installation program please make sure that the partition you would like SLAMPP to be installed to is unmounted. Otherwise, the program will refuse to work. It will be fixed in the next release of SLAMPP.

Deletions:
As I don't have SATA or RAID on my PC to test with, I can't confirm that this program would work on those systems. For IDE/ATA, before starting the HD installation program please make sure that the partition you would like SLAMPP to be installed to is unmounted. Otherwise, the program will refuse to work.



Edited on 2005-09-28 02:03:34 by KemasAntonius

Additions:
As I don't have SATA or RAID on my PC to test with, I can't confirm that this program would work on those systems. For IDE/ATA, before starting the HD installation program please make sure that the partition you would like SLAMPP to be installed to is unmounted. Otherwise, the program will refuse to work.



Edited on 2005-09-26 01:51:06 by KemasAntonius

Additions:
Linux Firewall homepage: http://projectfiles.com/firewall/



Edited on 2005-09-26 01:50:06 by KemasAntonius

Additions:

Firewall

SLAMPP is equipped with two firewall programs which can be used anytime you want. Of course you only need to use one at the time.
FireHOL
To activate FireHOL, just type this command on console: /etc/rc.d/rc.firehol start
To stop: /etc/rc.d/firehol stop
The configuration file, firehol.conf, can be found in /etc/firehol folder. You need to modify this before using FireHOL. If you want to have a quick configuration file for you recent system, you can let FireHOL make automatically one for you. Just type this command on console:
/etc/firehol/firehol.sh helpme >/tmp/firehol.conf
A temporrary firehol.conf is created. Edit it necessarily and when it is OK, put it in /etc/firehol folder. Restart Firehol, /etc/rc.d.rc.firehol restart. Finished.
FireHOL homepage: http://firehol.sourceforge.net
Linux Firewall
Like FireHOL, it can automatically recognize your system and make a rc.firewall file for you. Run this command on console:
firewall_install
A window will be displayed and guide you to manage your firewall system. When you are done, just copy the rc.firewall file to /etc/rc.d folder. Edit the rc.local and add rc.firewall to have firewall activetd during startup process. Don't forget to make the rc.firewall file executable first,
chmod +x rc.firewall
Done!




Edited on 2005-09-24 17:01:11 by KemasAntonius

Additions:
If you want to install SLAMPP on your hard drive, make sure you have a free Linux partition. It could be ext2 or ext3. Then go to your Xfce desktop and double click on the "HD Installation" program icon. Make sure you select the right hard drive partition, you probably don't want to install SLAMPP over another operating system you have. It installs LILO with it, which means that the install could make Windows, (or other operating systems installed on the drive) unbootable. So you should only do this if you know how to use and edit LILO.

Deletions:
If you want to install SLAMPP on your hard drive, make sure you have a Linux partition which is free. Then go to your Xfce desktop. Select the "HD Installation" program. Make sure you select the right hard drive partition, you probably don't want to install SLAMPP over another operating system you have. It installs LILO with it, which means that the install could make Windows, (or other operating systems installed on the drive) unbootable. So you should only do this if you know how to use and edit LILO.



Edited on 2005-09-24 16:58:53 by KemasAntonius

Additions:
This documentation is mainly compiled based on SLAX documentation written by Dustin Wielenga. Some information are based on other sources. Please refer to the links provided in each information.

Deletions:
This documentation is mainly compiled based on SLAX documentation written by Dustin Wielenga. Some information are based on other sources. Please refer to the links provided in each information.



Edited on 2005-09-24 16:57:41 by KemasAntonius

Additions:

How To

Just read the following instructions found on LAMPPIX website to start with this feature. (Note: don't forget to replace folder 'www' with 'html'.)
All files and database on the CD will be recognized and inserted automatically. Then open the web browser and if anything goes well, your website or web application will be displayed right away. This feature is using the LAMPP scripts provided by LAMPPIX,

Make your own SSL certificates

Do you have a static IP address? Do you want to have own SSL certicates for your website? Then, this solution will help you out. Just type the following command on console.
/etc/apache/pkgmkcert.sh
Notes:
This documentation is mainly compiled based on SLAX documentation written by Dustin Wielenga. Some information are based on other sources. Please refer to the links provided in each information.


Deletions:

How To

Just read the following instructions found on LAMPPIX website to start with this feature. (Note: replace folder 'www' with 'html'.)
All files and database on the CD will be recognized and inserted automatically. Then open the web browser and if anything goes well, your website or web application will be displayed right away.




Edited on 2005-09-24 16:48:19 by KemasAntonius

Additions:

Copy to Ram

If you want SLAMPP to load and run faster and have at least 300 MB of RAM you can use the copy2ram command. As SLAMPP boots, when it says boot: type: 'slampp copy2ram'. It will take a minute or two to copy the whole disc to run but once this is done, SLAMPP will run much faster. Also, if you only have one disc drive on your computer and wish to insert another CD/DVD in SLAMPP you can use 'slampp copy2ram' which will copy the disc to RAM and then automatically eject the disc to free up your drive. This is a very handy tool.

Boot SLAMPP from your hard drive (installing SLAMPP)

If you want to install SLAMPP on your hard drive, make sure you have a Linux partition which is free. Then go to your Xfce desktop. Select the "HD Installation" program. Make sure you select the right hard drive partition, you probably don't want to install SLAMPP over another operating system you have. It installs LILO with it, which means that the install could make Windows, (or other operating systems installed on the drive) unbootable. So you should only do this if you know how to use and edit LILO.

Use and create a swap partition

If your hard drive already contains a Linux swap partition, SLAMPP will automatically detect it and use it. However, if you don't want to mess around with your drive and create a swap partition, you can create a swap file.
However, if you have another partition, here's how to make a swap file. Type 'fileswap /mnt/hda1/swap.swp 200' for example to make a swap file on the first partition of your first hard drive. The '200' tells it to make a 200MB swap partition. The swap file will not be deleted on a reboot. The fileswap command must be used for each time you boot Slax though. The swap file won't be auto detected.
Note: DO NOT use the fileswap command more than once per boot. Doing so can create major problems.

Use Webmin to manage servers and daemons

If you are not that familiar using command line to manage all servers and daemons on SLAMPP, you can administer them through a web browser. Just open the web browser and then type 'https://localhost:10000/'. Then enter 'root' as username and 'slampp' for password.

Web development and design

SLAMPP is equipped with tools and applications that support the web development and design processes. At this moment it supports PHP 4, Perl and Python and uses MySQL as database backend. Not to be forgotten, it also includes web server Apache with various mods and plugins that makes your work a little bit easier. Text and WYSIWYG editors like Bluefish, Nvu, and TEA are available to help you writing the scripts or to code. Special treatment for web designers, SLAMPP has some tools that can not be missed like The GIMP, Blender and Inkscape. Shortcuts to all of these applications can easily be found on your dekstop menu.

Getting your files on the CD

Do you have websites or other web applications you would like to show to others? Or do you just want to have a good working backup of them on the CD? Then you come to the right solution. SLAMPP helps web masters, developers and designers in promoting their work and makes their clients impressed with that.
Just read the following instructions found on LAMPPIX website to start with this feature. (Note: replace folder 'www' with 'html'.)
http://lamppix.tinowagner.com/wiki/index.php?GettingYourFilesOnTheCD
After that, on console type the following command:
sh /etc/webinstall.sh
All files and database on the CD will be recognized and inserted automatically. Then open the web browser and if anything goes well, your website or web application will be displayed right away.

Multimedia

Although SLAMPP is meant for simplying your work to setup a home server, it doesn't mean that it will ignore your multimedia pleasure. Some small multimedia programs have been included on SLAMPP. Unfortunately those programs have no graphical interfaces, thus they must be run on console.

Burn a CD

Go to start menu, select 'BashBurn' on Utilities menu.

Play music

Open a console and then type 'mpg123' or 'amp' to play music. Of course, don't forget to add the file you want to listen to.

Use a module

One of the greatest features of Slax that powers up SLAMPP is the fact that it is modular. That means if it doesn't have something you want, you can easily add it. These additions are called modules. A module is a something you can create or download which has a .mo extension. For example, you can add OpenOffice.org or a variety of games which weren't included in SLAMPP for size reasons. There are two ways to use a module:

Edit Iso

A great guy named Martijn Starrenburg created MySLAX Creator. Download it at http://myslax.bonsonno.org It allows you to modify your Slax/SLAMPP CD in Windows with a wizard-based approach so you can insert and remove modules from the .iso. It is very simple and guides you through all the steps.

Uselivemod

To use a module without burning a new CD, use this command. Uselivemod command expects one argument: a full path to the image file you wish to insert to live file system. It doesn't mater where the module is, you can download it while running SLAX/SLAMPP to /root (root's home directory), /mnt/disc0part1 (primary partition of your first hard drive), etc.
Now, to load the module, open a console, (click the black icon on Xfce panel) and type uselivemod /root/modname.mo or uselivemod /mnt/hda1/modulename.mo. If all goes well, the computer will pause for a second and display no error. To use the program, check the start menu. If it's not in here, go to the console and use a command to start it (for example, Firefox module is started by executing /usr/share/Firefox/Firefox command). If you don't know the command you should use, explore the content of /mnt/livecd/imgro/modulename.mo. It's a directory which shows only files from your module.

Make modules

Making modules is really quite easy. However, it can take up some of your valuable time. Sometimes, if you're lucky, there will already be a Slackware package for the program you want. (Slackware packages end in .tgz) If you find the one you want, download it, and use the command tgz2mo /directory/file.tgz /directory/file.mo You now have an module that can be used with the uselivemod command, or by inserting the module into the .iso. To use the tgz2mo command takes even a slow typer under 2 minutes.
Sometimes, however, you won't be so lucky. There are not Slackware packages for every program out there. For this, you must compile the program first and install it. This can't be done from within the ordinary Slax/SLAMPP. You need a standard distro installed to the hard drive (like Slackware, Mandrake, or Red Hat). Then, make a folder with the name of the module. In here, you will place an exact replication of the files and folders created by the program. For example, in Slax/SLAMPP, check /var/log/packages, and select a file from the list. Open it with TEA or whatever. All the files and directories listed there would need to be copied to the new folder. It may take a really long time, but it's still pretty easy. Now, once you have everything in there, type dir2mo /root/directory/ /root/file.mo You now have a module. This could take a couple hours. (Or a few minutes if your dealing with a small program with few files.)
If you wish to convert an old Slax module with a *.img extension, use the img2mo command.
If you make a good working module, which you think others might benefit from (they probably will) please upload it to the modules section on the Slax/SLAMPP website.

Emulation

Use Qemu
Qemu is included in SLAMPP. It allows you to run other operating systems while running SLAMPP. To use it, open a console and type "qemu -m 128 -cdrom /mnt/disc0part1/slampp.iso -boot d -user-net" to start the ISO file. Of course, you need to have the ISO downloaded and called slampp.iso and on the first partition of your primary drive for this particular command to work.

Save and restore configuration/settings

To save your settings, run "configsave" command with one argument - the storage location. So type for example configsave /mnt/sda1/slamppconf.mo to save your configs in USB flash drive. It will save all changed files from /root, /etc, /home and /var directories.
Then use "configrestore" command to restore your backup. You can also save settings to the root directory of your existing disk partition (for example to /mnt/hda1/slamppconf.mo). All settings found in the root folder of any of your disk partitions ( under the name slaxconf.mo) will be restored automatically when SLAMPP boots.


Deletions:
Coming soon...



Edited on 2005-08-22 12:33:07 by KemasAntonius

Additions:

Categories

CategoryDocumentation




Edited on 2005-07-21 16:43:12 by KemasAntonius

Additions:

How To





Oldest known version of this page was edited on 2005-07-21 10:34:19 by KemasAntonius []
Page view:

SLAMPP Documentation


Coming soon...
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.3997 seconds