Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Lazarus on a Flashdrive

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reenen Laurie

Hi Everyone,

I have a flashdrive (4gb), and I have 2 pcs I program on Lazarus on... instead of keeping 2 different versions of Lazarus, can I rather have 1 version on the flash disk. So I want to know:
a) is it possible to install lazarus on a flashdrive (so that it is constant on any system - ie all the "settings" are written to the flash and not to the home folder)
b) is it possible to have 2 binaries, 1 for linux and 1 for win32?

This will be so cool if I can do it! :-)

Regards,
-Reenen

o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080905/29e5b110/attachment.html

Reply by email

Michael Green
to Reenen Laurie

Hello Reenen,

Yes, it's possible to have Lazarus run from a flash drive - I did that for quite some time. Simply install to a folder on your flash drive instead the harddrive.

There's just two things you have to take care of, both of which pretty easy to do with a little batch file (or FreePascal app ;-) - you need to have the PATH environment setting pointing to your FPC folder and Lazarus needs to know a few additional folders. That means, if your flash drive is "E:\" on one PC, it might be "G:\" on another.

As for 2 binaries, you ought to be able to do the same on a single FAT partition (just two seperate folders, as most Linux distros will chew on FAT fine.. No pun intended...), or go a bit fancier and partition your flash drive...

Just a quick note though: do get a decent flash drive. You'd think a flash drive is faster than a HD, but that's not always the case (especially the ones that are large and cheap... There's a reason they're cheap).

-- Mike

Reply by email

Reenen Laurie
to Michael Green

I am hoping for:

/mnt/flashdisk/lazarus/ = E:\lazarus

and then use the SAME source for both, and just have two binaries. (lazarus and lazarus.exe)

(not that having two would be so much bigger in size... but it will ensure that the two works from exactly the same source)

Michael Green wrote 28 lines
Hello Reenen, Yes, it's possible to have Lazarus run from a flash drive - I did that for quite some time. Simply install to a folder on your flash drive instead the harddrive. There's just two things you have to take care of, both of which pretty easy to do with a little batch file (or FreePascal app ;-) - you need to have the PATH environment setting pointing to your FPC folder and Lazarus needs to know a few additional folders. That means, if your flash drive is "E:\" on one PC, it might be "G:\" on another. As for 2 binaries, you ought to be able to do the same on a single FAT partition (just two seperate folders, as most Linux distros will chew on FAT fine.. No pun intended...), or go a bit fancier and partition your flash drive... Just a quick note though: do get a decent flash drive. You'd think a flash drive is faster than a HD, but that's not always the case (especially the ones that are large and cheap... There's a reason they're cheap). -- Mike _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080905/81cbfa58/attachment.html

Reply by email