Phoenix CE - Feature Request - Shortcut to Windows Documents

A home for all kinds of Puppy related projects
Message
Author
Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#21 Post by Everitt »

HairyWill wrote:my process id

Code: Select all

echo $$
the last process started (by me ?)

Code: Select all

echo $!
Ah, perfect, thank you!

User avatar
cb88
Posts: 1165
Joined: Mon 29 Jan 2007, 03:12
Location: USA
Contact:

#22 Post by cb88 »

perhaps you should have a look at the trash can code...in 3.00+ it does drag and drop
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#23 Post by Everitt »

cb88 wrote:perhaps you should have a look at the trash can code...in 3.00+ it does drag and drop
It's an App Dir isn't it? That too could be a very good suggestion, thanks!

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#24 Post by richard.a »

WindowsNT, 2000, and XP
This is the MS Windows directory hierarchy viewed from within puppy:-
Image

This will work...

1. Create a script file in /root - it will have a gearwheel icon

2. Drag a copy to the desktop - it will also have a gearwheel icon

3. name the shortcut to read what you wish it to,
then edit the shortcut to read exactly this
/mnt/hda1/Documents and Settings/administrator/My Documents

Image

do not use file:///mnt/hda1/Documents and Settings/administrator/My Documents - it WILL NOT WORK.

Nor will file:///mnt/hda1/Documents%20and%20Settings/administrator/My%20Documents



4. The gearwheel icon on puppy's desktop will change to a directory (file folder) and the shortcut will work...
Image

Why the &20's? Because they are the unix code for a blank, and you may feel they should be inserted to compensate for the unnecessary MO of Microsoft's file naming system, which came in with Windows95.

