User Tools

Site Tools


linux:installscratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:installscratch [2014/02/24 23:01] – created rlunarolinux:installscratch [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 43: Line 43:
 ===== Third step: fix start script ===== ===== Third step: fix start script =====
  
-The last step is to fix the start scriptmadre the following changes: +The last step is to fix the start script, ''/usr/local/bin/scratch'', made the following changes (better to save a copy of the original):
- +
-**When it says:**+
  
 <code bash> <code bash>
Line 52: Line 50:
 # Description:     Script to start the Squeak VM binary with the scratch image # Description:     Script to start the Squeak VM binary with the scratch image
 # Original Author: Bert Freudenberg # Original Author: Bert Freudenberg
-# Adapted by:      Miriam Ruiz+# Adapted by:      Miriam Ruiz, Raul Luna
  
-VM_VERSION=`find /usr/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"`+VM_VERSION=4.10.2-2614
 SQ_DIR=/usr/lib/squeak/$VM_VERSION SQ_DIR=/usr/lib/squeak/$VM_VERSION
 VM="$SQ_DIR/squeakvm" VM="$SQ_DIR/squeakvm"
-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plug +VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/squeak/$VM_V 
-IMAGE="/usr/share/scratch/Scratch.image"+IMAGE="/usr/local/share/scratch/Scratch.image"
 IMOPTIONS="" IMOPTIONS=""
 DOCUMENT="" DOCUMENT=""
 WRAPPER="" WRAPPER=""
- 
  
 </code> </code>
  
 +And this is it. If you want, you can do more fixings like creating a fancy starting icon, etc. But the hard stuff is already done.
  
-**I put:**+===== Final step: put it in your local language ===== 
 + 
 +I've discovered that scratch didn't appear in the local language, but in english. Debugging the launching of the application, I've discovered that it keeps searching in the directory ''/usr/share/scratch'' despite it is installed in ''/usr/local/share/scratch''. A symbolic link resolved the issue:
  
 <code bash> <code bash>
-#!/bin/sh +oktopus:/usr/share ln -s /usr/local/share/scratchscratch 
-# File:            scratch +</code>
-# Description:     Script to start the Squeak VM binary with the scratch image +
-# Original Author: Bert Freudenberg +
-# Adapted by:      Miriam Ruiz, Raul Luna+
  
-VM_VERSION=4.10.2-2614 
-SQ_DIR=/usr/lib/squeak/$VM_VERSION 
-VM="$SQ_DIR/squeakvm" 
-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/squeak/$VM_V 
-IMAGE="/usr/local/share/scratch/Scratch.image" 
-IMOPTIONS="" 
-DOCUMENT="" 
-WRAPPER="" 
  
-</code> +===== Further reading =====
- +
-And this is it. If you want, you can do more fixings like creating a fancy starting icon, etc. But the hard stuff is already done.+
  
 +Reading here and there, I've discovered that worth have a look to these projects related with scratch:
  
 +  * http://byob.berkeley.edu/ (build your own blocks)
 +  * http://pantherprogramming.weebly.com/download-panther.html (Panther programming)
  
  
linux/installscratch.1393279309.txt.gz · Last modified: 2022/12/02 22:02 (external edit)