Re: console-setup for FreeBSD

2011-03-21 Thread Anton Zinoviev
On Wed, Mar 09, 2011 at 01:34:16PM +0200, Anton Zinoviev wrote: > > I hope the next version of console-setup will have some preliminary > support for FreeBSD kernel. Done in version 1.71. Of course, the terminal settings do not work automatically as this is not a job for console-setup. I don'

Re: console-setup for FreeBSD

2011-03-09 Thread Benjamin Kaduk
On Wed, 9 Mar 2011, Anton Zinoviev wrote: On Wed, Mar 09, 2011 at 06:31:38PM +0100, Edward Tomasz Napierała wrote: Not sure about the Debian userland, but the standard FreeBSD way would be to use tty(1): $ tty /dev/ttyv0 Ah, thanks. Does it make sence to use tty <&2 This is saying "read

Re: console-setup for FreeBSD

2011-03-09 Thread Benjamin Kaduk
On Wed, 9 Mar 2011, Anton Zinoviev wrote: 3. I suppose UTF-8 is not supported? I think it wasn't ready for squeeze, but got fixed in the meanwhile, or will be soon. I was unable to find any examples or other documentation about how to use UTF-8 on the console of FreeBSD so for now console-se

Re: console-setup for FreeBSD

2011-03-09 Thread Anton Zinoviev
On Wed, Mar 09, 2011 at 06:31:38PM +0100, Edward Tomasz Napierała wrote: > > Not sure about the Debian userland, but the standard FreeBSD way > would be to use tty(1): > > $ tty > /dev/ttyv0 Ah, thanks. Does it make sence to use tty <&2 if the standard input is redirected no longer from tty?

Re: console-setup for FreeBSD

2011-03-09 Thread Cyril Brulebois
Hi again, Anton Zinoviev (09/03/2011): > I haven't done recent tests but I think the commands setfont and > consolechars could easily crash X. I am not sure about loadkeys. So > by analogy I suppose vidcontrol is able to crash X too. please make sure you (or your users :D) report such bugs when

Re: console-setup for FreeBSD

2011-03-09 Thread Mats Erik Andersson
onsdag den 9 mars 2011 klockan 19:13 skrev Cyril Brulebois detta: > Hi, > > Edward Tomasz Napiera??a (09/03/2011): > > Not sure about the Debian userland, but the standard FreeBSD way > > would be to use tty(1): > > > > $ tty > > /dev/ttyv0 > > thanks for the hint. > > A quick check on io.deb

Re: console-setup for FreeBSD

2011-03-09 Thread Cyril Brulebois
Hi, Edward Tomasz Napierała (09/03/2011): > Not sure about the Debian userland, but the standard FreeBSD way > would be to use tty(1): > > $ tty > /dev/ttyv0 thanks for the hint. A quick check on io.debian.net (through ssh) says: /dev/ttyp1 Using a qemu image, from the second/third console: /

Re: console-setup for FreeBSD

2011-03-09 Thread Edward Tomasz Napierała
Wiadomość napisana przez Cyril Brulebois w dniu 2011-03-09, o godz. 14:36: [..] >> Is it possible to detect reliably whether a script executes on the >> console or in X Window? For Linux I've used a code like this: >> >> case `readlink /proc/self/fd/2` in >>/dev/tty[0-9]*|/dev/vc/[0-9]*|/de

Re: console-setup for FreeBSD

2011-03-09 Thread Anton Zinoviev
On Wed, Mar 09, 2011 at 02:36:14PM +0100, Cyril Brulebois wrote: > > > 2. Is it dangerous to configure the console while X is running? > > I'm not sure what could happen. Do you have anything specific in mind? I haven't done recent tests but I think the commands setfont and consolechars could e

Re: console-setup for FreeBSD

2011-03-09 Thread Cyril Brulebois
Hi, Anton Zinoviev (09/03/2011): > [Please send CC to me if you reply.] done. > I hope the next version of console-setup will have some preliminary > support for FreeBSD kernel. But I have some questions. \o/ > 1. How can I detect in a shell script what kernel is in use (Linux > or FreeBSD).

console-setup for FreeBSD

2011-03-09 Thread Anton Zinoviev
[Please send CC to me if you reply.] I hope the next version of console-setup will have some preliminary support for FreeBSD kernel. But I have some questions. 1. How can I detect in a shell script what kernel is in use (Linux or FreeBSD). This code should work both in normal Debian installat