Hi, on my desktop PC I use krfb desktop sharing to operate on it when I am far form home, sometimes I fount that krfb is closed, how can I do something (may be a script or something other) that check if krfb is on or off and if it is off restart krfb?
Hi
Is is started with a systemd service, if so configure the service to auto restart, but you need to figure out why it’s stopping before doing that…
Looks pretty old fashioned, no unit file available:
**erlangen:~ #** rpm -ql krfb
/usr/bin/krfb
/usr/bin/krfb-virtualmonitor
/usr/lib64/libkrfbprivate.so.5
/usr/lib64/libkrfbprivate.so.5.0
/usr/lib64/qt5/plugins/krfb
/usr/lib64/qt5/plugins/krfb/events
/usr/lib64/qt5/plugins/krfb/events/x11.so
/usr/lib64/qt5/plugins/krfb/events/xdp.so
/usr/lib64/qt5/plugins/krfb/framebuffer
/usr/lib64/qt5/plugins/krfb/framebuffer/pw.so
/usr/lib64/qt5/plugins/krfb/framebuffer/qt.so
/usr/lib64/qt5/plugins/krfb/framebuffer/xcb.so
/usr/share/applications/org.kde.krfb.desktop
/usr/share/applications/org.kde.krfb.virtualmonitor.desktop
/usr/share/doc/HTML/en/krfb
/usr/share/doc/HTML/en/krfb/configuration_network.png
/usr/share/doc/HTML/en/krfb/configuration_security.png
/usr/share/doc/HTML/en/krfb/connection.png
/usr/share/doc/HTML/en/krfb/index.cache.bz2
/usr/share/doc/HTML/en/krfb/index.docbook
/usr/share/doc/HTML/en/krfb/screenshot.png
/usr/share/doc/packages/krfb
/usr/share/doc/packages/krfb/README
/usr/share/icons/hicolor/48x48/apps/krfb.png
/usr/share/icons/hicolor/scalable/apps/krfb.svgz
/usr/share/krfb
/usr/share/krfb/krfb.notifyrc
/usr/share/licenses/krfb
/usr/share/licenses/krfb/COPYING
/usr/share/licenses/krfb/COPYING.DOC
/usr/share/licenses/krfb/COPYING.LIB
/usr/share/metainfo/org.kde.krfb.appdata.xml
/usr/share/qlogging-categories5/krfb.categories
**erlangen:~ #**
Users may need to create their own service such as I did:
karl@erlangen:~> ll .config/systemd/user/save-jalbum-settings.service
-rw-r--r-- 1 karl users 150 4. Jan 2018 .config/systemd/user/save-jalbum-settings.service
karl@erlangen:~>
karl@erlangen:~> systemctl --user cat save-jalbum-settings.service
**# /home/karl/.config/systemd/user/save-jalbum-settings.service**
[Unit]
Description=Save jAlbum Project Files
[Service]
ExecStart=/bin/bash /home/karl/bin/save-jalbum-settings.sh
[Install]
WantedBy=default.target
karl@erlangen:~>
It never failed since January 2018.
I don’t know, I start it in kde autostart or manually
Hi
So that requires the system has a user logged in. If the user gets logged out it will stop, is that what is happening?
If a systemd service (you would need to craft your own), then could be run via the --user option… but again, user logged out, it won’t work.
Perhaps you should be looking at a solution (eg vnc) that you could get a log in screen and log in that way?
not, it need that a user is logged in, the user doesn’t log out, but it stops I don’t know why
it could be good becouse the user doesn’t log out, I will try to write a systemd service
is there vnc for linux that works in this way? I only know krfb that I supposed was the vnc for linux…
well, reading around it seems that I have toinstall a vnc server like tigervnc on my server and connect with a client like remmina or others
This will help only if program crashes (process terminates), not if program simply stops responding. At the very least you should have logged in using ssh and check the state of your program.
it seems that it close or crashes, if I launch again krfb it works again.
the ssh login could be an idea, I can login, but I don’t know how to launch krfb in the user logged in graphic session
I succeeed to connect via ssh as user, then I tried
krfb --display :0
and it worked for connection via KRDC to my desktop, I didn’t find all the applications that was opened in the session as before but it worked