Changes

From Amahi Wiki
Jump to: navigation, search
1,820 bytes removed ,  01:25, 10 February 2014
no edit summary
<u>'''INSTALL'''</u>
<pre># INSTALL# App specific variables
export WAPATH=$HDA_APP_DIR/html;
# Constant variables--DO NOT CHANGE
cat > html/install.sh << EOF
#!/bin/bash
 
mkdir -p $NBPATH/$HDA_APP_NAME;
# Copy files to Netboot
cd $WAPATH;
cd cp ../unpack;cp /live/vmlinuz ../unpack/live/initrd.img ../unpack/live/filesystem.squashfs -d $NBPATH/$HDA_APP_NAME; 
# Update PXE Menu
if [ -f $NBPATH/pxelinux.cfg/default.bu ]; then
cat > html/uninstall.sh << EOF
#!/bin/bash
# Remove files$WALNAM
rm -rf $NBPATH/$HDA_APP_NAME;
rm -rf $NBPATH/conf/$HDA_APP_NAME.conf;
EOF
# This is specific to the app and may not be needed. It generates a sub menu
cat > html/$HDA_APP_NAME.conf.old << EOF
MENU TITLE $HDA_APP_NAME
LABEL $HDA_APP_NAME
MENU LABEL Normal$HDA_APP_NAME
kernel $HDA_APP_NAME/vmlinuz
append initrd=$HDA_APP_NAME/initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=tftp://$HDA_IP/$HDA_APP_NAME/filesystem.squashfs live-config
LABEL $HDA_APP_NAME(FAILSAFE) MENU LABEL Failsafe$HDA_APP_NAME (FAILSAFE)
kernel $HDA_APP_NAME/vmlinuz
append initrd=$HDA_APP_NAME/initrd.img boot=live union=aufs noswap noprompt vga=normal nomodeset nosplash ip=$HDA_IPfetchfetch=tftp://$HDA_IP/$HDA_APP_NAME/filesystem.squashfs live-configEOF
cat > html/$HDA_APP_NAME.conf << EOF
MENU TITLE $HDA_APP_NAME
LABEL $HDA_APP_NAME
MENU LABEL Easy
kernel $HDA_APP_NAME/vmlinuz
append initrd=$HDA_APP_NAME/initrd.img boot=live union=aufs noswap noprompt vga=normal fetch=tftp://$HDA_IP/$HDA_APP_NAME/filesystem.squashfs ocs_prerun="mount -t cifs -v //$HDA_IP/Drivebackups /home/partimag -o user=$HDA_1ST_ADMIN" ocs_live_run="ocs-sr -gs -cs -r -j2 -k -rm-win-swap-hib -fsck-src-part -z1p -um beginner ask_user ask_user" ip=dhcp live-config
LABEL $HDA_APP_NAME
MENU LABEL Generic
kernel $HDA_APP_NAME/vmlinuz
append initrd=$HDA_APP_NAME/initrd.img boot=live union=aufs noswap noprompt vga=788 nomodeset nosplash vga=normal ocs_lang="" fetch=tftp://$HDA_IP/$HDA_APP_NAME/filesystem.squashfs live-config
LABEL $HDA_APP_NAME
MENU LABEL Expert
kernel $HDA_APP_NAME/vmlinuz
append initrd=$HDA_APP_NAME/initrd.img boot=live union=aufs noswap noprompt vga=normal fetch=tftp://$HDA_IP/$HDA_APP_NAME/filesystem.squashfs ocs_prerun="mount -t cifs -v //$HDA_IP/Drivebackups /home/partimag -o user=$HDA_1ST_ADMIN" ocs_live_run="ocs-sr -gs -cs -r -j2 -k -z1p -um expert ask_user ask_user" ip=dhcp live-config
EOF
<body bgcolor = "#ffffcc" text = "#000000">
<center>
<img src="http://wiki.amahi.org/images/e1/e01b/Clonezilla-logoGparted_logo.png"></a>
</center>
<h1>Clonezilla Live GParted Installed!</h1>
<p>Clonezilla, based on <a href="http://drbl.sf.net" target="_">DRBL</a>, <a href="http://www.partimage.org" target="_">Partition Image</a>, <a href="http://www.linux-ntfs.org/" target="_">ntfsclone</a>, <a href="http://partclone.org" target="_">partclone</a>, and <a href="http://udpcast.linux.lu/" target="_">udpcast</a>The GParted application is the GNOME partition editor for creating, allows you to do bare metal backup and recovery. Two types of Clonezilla are availablereorganizing, <a href="http://drbl.sf.net/clonezilla-live/" target="_">Clonezilla live</a> and <a href="http://drbl.sf.net/clonezilla-server-edition/" target="_">Clonezilla SE (server edition)</a>. Clonezilla live is suitable for single machine backup and restoredeleting disk partitions.</p>
<p><b>NOTE:</b> This application is a PXE network bootable OS which cannot be accessed via a web browser. Uncheck <b>List in dashboard</b> option to remove link from dashboard.</p>
<u>'''UNINSTALL'''</u>
<pre># App specific variables
export WASNAM='pmagic';export WAPATH='/var/hda/web-apps/pmagicHDA_APP_DIR/html';# Uninstall $WASNAM
mkdir elevated;
cd elevated;
cp $WAPATH/uninstall-$WASNAM.sh .;sudo ./uninstall-$WASNAM.sh;
cd ..;
rm -rf elevated;</pre>
12,424

edits