XCONSOLE doesn't work??!!

XCONSOLE doesn't work??!!

Post by Eternal Darkne » Fri, 13 May 1994 14:10:05



--
I have tried all of the options available for the xconsole and it doesn't work
for me. Sometimes I get "Couldn't open console" even though I have permission
for /dev/tty0 as 777 (console is linked to tty0). If I run this as root, I do
manage to get past the permission problem.

When it does APPEAR to be working, nothing ever happens in that window, even
though my system logs all start filling up. Interesting problem. Perhaps really
don't know what xconsole does. I was under the impression that I could keep
track of root logins and kernel errors with this utility. I do believe, even
though I may be going about this with a closed mind, that my copy doesn't work.
Who knows... Anyone that does, please send me mail with info. Thanx!

-jake

--
#include <disclaimer.h>

Sincerely,                      If you open your      Don't turn this way
                                eyes for me           Don't turn that way
Jake Skinner Garcia,            you won't rely on     Straight down the middle
Eternal Darkness(tm)            open eyes to see (*1) until next Thursday (*2)
------------------------------------------------------------------------------



------------------------------------------------------------------------------
Snail:  Jake Garcia, 5130 N. Dona Ana Rd., Las Cruces, NM 88005
------------------------------------------------------------------------------
*1 Quote above taken from "Silent Lucidity" (Queensryche, "Empire")
*2 Quote above taken from "Get the Balance Right" (DM, "People are People")

 
 
 

XCONSOLE doesn't work??!!

Post by Malcolm Reev » Sat, 14 May 1994 09:30:14


: --
: I have tried all of the options available for the xconsole and it doesn't work
: for me. Sometimes I get "Couldn't open console" even though I have permission
: for /dev/tty0 as 777 (console is linked to tty0). If I run this as root, I do
: manage to get past the permission problem.

I had the same problem. xconsole must be setuid root to avoid the perms
problem (I can't get it to work with the same gid as update although xterm
will function this way). Enter (as root):

% chmod u+s /usr/X386/bin/xconsole

Second problem is easy when you know how (but it took me a month or two....)
when you start the X server use:

% startx>&/dev/console

this redirects stdout and stderr to the /dev/console which is what xconsole
is looking for.

Hope this helps.
--
------------------------------------------------------------------------------
Malcolm Reeves, Geological Engineering, University of Saskatchewan, Saskatoon,

------------------------------------------------------------------------------

 
 
 

XCONSOLE doesn't work??!!

Post by Jozsef Kadlecs » Sat, 21 May 1994 17:21:06


Hi Linuxers,

I have the same problem (with xconsole) and an additional one: if I log in
via xdm from an X terminal (and not from the console), the error messages
of the shell simply disappears. For example if I mistype a command name,
it seems as the shell accepted it: I get back the prompt without any message
about unknown command.

Thanks any help in advance,
Jozsef Kadlecsik
--
****************************************************************************
                                           Address: P.O.B 49 Budapest
                                                    1525 Hungary
Hungarian Academy of Sciences              Phone  : +36 (1) 169 9499
Central Research Institute for Physics     Fax    : +36 (1) 169 6567


****************************************************************************

 
 
 

1. cmdtool -C, xconsole: redirection doesn't work

I'd like to ask you to help me solve the following problem:

H: SS1000 without screen/keyboard. VT100 attached via serial port.
S: Solaris 2.4

ioctl SRIOCSREDIR returned -1, attempt to make tty the console failed
(Tty package)

However I can do: date > /dev/console and /dev/console is used by some
processes:

# fuser /dev/console
/dev/console:    12255o   17031o   15450o   29559o   25644o   25251o    
5648o   28296o   28961o     640o     608o    7285o   16537o   24681o    
365o     316o     312o     311o     254o     253o     252o     223o    
218o     211o     162o     158o

truss xconsole shows:

982: stat("/dev/console", 0xDFFFFC20)                 = 0
982: getuid()                                   = 0 [0]
982: access("/dev/console", 6)                        = 0
982: pipe()                                     = 4 [5]
982: open("/dev/console", O_RDONLY)           = 6
982: ioctl(6, 0x1C9E0001, 0x00000004)           Err#22 EINVAL

I assume ioctl is from wscons redirection. wscons (7) states:

     EINVAL         (x86 only) fd does not denote /dev/console.
                    ==========

fd 6 obviously denotes /dev/console. Moreover this is SPARC, not x86.

What could I do to have xconsole working? Any help is appreciated.

Thank you

Maciek Uhlig
Computer Center
Silesian University
Katowice, Poland

2. GET YOURSELF A CALL CENTER JOB AND WORK FROM HOME, FLEXIBLE TIMMING, FIXED INCOME, 0 EXPENSES

3. No Imake.tmpl file, xconsole doesn't work

4. Squid problems (first time run).

5. xconsole doesn't work

6. Cant startx?? HELP?

7. cuaX vs. ttySx

8. xconsole / xterm -C doesn't work

9. Re. bffcreate -X doesn't work Re: bffcreate -X Doesn't Work

10. PPP doesn't die, it just doesn't work anymore

11. : PLIP start up doesn't report problems but also doesn't work?

12. My xconsole doesn't do anything.