How to do a One-Click Installation of Puppy

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

How to do a One-Click Installation of Puppy

#1 Post by rcrsn51 »

Update: This package now contains two installer scripts. You can either boot the target machine off a Live CD or a USB drive.

Unetbootin and Pendrivelinux Users: Look on your Puppy flash drive for a file named syslinux.cfg. If it contains the argument pmedia=cd, change it to pmedia=usbflash. Otherwise the One-Click Installer will fail.

-----------------------------------

Many users have old computers that they want to completely erase and restore with Puppy. Here are the steps to do a one-click automated install.

We will assume that you already have a Live CD that works on the target machine and you are familiar with basic Puppy operations. Read here for more information. (If you want to install Puppy in a dual-boot setup with Windows, read here.)

The package below contains scripts that will do an automatic hard drive install of any official Puppy version back to 2.15. (The USB installer may not work with very old Puppies.) There are options for both frugal and full configurations. For most machines, a frugal install is the simpler, faster choice. It also gives you the flexibility to add other features to Puppy, like Open Office.

These installers will erase the hard drive, format a new partition, create a swap file, install Puppy and set up the GRUB bootloader. They should work on any machine with standard hardware.

Download and extract the "one-click-installer" folder. Copy the folder to a flash drive. Or, if you already have the target machine on-line with the Live CD, just download the package directly and store it in /root.

---------------------------------------

CD Method:

Boot the target computer off the Live CD.

Note: If there is an existing version of Puppy on the hard drive or if you have been storing a pup_save file there, you must boot by typing the following option. There is a short initial pause as the Live CD starts for doing this.

Code: Select all

puppy pfix=ram
Leave the CD in the drive.

Mount the flash drive, open the "one-click-installer" folder and click on the icon labeled "install-cd". Before installation starts, you will get to answer a YES/NO question.

When the installation is done, finish with a shutdown/reboot and make a pup_save file. Your computer is ready to run Puppy on the next start. Some Puppy versions will also ask if you want to save additional files to the hard drive. Answer NO.

The full-install procedure uses the Puppy Universal Installer to do the actual copying from CD to hard drive, so it involves more steps. When the PUI gets to the point of installing GRUB, cancel it. (You may have to close several windows to make it stop.) Finish with a shutdown/reboot but do NOT make a pup_save file.

----------------------------------------

USB Method:

Copy the installer folder onto your flash drive and boot off it.

Mount the flash drive and click on "install-usb".

At shutdown, do NOT make a pup_save file yet, because Puppy will want to put it on the flash drive. Reboot off the hard drive and make one at the end of that session.

---------------------------------

Please note. The PET by ecomoney that is attached to the message directly below this one is now out of date and should not be used.
Attachments
one-click-installer.tar.gz
Updated 2012-10-27
(2.13 KiB) Downloaded 4710 times
Last edited by rcrsn51 on Sun 04 Nov 2012, 13:09, edited 27 times in total.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

One click puppy linux installer

#2 Post by ecomoney »

I am such a dirty hacker, I almost feel ashamed to post this...I am truly "standing on the shoulders of giants" :)

This is a .pet that when clicked on, will look at the amount of RAM available, decide to do either a FULL or a FRUGAL install (depending on whether there is more or less than 128mb). Simply click on the attachement below and select the option "open with petget", and it will work its magic. Alternatively download it, then click on it (it will go into the /root directory, accessible from the "file" icon in the top left of the Puppy Linux Desktop).

Its based on rcrsn51's scripts, merged together with work from the HanSamBen project from Sidders and TechnoSaurus.

http://www.murga-linux.com/puppy/viewto ... 4&start=90

I would be very happy for someone to come up with a more elegant solution...perhaps in time to request its inclusion in Woof.
Attachments
oneclickinstaller.pet
A "quick and dirty" One Click installer for Puppy Linux
(2.02 KiB) Downloaded 3693 times
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#3 Post by 8-bit »

Do the installers make it clear at the start with a prominent warning message that all data on the hard drive will be destroyed?

I have a computer setup with 3 gigs of ram, a SATA hard drive and a PATA (IDE) hard drive.
I was going to do a frugal install to the second (PATA) hard drive and had set up an ext2 partition that showed as sdb3.
I saw a warning with Grub install that on a mixture of SATA and PATA hard drives, Grub might see the drives as reversed.
That is if the SATA drive was hd 0, grub might see is as hd 1.
I investigated this by letting Puppy do a frugal install to sdb3.
I did not install GRUB at this time.
I then booted from a SuperGrub floppy disk and using the menu.lst created by the frugal install, moved from temp and renamed to menu.lst.
When I went to boot from the menu.lst, I got an error of :File not found.
The first line of that menu.lst was rootnoverify (hd1,2).
I then dropped to the Grub command line and typed
root (hd0,2)
I was greeted with the partition being found and listed as ext2.
I modified menu list accordingly and Puppy booted up.

