Some days ago I intended to build an image 'Raspi-OS (Raspbian wheezy or Ubuntu MATE) + LC' for download but this wasn't very welcome (see here).
So here is the
Installation guide for LiveCode on a Raspi 2
(On Raspi B+ you need only one line more, see footnote **)
If you have a running Raspi-OS then type in LX-Terminal
Code: Select all
cat /etc/os-release
[Part II] "5-minutes guide" (without time needed for downloads)
A. Prepare (use LX-terminal).
Code: Select all
# 1. adjust for using LC's 32bit-color
sudo apt-get update
sudo apt-get dist-upgrade
sudo nano /boot/config.txt
# insert at bottom the line**
framebuffer_depth=32
ctrl-O # the "O" is "Oh", not zero!
ctrl-X
# 2. adjust for LC's transparency/windowshape
sudo apt-get install xcompmgr
cd /etc/xdg/autostart/
sudo nano Xcompmgr.desktop
#Copy and paste the following
[Desktop Entry]
Encoding=UTF-8
Name=XCompmgr
Comment=XCompmgr--our compositor
Exec=xcompmgr
Terminal=false
Type=Application
OnlyShowIn=XFCE;LXDE;MATE
# Save and exit to terminal
ctrl-O
ctrl-X
# 3. [optional] Install the Firefox variant for Raspi:
sudo apt-get install iceweasel
# 4. Preparation done
sudo reboot
For LC 6.5.1 scroll to bottom of page for the link
and for LC 7.0.4 use "RPI" from the 7.0.4 links:
http://downloads.livecode.com/livecode/
• RightClick the installer to make them executable
• DoubleClick to start.
The installation should run without problems.
Remark. I prefer the installation option "for this user/for you only"
C. Adjustment of launchers
(in menu: Applications/development):
- Use view: show hidden items in file manager.
- Go to /home/pi/.local/share/applications
- Open the LC 6.5.1 file with the text editor (rightClick)
Look at the line "Exec= ..." - Replace ".x86" by ".arm" and surround the whole path right of "=" with quotes. Save.
D. Test transparency.
Download one of the stacks from here
http://forums.livecode.com/viewtopic.php?f=76&t=26397
for example the "splash-stack"
http://forums.livecode.com/viewtopic.ph ... 02#p137302.
Unarchive the stack and open it from your running LC-IDE.
E. Remarks.
- I prefer to open stacks from the LC-menu "File". Double-clicking stack files doesn't work reliably.
- LC 6.5.1 is much faster than LC 7.0.4. But LC 7.0.4 uses Unicode and allows to build standalones [you can create these 11 MByte-standalones also on Mac/Win/Linux desktop, you don't need to have a running IDE on Raspi for that].
** some use moreover (needed for Raspi B at any rate):
framebuffer_ignore_alpha=1
which is said to help with 32bit colors.
# The other lines at bottom of /boot/config.txt
# display your settings/localisations from using
sudo raspi-config
_______end footnote
[Part II] Install the base OS on a SD card
The current available versions of LC do NOT run on the newer Raspbian OS "jessie". You have to use "Ubuntu 15.10 MATE" or "Raspbian wheezy".
For installing Ubuntu MATE see the instructions in the thread for Raspberry Pi 3.
You'll find detailled installation instructions here:
https://www.raspberrypi.org/documentati ... /README.md
I describe the MacOS X instructions in short also here as they worked for me.
You need a desktop Mac, a cardReader and a 8-16 GByte SD card (class 10 is good).
Of course you can use a separate one for use of LC development only.
- Download the latest wheezy image from here
http://downloads.raspberrypi.org/raspbi ... wheezy.zip - Use Unarchiver to unzip the image
- Use terminal:
Code: Select all
cd Downloads # or wherever your file is
- Insert the new card into your card reader.
This has, if not specialised the format FAT32, else format it to FAT with 'Disk Utility'.
Eject all other SD cards from your machine. - In terminal use
This shows you the path of your current volumes. Identify your card (from the size).
Code: Select all
df -h
Usually this is /dev/disk3s1.
Record the name (without s1, replace disk by rdisk): /dev/rdisk3This will need some time, depending on the SD card's sizeCode: Select all
sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk3
Code: Select all
sudo diskutil eject /dev/rdisk3
- power off your Raspi, insert the SD card, power on your Raspi.
- Do your localisations and adjustments.
Especially "Expand filesystem".
If you missed it at the very beginning then type at any time in terminalCode: Select all
sudo raspi-config
- After first boot connect to your WLAN (icon at topRight).
If it doesn't work, come back here and we will exercise trouble-shooting