Announcement

Collapse
No announcement yet.

strange messages with sudo kate foo

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    strange messages with sudo kate foo

    I have installed dapper on two computers from a Kubuntu 6.06 Alternate disc.
    Slick installation, all went well, dual boot and all.
    When I went to change the
    "sources.list" so I could get the Qt programming tool kit I got:
    pete@OldCompaq:/etc/apt$ ls
    apt.conf    secring.gpg    sources.list   sources.list.d  trusted.gpg
    apt.conf.d  sourcesbackup  sources.list~  trustdb.gpg     trusted.gpg~
    pete@OldCompaq:/etc/apt$ sudo kwrite sources.list
    Password:
    X Error: BadDevice, invalid or uninitialized input device 166
      Major opcode:  144
      Minor opcode:  3
      Resource id:  0x0
    Failed to open device
    X Error: BadDevice, invalid or uninitialized input device 166
      Major opcode:  144
      Minor opcode:  3
      Resource id:  0x0
    Failed to open device
    Link points to "/tmp/ksocket-root"
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified

    kdeinit: Can't connect to the X Server.
    kdeinit: Might not terminate at end of session.
    Link points to "/tmp/kde-root"
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified

    kded: cannot connect to X server :0.0
    DCOP aborting call from 'anonymous-5847' to 'kded'
    kded: ERROR: Communication problem with kded, it probably crashed.
    ScimInputContextPlugin()
    ~ScimInputContextPlugin()
    pete@OldCompaq:/etc/apt$
    But the file came up, I made my changes and it all works. I am using Kdevelop for program development and sebugging. After a clean "build", no warnings or errors, I run teh program in Kdevelop ( it runes fine) but I get the same errors as the program ws loading.

    I previously loaded Ubuntu 6.06 Alternate on two same two computers, made the same changes to the "sources,list" file with no prblems

    Now ever time I "sudo kate" or "sudo kwrite or do a DDD dubugging session

    Any help would be appreciated
    A helping hand has more than five fingers

    #2
    Re: strange messages with sudo kate foo

    Hi,

    You can safely ignore these errors or edit your /etc/X11/xorg.conf and comment (#) the lines concerning the wacom driver.

    Comment


      #3
      Re: strange messages with sudo kate foo

      Code:
      sudo kate
      is bad and should never be used.
      Code:
      sudo kwrite
      will function, but it's not advised.

      Best practice is to use
      Code:
      kdesu kate
      or
      Code:
      kdesu kwrite
      Linux is ready for the desktop--but whose desktop?<br />How to install software in Kubuntu

      Comment


        #4
        Re: strange messages with sudo kate foo

        Thanks for the replies. I don't understand what I should change in X11/xorg.conf. There are several I've added 1280x1024 screen resolution there, and I see the

        If I use kdesu kwrite foo.x, or just plain kate foo.x or kwrite foo.x. I get that message, but I do get the file I'm looking for.

        I use KDevelop for my programming. Every time It loads the program, it prints it out the same message. I loaded "ubuntu" and used "kdesu kwrite foo.x" with out the message.

        Whats with Kubuntu 6.06 that I can't use kate or kwrite right out of the box

        What is "input devise 166" what do I do to get ride of these messages. I'm programming and I do not like warning.

        Is this a problem is Kubuntu 6.06 or did somthing wrong or is it my hardware. I get the same problem whether I install using the Kubuntu 6.06 alternate disc
        or the 6.06 desktop for installation.

        What is device 166?
        Is kubuntu going to fix it or do I go to another debian distro or load Ubuntu and add the KDE functionality that I need.

        Thanks in advance.


        A helping hand has more than five fingers

        Comment


          #5
          Re: strange messages with sudo kate foo

          hi,

          sudo kwrite /etc/apt/sources.list = no X Error on my box

          Well. The wacom tablet, mouse and keyboards are input devices. You do use a mouse and a keyboard, don't you ? If you don't use a wacom tablet, you don't need the wacom driver. Is that simple !

          So edit your /etc/X11/xorg.conf and comment the wacom bits (don't forget
          Section "ServerLayout") and you'll get less errors.



          Comment


            #6
            Re: strange messages with sudo kate foo

            Thanks, beginning to understand but not sure how to option out the "wacom"s. I tried it one way, rebooted and was locked out and had to re-install the whole thing. so I need some more help.
            in my "xorg.conf" file I have several groups like this one
            Code:
            Section "InputDevice"
             Driver    "wacom"
             Identifier  "stylus"
             Option    "Device"    "/dev/wacom"     # Change to 
                                       # /dev/input/event
                                       # for USB
             Option    "Type"     "stylus"
             Option    "ForceDevice"  "ISDV4"        # Tablet PC ONLY
            EndSection
            how do I option out the "wacom"s
            A helping hand has more than five fingers

            Comment


              #7
              Re: strange messages with sudo kate foo

              Hi,
              Here is my xorg.conf. You forgot the Section ServerLayout...

              Section "Files"
                      FontPath        "/usr/share/X11/fonts/misc"
                      FontPath        "/usr/share/X11/fonts/cyrillic"
                      FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
                      FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
                      FontPath        "/usr/share/X11/fonts/Type1"
                      FontPath        "/usr/share/X11/fonts/100dpi"
                      FontPath        "/usr/share/X11/fonts/75dpi"
                      # path to defoma fonts
                      FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
              EndSection

              Section "Module"
                      Load    "i2c"
                      Load    "bitmap"
                      Load    "ddc"
                      Load    "dri"
                      Load    "extmod"
                      Load    "freetype"
                      Load    "glx"
                      Load    "int10"
                      Load    "type1"
                      Load    "vbe"
              EndSection

              Section "InputDevice"
                      Identifier      "Generic Keyboard"
                      Driver          "kbd"
                      Option          "CoreKeyboard"
                      Option          "XkbRules"      "xorg"
                      Option          "XkbModel"      "pc105"
                      Option          "XkbLayout"     "fr"
                      Option          "XkbVariant"    "latin9"
              EndSection

              Section "InputDevice"
                      Identifier      "Configured Mouse"
                      Driver          "mouse"
                      Option          "CorePointer"
                      Option          "Device"                "/dev/input/mice"
                      Option          "Protocol"              "ExplorerPS/2"
                      Option          "ZAxisMapping"          "4 5"
                      Option          "Emulate3Buttons"       "true"
              EndSection

              #Section "InputDevice"
                #Driver        "wacom"
                #Identifier    "stylus"
                #Option        "Device"        "/dev/wacom"          # Change to
                                                                    # /dev/input/event
                                                                    # for USB
                #Option        "Type"          "stylus"
                #Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
              #EndSection

              #Section "InputDevice"
                #Driver        "wacom"
                #Identifier    "eraser"
                #Option        "Device"        "/dev/wacom"          # Change to
                                                                    # /dev/input/event
                                                                    # for USB
                #Option        "Type"          "eraser"
                #Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
              #EndSection

              #Section "InputDevice"
                #Driver        "wacom"
                #Identifier    "cursor"
                #Option        "Device"        "/dev/wacom"          # Change to
                                                                    # /dev/input/event
                                                                    # for USB
                #Option        "Type"          "cursor"
                #Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
              #EndSection


              Section "Device"
                      Identifier      "NVIDIA Corporation NV35 [GeForce FX 5900XT]"
                      Driver          "nvidia"
                      BusID           "PCI:1:0:0"
              EndSection

              Section "Monitor"
                      Identifier      "Q995"
                      Option          "DPMS"
              EndSection

              Section "Screen"
                      Identifier      "Default Screen"
                      Device          "NVIDIA Corporation NV35 [GeForce FX 5900XT]"
                      Monitor         "Q995"
                      DefaultDepth    24
                      SubSection "Display"
                              Depth           1
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
                      SubSection "Display"
                              Depth           4
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
                      SubSection "Display"
                              Depth           8
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
                      SubSection "Display"
                              Depth           15
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
                      SubSection "Display"
                              Depth           16
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
                      SubSection "Display"
                              Depth           24
                              Modes           "1280x1024" "1152x864" "1024x768" "800x600"
                      EndSubSection
              EndSection

              Section "ServerLayout"
                      Identifier      "Default Layout"
                      Screen          "Default Screen"
                      InputDevice     "Generic Keyboard"
                      InputDevice     "Configured Mouse"
                      #InputDevice     "stylus" "SendCoreEvents"
                      #InputDevice     "cursor" "SendCoreEvents"
                      #InputDevice     "eraser" "SendCoreEvents"

              EndSection

              Section "DRI"
                      Mode    0666
              EndSection   

              _____________________________________________

              Best practices:
              kdesu kate /etc/apt/sources.list in konsole
              or
              Alt-F2  then
              kdesu kate /etc/apt/sources.list
                                                                         

              Comment


                #8
                Re: strange messages with sudo kate foo

                Thanks a bunch. I know you pointed out the "serverLayout" but I was not sure on what to option out there. I was getting gun shy.

                It will be sometime before I try this as I need to reinstall Kbuntu on one of my computers ( the slow one )

                No I have not seen the 6.06 file, I am familiar with the 5,04 & 5.10s

                Thanks again

                A helping hand has more than five fingers

                Comment


                  #9
                  Re: strange messages with sudo kate foo

                  Well caserio,
                  I re-installed Kubuntu
                  I removed the header and footer from your xorg.conf and saved it as "option"
                  I "kdesu apt-get update"
                  I "kdesu kwrite /etc/X11/xorg.conf"
                  I "save as xorgbackup"
                  I "kdesu kwrite options"
                  I "'save as xorg.conf"
                  I overwrite "xorg.conf"
                  I "kdesu apt-get update"
                  I re-booted
                  I'm focked out. The same as when I tried to option out before.

                  I had previously gone into "xorg.conf" and added "1280x1024" screen resolutions and that works fine, so that isn't the problem and I did a direct substitution. I was very careful, got no warnings or errors, did not do anything other then what I listed above.

                  It's not been a good day, but I thank you for your help.anyway.
                  I guess, the direct subutition was not a good idea. Tomorrow I shall try again by making the changes myself.

                  pete perry.



                  A helping hand has more than five fingers

                  Comment


                    #10
                    Re: strange messages with sudo kate foo

                    Now at last all is good. My brain must have been turned off. Immediately after posting my last message I realized that there were other devices controlled by xorg.conf. I'm 80 so please forgive me.

                    For the most part Ubuntu is great right out of the box so to speak. Having to do somthing like this seems out of character, I would not feel comfortable reccommending Kubuntu to my friends unless they knew more obout computers then I do.

                    i really appreciate your help.. thasks

                    A helping hand has more than five fingers

                    Comment


                      #11
                      Re: strange messages with sudo kate foo

                      yeh i noticed this too, at least there's an alternative - nice to know

                      Comment

                      Working...
                      X