So if you have a combination of SATA and PATA hard drives, be very careful using Grub.
In my case, if I would have assumed that my SATA drive was hd 0, and written grub to the superblock of hd 1, I would have been overwriting the Vista boot sector.
Also, on a file not found, when booting, if Puppy is creating a menu.lst entry to be included in menu.lst
and the default it creates uses rootnoverify, that partition validity is not checked.
If you use root (hdx,x) with the dirve and partition in place of the x'es, the validity of the partition will be checked.
Using rootnoverify will give you a file not found if the partition does not exsist with no mention of the partition not existing.
A lot of times, it can be entering the wrong drive or partition in your menu.lst.

All this info came to me after being Very Careful in trying to install Puppy frugally to a Computer that had Vista on the SATA drive.
I had installed the second drive (PATA), and wanted to make doubly sure I would not overwrite anything on the SATA (Vista) drive with the install.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

I certainly agree that configuring GRUB in a multi-drive computer has to be done with caution, especially if you need to preserve another OS.

However, in your scenario, you actually would have been OK. If you had tried to install GRUB to (hd1,2), GRUB would not have found the Stage2 files there and would have aborted. So your Vista bootloader would not have been overwritten.

That's why GRUB has the "find" command. It identifies the target partition before you do the install.

legendofthor
Posts: 219
Joined: Thu 17 May 2007, 06:52
Location: Queensland Australia

#5 Post by legendofthor »

G'day,
Some food for thought.
For the Full-Install option. Let's look at the Ubuntu solution...
Allow three choices...
1. Using the entire Hard Drive (no change required)
2. 2 Partitions (half and half) + swap partition (say 2%) - using the parted command (I don;t have the scripting experience to pull this off)
3. Manual - exec gparted
Cheers

"Puppy is easy to use and little technical knowledge is assumed...."
http://www.puppylinux.org/home/overview
Toowoomba Linux Users Group [url]http://groups.google.com/group/toowoombalinux[/url]

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#6 Post by ecomoney »

The ubuntu installer (especially in later versions) is a superb model for usability. The Gui for the installer urgently needs an overhaul if puppy is to meet its first objective...

Heres an opportunity for someone with even modest GUI development skills to make areal difference to puppies primary mission goal.

Puppy can also do other types of installs that ubuntu cant (it needs its own partition). It can literally "repair" (to the end-users mind) a broken XP computer by hooking into the XP bootloader...in essence installing itself onto an NTFS partition (how cool is that?). There is some talk about that on this thread. The beauty of this is that it doesnt require any repartitioning (which can be risky). From the legions of frustrated XP repair men out there (and as an ex-one myself) I would think this would be an extremely popular choice too (and one in the eye for redmond).
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#7 Post by 8-bit »

My install of Puppy 421 is finalized as a dual boot with Vista using the Vista bootloader and BSD to select between Vista and a Grub bootloader for a frugal install of Puppy to a partition on a second hard drive.
The thing that concerns me here is that a nobe that has an OS he wants to keep on his main hard drive and tries to use the One-Click-Install script to install Puppy to a second hard drive or partition, may lock himself out of his existing OS if not destroy it completely.
So lots of chances to back out of the install should be given with warnings before any damage is done.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

The preamble in the first message of this thread talks about completely erasing an old machine. That's how the one-click installer has been employed successfully by several recent users who could not get the PUI to work for them.

Personally, I do not like the idea of a desktop icon, menu entry or an automated PET like the one above appears to be. It would be too easy for a novice to confuse this with the PUI and do something bad.

I also don't like the idea of a boot option that runs the installer. Users might assume that they were launching an Ubuntu-like setup program with multiple options.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#9 Post by ecomoney »

These were the "specs" that rcrsn51 was working to.
I also don't like the idea of a boot option that runs the installer. Users might assume that they were launching an Ubuntu-like setup program with multiple options.
The "pfix=recycle" parameter would ensure that users were to know that it would be effectively reconditioning the computer (transferring from one user to another). Perhaps if this were "specialist knowledge" (i.e. only known about by specialist recyclers who need to recondition computers quickly) and was not displayed as an option in the boot parameters (f2 I believe) then it would avoid these accidents. Only people who knew what they were doing (those who recycle computers all day long) would know of its existence.

