|
|
||
Slackware 10.0 Error Messages—Day 20© Copyright Darrell Anderson. There were several error messages in my .xsession-errors file that I finally resolved, although with much grumbling. The error message of stderr is not a tty where are you? was a challenge. Seems the message results from a variety of causes, but in my particular case the error was caused by a section of bash code in the /etc/profile script. The culprit was: if [ -x /usr/bin/biff ]; thenLong-suffering surfing found the solution of changing that line to: if `tty -s ` && `test -x /usr/bin/biff`; thenThis needs to be fixed in subsequent Slackware releases because this error message drives a lot people nuts. Additionally, I have no intention of using mail from the command line, but only from a GUI email client. Thus, I changed the line biff yto: biff nThen I edited the /etc/login.defs file not to send a MOTD (I commented out MOTD_FILE) or check for new mail (MAIL_CHECK_ENAB=no). That stopped the “You have mail” messages as well as being told the kernel version whenever I booted into run level 3. The next set of error messages needing attention was a series of xset problems in .xsession-errors: xset: bad font path element (#58), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntaxBeing unfamiliar with the startkde script, I inserted several echo messages to help me discover where in that script these error messages were being generated. The problem is in the way the startkde script validates the global and local KDE font paths. The two global paths are: /opt/KDE/share/fonts/opt/KDE/share/fonts/override The two local paths: ~/.fonts~/.fonts/override I tried many things, but what finally worked was adding a small pcf.gz file to each directory. In all four of those directories I ran mkfontdir and mkfontscale. I then edited /etc/fonts/fonts.conf. I commented out the line referencing <dir>/usr/share/fonts</dir> because that file path does not exist in Slackware. I then edited /etc/fonts/local.conf. I added two file paths: <dir>/usr/local/share/fonts</dir><dir>/opt/kde/share/fonts</dir> Then I manually ran fc-cache -fv. I don’t know if what I did is the proper solution, but this stopped the nonsense error messages. This seems to be more of a KDE problem and not Slackware. Although I finally stopped those error messages, this was another period of frustration and tail chasing. Another set of errors that irritated me was whenever I started an X session. I would receive three error messages about X being unable to configure for IPv6: _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6_XSERVTransOpen: transport open failed for inet6/chickadee:0 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 A common recommended solution I found to stop these errors was to modify the /etc/X11/xdm/Xservers file and add the option -nolisten tcpUnfortunately, this solution would not work for me. Then I stumbled upon the idea of passing parameters to the startx script. However the syntax of doing this is (initially) counterintuitive. Instead of typing startx -nolisten tcp, the syntax is startx -- -nolisten tcp. The double dash is for separating X client and server arguments. I then found a recommendation to add that same option to the serverargs variable in the startx script. In the original script the variable is empty. This solution worked, but again, lots of time chasing rabbits. Unfortunately, this solution is only a half-solution. This serverargs trick works only when starting X from the command line. When starting X from a display manager, I was unable to eliminate those error messages! The error messages continue to appear in the kdm.log although not in the Xorg.0.log. I tried the xdm display manager with the same result. I have yet to discover a remedy. This is irritating! Additional bothersome error messages were in my /var/log/Xorg.0.log. Apparently the X server did not like some of the empty font directories despite containing fc-cache-1, fonts.dir, and fonts.scale files. To stop those errors I finally commented those paths out from my font path list in /etc/X11/xorg.conf. Finis. |
||