Open JanSHUP opened 2 years ago
Hi @JanSHUP,
I just tried to install TeleFrame on a new Raspberry Pi. In the end it worked.
Update the Pi
sudo apt-get update
sudo apt-get upgrade
Install Node package manager - npm
sudo apt-get install npm
Install latest node version
sudo npm install -g n@latest
Install latest v8 version
sudo npm install -g v8@latest
Install TeleFrame
bash -c "$(curl -sL https://raw.githubusercontent.com/LukeSkywalker92/TeleFrame/master/tools/install_raspberry.sh)"
Prevent boot freeze by comment out the last line in config.txt.
sudo nano /boot/config.txt
#dtoverlay=vc4-fkms-v3d
Prevent stuck at TeleFrame startscreen (Thanks to @celphicious)
cd TeleFrame/
nano main.js
-> Add the bold marked line after line 42
// Create the browser window.
win = new BrowserWindow({
width: 1024,
height: 600,
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true, //don't miss the comma
contextIsolation: false //this had to be added!
},
});
With this the installation was successful on Bullseye (image from 04-04-2022).
Cheers Tim
This also works for me @reiseradeln thx!
Raspbian OS
Release date: February 21st 2023
System: 32-bit
Kernel version: 5.15
Debian version: 11 (bullseye)
root@raspberrypi:~# cat /etc/debian_version
11.6
root@raspberrypi:~# npm -v
7.5.2
pi@raspberrypi:~/TeleFrame $ npm version
{
teleframe: '3.2.3',
npm: '7.5.2',
node: '12.22.12',
v8: '7.8.279.23-node.57',
uv: '1.40.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.17.1',
modules: '72',
nghttp2: '1.43.0',
napi: '8',
llhttp: '2.1.6',
http_parser: '2.9.4',
openssl: '1.1.1n',
cldr: '37.0',
icu: '67.1',
tz: '2019c',
unicode: '13.0'
}
Hi @JanSHUP,
I just tried to install TeleFrame on a new Raspberry Pi. In the end it worked.
1. Update the Pi `sudo apt-get update` `sudo apt-get upgrade` 2. Install Node package manager - npm `sudo apt-get install npm` 3. Install latest node version `sudo npm install -g n@latest` 4. Install latest v8 version `sudo npm install -g v8@latest` 5. Install TeleFrame `bash -c "$(curl -sL https://raw.githubusercontent.com/LukeSkywalker92/TeleFrame/master/tools/install_raspberry.sh)"` 6. Prevent boot freeze by comment out the last line in config.txt. `sudo nano /boot/config.txt` `#dtoverlay=vc4-fkms-v3d` 7. Prevent stuck at TeleFrame startscreen (Thanks to @celphicious) `cd TeleFrame/` `nano main.js` -> Add the bold marked line after line 42
// Create the browser window. win = new BrowserWindow({ width: 1024, height: 600, webPreferences: { nodeIntegration: true, enableRemoteModule: true, //don't miss the comma contextIsolation: false //this had to be added! }, });
With this the installation was successful on Bullseye (image from 04-04-2022).
Cheers Tim
For me these installation instructions failed because electron 25.x did not start because of strange errors like
../../buildtools/third_party/libc++/trunk/include/vector:1471: assertion __n < size() failed: vector[] index out of bounds[3650:0802/121144.157697:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=6
So I removed the globally installed electron (v25):
sudo npm remove electron -g
And also globally installed v8 (if you have it installed):
sudo npm remove v8 -g
And instead of instruction 4. from above do the following:
sudo n lts
Then in your teleframe folder you can try to start it via:
DISPLAY=:0 npm start
This will use electron 13.x in your TeleFrame/node_modules folder. As this will be already installed by running the installer or npm install
inside your TeleFrame folder. Also I don't understand the recommendation to have it installed globally. Then you have it installed twice, once globally (in /usr/local/lib/node_modules and in TeleFrame/node_modules) which is quite confusing.
npm version
{
teleframe: '3.2.3',
npm: '9.6.7',
node: '18.17.0',
acorn: '8.8.2',
ada: '2.5.0',
ares: '1.19.1',
brotli: '1.0.9',
cldr: '43.0',
icu: '73.1',
llhttp: '6.0.11',
modules: '108',
napi: '9',
nghttp2: '1.52.0',
nghttp3: '0.7.0',
ngtcp2: '0.8.1',
openssl: '3.0.9+quic',
simdutf: '3.2.12',
tz: '2023c',
undici: '5.22.1',
unicode: '15.0',
uv: '1.44.2',
uvwasi: '0.0.18',
v8: '10.2.154.26-node.26',
zlib: '1.2.13.1-motley'
}
pi@teleframe:~/TeleFrame $ npx electron -v
v13.6.6
For me it works with these versions on a pi3 using bullseye, hope it helps 👍🏻
Hey together,
the last days I tried to get TeleFrame running on Bullseye on a RPi 4b 4Gb but find some differences to Buster:
1) the automatic added "dtoverlay=vc4-fkms-v3d" is not used by Bullseye anymore. In my (and some others cases) the overlay results in a frozen boot state.
2) npm is not installed automatically with nodejs by the automatic installation script (see below)
3) I get some further problems installing / starting the teleframe (see below) e.g.:
I couldn't get it running yet! I changed back to Buster for a comparison and everything ran as expected.
Details: Installation on a fresh Raspberry Pi OS Bullseye (official image from 2022.01.28):
npm was not found so I installed npm manually and reinstall Teleframe
this time it installs without error but I get some warnings about old NPM files:
get NPM and electron versions
starting the teleframe again
White teleframe start screen is shown for a second and the telegram bot is answering to e.g. "/start" and than crashes
Now using the recommended way to update NPM:
get versions
start Teleframe again
get npm log
in journalctl -xe i find:
Do you have any ideas what could be wrong or how I could continue debugging?
Thanks