Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 04:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Super Easy USB Installer with Graphical Menu
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 12 May 2010, 11:27    Post subject:  Super Easy USB Installer with Graphical Menu
Subject description: borrowed from slax, modified for Puppeee, you can use it for your puplet
 

In my search for something easier than Unetbootin to install Puppeee to a usb stick, I discovered that the Slax USB installer had already done all the hard work for me.

To install to a usb stick just download a tarball, extract the files to a usb stick, then if you're running windows, click on boot/bootinst.bat or click on boot/bootinst.sh if your're running Linux. And that's it folks! You now have a bootable Puppy on USB.

You can download a copy of Puppeee at http://puppeee.com. Then you must replace the Puppeee specific files with the files from your own puplet, and modify the scripts that reference Puppeee, and change it to your puplet name. The menu is in boot/syslinux/syslinux.cfg. You can modify the options and change the background.

Let me know if you need assistance. I will be happy to explain how things work more thoroughly.
Back to top
View user's profile Send private message Visit poster's website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 12 May 2010, 14:11    Post subject:  

Thanks.
Me misunderstood your post. Don't read the following hidden text

[hide]
but doesn't most linux OS get distributed as .iso files.

You describe that one should use a tarball

I have not used such ever despite me have done install of some 75 different linux distros since 2006 or so.

I want to use the .iso file so why does this program force all of us to use tar balls?

How does one make tarballs of an .iso file one have dowloaded of Lupu117 whatevever?

Why can it not use the .iso file as it is?

Don't get me wrong .I salute that you tell us about it but why have they set it up this way and not as most people expect? To use the .iso file as it is.[/hide]

Usually hide just works but maybe I am not sused to this version
Powered by phpBB © 2001, 2005 phpBB Group
does it not recognize hide command?

_________________
I use Google Search on Puppy Forum
not an ideal solution though

Last edited by nooby on Wed 12 May 2010, 14:59; edited 2 times in total
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 12 May 2010, 14:37    Post subject:  

An ISO is an image for installing to a CD. Most netbooks don't even have a CD drive. Making a bootable usb stick from an ISO is harder than it needs to be. The tarball install is easier than Unetbootin and more flexible than using a binary image.

I don't intend this post as something for the end user at the moment. This is for developers who are looking for a better solution than an ISO.
Back to top
View user's profile Send private message Visit poster's website 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Wed 12 May 2010, 14:46    Post subject:  

oops oh sorry. I can edit out all that in my post and you two so we start all over? that way the thread would look less confusing to the devs?
I try to edit my post

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
moogsydodong


Joined: 16 Mar 2009
Posts: 81
Location: Tagum City, Davao del Norte, Mindanao, Philippines

PostPosted: Thu 13 May 2010, 00:41    Post subject:  

I've done this for a long time...

I just use the same lay-out in the usb setup for slax then tweak it for puppy...maybe we can do a usb-easy puppy package....
screen2.JPG
 Description   
 Filesize   26.92 KB
 Viewed   691 Time(s)

screen2.JPG

screen1.JPG
Description 
jpg

 Download 
Filename  screen1.JPG 
Filesize  20.59 KB 
Downloaded  470 Time(s) 

_________________
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 13 May 2010, 01:54    Post subject:  

That was my thought. I am seeing what problems the users have with puppeee, then I'll perfect it, and try to make a more universal version.
Back to top
View user's profile Send private message Visit poster's website 
dejan555


Joined: 30 Nov 2008
Posts: 2686
Location: Montenegro

PostPosted: Thu 13 May 2010, 03:08    Post subject:  

AWWW, you have cute site there for pupeee with that pink/yellow layout Smile
I like the screenshots seems like you put many different themes in it almost make me buy eeePC just to install it and get feeling of running it Razz.
Maybe you can tar up all icewm themes cause I think they're not in icepack or thru forum?
Sorry for offtopic, just saw your pupeee site for first time Smile

_________________


Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 13 May 2010, 09:38    Post subject:  

Raffy hosts the website and selected the template. He does a really good job!

