Jump to content

!nkubus

Members
  • Posts

    171
  • Joined

  • Last visited

Posts posted by !nkubus

  1. Hi

     

    "but my root is not able to connect o X server"

    Good. In X while root is risky/happy-sitting-duck!

    Don't do this!!

    (cut off www if unprotected &| paranoid)

    (then give root X permision)

    cp /home/$USER/.Xauthority /root as root

    check root $DISPLAY value

    (should be same as echo $USER when $USER)

     

    "so i cannot see the dialog box"

    Doe's this work?

    Alt/F2 kdialog --title test --msgbox test

    0 problems here.

     

    I thought the idea was to run kdialog with non root priviledges!

    My little script work's here.

    (Maybe try it stanalone say as test.sh first)

     

    Please post your shell script.

    Maybe somebody will pick up something?

     

     

    ok here is my output :

    root@timon:/tmp# ./test.sh
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    xhost:  unable to open display ":0.0"
    kwrite: cannot connect to X server

     

    and here is the content of my file:

    cat test.sh
    #build kdialog command file
    export DISPLAY=":0.0"
    echo "#!/bin/sh" > /tmp/kdialog_cmd
    xhost +
    echo "kwrite" >> /tmp/kdialog_cmd
    chmod a+x /tmp/kdialog_cmd
    # run kdialog command file as some-user
    su - frank -c /tmp/kdialog_cmd

     

    and yer alt f2 give me the dialog ;)

     

    thanks again for your help :)

  2. i have a script that is running root (usb-storage script) i know that everything is mounted on mandrake but i'm trying to output a message to the user of course WITHOUT ROOT privileges (to reduce the possibility of having a user to run process a root) and to have the same config and skin than the current user here my exemple:

    i'm on kde 3.3

         script thing 
      ....
      dropping root privilege to current user
    ./kdialog --title "New Usb-Storage found" --passivepopup \
    "is avaible in /mnt" 10

     

    i know i'm not clear but any idea will help me a lot

  3. Ok i'm a old time mandrake user, and i started to help a friend build a customized linux distribution based on debian unstable (munjoy linux) the kernel is built with supermount-ng wich i know that mandrake uses. Ok mdk uses supermount which is very simmilar in a lot of points with supermount-ng.

     

    My questions is that i'm trying to automount usb-storage automatically on insert of a usb key or drive. so right now i have ended in /etc/hotplug/usb.agent and /etc/hotplug/usb/usb-storage

    for running scripts on usb events and usb-storage detection , in thoses scripts i can put a lot of things i want in there like passive kde message to the user. But there is something i can't figure is how to know and how to automount the devices like Mandrake does. Personnaly i think Mandrake is the distribution who is doing the best job so far in automounting the devices. So i want to know how to automate the the mounting of such devices and how to make them usable by the user like mount it for the current user none for the root?.

     

    I ended here because i wanted to know how mandrake did this part and because i wanted to learn this stuff.

     

    Thanks for your help.

     

     

    Francis Belanger

  4. The only hint i can give you is that thig thing is done by Magicdev, i don't know anything else of MagicDev, but a least it can oput you in the right direction.

  5. i just moved my laptop from mandrake 9.2 to official edition.

     

    i have a weird but when X is booted i have a black screen with some colors at the extremity of each window , but everything else is black and i cannot use X.

     

    i went to my /etc/X11/XF86Cofig-4 and finally found that if

     

    Option "no_accel" in my device section is enabled , X boot with all the graphics ok but it's basically unusable because everytime i want to move a window it's awfully slow and

    and full of glitch.

     

    i have read in an old redhat forum that this problem is caused by a wrongly compiled driver. i i recompile the driver everything should be fine . but i don't know where to start :(.

     

    i'm sure the driver was compiled in Xfree 4.3 and mdk moved back to the RC without recompiling the driver.

     

    my laptop is an IBM t23 , with 256 ram, and a Savage4 card.

     

    any help with be appreciated

     

    Thanks

  6. mmm i ahve the same mouse and is't working like a charm.

     

    try to go on the mcc and set the mouse under usb mouses as an microsoft explorer something liike this and the wheel should work. IF not in your /etc/X11/XF86Config-4 you should have

     

    Section "InputDevice"

    Identifier "Mouse0"

    Driver "mouse"

    Option "Device" "/dev/mouse"

    Option "Protocol" "imps/2"

    Option "Emulate3Buttons" "off"

    Option "Buttons" "5"

    Option "ZAxisMapping" "4 5"

    EndSection

     

    Where Identifier "Mouse0" is the name of the mouse in your file could be mouse1 cold b mouse2.

     

    hop this helps :) of course reboot X after. ctrl-alt-backspace

×
×
  • Create New...