Sign in Join

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

Mailing lists / fpc-pascal / 2009-06

FPC on USB

13 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Thomas Nelson

Sorry the proper subject should have been FPC on USB

--- On Sat, 6/13/09, Thomas Nelson wrote:

Earlier message 25 lines
From: Thomas Nelson Subject: PFC on USB To: Date: Saturday, June 13, 2009, 8:47 AM Hello,   I would like to put the FPC development environment (including fpgui) on a USB.   I live in the windows environment and would I am trying to find the proper procedure to be able to make FPC portable as I go from computer to computer.    This would enable me to keep my development environment and programs with me, but still maintain portability.   Can someone point me to the proper documentation on how to do this, I seem to have missed it somewhere   TIA   Tom  

Reply by email

Doug Chamberlin
to Thomas Nelson
Thomas Nelson wrote
Sorry the proper subject should have been FPC on USB

I strongly suggest you look into storing a complete virtual machine on the USB storage. I know a few people who operate their VM's from USB devices and they are content with that arrangement.

The advantage is that the VM environment would not require any fragile or otherwise tricky configuration details and would be completely portable without any significant modifications to the host environment.

There are several free good implementations around.

Are you looking at USB flash drives or hard drives? It might make a big difference.

Reply by email

Graeme Geldenhuys
to Thomas Nelson: Sorry the proper subject should have been FPC on USB From: Thomas Nelson Subject: PFC on…
Thomas Nelson wrote 6 lines
I would like to put the FPC development environment (including fpgui) on a USB. I live in the windows environment and would I am trying to find the proper procedure to be able to make FPC portable as I go from computer to computer.

I have a similar setup, but under Linux. What I had to do is create two scripts (The windows term would be batch files) to setup my environment. For example, the one script sets the PATH environment variable to include the FPC/bin directory. That way the terminal I used to execute that script can locate and use fpc (ppc386) from any location - note that it only works for that terminal.

The other scrip I have is to load the Lazarus IDE and my custom script passes in the --pcp=<pathhere> parameter for my roaming profile directory.

My external drive is always mounted as: /media/640gig/

FPC is located at: /media/640gig/fpc_2.2.5
Lazarus is at: /media/640gig/lazarus
fpGUI is at: /media/640gig/programming/fpgui
My local projects are at: /media/640gig/programming/

This setup is not ideal, but in my controlled environment, it allows me to move from desktop to laptop and still have all my projects available and my development environment.

Regards, - Graeme - _______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Thomas Nelson: Sorry the proper subject should have been FPC on USB From: Thomas Nelson Subject: PFC on…
Thomas Nelson wrote 6 lines
Hello, I would like to put the FPC development environment (including fpgui) on a USB. I live in the windows environment and would I am trying to find the proper procedure to be able to make FPC portable as I go from computer to computer.

This is about Lazarus which includes FPC:
http://www.eightminds.com/archives/22

Maybe you can use that.

Vincent

Reply by email

Graeme Geldenhuys
to Vincent Snijders
Vincent Snijders wrote
This is about Lazarus which includes FPC: http://www.eightminds.com/archives/22

Ah, that made me think of the website: Portable Apps, which does just that. All kinds of applications that only run off the USB drive.

Here is the Lazarus - portable.apps link:
http://portableapps.com/node/18088

Please note:
I have never tried this myself.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

Show quoted text 6 lines
Here is the Lazarus - portable.apps link: http://portableapps.com/node/18088 Please note: I have never tried this myself.

Is that complexity really needed at all? Might be as simple as making a small program that extracts the drive the stick is mounted on, then have that put in the environment, and then use %stickdrive% everywhere to recall it?

Reply by email

Vincent Snijders
to Marco van de Voort
Marco van de Voort wrote
Is that complexity really needed at all? Might be as simple as making a small program that extracts the drive the stick is mounted on, then have that put in the environment, and then use %stickdrive% everywhere to recall it?

"and then use %stickdrive% *everywhere* to recall it" sounds rather complex too, certainly if the work for portable apps is already done by somebody else.

Vincent

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Is that complexity really needed at all?…
Marco van de Voort wrote
Is that complexity really needed at all? Might be as simple as making a

