Re: Konsole ls colors when root




iforone wrote:
Bit Twister wrote:
On 19 Jul 2006 14:01:24 -0700, heavytull wrote:


root@xxxx:~# /opt/kde/bin/konqueror

-rwxr-xr-x 1 root root 2,900 Jun 14 17:49 /usr/bin/konqueror

Running kde 3.4.2
$ uname -a
Linux wb.home.invalid 2.6.12-24mdk #1 Mon Jul 17 15:00:15 MDT 2006
i686 Celeron (Coppermine) unknown GNU/Linux

$ cat /etc/release
Mandriva Linux release 2006.0 (Official) for i586


konqueror: cannot connect to X server

Hmmm, running as bittwister and su - root

[root@wb ~]# type konqueror
konqueror is hashed (/usr/bin/konqueror)
# konqueror

kbuildsycoca running...

Usuall kinds of errors when I su and run kde apps an xterm follow:

QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)

at this point koqueror pops up.
# whoami
root

Using my junk account from bittwister

$ su - junk
Password:
[junk@wb ~]$ konqueror
kbuildsycoca running...
QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim

konqueror pops up

$ echo $DISPLAY
:0.0
[junk@wb ~]$

Logged out of bittwiser, logged in as root, startx

[root@wb ~]# su - junk
[junk@wb ~]$ konqueror
Link points to "/home/junk/tmp/kde-junk"
QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim
QMultiInputContext::changeInputMethod(): index=0, slave=xim
Link points to "/home/junk/tmp/ksocket-junk"
[junk@wb ~]$ echo $DISPLAY
:0.0
exit

Hi;
Firstly, I wouldn't recommend anyone run X apps as root (not as bad as
what follows though), ...let alone a Web Browser Monster like Konqueror
(which is a huge all-in-one type explorer). But if you really need to
fire up KDE as root (only the Lord knows why)...I think there's
actually a way (perhaps look at the "Run" box output)...or 'KDE su'

If I enter K Control Center and try to enter System Admin "Login
Manager" area, one needs root (admin) privs to change those settings,
so clicking on "Admin Mode" throws up a dialog box that says in part;

------------------
The action you requested needs root privileges. Please enter root's
password below...blah, blah, yada, yada...

Command : "kcmshell kdm --embed SomeRandomNumberXXxx --lang en_US"
-----------------

So one can see the actual commandline invoked -- so I'm sure the
correct one is "somewhere" and may include 'kdeinit' or even maybe a
'sudo /usr/bin/startkde' (as seen in output of 'ps aux', though most of
those seem tied to my userid#) These OTOH;
/usr/bin/kdm
/usr/bin/X -br :0 vt7 -auth /var/run/xauth/ xxSomeRandomNumberXx

are tied to root.

quite tricky

If none of my solutions(?) provide any help, I may eventually look into
playing with; Ending the session(s), and trying to start KDE from a VT
as root user - but AFAIK, that shouldn't be necessary.
yes i'm agree;
but my ntfs partition is not accessible as read for users;
i have changed the mount options in fstab but that is just ineffective


Regards

.



Relevant Pages

  • Re: Konsole ls colors when root
    ... running as bittwister and su - root ... konqueror is hashed ... Usuall kinds of errors when I su and run kde apps an xterm follow: ... kio: ERROR: Header has invalid size ...
    (alt.os.linux)
  • Re: Konsole ls colors when root
    ... running as bittwister and su - root ... konqueror is hashed ... Usuall kinds of errors when I su and run kde apps an xterm follow: ... kio: ERROR: Header has invalid size ...
    (alt.os.linux)
  • Re: Stupid Noob Question: Surfing the Testing edge
    ... Andrei Popescu wrote: ... However, if I run konqueror as root, then I get the single click ... I don't know much about kde, but you could search the respective option ... I seldom use Konqueror in root mode because I can just click ...
    (Debian-User)
  • Re: Stupid Noob Question: Surfing the Testing edge
    ... However, if I run konqueror as root, then I get the single click ... I don't know much about kde, but you could search the respective option ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Greetings / Newbie questions
    ... I am having a bit of trouble deciding which to use: Gnome or KDE. ... - Running Totem as Root (I've found that lots of things need to be done ... I have Installed Unreal Tournament 2004 for Linux. ... these current versions to be excellent in terms of ease of installation and ...
    (alt.os.linux.redhat)