forked from bactran1/codesys-ignition-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunIgnitionFullscreenOnBoot.txt
59 lines (39 loc) · 1.3 KB
/
RunIgnitionFullscreenOnBoot.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Full Tutorial: http://fisherworks.cn/?p=2517
Remember to change from "operator" -> "$your current user$"
First:
#! /bin/bash
sudo apt update && sudo apt dist-upgrade
sudo apt install vim-nox openssh-server chromium-browser x11vnc slick-greeter -y
Second:
Edit this file
sudo nano /etc/lightdm/lightdm.conf
Put this into that file above:
[SeatDefaults]
autologin-user=operator
autologin-user-timeout=0
user-session=ubuntu
greeter-session=unity-greeter
Third:
Create this file:
sudo nano /etc/lightdm/lightdm.conf.d/50-myconfig.conf
Put this into that file above:
[SeatDefaults]
autologin-user=operator
Fourth:
Create this file:
sudo mkdir /home/operator/.config/autostart && sudo nano /home/operator/.config/autostart/operator.desktop
Put this into that file above:
[Desktop Entry]
Type=Application
Name=StartIgnition
Exec=/home/operator/StartIgnition.sh
X-GNOME-Autostart-enabled=true
Fifth:
Create this file:
nano /home/operator/StartIgnition.sh
Put this into that file above:
#!/bin/bash
export DISPLAY=:0
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/operator/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/operator/.config/chromium/Default/Preferences
/usr/bin/chromium-browser --kiosk http://localhost:8088/data/perspective/client/ADTA-HMI &