No idea. As I mentioned, I don't use any of those "extra" applications. I simply have two scripts I run in a terminal session, and afterwards that session is fully working from any location on my system. I don't need any extra applications using my setup.

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Thomas Nelson

Thank you, this is close to what I was hoping to do.  
I was hoping to be able to install FPC on my system, then do a copy to my USB, setup a batch program to the "path" and go.  I did notice though that FPC writes to the windows registry and was curious as to how critical that information is to the operation of FPC from the USB.  
I appreciate your response, it is very similar to what I was hoping to do.  
Tom

--- On Mon, 6/15/09, Graeme Geldenhuys wrote:

Earlier message 44 lines
From: Graeme Geldenhuys Subject: Re: [fpc-pascal] FPC on USB To: "FPC-Pascal users discussions" Date: Monday, June 15, 2009, 3:13 AM Thomas Nelson wrote: >     I would like to put the FPC development environment (including >     fpgui) on a USB. >      >     I live in the windows environment and would I am trying to find the >     proper procedure to be able to make FPC portable as I go from >     computer to computer. I have a similar setup, but under Linux. What I had to do is create two scripts (The windows term would be batch files) to setup my environment. For example, the one script sets the PATH environment variable to include the FPC/bin directory. That way the terminal I used to execute that script can locate and use fpc (ppc386) from any location - note that it only works for that terminal. The other scrip I have is to load the Lazarus IDE and my custom script passes in the --pcp=<pathhere> parameter for my roaming profile directory. My external drive is always mounted as: /media/640gig/ FPC is located at: /media/640gig/fpc_2.2.5 Lazarus is at: /media/640gig/lazarus fpGUI is at: /media/640gig/programming/fpgui My local projects are at: /media/640gig/programming/ This setup is not ideal, but in my controlled environment, it allows me to move from desktop to laptop and still have all my projects available and my development environment. -- Regards,   - Graeme - _______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Thomas Nelson

Thank you, I will look into this also
 
Tom

--- On Mon, 6/15/09, Vincent Snijders wrote:

Earlier message 17 lines
From: Vincent Snijders Subject: Re: [fpc-pascal] FPC on USB To: "FPC-Pascal users discussions" Date: Monday, June 15, 2009, 4:03 AM Thomas Nelson schreef: > Hello, >  I would like to put the FPC development environment (including fpgui) on a USB. >  I live in the windows environment and would I am trying to find the proper procedure to be able to make FPC portable as I go from computer to computer.  This is about Lazarus which includes FPC: http://www.eightminds.com/archives/22 Maybe you can use that. Vincent

Reply by email

Graeme Geldenhuys
to Thomas Nelson: Thank you, this is close to what I was hoping to do.   I was hoping to be able to…
Thomas Nelson wrote
that FPC writes to the windows registry and was curious as to how critical that information is to the operation of FPC from the USB.

I was not aware of that. What is actually written to the registry? I thought the compiler only uses the fpc.cfg file.

Regards,
- Graeme -

________________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

> that FPC writes to the windows registry and was curious as to how > critical that information is to the operation of FPC from the USB. I was not aware of that. What is actually written to the registry? I thought the compiler only uses the fpc.cfg file.

The windows installer can register certain pascal extensions with the textmode IDE.

For the rest is it the adding to the PATH and the fpc.cfg file.

Reply by email

Thomas Nelson

Thank you - having the extensions registered is not a large problem, as I don't mind typing in .pp or .pas - I should be able to set the Path - PathExt - and associations via a batch file.  
Thanks to everyone for their assistance on this.
 
Tom

--- On Tue, 6/16/09, Marco van de Voort wrote:

Earlier message 16 lines
From: Marco van de Voort Subject: Re: [fpc-pascal] FPC on USB To: "FPC-Pascal users discussions" Date: Tuesday, June 16, 2009, 9:31 AM In our previous episode, Graeme Geldenhuys said: > > that FPC writes to the windows registry and was curious as to how > > critical that information is to the operation of FPC from the USB. > > I was not aware of that. What is actually written to the registry? I thought the compiler only uses the fpc.cfg file. The windows installer can register certain pascal extensions with the textmode IDE.  For the rest is it the adding to the PATH and the fpc.cfg file.

Reply by email