That is what some web browsers will return in the url for you (sometimes created in the ftp'ing of page to a server, too) - don't be misled, because a browser is not a direct equivalent to a file manager, although very close most times.

I tried this operation in Windows2000sp4 (same as W2000. In all probability works for XPHome and XP Pro as their file tree is the same), and thought I'd share the results.

We should remember that the majority of home windows users will be using the Administrator login. The justification for this is the flawed argument put forward by those technophobes who have no knowledge of what real systems use... simply that "it's your computer, you are by default the administrator".

I've created three other account links that can be used too, using exactly the same philosophy (with one minor change). You may notice that the Administrator and All Users have been set up and are working; the other two are still "gear wheels" in the capture here...
Image

All Users - by definition, this cannot be used, because this is a combination of start menu links common to all users, and a skeleton for creating new users.
Image

Default User - This one is a possibility, but I've never seen it used.
Image

richard - which is my own login on the windows system on the machine on which I took the captures.
Image


Why hda1 partition is nominated.
Simply, Microsoft assumes one drive, with one partition, containing its operating system (and nobody else's either) and all the private data mixed up as a big salad. They still haven't accepted the idea of separating system and data after all these years.

hda1 is by definition the first (or only) partition on the first (or only) hard drive.

Some method of instructing the new user how to change the addressing of the shortcut to their own directory is needed.


Windows95, 98, and Me
If it is Windows98 or WindowsMe then it is simple. There is only one user. And the My Documents folder is on the desktop. Don't get worried about directories called "All Users" and "Desktop" in the Windows directory, and the "\All Users\Desktop" directory; they aren't for personal storage.

The path is therefore /mnt/hda1/My Documents
Image
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

User avatar
cb88
Posts: 1165
Joined: Mon 29 Jan 2007, 03:12
Location: USA
Contact:

#25 Post by cb88 »

windows is not always on hda1 becasue grub may remap the partition to accomodte windows....

so if a nerd somewhere has put windows on hda2 then a script that assumes hda1 will not work....
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#26 Post by Everitt »

richard.a wrote:
This will work...

1. Create a script file in /root - it will have a gearwheel icon

2. Drag a copy to the desktop - it will also have a gearwheel icon

3. name the shortcut to read what you wish it to,
then edit the shortcut to read exactly this
/mnt/hda1/Documents and Settings/administrator/My Documents

Image

do not use file:///mnt/hda1/Documents and Settings/administrator/My Documents - it WILL NOT WORK.

Nor will file:///mnt/hda1/Documents%20and%20Settings/administrator/My%20Documents



4. The gearwheel icon on puppy's desktop will change to a directory (file folder) and the shortcut will work...
Image
Yes, I think this is how this is going to have to work. I was hoping to have a little more control over the output when mounting the partitions (especially when an ntfs partition is 'dirty'). Sadly I can't see a way to get rox to let me do this.
Tonights agenda:
Finally do some of that heap of physics work (Who knew university could be so hard? :) )
Look into how to do this directly in the config files. (safely!)
Fix /work around a bug whereby vfat partitions don't mount with the -t auto option (maybe just my machine/installation)
I tried this operation in Windows2000sp4 (same as W2000. In all probability works for XPHome and XP Pro as their file tree is the same), and thought I'd share the results.
Should do fine for those two yes. Thanks for the details, they'll make it much, much easier.
One problem we may have is that it is mossible to move the location of 'my documents' to somewhere totally random. I don't see much hope of us ever finding it if that is the case...
We should remember that the majority of home windows users will be using the Administrator login. The justification for this is the flawed argument put forward by those technophobes who have no knowledge of what real systems use... simply that "it's your computer, you are by default the administrator".

I've created three other account links that can be used too, using exactly the same philosophy (with one minor change). You may notice that the Administrator and All Users have been set up and are working; the other two are still "gear wheels" in the capture here...
Image
All Users - by definition, this cannot be used, because this is a combination of start menu links common to all users, and a skeleton for creating new users.
Image

Default User - This one is a possibility, but I've never seen it used.
Image

richard - which is my own login on the windows system on the machine on which I took the captures.
Image
My plan is to try and find the 'Users' folder (documents and settings under XP) and list the directories, asking the user to pick their username. I'll filter out 'All users'.
Why hda1 partition is nominated.
Simply, Microsoft assumes one drive, with one partition, containing its operating system (and nobody else's either) and all the private data mixed up as a big salad. They still haven't accepted the idea of separating system and data after all these years.

hda1 is by definition the first (or only) partition on the first (or only) hard drive.
As cb88 pointed out it's unfortunately not as simple as that. It's also possible to have multiple windows installations. (I think. Surely?) Luckily that's quite easy to scan for.
Windows95, 98, and Me
If it is Windows98 or WindowsMe then it is simple. There is only one user. And the My Documents folder is on the desktop. Don't get worried about directories called "All Users" and "Desktop" in the Windows directory, and the "\All Users\Desktop" directory; they aren't for personal storage.

The path is therefore /mnt/hda1/My Documents
Image
Yep, luckily win 9x should be reasonably simple. Just scan for a 'My Documents' folder on the device's root.

Thank you richard.a for the infomation. It's going to be really useful. :)

Out of the box configuration.
3.x: ???
NT: ???
9x: <root>/My Documents
2K/XP: <root>/Documents and settings/<username>
Vista: <root>/Users/<User name>/ [stop here as everything is in sub folders]

Does anyone know about NT or older versions of windows?

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#27 Post by richard.a »

windows is not always on hda1 becasue grub may remap the partition to accomodte windows....

so if a nerd somewhere has put windows on hda2 then a script that assumes hda1 will not work....
While true I wonder how likely it is that the type of user whose need we are addressing will have anything but a stock standard install.

People who have proliferations of systems on the same machine would likely have to have some nerd/geek understanding and we cannot or should not need to automate stuff like this for them, I would have thought. They would be better helped via the forum, and probably would expect to be, perhaps?

Out of the box configuration.
3.x: ???
NT: ???
9x: <root>/My Documents
2K/XP: <root>/Documents and settings/<username>
Vista: <root>/Users/<User name>/ [stop here as everything is in sub folders]

Does anyone know about NT or older versions of windows?
I run Windows98 and WindowsMe on several computers - mainly for several utilities I find useful (isn't that what a utility is, lol?) plus my train driving simulators (TrainMaster and RailSim which is a DOS one I wrote many track files for), and also on on my test machines with plug-in racks, so I may be able to help if you need testing. I actually used my Athlon rack machine to produce those captures on separate plug-in win2000 and win98 installations.

I no longer have NT3 series, and I suspect that it would be unlikely we would need to consider it because it was a dog of a system that few would not have replaced - imho. Likewise with NT4 although I have an HP image CD with NT4 on it but the only computer I can use it on is this one, which doesn't have removable HDDs, means a pull-it-out-and-change-HDDs scenario which I would rather avoid :) Saying that, I have a colleague I gave my NT4 software box to, and he might lend it back to me for the exercise :)

Windows 3.1, yeah I still would be able to do an install to check this out. I have a feeling that there was no such local documents directory. The filenames with gaps came in with the long filenames of NT3 series which Win95 picked up and ran with using a different way of creating/maintaining them.

So 16-bit windows would not be involved in this discussion. Those of us who rejected 95 are those of us, in the main, who would not use the My Documents directory in all probability.

I also have OS/2 Warp 3 and Warp 4 in boxes on my bookshelves. But like Win 3.1/3.11 they would not install to partitions larger than 2Gb. So I suspect they aren't in the equation either.

Just my thoughts. Let me know if you'd like me to do an installation. But OS/2 while a magnificent system, is time consuming to configure once installed.

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

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

Windows Works in Mysterious Ways

#28 Post by ecomoney »

Hi, I realised that windows worked in mysterious ways, but not quite that mysterious!

There is a possibility I may be able to get 3.03ce included on the cover disks of some widely read windows only magazines aimed at the begginer to intermediate user, this is one reason Im very excited about this feature!

May I make some suggestions about how this script should operate now you have the technical details thrashed out. Puppy, although aimed at "linux newbs" does have its own hardcore following, and I dont think we are going to "win" any friends by having a permanent icon on the desktop to remind people of their past follies! Together with this I dont think we should devote too much desktop real estate to, or have it present when there isnt windows present on the system.

Altogether I think that this system should be aimed at people who are trying linux on their 100% windows p.c. (i.e. just one partition) for the first time.

...and there are a lot of them.

Ok, so puppy is aimed at people with computers that are of late windows 95 and windows 98 spec, so we should definetely include them, windows 3.1 is so old I dont think we need to cater for them as their hardware will be too old to run puppy. Windows NT, as I understand it is a operating system for networks and servers in business, rather than a home desktop operating system like puppy. Although it is possible to have multiple versions of windows running in different partitions, from what I have seen this is extremely uncommon. Its true to say the vast majority of computers have one big ntfs/fat32 partition with windows as their primary OS. It is these computers we should target with the first version of this wizard, and mop up the reminder with later versions.

The script should

1. Check if the hard disk (hda1) partition is formatted to ntfs or fat during bootup of the livecd version. If so it should place a shortcut to the wizard on the desktop. There is a file somewhere that lists all of the icons on the desktop in Rox (or JWM) and a line could be added to this? The Icon needs to be fairly prominent (near the top of the screen?).

2. When the wizard is run (like any wizard) it should start by giving a description of its purpose:-

Code: Select all

"This wizard will seek out your windows 'my documents' folder(s) and make automatically make icons on the puppy linux desktop for them. You can then open your my documents folder and the files in them just like in Windows.

Click on NEXT to continue"

Step 1 of 3  
[Cancel]     [Next] 
"



On clicking "next" the magic is done! The next screen could/should have (X = tick box):-

Code: Select all

Operating system detected : Windows XP/2000 [or windows ME/98/95]

Users account detected:  X John Doe
                                          X Fred Bloggs
                                          X Admin
                                         etc

Please untick any accounts you that you would NOT like to make desktop shortcuts too, and click on OK.

Step 2 of 3
[Cancel]   [OK]
This should place shortcuts on the desktop to the correct directories (edit that file that I cant find or remember the name of, which is really annoying me!!!). The wizard window should not cover where these desktop shortcuts are created, so the user gets feedback straight away.

The last screen...

Code: Select all

Complete!

Your desktop shortcuts to your Windows 'My Documents' folders have now been placed on the desktop. You can open click on them to open your folders and view their contents. Click on the files and they will open in the equivalent linux application.  

[ok]"

This should get new puppies off to a flying start!!!

The only thing I can think of is, if there is a problem with the ntfs drive being corrupted through windows not being shut down properly (or really heavily fragmented) a message box should come up and say

Code: Select all

"Advisory: There is a small fault how windows has stored your information on the hard disk on this computer. Windows NTFS format becomes corrupt very easily, but this is usually very easy to cure. Likely causes are

1. The last time you ran windows, it crashed or didnt shut down properly.
2. The information on the disk is heavily fragmented.

If windows does still work at all, then its recommended that you run the disk defragmentation utility, and/or shut down the computer properly within windows (Hint: take the cd out and restart your computer!).

If windows wont restart, then your only option is to do a repair in puppy linux. This usually works unless your disk is very heavily corrupted. There is a small risk that you may lose some of your data if this is the case. (for expert users, this uses the "ntfsfix" utility in linux)

As another option, you may be able to open your files in "read-only" mode, which means you will be able to open your files as they already are, but you want be able to save any changes (You could write them to a cd or memory stick though!). 

Please choose an option.

[Cancel] [Restart in Windows] [Attempt Repair] [Read Only] 
Step 2.a/3
I hope it is clear how I feel this would work best. Quite often users will only try linux when forced into an absolute corner. If puppy can recover their files in an emergency they will be all the more curious to keep on using it!!! I have to deal with a lot of these cases at the drop in centre.

Note: while I was writing this, a funny coincidence happened...

Many thanks to everyone for your hard work!!!
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
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#29 Post by richard.a »

Robert I agree with you completely.

And I notice the way you described me on your page when servage returned control to you :D :) My friend that was well worded - it promotes the concept of helping one another (I was a "scouter" for years and understand the principle). You don't need to blow trumpets saying "I'm the greatest" in this line of work, please keep that description there. My surname is immaterial although you probably know that there is an axxxxx-under-lyme after all :)

And that post you pointed us to. I've added a comment there, hope that was in order. You are doing a great job. And I hope that Jean looks at that page too :)

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

User avatar
cb88
Posts: 1165
Joined: Mon 29 Jan 2007, 03:12
Location: USA
Contact:

#30 Post by cb88 »

hey hey i'm such a nerd/geek and i want it to link to my documents on it's own....

the first time you use this thing maybe it should as if you want it to setup "AUTOMAIGICALLY" or if you want to setup manually

that sounds like a good solution
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

Re: Windows Works in Mysterious Ways

#31 Post by Everitt »

richard.a wrote: While true I wonder how likely it is that the type of user whose need we are addressing will have anything but a stock standard install.

People who have proliferations of systems on the same machine would likely have to have some nerd/geek understanding and we cannot or should not need to automate stuff like this for them, I would have thought. They would be better helped via the forum, and probably would expect to be, perhaps?
Then again, what's the harm in giving the option, when scanning is so quick and easy? They don't have to use it...

I run Windows98 and WindowsMe on several computers - mainly for several utilities I find useful (isn't that what a utility is, lol?) plus my train driving simulators (TrainMaster and RailSim which is a DOS one I wrote many track files for), and also on on my test machines with plug-in racks, so I may be able to help if you need testing. I actually used my Athlon rack machine to produce those captures on separate plug-in win2000 and win98 installations.

I no longer have NT3 series, and I suspect that it would be unlikely we would need to consider it because it was a dog of a system that few would not have replaced - imho. Likewise with NT4 although I have an HP image CD with NT4 on it but the only computer I can use it on is this one, which doesn't have removable HDDs, means a pull-it-out-and-change-HDDs scenario which I would rather avoid :) Saying that, I have a colleague I gave my NT4 software box to, and he might lend it back to me for the exercise :)

Windows 3.1, yeah I still would be able to do an install to check this out. I have a feeling that there was no such local documents directory. The filenames with gaps came in with the long filenames of NT3 series which Win95 picked up and ran with using a different way of creating/maintaining them.

So 16-bit windows would not be involved in this discussion. Those of us who rejected 95 are those of us, in the main, who would not use the My Documents directory in all probability.

I also have OS/2 Warp 3 and Warp 4 in boxes on my bookshelves. But like Win 3.1/3.11 they would not install to partitions larger than 2Gb. So I suspect they aren't in the equation either.

Just my thoughts. Let me know if you'd like me to do an installation. But OS/2 while a magnificent system, is time consuming to configure once installed.

Richard
Thank's for the offer of testing. I think the code should be pretty the same for almost ever case, so there should be no need to install anything different. I wasn't sure when the 'My documents' idea was introduced, but if you say 9x then that sounds about right to me.
ecomoney wrote:Hi, I realised that windows worked in mysterious ways, but not quite that mysterious!

There is a possibility I may be able to get 3.03ce included on the cover disks of some widely read windows only magazines aimed at the begginer to intermediate user, this is one reason Im very excited about this feature!
Now you're making me nervous. I'm no leetcoder. I'm confident I can get it to work well though. It's actually pretty simple in a lot of ways. :)
May I make some suggestions about how this script should operate now you have the technical details thrashed out. Puppy, although aimed at "linux newbs" does have its own hardcore following, and I dont think we are going to "win" any friends by having a permanent icon on the desktop to remind people of their past follies! Together with this I dont think we should devote too much desktop real estate to, or have it present when there isnt windows present on the system.
Certainly! The idea of not having a permanant icon is fantastic. This thread seems full of brillient ideas. I implemented this bit earlier, it works well.
I've split it into two scripts, on very basic one to do the startup checks, another to be run from the desktop. The startup one is almost there, just needs something done to stop flash disks being detected (sd* I'm afriad, as are sata HDD's, so they can't just be ignored.)
The second script is still very much a work in progess, really just a collection of code snippets. Luckily I should be pretty free over the next couple of days. Stay tuned!
Altogether I think that this system should be aimed at people who are trying linux on their 100% windows p.c. (i.e. just one partition) for the first time.

...and there are a lot of them.
I agree that that should be the target, but I see no real advantage to hard coding the device. It would lead to excess code (hda or sda?), and not really be noticably faster on most machines. I see no reason why the startup scan shouldn't be backgrounded...
Ok, so puppy is aimed at people with computers that are of late windows 95 and windows 98 spec, so we should definetely include them, windows 3.1 is so old I dont think we need to cater for them as their hardware will be too old to run puppy. Windows NT, as I understand it is a operating system for networks and servers in business, rather than a home desktop operating system like puppy. Although it is possible to have multiple versions of windows running in different partitions, from what I have seen this is extremely uncommon. Its true to say the vast majority of computers have one big ntfs/fat32 partition with windows as their primary OS. It is these computers we should target with the first version of this wizard, and mop up the reminder with later versions.
Agreed, but the first thing I wrote was the partition scanning! :D
The script should
1. Check if the hard disk (hda1) partition is formatted to ntfs or fat during bootup of the livecd version. If so it should place a shortcut to the wizard on the desktop. There is a file somewhere that lists all of the icons on the desktop in Rox (or JWM) and a line could be added to this? The Icon needs to be fairly prominent (near the top of the screen?).
Done. It adds the icon if a)it finds a vfat/ntfs partition bigger than 500MB (sould this be lower? I don't remember what win95 could live inside). b)There is no icon called 'My Documents' on the desktop already and c)The icon isn't already there.
The 500MB limit is part of a plan to avoid flash disks being detected. I'm assuming that and HDD modern enough to identify as sd* (sata) is going to have big partitions on it. (haven't included check for sd* yet though)
Any better idea on how to do this greatly appreciated!
2. When the wizard is run (like any wizard) it should start by giving a description of its purpose:-

