How to switch vm's

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to switch vm's

Chris Muller-3
I need to go back to the 3.10-4 vm to do some profiling.  I have two
VM's installed on my Ubuntu server linux box; 3.10-4 and the new
4.0.3-2202.

Before, I used to just have a soft-link named /usr/local/bin/squeak
pointing to /usr/local/lib/squeak/3.10-4/squeak, and that is how I
would switch VM's; by repointing the soft link.

However, the new vm creates a binary file named /usr/local/bin/squeak
which, performs some Linux magic of which I am not familiar.

To attempt to switch back to the old vm, I renamed
/usr/local/bin/squeak to /usr/local/bin/squeak.renamed and
/usr/local/bin/squeak.sh to /usr/local/bin/squeak.sh.renamed.

BTW, what is squeak.sh?

I then created a softlink to the old executable:

  ln -s ../lib/squeak/3.10-4/squeak squeak

Unfortunately, when trying to launch the vm:

  squeak -version

I get:

  SQUEAK_ENCODING='UTF8'
  SQUEAK_PATHENC='UTF8'
  +exec: 1: : Permission denied

I really need to switch VM's (temporarily).  Any assistance is greatly
appreciated.

 - Chris

Reply | Threaded
Open this post in threaded view
|

Re: How to switch vm's

Chris Muller-3
Forgot to mention, I have execute permissions on both the softlink and
the file it points to..

On Sat, Apr 24, 2010 at 10:28 AM, Chris Muller <[hidden email]> wrote:

> I need to go back to the 3.10-4 vm to do some profiling.  I have two
> VM's installed on my Ubuntu server linux box; 3.10-4 and the new
> 4.0.3-2202.
>
> Before, I used to just have a soft-link named /usr/local/bin/squeak
> pointing to /usr/local/lib/squeak/3.10-4/squeak, and that is how I
> would switch VM's; by repointing the soft link.
>
> However, the new vm creates a binary file named /usr/local/bin/squeak
> which, performs some Linux magic of which I am not familiar.
>
> To attempt to switch back to the old vm, I renamed
> /usr/local/bin/squeak to /usr/local/bin/squeak.renamed and
> /usr/local/bin/squeak.sh to /usr/local/bin/squeak.sh.renamed.
>
> BTW, what is squeak.sh?
>
> I then created a softlink to the old executable:
>
>  ln -s ../lib/squeak/3.10-4/squeak squeak
>
> Unfortunately, when trying to launch the vm:
>
>  squeak -version
>
> I get:
>
>  SQUEAK_ENCODING='UTF8'
>  SQUEAK_PATHENC='UTF8'
>  +exec: 1: : Permission denied
>
> I really need to switch VM's (temporarily).  Any assistance is greatly
> appreciated.
>
>  - Chris
>

Reply | Threaded
Open this post in threaded view
|

Re: How to switch vm's

Levente Uzonyi-2
In reply to this post by Chris Muller-3
On Sat, 24 Apr 2010, Chris Muller wrote:

> I need to go back to the 3.10-4 vm to do some profiling.  I have two
> VM's installed on my Ubuntu server linux box; 3.10-4 and the new
> 4.0.3-2202.

3.10-4 will give you different results than the closure vms.

>
> Before, I used to just have a soft-link named /usr/local/bin/squeak
> pointing to /usr/local/lib/squeak/3.10-4/squeak, and that is how I
> would switch VM's; by repointing the soft link.
>
> However, the new vm creates a binary file named /usr/local/bin/squeak
> which, performs some Linux magic of which I am not familiar.

That's a shell script, not a binary. The binary is squeakvm.

>
> To attempt to switch back to the old vm, I renamed
> /usr/local/bin/squeak to /usr/local/bin/squeak.renamed and
> /usr/local/bin/squeak.sh to /usr/local/bin/squeak.sh.renamed.
>
> BTW, what is squeak.sh?

It's a script for starting squeak from GUI's:
"Launch squeak from a menu, prompting for and/or installing an image"

>
> I then created a softlink to the old executable:
>
>  ln -s ../lib/squeak/3.10-4/squeak squeak
>
> Unfortunately, when trying to launch the vm:
>
>  squeak -version
>
> I get:
>
>  SQUEAK_ENCODING='UTF8'
>  SQUEAK_PATHENC='UTF8'
>  +exec: 1: : Permission denied

That looks like the output of the shell script of recent vms.

>
> I really need to switch VM's (temporarily).  Any assistance is greatly
> appreciated.

Why don't you use absolute path?
/usr/local/lib/squeak/3.10-4/squeak -your-options your.image


Levente

>
> - Chris
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to switch vm's

K. K. Subramaniam
In reply to this post by Chris Muller-3
On Saturday 24 April 2010 08:58:16 pm Chris Muller wrote:
> I need to go back to the 3.10-4 vm to do some profiling.  I have two
> VM's installed on my Ubuntu server linux box; 3.10-4 and the new
> 4.0.3-2202.
3.10 vms had hard-coded paths that made it difficult for non-root users to try
out squeak. The newer versions (3.11+) use a script squeak to detect and
launch from any directory. i.e. if you unzip the tar.gz into $HOME/squeak/
   $HOME/squeak/Squeak-4*/bin/squeak <imagefile>

will do the right magic env settings and command line parameters to launch
squeak. The bin/squeak.sh is for interactive launches. It throws up a native
file selection dialog so you can choose the image path.

You can use /usr/local/bin/squeak to launch 3.10 and
$HOME/squeak/Squeak-4.0*/bin/squeak to try out newer version.

HTH .. Subbu

Reply | Threaded
Open this post in threaded view
|

Re: How to switch vm's

Chris Muller-3
Ah, thanks..

On Mon, Apr 26, 2010 at 8:28 AM, K. K. Subramaniam <[hidden email]> wrote:

> On Saturday 24 April 2010 08:58:16 pm Chris Muller wrote:
>> I need to go back to the 3.10-4 vm to do some profiling.  I have two
>> VM's installed on my Ubuntu server linux box; 3.10-4 and the new
>> 4.0.3-2202.
> 3.10 vms had hard-coded paths that made it difficult for non-root users to try
> out squeak. The newer versions (3.11+) use a script squeak to detect and
> launch from any directory. i.e. if you unzip the tar.gz into $HOME/squeak/
>   $HOME/squeak/Squeak-4*/bin/squeak <imagefile>
>
> will do the right magic env settings and command line parameters to launch
> squeak. The bin/squeak.sh is for interactive launches. It throws up a native
> file selection dialog so you can choose the image path.
>
> You can use /usr/local/bin/squeak to launch 3.10 and
> $HOME/squeak/Squeak-4.0*/bin/squeak to try out newer version.
>
> HTH .. Subbu
>
>