This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-10 19:56:58

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Simple Question on Linux

What is the equivalent of a .exe or .app, but for Linux?  I think it's .deb but I'm not sure, and I need this for a block or two.  Basically:

Windows = Scratch.exe
Apple = Scratch.app
Linux = ???

Offline

 

#2 2011-10-10 21:13:12

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Simple Question on Linux

There is no actual .exe/.app like file extension. The .deb is an installer, like a .msi. What happens is the compiled program is just compiled, it doesn't really have a specific file extension. It's just "program". I'm sure Google has a few answers somewhere.

Offline

 

#3 2011-10-10 21:14:36

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Simple Question on Linux

Magnie wrote:

There is no actual .exe/.app like file extension. The .deb is an installer, like a .msi. What happens is the compiled program is just compiled, it doesn't really have a specific file extension. It's just "program". I'm sure Google has a few answers somewhere.

Well, what's the extension for the Scratch file that runs the program?

Offline

 

#4 2011-10-11 01:54:36

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Simple Question on Linux

Greenatic wrote:

Magnie wrote:

There is no actual .exe/.app like file extension. The .deb is an installer, like a .msi. What happens is the compiled program is just compiled, it doesn't really have a specific file extension. It's just "program". I'm sure Google has a few answers somewhere.

Well, what's the extension for the Scratch file that runs the program?

it doesn't really have an extension... it has a mime-type


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#5 2011-10-11 10:29:23

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Simple Question on Linux

the scratch executable will just be called 'scratch' or something like that, no .exe.
the scratch program might be in /usr/bin/, /usr/share/ or somewhere else.

Last edited by rookwood101 (2011-10-11 17:07:48)


http://i.imgur.com/zeIZW.png

Offline

 

#6 2011-10-11 11:13:11

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Simple Question on Linux

on Linux a file just needs the execute permission and it will be executed


http://i.imgur.com/1QqnHxQ.png

Offline

 

#7 2011-10-11 17:28:47

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Simple Question on Linux

rookwood101 wrote:

the scratch executable will just be called 'scratch' or something like that, no .exe.
the scratch program might be in /usr/bin/, /usr/share/ or somewhere else.

So, the file is just called Scratch?  I need to know exactly what the file is called...

Offline

 

#8 2011-10-11 23:46:09

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Simple Question on Linux

http://pantherprogramming.weebly.com/pa … buntu.html On Ubuntu there is the command "scratch_squeak_vm" which runs the Squeak vm (virtual machine, I think) which runs the source code of Scratch (wherever the source code is located). So if you want the exact program that runs Scratch ( like the Scratch.exe ) that would probably be the terminal command "scratch" or "scratch_squeak_vm" or it is a Shortcut which runs the command "scratch_squeak_vm -plugins /usr/lib/scratch/Plugins/ /path/to/scratch/source/code". Hope that is somewhat helpful.  smile

Offline

 

#9 2011-10-12 18:33:45

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Simple Question on Linux

Magnie wrote:

http://pantherprogramming.weebly.com/pa … buntu.html On Ubuntu there is the command "scratch_squeak_vm" which runs the Squeak vm (virtual machine, I think) which runs the source code of Scratch (wherever the source code is located). So if you want the exact program that runs Scratch ( like the Scratch.exe ) that would probably be the terminal command "scratch" or "scratch_squeak_vm" or it is a Shortcut which runs the command "scratch_squeak_vm -plugins /usr/lib/scratch/Plugins/ /path/to/scratch/source/code". Hope that is somewhat helpful.  smile

Is it possible to access that command in Squeak using commands such as primOpenURL: and fileExists: ?

Offline

 

#10 2011-10-12 20:45:51

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Simple Question on Linux

I know absolutely no Squeak, so I have no idea. You'd have to search for an OS Squeak command.

Offline

 

#11 2011-10-12 21:10:08

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Simple Question on Linux

Is there anybody with a Linux who could test it for me?

Offline

 

#12 2011-10-13 01:23:21

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Simple Question on Linux

Greenatic wrote:

Is there anybody with a Linux who could test it for me?

i have heaps of linux discs lying around but i haven't got any installed at the moment coz i have win7 and 8 dual booted


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#13 2011-10-18 07:08:40

roijac_test
Scratcher
Registered: 2011-08-31
Posts: 49

Re: Simple Question on Linux

most programs register a bash script
scratch has two files in /usr/bin/, scratch, which is an executable shell script, and scratch_squeak_vm, which is the virtual machine and an 'executable (application/x-executable)'

Last edited by roijac_test (2011-10-18 07:11:17)


http://gigabyte.50webs.com/funnyerrormessages/work013.jpg

Offline

 

#14 2011-10-30 18:05:17

rocketclaw
Scratcher
Registered: 2011-08-27
Posts: 8

Re: Simple Question on Linux

Look at this:http://hacktolive.org/wiki/RUNZ  smile

Offline

 

Board footer