Code: Select all

"This wizard will seek out your windows 'my documents' folder(s) and make automatically make icons on the puppy linux desktop for them. You can then open your my documents folder and the files in them just like in Windows.

Click on NEXT to continue"

Step 1 of 3  
[Cancel]     [Next] 
"



On clicking "next" the magic is done! The next screen could/should have (X = tick box):-

Code: Select all

Operating system detected : Windows XP/2000 [or windows ME/98/95]

Users account detected:  X John Doe
                                          X Fred Bloggs
                                          X Admin
                                         etc

Please untick any accounts you that you would NOT like to make desktop shortcuts too, and click on OK.

Step 2 of 3
[Cancel]   [OK]
This should place shortcuts on the desktop to the correct directories (edit that file that I cant find or remember the name of, which is really annoying me!!!). The wizard window should not cover where these desktop shortcuts are created, so the user gets feedback straight away.

The last screen...

Code: Select all

Complete!

Your desktop shortcuts to your Windows 'My Documents' folders have now been placed on the desktop. You can open click on them to open your folders and view their contents. Click on the files and they will open in the equivalent linux application.  

[ok]"

This should get new puppies off to a flying start!!!
Once again I'm totally in agreement. Should it include a warning that it includes mounting the drives. I don't really like the idea of probing through drives without permission. All a bit big brother, from the users poiint of view anyway. Kind of thing Windows would do...
The only thing I can think of is, if there is a problem with the ntfs drive being corrupted through windows not being shut down properly (or really heavily fragmented) a message box should come up and say

