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 Mon 20 May 2013, 20:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
ClickOtherOS-2.3 - a dual boot helper
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sun 23 Nov 2008, 10:51    Post subject:  ClickOtherOS-2.3 - a dual boot helper  

Using this software, if I click on the "Linux" icon under Windows XP, the system reboots into Puppy Linux. If I click on the "WinXP" icon under Puppy Linux, the system reboots into Windows XP.

One of the things I particularly like about Puppy Linux is the ease with which it can be added to a Windows XP machine, with a frugal install directly onto the NTFS partitioned "C:" drive. (The details of how to do this is another story.)

The thing I didn't like about this dual booting setup, was the boot menu. Too often I would miss the few seconds available to boot to the non default operating system. (I prefer to switch my attention to something else while the machine is booting.)

So I cobbled together a couple of scripts, a VBScript for Windows and a bash script for Puppy Linux. Both of them perform all the copies defined in the config file named by the parameter, and then reboot the system.

The software is available as two downloads, http://www.users.on.net/~wrags/ClickOtherOS-2.2.1.exe, and http://www.users.on.net/~wrags/ClickOtherOS-2.3.pet. I recommend that you install the Windows version first.

Install the Windows version by double-clicking on the downloaded "ClickOtherOS-2.2.1.exe". This will add an icon called "Linux" to the desktop, and several entries to the Start menu. Click on "Start->Programs->Click to Other OS->Readme file" to obtain more detailed information on setting up this software.

Install the Puppy Linux version by clicking on the downloaded "ClickOtherOS-2.3.pet". This adds three Rox applications into "/root/my-roxapps". Right-click on anyone of these icons and choose "View 'readme' file" to obtain more detailed information.

Enjoy!

gyro

Edit: Windows version is now 1.0.1. The change is only to the way it handles the attributes of "boot.ini".

Edit2: Upgraded to v2.2. Changed the download url's above.
Main change is that it now supports multiple copies. It requires a single parameter which is the name of a config file that defines the copies.
Readme: http://www.users.on.net/~wrags/ClickOtherOS-2.2.1.html

Edit3: Updated windows version to make a couple of filenames more consistent. Also improved the windows 'readme' file.

Edit4: updated Puppy version to v2.3
Added onDesktop files to /root/Desktop
Readme: http://www.users.on.net/~wrags/ClickOtherOS-2.3.html

Last edited by gyro on Mon 06 Apr 2009, 11:27; edited 7 times in total
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Sun 23 Nov 2008, 14:02    Post subject:  

This is an interesting idea. Of course for the newbie the easiest way still is not to muck about with the boot loader and use the CD when they want to boot puppy.

Sometimes I reboot and lose concentration in time to select the non-default boot option in grub (maybe I should just increase the timeout)

I think your app will only work for people that use the windows boot loader. Personally I use grub to boot and then use a grub entry
chainloader +1 if I want to boot windows.

How about posting the source for your vb project.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Tue 25 Nov 2008, 03:22    Post subject:  

HairyWill wrote:
How about posting the source for your vb project.

There is no VB project, just a VBScript, as such the source is included.

HairyWill wrote:
I think your app will only work for people that use the windows boot loader. Personally I use grub to boot and then use a grub entry
chainloader +1 if I want to boot windows.

My scripts will only work with Windows XP as the base system. But I suspect that I'm not the only person who might want to dual boot Puppy on top of Windows XP.
On the other hand, being scripts, they can easily be changed to suit some other boot loader.

gyro
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Tue 25 Nov 2008, 06:44    Post subject:  

gyro wrote:
There is no VB project, just a VBScript, as such the source is included.
Oh, OK. I don't know how to get the script out of the exe file, or am I doing it wrong?

gyro wrote:
My scripts will only work with Windows XP as the base system. But I suspect that I'm not the only person who might want to dual boot Puppy on top of Windows XP.
I am sure there are lots. As you have written for grldr wonder if there is some way of tying your app in to ICPUG's LIN n WIN instructions, methodology. How about this a windows application that can automate a frugal install with grldr and install your OtherOS boot controller. Point the application at a puppy iso and it should do the install and configuration automatically.

gyro wrote:
On the other hand, being scripts, they can easily be changed to suit some other boot loader.
Yup, though not easily by the newbie who would benefit most from this application.

I imagine the hardest thing about mucking about with the windows boot sequence is getting quality feedback from testing. There is also the risk of stopping someones machine booting and them then doing something irrecoverably stupid in trying to get it working again before they ask for help.

