S
S
SSStep2021-06-07 10:01:58
Keyboard
SSStep, 2021-06-07 10:01:58

Demon and keyboard how to make them friends?

There is a print server without a monitor, but with a keyboard running Ubuntu. I connected a scanner to it.
Just through scanimage I can scan via ssh. But soon vacation, others do not know how to use the console.
There is a task: how to operate the scanner through "hot keys". Type, pressed the key "1" - chose the black and white mode, or on "2" - color, then on "3" - scanning (simply, according to the permissions set in the config). After scanning all the pages, press "0" - and save is in progress (multi-page PDF).
Question: how to turn it into a demon (service, service)? Klava (input) is known to be disabled in the demon. And I can't get attached to the graphics, there is no Monica. Target selected - multu-user.target.
Peculiarities:hardware - PC (or Rasberry), keyboard, scan ricoh sp150su. OS is ubuntu.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-06-07
@firedragon

Perhaps it is worth making an autologin and making icons with shortcuts on the desktop. Can you write everything you need in scripts?
Perhaps you will like the option with connection by key and modifier -t
Ssh -t [email protected] 'top'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question