XRDP revisited

Stretch november version:

1. Add stretch-backports to sources.list

Create:   sudo nano /etc/apt/sources.list.d/backports.list
Add:      deb http://ftp.debian.org/debian stretch-backports main

Update:   sudo apt-get update

Ignore complaints about not signed

2. XRDP is in stretch-backports

Use apt or apt-get, need to install with the -t option.
Answer Y to install without verification.

sudo apt-get -t stretch-backports install xrdp

Ignore complaints about not verified

 

3. Shutdown menu not working:

You can get the Buttons working, just change the line ‘Logout=lxde-pi-shutdown-helper’ to ‘Logout=gksudo lxde-pi-shutdown-helper’
in ‘/home/pi/.config/lxpanel/LXDE-pi/config’.

 

3. Raspi config tool:

In order to run ‘Raspberry PI Configuration’ tool and others that need ‘sudo’ to run in Remote GUI, insert X authorization of ‘xhost’ for ‘root’ in:
/home/pi/.config/lxsession/LXDE-pi/autostart –> Insert ‘@xhost si:localuser:root’ as last line.”

If no file named autostart at this folder location use nano to create it and then add the line ‘@xhost si:localuser:root’ and save the file.

 

 

Install Freepascal/Lazarus again

Installed using instructions from several posts by Thaddy as follows:

1. Add stretch-backports to sources.list

Create:   sudo nano /etc/apt/sources.list.d/backports.list
Add:      deb http://ftp.debian.org/debian stretch-backports main

Update:   sudo apt-get update

Ignore complaints about not signed

2.  FPC 3.0.4 and Lazarus 1.8.4 are both in stretch-backports

Use apt or apt-get, need to install with the -t option.
Answer Y to install without verification.

sudo apt-get -t stretch-backports install fpc
sudo apt-get -t stretch-backports install lazarus

Ignore complaints about not verified

Shutdown Raspbian with a button

he simplest way to set up a “pushbutton to shut down” is to add “dtoverlay=gpio-shutdown” to /boot/config.txt and rig a NO momentary contact switch across pins 5 and 6. Push once to shut down the system. Push again to reboot it.

dtoverlay=gpio-shutdown,gpio_pin=3

To avoid I2c being unusable:GPIO26 is physical pin 37
dtoverlay=gpio-shutdown,gpio_pin=26

pi@raspberrypi:~ $ dtoverlay -h gpio-shutdown
Name:   gpio-shutdown

Info:   Initiates a shutdown when GPIO pin changes. The given GPIO pin
        is configured as an input key that generates KEY_POWER events.
        This event is handled by systemd-logind by initiating a
        shutdown. Systemd versions older than 225 need an udev rule
        enable listening to the input device:

                ACTION!="REMOVE", SUBSYSTEM=="input", KERNEL=="event*", \
                        SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", \
                        ATTRS{keys}=="116", TAG+="power-switch"

        This overlay only handles shutdown. After shutdown, the system
        can be powered up again by driving GPIO3 low. The default
        configuration uses GPIO3 with a pullup, so if you connect a
        button between GPIO3 and GND (pin 5 and 6 on the 40-pin header),
        you get a shutdown and power-up button.

Usage:  dtoverlay=gpio-shutdown,=

Params: gpio_pin                GPIO pin to trigger on (default 3)

        active_low              When this is 1 (active low), a falling
                                edge generates a key down event and a
                                rising edge generates a key up event.
                                When this is 0 (active high), this is
                                reversed. The default is 1 (active low).

        gpio_pull               Desired pull-up/down state (off, down, up)
                                Default is "up".

                                Note that the default pin (GPIO3) has an
                                external pullup.
The default GPIO is 3 (which appears on pin 5 of the 40-pin header). The pin is configured to pull high by default (which is also the SoC's default), and the GPIO is marked as active low (the opposite to the pull, for obvious reasons).

If you are having trouble, you can debug using raspi-gpio on Raspbian. Assuming for now that the overlay applied correctly (lsmod should show gpio-keys as being loaded), raspi-gpio get 3 will show the pin level (which should be 1) and function (INPUT). Now run it in a loop:

pi@raspberrypi:~ $ while true; do raspi-gpio get 3; done
Attach one end of a patch lead to pin 5 (GPIO3), and touch the other end on pin 6 (GND) - the Pi should shut down immediately, but if not you will see the pin level change to 0.

Install FPC 3.0.0 on Raspbian, Build Ultibo

By Paul Breneman:

Raspbian Lite is the only OS selected

-When reboots, login (user pi and password raspberry)
– Everytime boot up, hit the   key an extra time (as first prompt is erased)
– Enter the following lines (without bold comment text) in the terminal:

sudo apt-get update
sudo apt-get upgrade
sudo dpkg-reconfigure tzdata 
sudo apt-get install binutils-arm-none-eabi
sudo apt-get install fpc-3.0.0 --fix-missing 
fpc -i | more 
wget http://turbocontrol.com/easyultibo121517.zip
mkdir hello
unzip easyultibo121517.zip -d hello
cd hello
./uin.sh
export PATH=/home/pi/ultibo/core/fpc/bin:$PATH
fpc -i | more 
cd QEMU 
../helloqv.sh
cd ..
cd RPi
../hellob.sh
cd ..
cd RPi2
../hello2b.sh
cd ..
cd RPi3
../hello3b.sh
cd ..

Virtuino

Control Arduino from Android app.

Over Ethernet, Bluetooth, ESP8266

http://users.sch.gr/iliaslamprou/index.php/en/tutorials-getting-started/75-virtuino/115-virtuino-arduino-uno-esp8266-example