This problem is driving me crazy!
I use "/etc/ttys" on FreeBSD to configure the commands that are executed when getty is executed.
This is the relevant line of my config file
ttyv8 "/usr/local/bin/startx" xterm on secure
My problem is that, on boot, the current console switches to ttyv8 (working as expected), then my VirtualBox window resizes (which normally indicates that the X Server is taking control over the graphics output), but then the X server immediately closes. FreeBSD tries again 5 times, waits 30 seconds and tries again 5 times, waits 30 seconds, and so on. This is driving me crazy!
However, after logging in on a text console and running
startx from there, it works completely fine without any problems.
I don't have a
~/.xinitrc but modified the default xinit file in
When I tried debugging the whole stuff adding a pipe to my tty command:
ttyv8 "/usr/local/bin/startx > /tmp/startx.log" xterm on secure
the startx.log did not exist. It simply did not work. However, the standard Xorg.0.log gets updated with every try getty makes to start the x server. The Xorg.0.log simply says nothing. Just that it ended successfully after drivers etc. were loaded. It's like my xinitrc would not have been read at all.
Please notice, that I don't want to use a login manager and that I don't want any auto login mechanism.
Thank you in advance.