VDR Logowebcounter visitors since 2003-01-01

Frequently Asked Questions - FAQ

I get the message in the syslog: "No keyboard available"
I still get the message
I can't log in as root
How I can configure frequently used commands?
I don't want to log in every time
Doesn't work with VDR 1.2.5pre3 or newer


I get the message in the syslog: "No keyboard available"

The console plug in uses the keyboard support of VDR. Thus the plug in works only if you can control VDR through the keyboard.
For this you mustn't start VDR as daemon (switch -d)! If you want to run VDR in background anyway then use

vdr -t/dev/ttyXX -Pconsole

in which the switch -t specifies the linux console that should be used for keyboard input. On that console no other program like getty may run. Besides VDR have to has read and write permission to this console.
To control your VDR with a keyboard you have to switch to the specified console [Alt]+[FXX].

[ top ]

I still get the message

In VDR 1.1.20-24 there exist a bug, that disables the keyboard, if VDR is running in the background. This little patch (1.05 KB) against VDR solves the problem in a way, that the keyboard is enabled anyway, if VDR is used with the parameter "-t".

[ top ]

I can't log in as root

This is a security issue of the most distributions. Root may only log in on a linux console, but not on virtual consoles over network or - like here - over VDR.

This can be solved through configuring the file /etc/securetty appropriate. For this insert the following lines:

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
pts/10

Now root has the right to log in on a virtual console. If you plan to to use very much consoles then you should insert a few more entries this way (these numbers will be allocated from linux dynamically)...

[ top ]

How I can configure frequently used commands?

In the configuration directory for plugins, e.g. in /video/plugins, you can place a file named commands.conf. This file has exactly the same format as the commands.conf from VDR.

As soon as this file exist and contains valid entries, you get the green button Commands in the console list activated. With this button the list of available commands will be shown and you can select and start one with the cursor keys and OK or with the given figures. The new command will be executed in a new console window.

Attention: For pre configured commands there is no ability to log in! So a command runs with the same rights as VDR.

[ top ]

I don't want to log in every time

This feature is normally deactivated for security reasons. The author of the plug in uses this himself only during the test phase of the console plug in, but not for daily use. The problem with this is that a console runs with the same user as VDR and so it has the same rights. If VDR runs as root (what really many users do), everybody who has access to the keyboard can do all silly things with your machine what he wants.

If you want to deactivate the log in anyway: At compile time you can specify the compiler switch CONSOLE_USE_SHELL_INSTEAD_LOGIN=1. To simplify this you can put that switch in your Make.config. So you don't have to remind at it every time you compile the plugin.

[ top ]

Doesn't work with VDR 1.2.5pre3 or newer

The console plugin isn't compatible with the newer version of VDR.

Until the new version of the plugin is ready, the following patch against the console plugin has to solve the problem. Simply patch and recompile it.

--- menu.h.orig Tue Dec 31 13:09:24 2002
+++ menu.h Tue Sep 16 12:14:48 2003
@@ -161,7 +161,6 @@
 public:
   cMenuConsole( int consoleNr );
   virtual eOSState ProcessKey( eKeys Key );
-  void Display();
 };
[ top ]
[ top ] If you have any questions or suggestions, or you want to report a bug, then please email to Jan Rieger (jan at ricomp dot de) .