Re: Connecting to a Headless machine, after install

2004-05-10 Thread Drew Tomlinson
On 5/7/2004 4:42 AM Stijn Hoop wrote:

On Fri, May 07, 2004 at 08:06:37PM +0900, Rob wrote:
 

Stijn Hoop wrote:
   

On Fri, May 07, 2004 at 05:01:29PM +0900, Rob wrote:
 

Funny, that I'm struggling with opposite problem: I do not get the
boot messages over the serial cable, but do get the login prompt,
which I do not understand :(.
   

You probably need to tell the kernel to use the serial console:

# echo '-h'  /boot.config
 

Ah, thanks. I don't have a /boot.config yet. Are you sure this file goes
in the top-root directory? Or in /boot/... ?
   

Yes, top-root /. Check the handbook, section 17.6:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

 

You made me research a little more on this. I do have a file 
/boot/loader.conf.
How about having in here the line

 console=comconsole

(to divert it from the default: console=vidconsole) ?

Or will that not do the same?
   

Having -h in /boot.config will also allow the boot blocks to output to
your serial console. I suspect console=comconsole would help the loader
+ kernel. It certainly couldn't hurt I guess :)
If I understand the process correctly, settings in /boot/loader.conf 
override settings in /boot.config as the boot loader happens after the 
boot blocks.  Thus by setting comconsole will negate any settings in 
/boot.config.  Setting in both places is redundant and may cause 
problems for you when troubleshooting.

For my serial console, I set my kernel flag to 0x10 so I have console 
options without recompiling.  Then I do my serial console settings in 
/boot.config as it happens earlier in the boot stage and thus, I get my 
serial console a little sooner.

HTH,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books,  More!
http://www.alchemistswarehouse.com

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to a Headless machine, after install

2004-05-07 Thread Rob
Bruce Hunter wrote:
I have setup a headless machine via a null modem cable. Instalation went 
fine. The only problem now, is connecting to the machine after the 
install. When I #cu -l /dev/cuaao/
I see the boot process, but it gets to the date prompt but doesn't show 
the login:
i did install ssh, but won't let me login with the password I set for 
root. Any other methods for connecting? This system is connected in my 
local network, with a firewall protecting my systems.
- i am not running xserver on this system
Of course you cannot login as root over the ssh connection; that's a
default behaviour for security reasons. Haven't you installed a regular
user on this PC, which is also member of the wheel group to allow using
su for becoming root?
Funny, that I'm struggling with opposite problem: I do not get the
boot messages over the serial cable, but do get the login prompt,
which I do not understand :(.
For the login prompt, I have following in /etc/ttys on the headless PC:

  ttyd0   /usr/libexec/getty std.9600   unknown on  secure

but be sure the serial port is enabled in the BIOS, and you have
serial port support compiled into your kernel.
Your cu command should then work, I suppose.
Cheers,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to a Headless machine, after install

2004-05-07 Thread Stijn Hoop
On Fri, May 07, 2004 at 05:01:29PM +0900, Rob wrote:
 Funny, that I'm struggling with opposite problem: I do not get the
 boot messages over the serial cable, but do get the login prompt,
 which I do not understand :(.

You probably need to tell the kernel to use the serial console:

# echo '-h'  /boot.config

Also make sure you have the appropriate flags for your serial device driver,
for sio on RELENG_4 use

device sio0 at isa? port IO_COM1 flags 0x10 irq 4

or if you're on 5.x edit /boot/device.hints and set

hint.sio.0.flags=0x10

(this should be the default though).

There's another knob for uart(4) on 5.x but I don't remember it right now.

HTH,

--Stijn

-- 
The very powerful and the very stupid have one thing in common.  Instead of
altering their views to fit the facts, they alter the facts to fit their views
... which can be very uncomfortable if you happen to be one of the facts that
needs altering.
-- Doctor Who, Face of Evil


pgp0.pgp
Description: PGP signature


Re: Connecting to a Headless machine, after install

2004-05-07 Thread Rob
Stijn Hoop wrote:
On Fri, May 07, 2004 at 05:01:29PM +0900, Rob wrote:

Funny, that I'm struggling with opposite problem: I do not get the
boot messages over the serial cable, but do get the login prompt,
which I do not understand :(.


You probably need to tell the kernel to use the serial console:

# echo '-h'  /boot.config
Ah, thanks. I don't have a /boot.config yet. Are you sure this file goes
in the top-root directory? Or in /boot/... ?
You made me research a little more on this. I do have a file /boot/loader.conf.
How about having in here the line
  console=comconsole

(to divert it from the default: console=vidconsole) ?

Or will that not do the same?

Rob.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting to a Headless machine, after install

2004-05-07 Thread Stijn Hoop
On Fri, May 07, 2004 at 08:06:37PM +0900, Rob wrote:
 Stijn Hoop wrote:
  On Fri, May 07, 2004 at 05:01:29PM +0900, Rob wrote:
   Funny, that I'm struggling with opposite problem: I do not get the
   boot messages over the serial cable, but do get the login prompt,
   which I do not understand :(.
 
  You probably need to tell the kernel to use the serial console:
 
  # echo '-h'  /boot.config
 
 Ah, thanks. I don't have a /boot.config yet. Are you sure this file goes
 in the top-root directory? Or in /boot/... ?

Yes, top-root /. Check the handbook, section 17.6:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

 You made me research a little more on this. I do have a file 
 /boot/loader.conf.
 How about having in here the line
 
   console=comconsole
 
 (to divert it from the default: console=vidconsole) ?
 
 Or will that not do the same?

Having -h in /boot.config will also allow the boot blocks to output to
your serial console. I suspect console=comconsole would help the loader
+ kernel. It certainly couldn't hurt I guess :)

--Stijn

-- 
The sexual urge of the camel is stranger than anyone thinks.
He's lived for years on the desert, and tried to seduce the Sphinx.
But the Sphinxs center of pleasure lies buried deep in the Nile,
which accounts for the hump on the camel and the Sphinxs inscrutable smile.
-- Frantic Fran, http://www.franticfran.com/jokes.htm


pgp0.pgp
Description: PGP signature


Re: Connecting to a Headless machine, after install

2004-05-07 Thread Toni Schmidbauer
On Thu, May 06, 2004 at 11:58:43PM -0400, Bruce Hunter wrote:
 I see the boot process, but it gets to the date prompt but doesn't show 
 the login:

this is mentioned in the fabulous handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

17.6.5.4 Getting a Login Prompt on the Serial Console

hth,
toni
-- 
Wer es einmal so weit gebracht hat, dass er nicht | toni at stderror dot at
mehr irrt, der hat auch zu arbeiten aufgehoert| Toni Schmidbauer
-- Max Planck |


pgp0.pgp
Description: PGP signature