Re: X on Xterminals but not on console

2011-10-06 Thread Manolis Kiagias

On 6/10/2011 6:24 μμ, n dhert wrote:

Hi,
In your labserver, do you have a graphical login window at your labserver or
not ?
I don't want a graphical login, since I can't get anymore to the login
prompt via Ctrl Alt F1


No graphical login. My lab server stops at the console login prompt.


In KDM, the config directory is /usr/local/share/config/kdm  for kdm window
manager, there is no
Xservers file, and I can't see any file .. there are Xaccess, Xwilling,
Xstartup, Xreset, Xsession files
and a large kdmrc file. There are no man pages for kdm, kdm-bin, Xaccess,
etc...

I tried setting ServerCmd=""  instead of ServerCmd=/usr/local/bin/X -br  in
the  kdmrc file ...
Now I only have /usr/local/bin/kdm-bin running, not /usr/local/bin/X



Don't really know how KDM handles this. You could however - as a last 
resort - disable KDM and use xdm as your login manager. It is a bit 
"rough" (see login screens here 
http://www.flickr.com/photos/sonic2000gr/5033230929/in/set-72157625053818002) 
but it can start up any GUI using a simple .xsession file (xdm is not 
installed along with X but it is a very small port, x11/xdm).



Am I right to believe the primary role of a local X server (local= on
labserver) is to have a graphical environment on that labserver machine ?



Yes, absolutely. There is no need to run a GUI on the lab server. It's a 
waste of CPU cycles and memory.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread n dhert
Hi,
In your labserver, do you have a graphical login window at your labserver or
not ?
I don't want a graphical login, since I can't get anymore to the login
prompt via Ctrl Alt F1

In KDM, the config directory is /usr/local/share/config/kdm  for kdm window
manager, there is no
Xservers file, and I can't see any file .. there are Xaccess, Xwilling,
Xstartup, Xreset, Xsession files
and a large kdmrc file. There are no man pages for kdm, kdm-bin, Xaccess,
etc...

I tried setting ServerCmd=""  instead of ServerCmd=/usr/local/bin/X -br  in
the  kdmrc file ...
Now I only have /usr/local/bin/kdm-bin running, not /usr/local/bin/X

Am I right to believe the primary role of a local X server (local= on
labserver) is to have a graphical environment on that labserver machine ?

2011/10/6 Manolis Kiagias 

> On 5/10/2011 1:33 μμ, n dhert wrote:
>
>> FreeBSD-8.2 with Xorg:
>> Is there a way one can specify that your never have X on the console (just
>> the login: prompt)
>> but still have X on any other X-windows termnal (an KDM login window) and
>> graphical environment
>>
>
> I've got a lab that uses XDMCP and X-terminals and I don't run X on the
> server. I am using XDM and have commented out the following line in
> /usr/local/lib/X11/xdm/**Xservers:
>
> # :0 local /usr/local/bin/X :0
>
> It might be something similar for KDM that will allow it to listen for
> remote connections but not run locally.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread n dhert
(sorry for top posting, but your private address always comes in To: have to
remember deleting it..)

I can only test on my Xterminal since vsphere connection is a black screen
..
on Xterminal, xev :
when hitting F1 in the small Event test window, I get answer:

KeyPress event, serial 29, synthetic NO, window 0x481,
root 0x28, subw 0x0, time 2562153193, (4,176), root:(759,203),
state 0x0, keycode 15 (keysym 0xffbe, F1), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 31, synthetic NO, window 0x481,
root 0x28, subw 0x0, time 2562153265, (4,176), root:(759,203),
state 0x0, keycode 15 (keysym 0xffbe, F1), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


2011/10/6 Matthias Apitz 

> El día Thursday, October 06, 2011 a las 01:15:04PM +0200, n dhert escribió:
>
> > Are you sure it is a vSphere problem? I'm not sure:
> > I have used it for 2 years without problem, only with the last reboot
> (for
> > security update -p3 of FreeBSD 8.2)
> > I got into problems.  I update packages every week, maybe something
> changed
> > in the X packages (I do read
> > /ussr/ports/UPDATING always before updating, can't remember something
> would
> > have to be done before
> > upgrading)
>
> (Note: I will from now ignore all top posted questions.)
>
> You can watch with xev(1) if the F1 key stroke gets delivered to the
> X11 server. In my case it is only delivered when I do Ctrl-Alt-Space
> before.
>
> HIH
>
>matthias
> --
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> 200†-20††: 10 years war in Afghanistan. Stop it now!
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread Matthias Apitz
El día Thursday, October 06, 2011 a las 01:15:04PM +0200, n dhert escribió:

> Are you sure it is a vSphere problem? I'm not sure:
> I have used it for 2 years without problem, only with the last reboot (for
> security update -p3 of FreeBSD 8.2)
> I got into problems.  I update packages every week, maybe something changed
> in the X packages (I do read
> /ussr/ports/UPDATING always before updating, can't remember something would
> have to be done before
> upgrading)

(Note: I will from now ignore all top posted questions.)

You can watch with xev(1) if the F1 key stroke gets delivered to the
X11 server. In my case it is only delivered when I do Ctrl-Alt-Space
before.

HIH

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
200†-20††: 10 years war in Afghanistan. Stop it now!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread n dhert
Are you sure it is a vSphere problem? I'm not sure:
I have used it for 2 years without problem, only with the last reboot (for
security update -p3 of FreeBSD 8.2)
I got into problems.  I update packages every week, maybe something changed
in the X packages (I do read
/ussr/ports/UPDATING always before updating, can't remember something would
have to be done before
upgrading)

2011/10/6 Matthias Apitz 

> El día Thursday, October 06, 2011 a las 11:51:22AM +0200, n dhert escribió:
>
> > I tried that already yesterday, with disastreous results: keyboard and
> mouse
> > completely locked.
> > Closed vsphere and started again, connect to freebsd machine: black
> window,
> > no reaction to any keyboard of
> > mouse ..
>
> Sorry to hear this. I have tested it with VMware 7.x running on my Win7
> laptop and FreeBSD 9-CUR (r220692) in a VM. It worked fine for me.
> File a bug report against vSphere.
>
> HIH
>
>matthias
>
> PS: Please dont top-post
>
> --
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> 200†-20††: 10 years war in Afghanistan. Stop it now!
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread Matthias Apitz
El día Thursday, October 06, 2011 a las 11:51:22AM +0200, n dhert escribió:

> I tried that already yesterday, with disastreous results: keyboard and mouse
> completely locked.
> Closed vsphere and started again, connect to freebsd machine: black window,
> no reaction to any keyboard of
> mouse ..

Sorry to hear this. I have tested it with VMware 7.x running on my Win7
laptop and FreeBSD 9-CUR (r220692) in a VM. It worked fine for me.
File a bug report against vSphere.

HIH

matthias

PS: Please dont top-post

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
200†-20††: 10 years war in Afghanistan. Stop it now!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread n dhert
I tried that already yesterday, with disastreous results: keyboard and mouse
completely locked.
Closed vsphere and started again, connect to freebsd machine: black window,
no reaction to any keyboard of
mouse ..

2011/10/6 Matthias Apitz 

> El día Thursday, October 06, 2011 a las 11:04:33AM +0200, n dhert escribió:
>
> > It is not so clear ..  My problem is:
> >
> > My FreeBSD is a VMware Virtual machine, for 2 years.
> > When connecting to that machine via vSphere client, I get a KDM
> > login window and via Ctrl-Alt-F1  can switch to a console prompt
> > Well, that *was* possible ..
> >
> > Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything
> > anymore...
> > Can't understand why, it always worked in the past?
>
> Try:
>
> Ctrl-Alt-SPACE and while Ctrl-ALt still down F1
>
>matthias
>
> --
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> 200†-20††: 10 years war in Afghanistan. Stop it now!
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread Matthias Apitz
El día Thursday, October 06, 2011 a las 11:04:33AM +0200, n dhert escribió:

> It is not so clear ..  My problem is:
> 
> My FreeBSD is a VMware Virtual machine, for 2 years.
> When connecting to that machine via vSphere client, I get a KDM
> login window and via Ctrl-Alt-F1  can switch to a console prompt
> Well, that *was* possible ..
> 
> Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything
> anymore...
> Can't understand why, it always worked in the past?

Try:

Ctrl-Alt-SPACE and while Ctrl-ALt still down F1

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
200†-20††: 10 years war in Afghanistan. Stop it now!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-06 Thread n dhert
It is not so clear ..  My problem is:

My FreeBSD is a VMware Virtual machine, for 2 years.
When connecting to that machine via vSphere client, I get a KDM
login window and via Ctrl-Alt-F1  can switch to a console prompt
Well, that *was* possible ..

Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything
anymore...
Can't understand why, it always worked in the past?

I have an Tektronix X-terminal, the software running on it allows
me to enter my freesbd-machine hostname, then gives me a KDM login window.

If my 'console' login (via VMware's vSphere) could be made NOT be a
KDM graphical login, and my Xterminal still giving me a KDM login, this
would be a workarround (no need to do Ctrl-Alt-F1 on Xterminal),
[ and even a better solution, since I do never need graphical environment
when connecting to the console ]

How can I make the login different for console and other logins?
OR: HOW can I solve the Ctrl-Alt-F1 problem?

The setup in my Freebsd is:
I have in /etc/rc.conf
hald_enable="YES"
dbus_enable="YES"

I have an /etc/X11/xorg.conf file

/etc/ttys has:
ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on secure
(see below for other parts)
at boot this starts a /usr/local/bin/kdm script
the hald and dbus deamons are runnng ($ ps -jaxw | grep hald ..)

/usr/local/bin/kdm is a shell script first running
 /usr/local/bin/genkdmconf with config files from
/usr/local/share/config/kdm
 directory
but is is unclear if (and how) I can make a difference there between the
console and an X-terminal somewhere

--
# more /etc/ttys
...
# $FreeBSD: src/etc/etc.amd64/ttys,v 1.18.2.1.6.1 2010/12/21 17:09:25
kensmith Exp $
...
console noneunknown off secure
#
ttyv0   "/usr/libexec/getty Pc" cons25  on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc" cons25  on  secure
ttyv2   "/usr/libexec/getty Pc" cons25  on  secure
ttyv3   "/usr/libexec/getty Pc" cons25  on  secure
ttyv4   "/usr/libexec/getty Pc" cons25  on  secure
ttyv5   "/usr/libexec/getty Pc" cons25  on  secure
ttyv6   "/usr/libexec/getty Pc" cons25  on  secure
ttyv7   "/usr/libexec/getty Pc" cons25  on  secure
#ttyv8  "/usr/local/bin/xdm -nodaemon"  xterm   off secure
ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu0   "/usr/libexec/getty std.9600"   dialup  off secure
ttyu1   "/usr/libexec/getty std.9600"   dialup  off secure
ttyu2   "/usr/libexec/getty std.9600"   dialup  off secure
ttyu3   "/usr/libexec/getty std.9600"   dialup  off secure
# Dumb console
dcons   "/usr/libexec/getty std.9600"   vt100   off secure
# Pseudo terminals
ttyp0   nonenetwork
ttyp1   nonenetwork
...
ttySv   nonenetwork
-



2011/10/5 David Brodbeck 

> On Wed, Oct 5, 2011 at 10:59 AM, Matthias Apitz  wrote:
> > El día Wednesday, October 05, 2011 a las 12:10:47PM -0400, Lowell Gilbert
> escribió:
> >
> >> n dhert  writes:
> >>
> >> > FreeBSD-8.2 with Xorg:
> >> > Is there a way one can specify that your never have X on the console
> (just
> >> > the login: prompt)
> >> > but still have X on any other X-windows termnal (an KDM login window)
> and
> >> > graphical environment
> >>
> >> Sure.  It's all in how you configure KDM.
> >>
> >> In xdm it's set up in the access file;
> >> I wouldn't be surprised if kdm were the same.
> >
> > You have login: on console, login, create a file ~/.xinitrc with the
> > lines:
> >
> > twm &
> > xterm
> >
> > and then you just say: startx and X11 will come up; ofc you could remove
> > software or create some dirty xorg.conf file which X11 will not let come
> up;
>
> Couldn't you just remove execute permission for the X server binaries?
>  People using X terminals will only be running X clients, since the
> server will be their terminal.  In fact, i think you only need a
> server installed at all in this situation for dependency reasons.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-05 Thread David Brodbeck
On Wed, Oct 5, 2011 at 10:59 AM, Matthias Apitz  wrote:
> El día Wednesday, October 05, 2011 a las 12:10:47PM -0400, Lowell Gilbert 
> escribió:
>
>> n dhert  writes:
>>
>> > FreeBSD-8.2 with Xorg:
>> > Is there a way one can specify that your never have X on the console (just
>> > the login: prompt)
>> > but still have X on any other X-windows termnal (an KDM login window) and
>> > graphical environment
>>
>> Sure.  It's all in how you configure KDM.
>>
>> In xdm it's set up in the access file;
>> I wouldn't be surprised if kdm were the same.
>
> You have login: on console, login, create a file ~/.xinitrc with the
> lines:
>
> twm &
> xterm
>
> and then you just say: startx and X11 will come up; ofc you could remove
> software or create some dirty xorg.conf file which X11 will not let come up;

Couldn't you just remove execute permission for the X server binaries?
 People using X terminals will only be running X clients, since the
server will be their terminal.  In fact, i think you only need a
server installed at all in this situation for dependency reasons.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-05 Thread Matthias Apitz
El día Wednesday, October 05, 2011 a las 12:10:47PM -0400, Lowell Gilbert 
escribió:

> n dhert  writes:
> 
> > FreeBSD-8.2 with Xorg:
> > Is there a way one can specify that your never have X on the console (just
> > the login: prompt)
> > but still have X on any other X-windows termnal (an KDM login window) and
> > graphical environment
> 
> Sure.  It's all in how you configure KDM.
> 
> In xdm it's set up in the access file; 
> I wouldn't be surprised if kdm were the same.

You have login: on console, login, create a file ~/.xinitrc with the
lines:

twm &
xterm

and then you just say: startx and X11 will come up; ofc you could remove
software or create some dirty xorg.conf file which X11 will not let come up;

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: X on Xterminals but not on console

2011-10-05 Thread Lowell Gilbert
n dhert  writes:

> FreeBSD-8.2 with Xorg:
> Is there a way one can specify that your never have X on the console (just
> the login: prompt)
> but still have X on any other X-windows termnal (an KDM login window) and
> graphical environment

Sure.  It's all in how you configure KDM.

In xdm it's set up in the access file; 
I wouldn't be surprised if kdm were the same.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


X on Xterminals but not on console

2011-10-05 Thread n dhert
FreeBSD-8.2 with Xorg:
Is there a way one can specify that your never have X on the console (just
the login: prompt)
but still have X on any other X-windows termnal (an KDM login window) and
graphical environment
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"