Lakka + Raspberry Pi
Lakka configuration
- Connect Ethernet cable and connect to WiFi from GUI.
- Turn on SSH in Services
Static IP
Connect via ssh:
ssh root@192.168.0.37
Edit WiFi settings:
vi /storage/.cache/connman/wifi_XXXXXX_managed_psk/settings
Change IP method to manual
and set local_address
:
[wifi_XXXXXX_managed_psk]
Name=XXXXXXXXXX
SSID=XXXXXXXXXXXXXXXXXXXX
Favorite=true
AutoConnect=true
Passphrase=XXXXXXXX
Frequency=2437
Modified=2020-07-04T15:47:43.045286Z
IPv4.method=manual
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.0.113
IPv4.gateway=192.168.0.1
IPv6.method=off
IPv6.privacy=disabled
Restart WiFi:
connmanctl disable wifi
connmanctl enable wifi
connmanctl connect wifi_XXXXXX_managed_psk
The same for the wired connection:
vi /storage/.cache/connman/ethernet_XXXXXX_cable/settings
On local machine for easy access can be added: ~/.ssh/config
:
Host lakka.wlan
UserKnownHostsFile ~/.ssh/known_hosts.wlan.lakka
Hostname 192.168.0.113
Host lakka.eth
UserKnownHostsFile ~/.ssh/known_hosts.eth.lakka
Hostname 192.168.0.111
Then to connect to ssh via WiFi:
ssh root@lakka.wlan
Set timezone
echo "TIMEZONE=Europe/Amsterdam" > /storage/.cache/timezone
Fix HDMI Audio
To edit config.txt
remount /flash
with write access:
mount /flash -o remount,rw
vi /flash/config.txt
Add new lines into configuration file:
# Normal HDMI mode with sound
hdmi_drive=2
hdmi_force_edid_audio=1
Use closest to power HDMI port.
Copy BIOSes/ROMs
scp BIOS/* root@lakka.eth:system/
Add missing box-arts as PNG files only.