How to run KDE application uder the root?

Good day.
I am new to OpenSUSE and Linux.
I whant to run KDE application (KWrite) uder the root while working under usuall user.
While I was in bash I had this:

proger@linux-9zll:~> sudo bash
root's password:
linux-9zll:/home/proger # kwrite
kwrite: cannot connect to X server

I there any way to run GUI application under root?
Is it possible to run it without using bash or other shell?

Instead, as a regular user, type: kdesu kwrite

Enter root password when prompted for a password.

It works!!
Thank you a lot!!

Great! Welcome to openSUSE forums.

In case it might help, here is a link to some openSUSE concepts: Concepts - openSUSE

Here is a link to our new users stickie … there may be some links there of help to you: NEW Users - Suse-11.1 Pre-installation – PLEASE READ - openSUSE Forums

And as an extra link for your case: SDB:Login as root - openSUSE

Welcome to the forum.

hcvv, … I’m thinking that might be a good URL to add to our new users stickie? … what do you think ? Too advanced to include there, or a good place to add the link?

I personaly would support this. The only con would be that we must not drown the new user in to much to read because he then may quit reading anything ;).

Reading throught the forums this SDB belongs to basic knowledge for any Linux administrator and as we know most new Linux users are their own, just starting on the job, administrators.

I also would like to make a plea for SDB:Basics of partitions, filesystems, mount points - openSUSE.
When reading through the threads it may even contain more asked for knowledge then the “login as root” one. Both were origanaly written by me with the newbie in mind (see the “Basics” in the title) and subsequent improvers (it is a Wiki) have stick to that.

But again, how much can we increase the information braught to a new user without shying him away.

When we do add these, maybe a bundling of some sort in one link might be of use. Also for the one that provides the links(s) in a post (we are lazy aren’t we?).

Of course, our stickie is not the “official” installation guide for openSUSE. Instead it is just a moderately organized set of tidbits that our forum has put together to help new users, and to help address many of the common mistakes (hopefully before they happen) and provide information on many aspects where there are always questions by new users.

I’m considering the idea of adding the links here with the ones that are already in place:
NEW Users - Suse-11.1 Pre-installation – PLEASE READ - openSUSE Forums

Possibly add these two links as the last two links in a revised version of that post:

Your point about making it so big that no one reads it is very valid. But then again, its not intended to be the primary installation guide, as that installation guide is not a forum responsibility. This is only something we offer our forum members and offer anyone else who may stop by to visit and read the stickie.

I’ve already started (almost finished) creating a version of the stickie for 11.2. I’ve now divided that stickie into two, where part-a never changes with a new release, and part-b is openSUSE version specific. Its currently on my PC hard drive (in a series of text files with proper formatting embedded characters) and all I need to do is copy and paste to the forum.

We have also created a New User section (read only) with the stickies, and we will soon reference this section as an initial screen when new users first log on (until they achieve something like 10 posts or until they dismiss it) and we also plan to reference our forum from the main openSUSE download wiki.

I also (just now) added a link to that wiki you wrote into the openSUSE concepts wiki: Concepts - openSUSE - hard drives: terminology and partition table

> Possibly add these two links as the last two links in a revised version
> of that post:
> - Administrator (root) essentials: ‘SDB:Login as root - openSUSE’
> (

yes, include it…but, i’d expand it just a little to something like:

  • It is not required to log into KDE/Gnome/etc as the Administrator
    (root) to do administrator tasks, instead see: 'SDB <snip>


@oldcpu. Sounds good and itseems that most of the hrd work is allready done by you. Adding that link is also a good idea.

The only thing is that:
“Linux partitioning (theory to help in your hard drive setup before install)”
can be a usefull source before you install but to many it is after install. It was started by me because I saw in may threads of people, already having installed and often using openSUSE for a considerable amount of time, that they did not understand what they were talking about (to put it blunt). These threads were/are often about ading new disks (in- or outside “the box”, IDE or USB, CD, DVD or sticky) and mix up all sort of terms. This is of course often done by people having been spoiled by earlier usage of a windows OSS :wink: . Well the title of the SDB is rather well chosen I think.

And you know how obstinate I am, you will not be surprised that I would never us the wors “hard drive” because from the end of the 1960’s I have only seen hard disks, except from a few years of usage of “floppies”. Also the whole story about partitioning, mounting, etc is as valid for floppy disks as it is for hard disks (only the floppies area bit small). BUT using “hard drive” may attract people that do think they kow what means is to the link which will learn them the proper terms. So leaving it as it is, may have its pros.

I like palladium’s suggestion because it may reach one or two people who want to login in the GUI as root in time.

Thanks again for being alert at the improvement of the guidence for new users.