1821051 Members
2398 Online
109631 Solutions
New Discussion юеВ

Xterm and Dterm ?

 
Patrick H Hughes
Occasional Contributor

Xterm and Dterm ?

After logging into desktop and opening a dterm window I get nothing but bogus characters returned. Any additional dterm windows open render the same results. I did a telnet session from a workstation and also received bogus characters in a xterm window. Thus far I have restored the /usr /h/COTS /h/COE and the profile and login files under the / directory. In single user mode everything appears normal. Any idea or suggestions on what to try next?

Thanks,

Patrick H. Hughes
SPAWAR Systems Center Chesapeake, VA
phughes@scn.spawar.navy.mil
We come into this world with nothing. Without an education, don't expect it to change.
9 REPLIES 9
Runar J├╕rgensen
Frequent Advisor

Re: Xterm and Dterm ?

Looks like you're having font problems. Check out
$HOME/.dt/errorlog
and /var/dt/Xerrors. Make sure LANG and is set to something reasonable, and verify if you use Roman-8 character set or
an ISO set.

Wodisch
Honored Contributor

Re: Xterm and Dterm ?

Hello Patrick,

can you login on your console and run something like

UNIX95=x ps -efH

there, while you see the "bogus" characters in that
dtterm or xterm?

Then look "below" the line for the dtterm/xterm:
There will be line for the "shell", and perhaps there
are even more lines, all indented to the right...
What are those lines showing (i.e. what processes are
running)?

Is this true for all users, all terminals, all networked
sessions (telnet, rlogin, remsh, X-Windows failsafe
session, X-Windows CDE session, console terminal)?

HTH,
Wodisch
Charles Slivkoff
Respected Contributor

Re: Xterm and Dterm ?

Does text appear normal when you login to CDE? Do the Dtterm menus look normal? Have you tried specifying a different font via the menu? Have you tried a "failsafe" session? What about the CDE text editor "dtpad" from the front-panel? Do you login on the console of the system directly, or via an X terminal, PC, etc?



In the CDE "Application Manager" you will find an icon for "xwd" which will let you take a window dump and save to a file. Use this to grab a shot of the dtterm/xterm display and we'll probably be able to offer additional suggestions.

Patrick H Hughes
Occasional Contributor

Re: Xterm and Dterm ?

Further research reveals that this begins to happen when you issue a l, ls, ls -l command from the / directory. You can change out of the / directory, and the l commands work fine but if you change back to the root directory and issue a l command then the garble starts.
All other commands while in the root directory appear to work correctly.
We come into this world with nothing. Without an education, don't expect it to change.
Patrick H Hughes
Occasional Contributor

Re: Xterm and Dterm ?

The environment appears to be fine. Doesn't matter which user is logged in, the same results occur.
We come into this world with nothing. Without an education, don't expect it to change.
linuxfan
Honored Contributor

Re: Xterm and Dterm ?

Hi Patrick,


Can you check if "ls" is an alias. Do a
"type ls"

and since you are saying this is happening to all users, check the /etc/profile and see if you are aliasing ls there.

Did you see anything in the errorlogs?

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Charles Slivkoff
Respected Contributor

Re: Xterm and Dterm ?

OK, I think I figure this one out. Try "ls -bi". I suspect you will see one or more files with \0nnn in their names. This implies that one or more file names have been created with characters that are not normally printable.



Using the inode listed (from "-i") and "find", you can rename these file with something like:



let count=0

for file in $(find / -xdev -inum insertinodenumberhere )

do

mv -i $file /tmp/badfile.$count

let count++

done

Charles Slivkoff
Respected Contributor

Re: Xterm and Dterm ?

You've got one or more files with non-printable characters in their names. Try:



ls -ib



This will display the non-printables as octal values.



Then, using the inode number (from the "-i" option) for each file, you can move these to /tmp & rename them using something like:



find / -xdev -inum INODE -exec mv -i {} /tmp/badfile \;



Stefan Farrelly
Honored Contributor

Re: Xterm and Dterm ?


I think your home directories .dt subdir is corrupt. Simply
rm -rf $HOME/.dt
and then log into the desktop again and it will be recreated.
Im from Palmerston North, New Zealand, but somehow ended up in London...