-
Posts
171 -
Joined
-
Last visited
Contact Methods
-
Website URL
http://www.chaos-concepts.com
-
ICQ
0
Profile Information
-
Location
Around Montreal
!nkubus's Achievements

frequent (3/7)
0
Reputation
-
looks cool but synce no KDE suport i will stick with my unknown Munjoy Linux. wich is probably the equivalent to Ubuntu but with KDe and smooth integreated with Debian Unstable Branch. www.munjoylinux.org :)
-
Drop root privileges from bash
!nkubus replied to !nkubus's topic in Command Line, Kernel and Programming
i GOT IT i have changedyour last line su - frank -c /tmp/kdialog_cmd to su frank -c /tmp/kdialog_cmd because the dash in su remove all variables exported so this is why :) thank you for your help , now i only have to know wich user have cause my deamon to start :) -
Drop root privileges from bash
!nkubus replied to !nkubus's topic in Command Line, Kernel and Programming
and if i set comment the xhost and the export display it still says: ./test.sh kwrite: cannot connect to X server and the file is this #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 -
Drop root privileges from bash
!nkubus replied to !nkubus's topic in Command Line, Kernel and Programming
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 :) -
Drop root privileges from bash
!nkubus replied to !nkubus's topic in Command Line, Kernel and Programming
it seems to work thank you ,but my root is not able to connect o X server so i cannot see the dialog box thanks for your help :) -
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
-
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
-
!nkubus started following usb-storage and supermount on Debian
-
oops forgot the link www.munjoylinux.org
-
mmmm i discover munjoy linux (debian unstable) branch, takes 8 minutes to install 1CD and its very cool smooth with supermount. the only trouble i have is that the nvidia drivers works but not the glx extentions :( but its a great distro everybody shoulld try it :)
-
ok try to delete all configurationas files for ked on your home and try to restart, it must be something like this. or is the permissions to your .kde folder is set to you? i had this trouble before.
-
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.
-
depends on the vaibility of your file, the more blue is your downlaod bar the more amulw will be faster.
-
for your nvidia the trouble is that mandy lost hisprobed drivers try to add the folloing line in your /etc/modprobe.conf file : alias /dev/nvidia* nvidia and reboot of course and it shoud resolve your nvidia trouble. hopes this helps
-
i have resolved the issue by install knopix 3.4 and i works flawlessely
-
anybody?