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

#151 2010-01-19 08:28:04

dmoko
Scratcher
Registered: 2009-05-01
Posts: 5

Re: ITopic: scratch on linux

bob84 wrote:

hello,
while opening scratch in debian 5.0 using
$ squeak Scratch.image

i cannot use many features of the software:
- save, save as
- choose new sprite from file
- import project
- export sprite
and many many others;
is there any way to get away from all these issues ?
when these errors appear, a debugging pink window pops out with this title:
"message not understood: findTokens:"

and a whole bunch of errors which i do not understand and, unfortunately i cannot past them here


thank you very much in advance

Sounds like a problem with directory permissions?

Offline

 

#152 2010-01-19 09:51:51

bob84
Scratcher
Registered: 2008-05-18
Posts: 12

Re: ITopic: scratch on linux

Lightnin wrote:

Hmm - have you tried installing the Ubuntu / Debian package from here? That's more likely to be a better solution:
http://info.scratch.mit.edu/Linux_installer
We haven't tested it on Debian, but it should work.  smile

i've already given it a try and it gave me many problems for libraries conflicts which aptitude didn't get rid of; anyway i will try again since i think it is the most suitable solution for the platform;
i'll report back problems

Lightnin wrote:

If for some reason that solution isn't practical, I'll provide a little more info. The problem you are seeing above is because you aren't including links to the Scratch Plugin. Here's a copy of the startup script that installs with Debian package:

/usr/bin/scratch_squeak_vm \
-plugins /usr/lib/scratch/Plugins \
-vm-sound-PA \
/usr/lib/scratch/Scratch.image "${@}"

You'll want to replace scratch_squeak_vm with your Squeak-vm

sorry, i did not understand exactly how i have to use that script: should i invoke squeak using some special flag in order to include that script ?
moreover, i suppose i do not have the script since i am using the .image file obtained from WS version; it is possible to extract it from a linux tarball ?

thank you very much for your help

Offline

 

#153 2010-01-28 13:44:20

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

The script just saves time / typing. It launches squeak with the correct arguments necessary to run Scratch. So you can just try:

squeak -plugins /usr/lib/scratch/Plugins -vm-sound-PA /usr/lib/scratch/Scratch.image

1. - plugins tells squeak where to look for Scratch plugins. The reason you can't save, etc. is b/c your squeak doesn't have access to the plugins that Scratch needs, especially ScratchPlugin. You can get them from the Ubuntu PPA linked to from the Linux Installers page.

2. -vm-sound-PA tells squeak to use the PulseAudio plugin to play sound. You might not have PulseAudio, so instead you could try -vm-sound-ALSA .

Good luck!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#154 2010-01-29 11:50:03

Arc-k
Scratcher
Registered: 2010-01-29
Posts: 2

Re: ITopic: scratch on linux

Where I can receive a source code of -vm-sound-PA?


PS: Sorry for my english

Last edited by Arc-k (2010-01-29 12:09:19)

Offline

 

#155 2010-01-31 10:02:28

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Arc-k wrote:

Where I can receive a source code of -vm-sound-PA?


PS: Sorry for my english

Check out the source code repository mentioned here:
http://squeakvm.org/unix/


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#156 2010-01-31 10:12:07

Arc-k
Scratcher
Registered: 2010-01-29
Posts: 2

Re: ITopic: scratch on linux

Lightnin wrote:

Arc-k wrote:

Where I can receive a source code of -vm-sound-PA?


PS: Sorry for my english

Check out the source code repository mentioned here:
http://squeakvm.org/unix/

yes.
but
v3.10 have not pulse
and v3.11 have a buggy pulse-plugin

Last edited by Arc-k (2010-01-31 10:13:29)

Offline

 

#157 2010-02-01 12:42:37

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Ah, the pulse plugin we use has a few bugs as well, unfortunately. I think it is probably the same version as you've found on the Squeak site.

The Pulseaudio sound libraries seem to be a moving target for developers. So the plugin we had worked great on Jaunty, but on Karmic there are problems with recording. If you'd like to help contribute a fix, or perhaps work on a GStreamer plugin, we'd love the help!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#158 2010-02-08 14:54:16

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

There is a workaround for the recording problem on Ubuntu 9.10 Karmic.

Before recording with Scratch, open up the sound preferences window. (Usually you can do this by right clicking on the speaker icon in the right side of the top panel). Choose the "input" tab. You should see a little meter that shows the sounds level being detected by the microphone.

Now record something in Scratch, and it should work fine! (Weird, I know... it has to do with the way pulseaudio sets latency when that window is open).  smile


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#159 2010-02-24 00:23:31

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: ITopic: scratch on linux

All right, I am kinda getting steamed up right now.

Scratch Team says "blah blah blah blah", it's not helpful.

I'd like a straightforward list of steps on what I need to do on 64-bit Ubuntu Karmic Koala linux operating system using the PPA.

I unsure wether I need to update the key in 9.10 or 9.04.

I'm sorry, the instructions are just kinda badly built. I sound really mad, don't I?   hmm

I'd still like it soon, because all my computer skills in Windows and Mac don't apply in Linux.