Code: Select all

"Advisory: There is a small fault how windows has stored your information on the hard disk on this computer. Windows NTFS format becomes corrupt very easily, but this is usually very easy to cure. Likely causes are

1. The last time you ran windows, it crashed or didnt shut down properly.
2. The information on the disk is heavily fragmented.

If windows does still work at all, then its recommended that you run the disk defragmentation utility, and/or shut down the computer properly within windows (Hint: take the cd out and restart your computer!).

If windows wont restart, then your only option is to do a repair in puppy linux. This usually works unless your disk is very heavily corrupted. There is a small risk that you may lose some of your data if this is the case. (for expert users, this uses the "ntfsfix" utility in linux)

As another option, you may be able to open your files in "read-only" mode, which means you will be able to open your files as they already are, but you want be able to save any changes (You could write them to a cd or memory stick though!). 

Please choose an option.

[Cancel] [Restart in Windows] [Attempt Repair] [Read Only] 
Step 2.a/3
Shouldn't be too hard I hope. I assume all the code I'd need to detect something wrong with the drive is in the 'mount' script? (Using windows ATM so I can't look and see) Another thing to consider is hibernation. There should be mention of the fact that hibernating can cause the same problem.
I hope it is clear how I feel this would work best. Quite often users will only try linux when forced into an absolute corner. If puppy can recover their files in an emergency they will be all the more curious to keep on using it!!! I have to deal with a lot of these cases at the drop in centre.

Note: while I was writing this, a funny coincidence happened...

Many thanks to everyone for your hard work!!!
Seems pretty clear too. Very similar to my idea of the project, plus the great idea of only offering the script on the desktop if it might be needed. :D

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#32 Post by richard.a »

Everitt - a magnificent job. Well done. And re my being cagey over the scanning was because I haven't the slightest idea of how easy (or not) it would be. So I was really suggesting where there was no need to complicate it :) I believe in the K-I-S-S concept of working, particularly in logic trees of decision-making. Dates from using relay logic to design process control of factory machinery :)

Wondering what Robert's "[Restart in Windows]" means in that "tick the choices" section.

All in all, it is looking very good mate. :) :D

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#33 Post by Everitt »