The themes are all from the IcePak or from the forum, but some are modified beyond recognition. If you download my IceWM package you get most of them. But I've changed some of them since I uploaded that package. So I will post a tarball to the themes exchange when I'm sure I'm done tweaking.
Back to top
View user's profile Send private message Visit poster's website 
eowens2

Joined: 27 Aug 2008
Posts: 114

PostPosted: Fri 14 May 2010, 15:40    Post subject:  

I am eager to try puppeee 4.3 on my Eeepc 1000HA.

On my Ubuntu desktop I downloaded a copy of puppeee-rc1-atom.tar (md5sum checked out OK) and copied it to a vfat-32 formatted SD card, where I un-tarred it.

Moved the card to my Eeepc, booted into XP, went to the card (on drive ESmile via "My Computer", and clicked on /boot/bootinst batch file.

The boot installer window opened, where I read the warnings about being careful, and pressed a key to continue.

Then the message "Setting up boot record for E:, wait please...The system cannot find the path specified. Disk E: should be bootable now. Installation finished...press any key to continue", made an exit from from boot installer, closed down XP.

On re-booting I press "ESC" to get me to the BOOT DEVICE MENU, where I select "USB:Single Flash Reader" (the only USB device present on the machine), and I am sent to a black screen with a blinking white cursor...

I have repeated the above with a fresh download with the same outcome.

What am I doing wrong?
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Fri 14 May 2010, 16:54    Post subject:  

The only file it should be looking for is boot/syslinux/syslinux.exe.


Does it work if you run the Linux installer from Ubuntu?
Back to top
View user's profile Send private message Visit poster's website 
eowens2

Joined: 27 Aug 2008
Posts: 114

PostPosted: Fri 14 May 2010, 18:48    Post subject:  

I did not have any factory-fresh USB sticks or SD cards, so I used a SD card that earlier had ext3 on it that I had formatted to vfat. After reformatting I looked at the SD card with Gparted and fdisk -l, and they both agreed that the card had fat32 with a boot flag.

I put the puppeee-rc1-atom files on the card, and under Ubuntu 9.04 clicked on bootinit.sh. It asked me if I wanted to display it or run it, I said "run". Then another window briefly flashed on the screen (not enough time to even see any contents of the window). I did look at bootinst.sh with a text editor later and it appeared to be a normal bash script.

On booting the SD card on my Eeepc, as before it led to a black screen with blinking cursor. I can boot Easy Peasy and Puppy 4.3.1 (not optimized for Eeepc) from that same SD card slot without any problem.

Any ideas?
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Sat 15 May 2010, 00:55    Post subject:  

When you copied the files to the card, did you keep the original directory structure? Does the card have a boot directory and a boot/syslinux directory?
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Sat 15 May 2010, 05:03    Post subject:  

Hi jemimah

I got your script going in Mandriva with a simple hack (yeah, yeah.. I'm a Mandriva refugee Wink Laughing )

At line 30 it was throwing an error, "xterm: command not found" so I changed it to "konsole" but it didn't cd.. so here's what I did..

Code:
export MBR=$(echo "$TARGET" | sed -r "s/[0-9]+\$//g")
export NUM=${TARGET:${#MBR}}                         
#cd "$MYMNT"                                         

#xterm -e boot/syslinux/linuxinstall.sh
konsole -e $MYMNT/boot/syslinux/linuxinstall.sh
exit 


Yeah I know, hard coded, but with a few tests it may solve issues for other distros.

Puppeee booted and ran as per normal. Smile

HTH

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 15 May 2010, 08:50    Post subject:  

Dear Jemimah and 01micko,

Could one of you be so kind as to post the entire script, so I don't have to download the puppee distro (I have an NC10) and extract it myself? My inet is pretty slow, otherwise I wouldn't even ask... Thanks.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Sat 15 May 2010, 09:03    Post subject:  

Hello vovchik

Here is the unhacked script 'bootinst.sh'
Code:
#!/bin/bash
set -e
export TARGET=""
export MBR=""

# Find out which partition or disk are we using
export MYMNT=$(cd -P $(dirname $0) ; pwd)
while [ "$MYMNT" != "" -a "$MYMNT" != "." -a "$MYMNT" != "/" ]; do
   TARGET=$(egrep "[^[:space:]]+[[:space:]]+$MYMNT[[:space:]]+" /proc/mounts | cut -d " " -f 1)
   if [ "$TARGET" != "" ]; then break; fi
   MYMNT=$(dirname "$MYMNT")
done

if [ "$TARGET" = "" ]; then
   echo "Can't find device to install to."
   echo "Make sure you run this script from a mounted device."
   exit 1

fi

if [ "$(cat /proc/mounts | grep "^$TARGET" | grep noexec)" ]; then
   echo "The disk $TARGET is mounted with noexec parameter, trying to remount..."
   mount -o remount,exec "$TARGET"
fi

export MBR=$(echo "$TARGET" | sed -r "s/[0-9]+\$//g")
export NUM=${TARGET:${#MBR}}
cd "$MYMNT"

xterm -e boot/syslinux/linuxinstall.sh
exit

clear
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo "                        Welcome to Puppeee boot installer                         "
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo
echo "This installer will setup disk $TARGET to boot only Puppeee."
if [ "$MBR" != "$TARGET" ]; then
   echo
   echo "Warning! Master boot record (MBR) of $MBR will be overwritten."
   echo "If you use $MBR to boot any existing operating system, it will not work"
   echo "anymore. Only Puppeee will boot from this device. Be careful!"
fi
echo
echo "Press any key to continue, or Ctrl+C to abort..."
read junk
clear

echo "Flushing filesystem buffers, this may take a while..."
sync

# setup MBR if the device is not in superfloppy format
if [ "$MBR" != "$TARGET" ]; then
   echo "Setting up MBR on $MBR..."
   ./boot/syslinux/lilo -S /dev/null -M $MBR ext # this must be here to support -A for extended partitions
   echo "Activating partition $TARGET..."
   ./boot/syslinux/lilo -S /dev/null -A $MBR $NUM
   echo "Updating MBR on $MBR..." # this must be here because LILO mbr is bad. mbr.bin is from syslinux
   cat ./boot/syslinux/mbr.bin > $MBR
fi

echo "Setting up boot record for $TARGET..."
./boot/syslinux/syslinux -d boot/syslinux $TARGET

echo "Disk $TARGET should be bootable now. Installation finished."

echo
echo "Read the information above and then press any key to exit..."
read junk


and the /syslinux/linuxinstall.sh
Code:
#!/bin/bash

clear
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo "                        Welcome to Puppeee boot installer                         "
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo
echo "This installer will setup disk $TARGET to boot only Puppeee."
if [ "$MBR" != "$TARGET" ]; then
   echo
   echo "Warning! Master boot record (MBR) of $MBR will be overwritten."
   echo "If you use $MBR to boot any existing operating system, it will not work"
   echo "anymore. Only Puppeee will boot from this device. Be careful!"
fi
echo
echo "Press any key to continue, or Ctrl+C to abort..."
read junk
clear

echo "Flushing filesystem buffers, this may take a while..."
sync

# setup MBR if the device is not in superfloppy format
if [ "$MBR" != "$TARGET" ]; then
   echo "Setting up MBR on $MBR..."
   ./boot/syslinux/lilo -S /dev/null -M $MBR ext # this must be here to support -A for extended partitions
   echo "Activating partition $TARGET..."
   ./boot/syslinux/lilo -S /dev/null -A $MBR $NUM
   echo "Updating MBR on $MBR..." # this must be here because LILO mbr is bad. mbr.bin is from syslinux
   cat ./boot/syslinux/mbr.bin > $MBR
fi

echo "Setting up boot record for $TARGET..."
./boot/syslinux/syslinux -d boot/syslinux $TARGET

echo "Disk $TARGET should be bootable now. Installation finished."

echo
echo "Read the information above and then press any key to exit..."
read junk


Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0954s ][ Queries: 13 (0.0048s) ][ GZIP on ]