I understand both of your concerns about users losing their data. We can all agree users data is much more safely stored on a Linux computer than a Windows one. Looking at the bigger picture, perhaps then creating a suitably cautious, but easily usable, graphical installer (which the .pet package isnt) would be a way that us responsible developers could ensure the survival of peoples valuable data.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

For recyclers who want to image machines quickly, the easiest solution would be a remastered Live CD with the installer folder on the CD but external to the sfs file. This can easily be done by making a GRUB-bootable CD.

Once the machine has booted to the desktop, it would just be a matter of mounting the CD and running the installer from there. Puppy itself would not need remastering and there would be no permanent trace of the installer inside Puppy.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#11 Post by ecomoney »

So your saying put it on the cd itself? ok that would work. Having it as a boot parameter would speed up the whole installation process, but I should learn compromise :roll: :wink:

When I have five minutes, I will update the PET to include an explaination (in "newblish"), an "are you sure?", an "are you absolutely sure?", and an "if you click 'yes' again it will wipe EVERYTHING off this computer, are you totally sure this is OK?"
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#12 Post by rcrsn51 »

OK. Here are the steps to make a custom boot CD for recyclers using syslinux.

1. Start a folder named "cd" somewhere outside of your pupsave. Copy the following files into this folder:

a. Four files from the Puppy Live CD - vmlinuz, initrd.gz, pup_xxx.sfs and isolinux.bin

b. The one-click installer folder "installers"

c. The two files contained in the attachment below - isolinux.cfg and makeiso

2. There should now be seven items in the folder. While inside the folder, open a console and type:

Code: Select all

sh makeiso
3. The iso is created one level up and is named "cd.iso". Burn it.
Attachments
files.zip
(424 Bytes) Downloaded 1754 times

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#13 Post by ecomoney »

Thank you for this tip rcrsn51, I will use it in ecopup which is specifically aimed at recyclers.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Bnayqyama
Posts: 1
Joined: Sat 27 Jun 2009, 02:10

Installation Scripts

#14 Post by Bnayqyama »

rcrsn51, I am grateful for the installer scripts. I have been working all day on installing Puppy to my son's Dell Inspiron 1000, a dog that flies as Puppy.

Some very basic answers are missing or hidden on the various Puppy pages: reformatting a former Winbloze drive for Puppy. But your scripts are just what I needed.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

Glad to help.

Paul Smith
Posts: 7
Joined: Thu 09 Jul 2009, 21:30

One click installation

#16 Post by Paul Smith »

Quote:
The full-install script uses the Puppy Universal Installer to do the actual copying from CD to hard drive, so it involves more steps. When the PUI gets to the point of installing GRUB, cancel it. (You will have to close five windows to make it stop.) Finish with a shutdown/reboot but do NOT make a pup_save file.
unquote

Apologies if this is a stupid question :oops: : but if you cancel before installation of GRUB how do you get GRUB onto the hard drive to boot up?

I am thinking of installing in repacement of windows 2000 on an Inspiron 8000 with about 300MB RAM; then hoping that a download of a Linux driver for Edimax nLite minisize USB adaptor will allow wireless web connection through Net gear router ( although I am told a usb connector on such a machine will run slow )

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

#17 Post by rjbrewer »

PaulSmith;

If you're going to replace Windows any way; just use the
universal installer and mount Grub to mbr.

Visual help:

http://www.murga-linux.com/puppy/viewto ... 565#201565

usb wifi works fine on my old Dell.
Edimax usb seems to be Linux friendly and Puppy likely has
drivers already included.

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

@Paul Smith: The installer sets up GRUB automatically.

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#19 Post by sidders »

Ive had a play with the scripts, but not changed them. It was just putting an extra layer on starting the script, so you would have to deliberatly put a password in to set the thing going.
Tested and it works. Basically its just been wrapped in a makeself file.
See this post:
http://www.murga-linux.com/puppy/viewtopic.php?t=43880

I have dropped it into /usr/bin and symlinked it to a folder in root called whateverilike

To make it i had the pinstall, the pwd script and the 2 shell scripts frusfr and fulscr.

nbrege
Posts: 2
Joined: Sat 25 Jul 2009, 16:18

#20 Post by nbrege »

I would like to install Puppy on an old Dell Latitude XPI laptop that I have. The problem I have is that it doesn't have the option to boot from the CD drive, only the floppy or HD, so I can't figure out how to get this installed. Is there some linux boot floppy I need? Can someone help me out? Thanks...

Post Reply