richard.a wrote:Everitt - a magnificent job. Well done. And re my being cagey over the scanning was because I haven't the slightest idea of how easy (or not) it would be. So I was really suggesting where there was no need to complicate it :) I believe in the K-I-S-S concept of working, particularly in logic trees of decision-making. Dates from using relay logic to design process control of factory machinery :)
Thanks. :)
It's a piece of cake to scan thanks to Barry's great 'probepart' script. Without that I'd be totally lost.
Wondering what Robert's "[Restart in Windows]" means in that "tick the choices" section.
I read that as warning the user to save everything, ejecting the CD and issuing a reboot command.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#34 Post by disciple »

You might also want to duplicate this for the "desktop" forlder.
A lot of people keep everything on the windows desktop.

BTW I really don't think there is any need to check out Windows 3.1. Have you met anybody still running it?

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#35 Post by Everitt »

ecomoney, would it be ok to use your wording for the diologs, with a few alterations?
disciple wrote:You might also want to duplicate this for the "desktop" forlder.
A lot of people keep everything on the windows desktop.

BTW I really don't think there is any need to check out Windows 3.1. Have you met anybody still running it?
Well quite simply they shouldn't! lol. Yeah, that might be a good idea. Perhaps as an option rather than default?

I think that given the rarity and lack of infomation on win 3.1 I'll ignore it, for now at least.

