Frequently Asked Questions for FreeBSD 2.X : The X Window System and Virtual Consoles : When I run xconsole, I get ``Couldn't open console''.
Previous: How do I start XDM on boot?
Next: My PS/2 mouse doesn't behave properly under X.

9.7. When I run xconsole, I get ``Couldn't open console''.

If you start X with startx, the permissions on /dev/console will not get changed, resulting in things like xterm -C and xconsole not working.

This is because of the way console permissions are set by default. On a multi-user system, one doesn't necessarily want just any user to be able to write on the system console. For users who are logging directly onto a machine with a VTY, the fbtab file exists to solve such problems.

In a nutshell, make sure an uncommented line of the form

        /dev/ttyv0 0600 /dev/console
      

is in /etc/fbtab and it will ensure that whomever logs in on /dev/ttyv0 will own the console.


Frequently Asked Questions for FreeBSD 2.X : The X Window System and Virtual Consoles : When I run xconsole, I get ``Couldn't open console''.
Previous: How do I start XDM on boot?
Next: My PS/2 mouse doesn't behave properly under X.