And please don't say "Go to Windows, it's easier" because I am USING LINUX and that is that.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#160 2010-03-01 09:10:30

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Hmmm... sorry you are feeling frustrated.
We hope to get the Linux packaging issues simplified soon - probably by making a binary downloadable from our main Download page. However, we still don't have official support for 64 bit platforms.

But for now, go the ppa page and manually download the .deb file for your distribution.

https://launchpad.net/~scratch/+archive/ppa
(Click view package details, and then the version corresponding to your OS. Download the .deb file.)

Then look at this post for instructions on how to force installation of the 32 bit Scratch package.

http://scratch.mit.edu/forums/viewtopic.php?pid=279634#p279634

Scratch On!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#161 2010-03-02 23:11:52

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: ITopic: scratch on linux

Thanks.

The thing is, I don't have an i386 architecture- I have an AMD 64-bit! That's my problem. I was wondering, aren't 64-bit systems backwards compatible? I thought that would be the case with Ubuntu Linux 9.10, but not. Maybe I should just download a 32-bit Ubuntu version?

I did try the 64-bit force, though. It worked!  big_smile  Thanks!

Last edited by Greatdane (2010-03-02 23:32:51)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#162 2010-03-10 15:42:10

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

64 platforms aren't really backwards compatible - they require that binaries are built for them.  Many can emulate 32 bit, but it's not seamless. I'm glad to see that forcing the install has worked though!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#163 2010-04-12 16:29:54

EmperorEvil
Scratcher
Registered: 2009-02-13
Posts: 1000+

Re: ITopic: scratch on linux

At the time i'm using Ubuntu Linux too. My windows 7 computer broke down so..... yeah.

I hate how the applet doesn't play sound on linux. How annoying!


http://oi54.tinypic.com/t8ogle.jpg http://blocks.scratchr.org/API.php?user=veggieman001&action=onlineStatus

Offline

 

#164 2010-04-15 08:18:50

superpikachu
Scratcher
Registered: 2009-09-20
Posts: 6

Re: ITopic: scratch on linux

err.......how do you get scratch for the Eee pc ? yikes  please could someone send a link 2 me!? i need linux version

Offline

 

#165 2010-04-16 11:51:39

mathazay
Scratcher
Registered: 2009-11-14
Posts: 3

Re: ITopic: scratch on linux

superpikachu wrote:

err.......how do you get scratch for the Eee pc ? yikes  please could someone send a link 2 me!? i need linux version

there was no problem with eeepc901 (eb4 beta) and 1.4, it worked fine ; but i have reinstalled my system and now, the scratch 1.4.0.1 ask for a pulseaudio >= 1.0.9... but this pulseaudio does not exist (higher is 0.9.21-1)

Offline

 

#166 2010-04-20 13:34:47

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

mathazay wrote:

superpikachu wrote:

err.......how do you get scratch for the Eee pc ? yikes  please could someone send a link 2 me!? i need linux version

there was no problem with eeepc901 (eb4 beta) and 1.4, it worked fine ; but i have reinstalled my system and now, the scratch 1.4.0.1 ask for a pulseaudio >= 1.0.9... but this pulseaudio does not exist (higher is 0.9.21-1)

What version of the Scratch package had you installed earlier?  It may be that the EEPC OS is using a version of Pulseaudio that is too old. This package should be compatible with Ubuntu based distributions as old as Jaunty (9.04). You could try installing Netbook remix....


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#167 2010-04-23 09:40:20

EmperorEvil
Scratcher
Registered: 2009-02-13
Posts: 1000+

Re: ITopic: scratch on linux

superpikachu wrote:

err.......how do you get scratch for the Eee pc ? yikes  please could someone send a link 2 me!? i need linux version

What I know about the Eee PC which I do not know that much about, tells me that you may not be able to run scratch on it.

To my knoledge, it comes with the OS Sugar, which scratch can not be used on.

If you want scratch on Eee PC, I'd suggest getting Linux Ubuntu or Debian.


http://oi54.tinypic.com/t8ogle.jpg http://blocks.scratchr.org/API.php?user=veggieman001&action=onlineStatus

Offline

 

#168 2010-05-13 17:08:40

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: scratch on linux

EmperorEvil wrote:

[To my knoledge, it comes with the OS Sugar, which scratch can not be used on.

Scratch runs on the XO (the One Laptop Per Child machine) so it clearly works with Sugar!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#169 2010-05-25 12:34:42

linedubeth
Scratcher
Registered: 2009-07-22
Posts: 10

Re: ITopic: scratch on linux

I put this command and ...

/scratchv2$ squeak -plugins /usr/lib/scratch/Plugins -vm-sound-PA /usr/lib/scratch/Scratch.image


i have this message

found gettext in path
/home/gduteil/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2
could not find display driver vm-display-X11; either:
  - check that /usr/lib/squeak/3.11.3-2147/vm-display-X11.so exists, or
  - use the '-plugins <path>' option to tell me where it is, or
  - remove DISPLAY from your environment.
/usr/bin/squeak: line 277: 10233 Abandon                 $VM "$1" "$2"
gduteil@gduteil-desktop:~/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2$ ^C
gduteil@gduteil-desktop:~/Documents/matechnoclg/2009-2010/4eme/projets/programation/scratchv2$



thanks a lot

Offline

 

#170 2010-07-12 06:50:31

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: ITopic: scratch on linux

I checked John's WeDo plugin for OLPC XO with scratch_1.4.0.1-0ubuntu5_i386.
http://scratch.mit.edu/forums/viewtopic.php?pid=434923#p434923
Yeah! It works fine on my Ubuntu 9.04.

Offline

 

#171 2010-09-28 14:09:47

rogerm
Scratcher
Registered: 2007-06-12
Posts: 5

Re: ITopic: scratch on linux

Thought I would post this in case others ran into the same problem.

Just installed Scratch on a 32bit Ubuntu system (10.04) and noticed that the audio playback had a bit of a delay.  Read this in the README.txt:

       The "scratch" startup script shows how to execute the vm, and
       the necessary command line switches to indicate where the
       plugins can be found, and which sound plugin should be used.
       The included script uses the pulseaudio sound plugin by
       defauilt, but plugins are also available for alsa and oss -
       simply change the vm's command line switches to try different
       ones. Here's the script:

       /usr/bin/scratch_squeak_vm \
       -plugins /usr/lib/scratch/Plugins \
       -vm-sound-pulse \
       /usr/lib/scratch/Scratch.image "${@}"

Changed from the default pulse plugin to OSS and the problem was solved.

Offline

 

#172 2010-10-18 04:27:39

hagwre
New Scratcher
Registered: 2010-10-18
Posts: 4

Re: ITopic: scratch on linux

Yeah,after reading this ,i know not only the ffxiv gil,but also the technology ,i will work hard to learn more about it.

Offline

 

#173 2010-10-23 15:04:04

rodoval
New Scratcher
Registered: 2010-10-16
Posts: 2

Re: ITopic: scratch on linux

gromko wrote:

The sound and midi problem in Scratch for Linux - next step:

1. Disable PulseAudio - not support on current version squeak-audio

2. Disable a sound server arTs (or use artsdsp in Scratch startup script)

3. Use startup script for the TiMidity ALSA sequencer interface (best variant -timidity automatically starting on boot system) or manual run timidity as midi-server (from root or sudo - very bad idea):

timidity -iADq -Os

Write this script and save as "midi_support". Set execute permission for this script.

#!/bin/sh
## MIDI support for Scratch

if egrep -q 'TiMidity' /proc/asound/seq/clients 2>/dev/null;
    then
## loop, if squeak running
    while ( ps -A | grep 'squeak' >/dev/null ); do   
## if Squeak midi port exist?
        if  ( aconnect -i | egrep -q 'Squeak' >/dev/null);
        then
             if ! egrep -q 'Connecting To: 128:0' /proc/asound/seq/clients 2>/dev/null
                then aconnect Squeak:0 TiMidity:0
             fi
        fi;
    done
    else echo "TiMidity server not run"
fi       

4. Run Scratch startup script.
6. Run 'midi-support' script
7. Selecr language interface for Scratch (!!!) for creating MIDI-port (???)
8. Test: play sound, sound record and midi work fine.

My startup  script for run Scratch:

/usr/bin/artsdsp /usr/share/Scratch/squeak/squeak -plugins /usr/share/Scratch/squeak /usr/share/Scratch/Scratch.image &


Scratch.image for Scratch1.4 Beta7 (works and in the previous versions).
Squeak - squeak-3.10-1.

My Linux: Mandriva 2009 (KDE 3.5)

Hi,

I have installed Scratch in Ubuntu 10.04 amd64 using the "--force-architecture" flag. It seems all OK, but the "play drum" and "play note" blocks are not working properly: they play always the same sound at different tone, regardless instrument or drum number. I have tried to follow your steps, but the "aconnect -i" command don't display any Scratch or Squeak midi port. Timidity is running correctly as daemon. Apparently, the strange seventh step is not working for me.

Any help, please?

Offline

 

#174 2010-11-12 18:45:40

msfan98
Scratcher
Registered: 2010-05-26
Posts: 29

Re: ITopic: scratch on linux

I always get that "Wrong Architecture" message when I'm trying to open the .deb file with Ubuntu Software Center.  Running Ubuntu 10.10, btw.


http://badges.steamprofile.com/profile/default/steam/76561198045923154.png

Offline

 

#175 2010-11-12 21:34:46

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

rodoval wrote:

I have installed Scratch in Ubuntu 10.04 amd64 using the "--force-architecture" flag. It seems all OK, but the "play drum" and "play note" blocks are not working properly: they play always the same sound at different tone, regardless instrument or drum number. I have tried to follow your steps, but the "aconnect -i" command don't display any Scratch or Squeak midi port. Timidity is running correctly as daemon. Apparently, the strange seventh step is not working for me.

Any help, please?

Unfortunately, we were never able to get midi working properly with Scratch on Linux.  sad  Sorry about that!


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

Board footer