2byte
Posts: 353
Joined: Mon 09 Oct 2006, 18:10

#36 Post by 2byte »

Everitt
The 500MB limit is part of a plan to avoid flash disks being detected. I'm assuming that and HDD modern enough to identify as sd* (sata) is going to have big partitions on it. (haven't included check for sd* yet though)
Any better idea on how to do this greatly appreciated!
I believe this is correct. Check sys/block/var_device/removable, ie sys/block/sda/removable. Of course it could be sdb, sdc, etc.
If the file content = 1 then it's a plug-in device. If it's 0 it's internal. The file exists for all internal drives but it comes and goes with plug-in drives. Cdroms always seem to be marked as removable for some reason.

Vern

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#37 Post by Everitt »

2byte wrote:Everitt
I believe this is correct. Check sys/block/var_device/removable, ie sys/block/sda/removable. Of course it could be sdb, sdc, etc.
If the file content = 1 then it's a plug-in device. If it's 0 it's internal. The file exists for all internal drives but it comes and goes with plug-in drives. Cdroms always seem to be marked as removable for some reason.

Vern
Thank you! That's perfect!
I guess CD's are removable as there isn't always a disk in there...

Sorry this is taking so long, I've got an essay dues soon and a load of other work that's taking up stupid amounts of my time.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#38 Post by Pizzasgood »

