Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2005 02:50:37 +0100
From:      cpghost@cordula.ws
To:        Joachim Dagerot <jd@dagerot.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Headless system or serial console
Message-ID:  <20050218015037.GA74402@fw.farid-hajji.net>
In-Reply-To: <200502172257.j1HMvRVu021920@mail-core.space2u.com>
References:  <200502172257.j1HMvRVu021920@mail-core.space2u.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 17, 2005 at 11:57:27PM +0100, Joachim Dagerot wrote:
> 1. Is there a way to get a serial console after the installation is done? How? (Link?)

All you need to do is to enable a getty on a serial port, e.g.
by editing /etc/ttys:

console none                            unknown off secure
ttyd0   "/usr/libexec/getty std.9600"   dialup  on secure

If you don't plan to attach a monitor (or don't have a VGA circuitery
at all on the box), you can also turn 'off' the virtual terminals
ttyv? in /etc/ttys

You can also add this to /etc/syslog.conf:

# uncomment this to log all writes to /dev/console to /var/log/console.log
console.info            /var/log/console.log

And double check the entry for /var/log/console.log in /etc/newsyslog.conf:

/var/log/console.log                    600  5     100  *     J

After rebooting, you can connect to the serial port with 9600 8N1.
You may want to use a crossed serial cable (null-modem cable) for this.

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050218015037.GA74402>