I hope you see my response as positive because I think this is a valuable idea. I haven't had enough sleep and can come across as a miserable killjoy. Wink

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1277
Location: UK

PostPosted: Tue 25 Nov 2008, 09:03    Post subject:  

gyro

As the author of the Lin'N'Win method I am very interested in your technique and will get round to having a look at it.

I think our respective methods are directed at slightly different types of user.

I thought I would air some thoughts but please bear in mind I have not looked at your tool yet so I may be talking completely out of my hat!

With your tool if I want to start Puppy and the last time I used my PC I was in Windows I have got to boot up Windows and then click other OS? If so I have got a (slow) Windows boot followed by a reboot into Puppy. With Lin'N'Win I just select Puppy on boot and go into a single (fast) Puppy boot.

With Lin'N'Win I can expand the menu.lst grub configuration file to have multiple Puppies or other compatible OS as options. Is this possible with ClickOtherOS?

Like HairyWill I would like to see the source vbscript so I hope you can respond to his comment on getting it out of the exe.

Great new idea. I look forward to looking at it. I see a combination of Lin'N'Win (for quick boot of Puppy) together with ClickOtherOS (for quick OS change) as a good fit.
Back to top
View user's profile Send private message 
potchan


Joined: 05 Apr 2008
Posts: 102
Location: Pilots' Height צוות_פותחן_לינוקס

PostPosted: Thu 27 Nov 2008, 17:05    Post subject: Trying to "push the button"
Subject description: A possible solution to d' problem I've raised earliier ...
 

I just coming from this page:

http://www.murga-linux.com/puppy/viewtopic.php?p=252751#252751

HairyWill diverted me here. So I go with d'adventure.

Some questions regarding my needs:

1. If I use this windows button and Linux button on two systems - does it write something on BIOS ? or overwrite it ??

2. What if I put my files on "D" instead of "C" (due to where place is enough) ?

3. Watta solutions from another system than Windows or Linux ?

4. Is a frugal boot on Puppy is more or less reliable than CD boot ?

Thanks.
Shocked

_________________
Timmothie (Timmo') Baker, the Potchan (=opener) Simplify Team at - http://potchan.org
P' developed on various LimpWare: DELL INSPIRON 2600 -> .. -> HP Pavilion dv6-2130ej
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sat 29 Nov 2008, 10:26    Post subject: Some answers, I hope.  

1 ) Is it better than a boot menu?
It's more convenient for me, if it's not for you, don't use it.

2 ) How to get the vbscript out of the .exe?
On XP machine, install it. (Its a fairly well behaved Windows application, and removes everything when it is uninstalled, except a copy of "C:\boot.ini" called "C:\CopyOf_boot.ini".) It's installed in "C:\Program Files\Wrags\ClickOtherOS\".

3 ) What does it do?
It's very simple, copies file A to file B and reboots the system. As released the script on Windows copies "C:\ClickOtherOS\Linuxboot.ini" to "C:\boot.ini". The Puppy script copies "/mnt/home/ClickOtherOS/XPboot.ini" to "/mnt/home/boot.ini". (With frugal install the windows "C:" is already mounted as "/mnt/home" under Puppy.)

4 ) Does it modify/override the BIOS setting?
No. (see 3 above)

5 ) Using with other OS?
The file names would be different, since booting is controlled by a different text file. In V1.0 this requires editing the scripts directly. If it ever gets released, V2.0 will store the file names in a config file, one copy per line. I have thought of creating a version for Fedora 9. But the big work would be sorting out all the Gnome stuff.

6 ) Using files on other hard drive?
If your are using grub4Dos's "grldr", then it and it's "menu.lst" should be on the drive that XP boot from. Where your Puppy Linux files are stored is defined in "menu.lst"

7 ) Boot from CD/DVD?
Grub4dos folk say that "grldr" can boot from CD/DVD. But I've never tried it.

8 ) Why not make it into a fully automatic frugal install using files from ISO?
This project is already 99% packaging, plus learning vbscript. And it's already fairly simple. Under XP copy a few files to the hard drive, edit a text file, install ClickOtherOS, edit a couple of text files, install ClickOtherOS on Puppy. Mmm... maybe I might think about making an .exe installer to put Puppy 4.1.1 onto an XP machine. (An installer that just copies files is easy, getting it to edit "boot.ini" files whilst making sure that the XP boot line is never altered, a bit more tricky.)

9 ) Is it for newbies?
I help a number of folk maintain their XP machines, I will use it with a frugal install of Puppy on their XP machines, and encourage them to click on the penguin and use the browser in Puppy Linux for secure Internet access. In that sense, yes.

