Open cyberorg opened 4 years ago
/lib/systemd/system/exe.service
[Unit]
Description=eXeLearning
[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/usr/bin/exe
User=mssadmin
Restart=always
[Install]
WantedBy=multi-user.target
nginx proxy config
location /exe {
proxy_pass http://127.0.0.1:51235/;
proxy_set_header Host $host;
}
location /jsui {
proxy_pass http://127.0.0.1:51235;
proxy_set_header Host $host;
expires 365d;
add_header Cache-Control "public";
}
location /scripts {
proxy_pass http://127.0.0.1:51235;
proxy_set_header Host $host;
expires 365d;
add_header Cache-Control "public";
}
location /style {
proxy_pass http://127.0.0.1:51235;
proxy_set_header Host $host;
expires 365d;
add_header Cache-Control "public";
}
location /images {
proxy_pass http://127.0.0.1:51235;
proxy_set_header Host $host;
expires 365d;
add_header Cache-Control "public";
}
location /css {
proxy_pass http://127.0.0.1:51235;
proxy_set_header Host $host;
expires 365d;
add_header Cache-Control "public";
}
exe not working on Pi Do note that every invocation of the application starts it on a new port starting with 51235.
Do note that every invocation of the application starts it on a new port starting with 51235.
exe now working on Pi. Was not aware that this was a suggestion for the server.
Will verify at cloud myscoolserver.in/exe/
Added configs, try myscoolserver.in/exe/ Create tile for access from portal.
Serving exe over web won't work - Tested those now on old server where it was supposedly working. For example, saving preferences, seeing preview etc. For some, we can add more locations to nginx but for others we can't. I don't think it is meant to be web shared. How will preferences be saved for individual users? And saving, saves in mssadmin's home.
Latest intef-exe 2.6 package works on 18.04 and it requires python-cssmin which was missing.
intef-exe 2.6 only works on 20.04 via snap. Hence dropping it from MSS. So back to square one after 18 months. :)
This process works without having to include in client images. This creates ~/.exe
for each user for conf and logs -
apt remove intef-exe
Use portable version but don't use the --portable
option.
Uncompress in /opt
.
NFS export exports.d/ltsp-exe.conf
and dynamically mount to clients using ltsp.conf
FSTAB_*
entry.
[exelearning]
FSTAB_05="server:/opt/exelearning26 /opt/exelearning26 nfs defaults,nolock,rsize=32768,wsize=32768 0 0"
POST_INIT_SYMLINK_EXE="ln -s /opt/exelearning26/exelib/exe.desktop /usr/share/applications/exe.desktop; ln -s /opt/exelearning26/exelib/exe.png /usr/share/icons/exe.png"
Modify Exec=exe %f
to Exec=python2 /opt/exelearning26/exelib/exe/exe
in exe.desktop
ln -s
exe.desktop
to /usr/share/applications/exe.desktop
.
ln -s /opt/exelearning26/exelib/exe.desktop /usr/share/applications/exe.desktop
ln -s
exe.png
to /usr/share/icons/exe.png
.
ln -s /opt/exelearning26/exelib/exe.png /usr/share/icons/exe.png
Add ltsp.conf
entry to ln -s
the .desktop and .png files to respective locations for menu item, thus no change needed in images.
Released in MSS installer image.
sudo add-apt-repository ppa:jigish-gohil/moodd sudo apt-get update sudo apt install intef-exe
exe is available via browser so it can probably be served using nginx proxy at myscoolserver.in/exe