Hello folks
Some people asked some questions which this tries to address.
Somebody asked if pins 2 and 4 are the right pins for their fan to be
plugged in to.
From memory pin 4 is ground but can't remember which is pin 2. Look for
the tables of GPIO pin connections on the site.
The page I wrote about getting Mate desktop going on Raspbian is
currently wrong, and I intend to fix it today.
Meanwhile here is the text of a script which will take a Raspbian Lite
image and install Mate. Careful because some of the lines will wrap in
your email client:
--snip--
#!/bin/bash
if [ `whoami` != 'root' ]; then
echo "Script must be run as root. Try sudo $0"
exit 1
fi
set -e
ILCTTS_VERSION=1.0.0
PIESPEAKUP_VERSION=1.1.0
# Change for the dummy video driver
# to make a 'headless' box which might run faster
# but have no video output
VIDEODEVICE=xserver-xorg-video-fbdev
#VIDEODEVICE=xserver-xorg-video-dummy
# Add lightdm to make script install greeter
# Without it you need to type startx to get desktop
GREETER=
echo 'Performing an update...'
apt-get -yq update
echo 'Installing espeak and espeak development files...'
apt-get install -yq libespeak-dev espeak
echo 'Getting ilctts library code from www.raspberryvi.org...'
wget http://www.raspberryvi.org/Downloads/ilctts-${ILCTTS_VERSION}.tar.gz
echo 'Extracting the library code...'
tar -zxf ilctts-${ILCTTS_VERSION}.tar.gz
cd ilctts-${ILCTTS_VERSION}
echo 'Configuring library code for a build...'
./configure
./fix-timestamps.sh
echo 'Making the library...'
make -s
echo 'Installing the library...'
make install
cd ..
# Note, audio for console will come out of analog jack
echo 'Executing ldconfig...'
ldconfig
echo 'Tidying up...'
rm -rf ilctts-${ILCTTS_VERSION}/
rm ilctts-${ILCTTS_VERSION}.tar.gz
echo 'Writing to /etc/modules...'
echo -e "\n\nspeakup_soft\n\n" >> /etc/modules
echo 'Loading speakup_soft for this session...'
modprobe speakup_soft
echo 'Getting the piespeakup code from www.raspberryvi.org...'
wget
http://www.raspberryvi.org/Downloads/piespeakup-${PIESPEAKUP_VERSION}.tar.gz
echo 'Extracting the piespeakup code...'
tar zxf piespeakup-${PIESPEAKUP_VERSION}.tar.gz
cd piespeakup-${PIESPEAKUP_VERSION}
echo 'Configuring piespeakup for a build...'
./configure
./fix-timestamps.sh
echo 'Making piespeakup...'
make -s
echo 'Installing piespeakup...'
make install
cd ..
echo 'Enabling and starting the piespeakup service...'
systemctl enable piespeakup.service
systemctl start piespeakup.service
echo 'Tidying up...'
rm -rf piespeakup-${PIESPEAKUP_VERSION}/
rm piespeakup-${PIESPEAKUP_VERSION}.tar.gz
echo 'Installing xorg stuff...'
apt-get install -yq xserver-xorg-core ${VIDEODEVICE}
echo 'Editing /lib/modprobe.d/aliases.conf...'
sed -i 's|^\(options snd-usb-audio index=\)|#\1|'
/lib/modprobe.d/aliases.conf
echo 'Editing /boot/config.txt...'
sed -i 's|^\(dtparam=audio=on\)|#\1|' /boot/config.txt
echo 'Installing some stuff, this will take a long time...'
apt-get install -yq mate-core mate-desktop-environment gnome-orca xinit
if [ ${GREETER} ]; then
echo 'Installing the lightdm greeter..'
apt -get install -yq lightdm
echo 'Editing /etc/lightdm/lightdm.conf...'
sed -i 's|^#\(greeter-wrapper=\)|\1/usr/bin/orca-dm-wrapper|'
/etc/lightdm/lightdm.conf
echo 'Adding the lightdm user to the audio group...'
usermod -a -G audio lightdm
fi
echo 'Removing unused speech-dispatcher modules...'
rm /usr/lib/speech-dispatcher-modules/sd_cicero
rm /usr/lib/speech-dispatcher-modules/sd_flite
rm /usr/lib/speech-dispatcher-modules/sd_generic
echo "All done"
exit 0
--snip--
Run this script BUT NOT AS SUDO to change accessibility switches to get
Orca to start at load of desktop, again watch out for wrapped lines:
--snip--
#!/bin/bash
if [ `whoami` = 'root' ]; then
echo "Don't run this script as root, script will exit."
exit 1
fi
set -e
echo 'The accessibility switches are currently:'
gsettings get org.mate.interface accessibility
gsettings get org.gnome.desktop.a11y.applications screen-reader-enabled
echo 'Setting accessibility switches...'
dbus-launch gsettings set org.mate.interface accessibility true
dbus-launch gsettings set org.gnome.desktop.a11y.applications
screen-reader-enabled true
echo 'The accessibility switches are now:'
gsettings get org.mate.interface accessibility
gsettings get org.gnome.desktop.a11y.applications screen-reader-enabled
exit 0
--snip--
--
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK
Eyes-free Linux:
http://eyesfreelinux.ninja/
Raspberry VI:
http://www.raspberryvi.org/
===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi
Foundation.
This list is not affiliated to the Raspberry Pi Foundation and the views and
attitudes expressed by the subscribers to this list do not reflect those of the
Foundation.
Mike Ray, list creator, January 2013