10 ) Can newbies install it?
Maybe not without help. But once it's there it's easy.
But then again, any one who can successfully setup a machine to dual boot should be able to install ClickOtherOS.

gyro

PS: I've attached the XP executeable files as a ".zip" file

EDIT: I've sometimes referred to the file "grldr.exe", wrong it's just "grldr".
ClickOtherOS.zip
Description 
zip

 Download 
Filename  ClickOtherOS.zip 
Filesize  6.56 KB 
Downloaded  305 Time(s) 
Back to top
View user's profile Send private message 
potchan


Joined: 05 Apr 2008
Posts: 102
Location: Pilots' Height צוות_פותחן_לינוקס

PostPosted: Sat 29 Nov 2008, 15:59    Post subject: Gyro, I think it can be a breakthrough ...
Subject description: I must digest it for several days though
 

Great explaination ! I'll study it and come back in about a week to tell.

Please, if you have time - see stages 2,3, on my (unfinished) site http://potchan.org and relate to the possibility I can abandon the bootdisk of stage 3 using your option (with bootdisk files back on HD folder at "C" or "D" wherever user finds a place to put it).

Can I ??? Wink

_________________
Timmothie (Timmo') Baker, the Potchan (=opener) Simplify Team at - http://potchan.org
P' developed on various LimpWare: DELL INSPIRON 2600 -> .. -> HP Pavilion dv6-2130ej
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sun 30 Nov 2008, 09:04    Post subject: position ClickOtherOS, Newbies and boot.ini  

I've just had a look at the Lin'N'WinB website, (wish I had found this sitebefore I setup my XP machine to dual boot), but it clarifies where ClickOtherOS sits.
If you have successfully finished Lin'N'WinB and want an alternate to the boot menu as a method of controlling which OS is booted, then ClickOtherOs might be for you. Instead of a boot menu, you have a "Linux" icon on the Windows desktop, and a "Windows" icon on the Puppy Linux desktop.

Currently ClickOtherOS requires the person who installs it to manually edit the copies of boot.ini. I have given some thought to automating this in version 1.1. But I have some reservations about doing so. The edits are very simple to anyone who has any inkling of what they are doing, so writing the program to do it is hardly worth the effort. Automating the edits may encourage folk to try it, who don't have a clue. If they do, and for some reason the resultant boot.ini is not valid, the nice copy of boot.ini made at the beginning of the process, is of no use to them. Unless they know how to boot the machine from media other than the hard drive.
So, if you can't boot Puppy Linux directly from a CD, or in an older machine from a "WakePup" floppy disk, then I suggest that you think seriously about not trying anything that requires boot.ini to be modified like ClickOtherOS, (or Lin'N'WinB).

gyro

Last edited by gyro on Sun 30 Nov 2008, 09:48; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sun 30 Nov 2008, 09:38    Post subject: Re: Gyro, I think it can be a breakthrough ...
Subject description: I must digest it for several days though
 

potchan wrote:
Please, if you have time - see stages 2,3, on my (unfinished) site http://potchan.org and relate to the possibility I can abandon the bootdisk of stage 3 using your option (with bootdisk files back on HD folder at "C" or "D" wherever user finds a place to put it).

I'll have a look at it and get back, (I hope).

Without having looked at your site, a comment on storing files on "D" and still using ClickOtherOS:
In the simplest case, you put only the Puppy Linux files on "D", but leave all other files on "C". Then the Windows script would not need to be changed. You would need to change "menu.lst" to reflect the new home for the Puppy Linux files. (Let's assume that you can get that to work.) Then in Puppy Linux there is a problem, since I assume that Puppy Linux will mount your "D" drive at "/mnt/home/" rather than your "C" drive. So, the ClickOtherOS script on Puppy can not find any ".ini" files to copy, (it assumes that they are on "/mnt/home/"). You could fix this by moving "XPboot.ini" to the "D" drive. But there is still a problem. In order to make a difference at boot time, "boot.ini" must be on the "C" drive. So you would need to modify the script to copy "XPboot.ini" on the "D" drive to "boot.ini" on the "C" drive. But of course there is still a problem, the "C" drive would not be automatically mounted in Puppy, (so I assume). So you may need to also edit the script to mount the "C" drive before the copy, and umount it after the copy, before rebooting the system.

The concept behind ClickOtherOS is simple. But it may require re-implementation for each different setup.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sun 30 Nov 2008, 10:58    Post subject:  

ICPUG wrote:
With your tool if I want to start Puppy and the last time I used my PC I was in Windows I have got to boot up Windows and then click other OS? If so I have got a (slow) Windows boot followed by a reboot into Puppy. With Lin'N'Win I just select Puppy on boot and go into a single (fast) Puppy boot.
Correct. On the other hand, if you want to continually reboot in the OS that is not the "default" (if you relied on a menu), then you don't need to catch any time limited opportunity. Once you are in an OS, it's just like it is the only OS, until you activate the other OS's icon.

ICPUG wrote:
With Lin'N'Win I can expand the menu.lst grub configuration file to have multiple Puppies or other compatible OS as options. Is this possible with ClickOtherOS?
In V1.0 the script copies a single file on top of "boot.ini", so it really only chooses between Windows and Linux. The VBscript could be modified to copy a particular version of "menu.lst" as well, but a different copy of the script would need to be created for each different Linux OS.
I have in mind a V2 of ClickOtherOS scripts, which will accept the name of a config file as a command line parameter, (in windows add the parameter to the command in the desktop shortcut). Each line of the config file will specify a copy. So a config file containing:
Code:
Linuxboot.ini,boot.ini
puppy400.lst,menu.lst
would boot to Puppy 4.0.0 no matter how many Linux's are defined in "menu.lst".

ICPUG wrote:
I see a combination of Lin'N'Win (for quick boot of Puppy) together with ClickOtherOS (for quick OS change) as a good fit.
A successful Lin'N'Win comes before even considering ClickOtherOS.

Although, I have thought about creating a Windows .exe installer that creates a dual booting Puppy 4.1.1 on top of XP. I did a simply one that just copies all the files in place, i.e. all you have to do is the dangerous bit, edit "boot.ini". Immediate reaction, it's huge, 95M, because the .exe includes all the Puppy files.
I have thought about writing a program to modify "boot.ini", but am concerned that there may exist an odd "boot.ini", that my program turns into rubbish, and some innocent windows user finds their machine won't boot, and don't know how to fix it.
I've also considered making one that somehow piggybacks off the .iso. But there is no software installed in XP by default to extract from .iso files. So maybe use a burnt CD instead.
Given all that, I've thought of doing it all in Puppy instead, since then at least I know that they have the tools to recover from the mangled "boot.ini". Maybe even try to make it part of Puppy's Universal Installer. (Must investigate exactly how much support for frugal install to XP as dual boot, this thing already provides.)

Hmm... gotten rather off topic.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Sun 30 Nov 2008, 13:17    Post subject: Re: Gyro, I think it can be a breakthrough ...
Subject description: I must digest it for several days though
 

potchan wrote:
Please, if you have time - see stages 2,3, on my (unfinished) site http://potchan.org and relate to the possibility I can abandon the bootdisk of stage 3 using your option (with bootdisk files back on HD folder at "C" or "D" wherever user finds a place to put it).

Can I ??? Wink
If I understand your website and what you posted on another forum, you want to boot from a CD even when the PC BIOS either, has not been configured to, or cannot, boot from a CD.
Then my software cannot help you to do this.
Following on from a suggestion by HairyWill (if my memory is correct), you might try the following on an XP machine; install grldr as per a dual booting system, (see Lin'N'Win project for details). Then setup "menu.lst" to boot from the CD as per http://diddy.boot-land.net/grub4dos/files/boot.htm#cd

gyro
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1277
Location: UK

PostPosted: Mon 01 Dec 2008, 09:10    Post subject:  

Gyro,

Many thanks for your time in providing thoughtful answers to my and others questions. Special thanks for the zip file. That enabled me to look at the vbs file without running an unknown .exe.

Sorry you never got to see Lin'N'Win before you started running Puppy and Windows XP together. You are not the first. It is mentioned in the Beginners Guide to installing Puppy on this forum now but it is not mentioned in the Puppy User Manual. It seems that the author of the manual wants to take creating ext2 partitions as the default for Puppy whatever installation method is used. I don't agree with that but there is not much I can do.

I share your concerns on automating the process. I have deliberately not automated Lin'N'Win because I could never be sure what boot.ini might say so editing it automatically may be a little risky. I also like the transparency of a step by step method. The risk averse know what is happening before they do it and it is also educational in helping to understand the boot process.

Nevertheless, a lot of people like automated processes and I guess most average Windows users are not risk averse or they wouldn't be accessing the Internet with Windows in the first place!
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 289
Location: Brisbane, Australia

PostPosted: Thu 19 Feb 2009, 10:01    Post subject: Updated to 2.2  

See original post.

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0977s ][ Queries: 13 (0.0054s) ][ GZIP on ]