I spent eight hours straight doing homework today, and didn't finish. I'm exceedingly grateful that I don't have any classes that involve essays this semester. Then there's Pebble, which I recently hit a snag on, and that custom Puppy I was hired to work on... I miss back in high school, when I thought that having too much homework meant not being able to finish it all over lunch and the time I spent on the bus (60-min each way). :roll:

So there's at least one person here who knows what you're talking about. :)
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#39 Post by disciple »

Dude - I did way more work in high school. Now at uni I usually only work the day (and night) before a test or an assignment is due :)
But I'm only doing environmental engineering - if I was doing structures or software or something it might be different.

About this 500MB check - why not make it say 2.1GB? A lot of people these days have 1 or 2GB flash drives, they're cheap as anything. And if you make it 500, you'll even pick up all the 512MB flash drives. I guess there are quite a few older machines with 2GB hard drives, but I haven't seen a Windows partition smaller than that for a long time, so maybe 1.1GB would be the best compromise?

Everitt
Posts: 331
Joined: Tue 19 Dec 2006, 21:59
Location: Leeds,UK or Birmingham, UK

#40 Post by Everitt »

Pizzasgood wrote:I spent eight hours straight doing homework today, and didn't finish. I'm exceedingly grateful that I don't have any classes that involve essays this semester. Then there's Pebble, which I recently hit a snag on, and that custom Puppy I was hired to work on... I miss back in high school, when I thought that having too much homework meant not being able to finish it all over lunch and the time I spent on the bus (60-min each way). :roll:

So there's at least one person here who knows what you're talking about. :)
To be totally fair I spend more time pontificating than I do actually working. Still. I'm almost clear now. Of course, the next lot comes out tomorrow...
Hopefully I'll be able to get a fair amount done this evening though. *crosses fingers*
disciple wrote:Dude - I did way more work in high school. Now at uni I usually only work the day (and night) before a test or an assignment is due :)
But I'm only doing environmental engineering - if I was doing structures or software or something it might be different.
I'm doing Physics, they have an irritating habit of asking for assesed questions in once a week, plus a lab report, the odd essay and some scarily hard tutorial questions. The tutorial questions are the wiorst. They're designed to be answered in groups with the help of a professor; my tutor group has to do them indervuidually and submit them...
disciple wrote:About this 500MB check - why not make it say 2.1GB? A lot of people these days have 1 or 2GB flash drives, they're cheap as anything. And if you make it 500, you'll even pick up all the 512MB flash drives. I guess there are quite a few older machines with 2GB hard drives, but I haven't seen a Windows partition smaller than that for a long time, so maybe 1.1GB would be the best compromise?
I'm dropping the size check, the /sys/block/.../removable method is far more reliable. The problem is that win95 could be installed on a small partion...

Post Reply