Всё сегодня буду пробовать
Спрашивайте если что-то будет непонятно, попробую подсказать.
Очень признателен!
Да, забыл спросить, у вас какая ОС/DE ?
Школьная Комета в четвёртых кедах.
В целом всё работает, только плохо, что не само.
С x11vnc решил так: в папку ~/.kde/Autostart на клиентах положил такой файл:
#!/bin/sh
x11vnc -find -shared -loop -noxdamage -defer 3000
Из параметров знаю только
loop это чтобы не сервер не отключался, а перезагружался, после отключения клиента, и
shared - это возможность подключаться. Остальные параметры взял из строки в RuleUser и не знаю что они значат.
Может поправит кто знающий?
И ещё. Для блокировки нужен xscreensaver. Но автоматически он при старте системы не запускается. Если стартануть графический фронтэнд, то он говорит, что демон не запущен и предлагает запустить. Если согласиться, то он его запускает и всё работает. Как запустить демон при старте системы правильно я не понял, так что люто бешено реквестирую хелпа в данном вопросе. Пока решил файлом в ~/.kde/Autostart такого содержания:
#!/bin/sh
xscreensaver
Не очень мне нравится, что при старте системы теперь вылезает сплэш этого xscreensaver.
UPDЧто-то там плохо голова соображала, наверное. Там я пытался разобраться так:
$ xscreensaver --help
xscreensaver 5.34, copyright (c) 1991-2015 by Jamie Zawinski <jwz@jwz.org>
All xscreensaver configuration is via the `~/.xscreensaver' file.
Rather than editing that file by hand, just run `xscreensaver-demo':
that program lets you configure the screen saver graphically,
including timeouts, locking, and display modes.
Just getting started? Try this:
xscreensaver &
xscreensaver-demo
For updates, online manual, and FAQ, please see the web page:
http://www.jwz.org/xscreensaver/
$ xscreensaver-command
usage: xscreensaver-command -<option>
This program provides external control of a running xscreensaver process.
Version 5.34, copyright (c) 1991-2015 Jamie Zawinski <jwz@jwz.org>.
The xscreensaver program is a daemon that runs in the background.
You control a running xscreensaver process by sending it messages
with this program, xscreensaver-command. See the man pages for
details. These are the arguments understood by xscreensaver-command:
-demo Ask the xscreensaver process to enter interactive demo mode.
-prefs Ask the xscreensaver process to bring up the preferences
panel.
-activate Turn on the screensaver (blank the screen), as if the user
had been idle for long enough.
-deactivate Turns off the screensaver (un-blank the screen), as if user
activity had been detected.
-cycle If the screensaver is active (the screen is blanked), then
stop the current graphics demo and run a new one (chosen
randomly.)
-next Like either -activate or -cycle, depending on which is more
appropriate, except that the graphics hack that will be run
is the next one in the list, instead of a randomly-chosen
one. In other words, repeatedly executing -next will cause
the xscreensaver process to invoke each graphics demo
sequentially. (Though using the -demo option is probably
an easier way to accomplish that.)
-prev Like -next, but goes in the other direction.
-select <N> Like -activate, but runs the Nth element in the list of
hacks. By knowing what is in the `programs' list, and in
what order, you can use this to activate the screensaver
with a particular graphics demo. (The first element in the
list is numbered 1, not 0.)
-exit Causes the xscreensaver process to exit gracefully.
This does nothing if the display is currently locked.
(Note that one must *never* kill xscreensaver with -9!)
-restart Causes the screensaver process to exit and then restart with
the same command line arguments as last time. You shouldn't
really need to do this, since xscreensaver notices when the
.xscreensaver file has changed and re-reads it as needed.
-lock Tells the running xscreensaver process to lock the screen
immediately. This is like -activate, but forces locking as
well, even if locking is not the default. If the saver is
already active, this causes it to be locked as well.
-version Prints the version of xscreensaver that is currently running
on the display -- that is, the actual version number of the
running xscreensaver background process, rather than the
version number of xscreensaver-command.
-time Prints the time at which the screensaver last activated or
deactivated (roughly, how long the user has been idle or
non-idle -- but not quite, since it only tells you when the
screen became blanked or un-blanked.)
-watch Prints a line each time the screensaver changes state: when
the screen blanks, locks, unblanks, or when the running hack
is changed. This option never returns; it is intended for
by shell scripts that want to react to the screensaver in
some way.
See the man page for more details.
For updates, check http://www.jwz.org/xscreensaver/
А вот сейчас дома набрал:
$ man xscreensaver
....
xscreensaver [-display host:display.screen] [-verbose] [-no-splash] [-no-capture-stderr] [-log filename]
....
Вот и
-no-splash Рискну предположить, что файл:
#!/bin/sh
xscreensaver -no-splash
сделает как надо. Однако, может есть ещё более правильный способ запуска этого демона при старте?