[opensuse] Fwd: How do I config "startx" to give me a desktop?
What do I need to do to cause startx to give me a lxde session? == details This is a server I recently upgraded 11.3. CLI only historically. I just added the new lxde pattern via yast. (No gnome / kde / etc.) init 5 lets me login with a lxde desktop session, so I appear to have the core software installed and working. But this is a server and I prefer to leave it at init 3 most of the time and run startx if I want a lxde session. Unfortunately, that just gives me a bare bones X screen. ie. Solid color screen which I can left click on and get a basic menu to create a xterm, etc. Thanks Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 17 August 2010, Greg Freemyer wrote:
What do I need to do to cause startx to give me a lxde session?
== details
This is a server I recently upgraded 11.3. CLI only historically. I just added the new lxde pattern via yast. (No gnome / kde / etc.)
init 5 lets me login with a lxde desktop session, so I appear to have the core software installed and working.
But this is a server and I prefer to leave it at init 3 most of the time and run startx if I want a lxde session.
Unfortunately, that just gives me a bare bones X screen.
The last time I started like this, you would do something like startx lxde, or kde, or whatever was installed. Mike -- Powered by SuSE 11.0 Kernel 2.6.25 KDE 3.5 Kmail 1.9 9:29pm up 1 day 1:15, 3 users, load average: 0.17, 0.24, 0.26 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What do I need to do to cause startx to give me a lxde session?
== details
This is a server I recently upgraded 11.3. CLI only historically. I just added the new lxde pattern via yast. (No gnome / kde / etc.)
init 5 lets me login with a lxde desktop session, so I appear to have the core software installed and working.
But this is a server and I prefer to leave it at init 3 most of the time and run startx if I want a lxde session.
Unfortunately, that just gives me a bare bones X screen.
ie. Solid color screen which I can left click on and get a basic menu to create a xterm, etc.
Thanks Greg
There are several config settings which control this process. Check /etc/sysconfig/displaymanager, the value for DISPLAYMANAGER; this is the program which manages the logon and starts the DE. And /etc/sysconfig/windowmanager, value for DEFAULT-WM controls which DE is the default. Try "startlxde" or "xdm" from the CLI. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 17 Aug 2010 16:29:00 -0400, dwgallien <dwgallien@gmail.com> wrote: This only applies if you have a graphical login, which you don't have when using startx.
And /etc/sysconfig/windowmanager, value for DEFAULT-WM controls which DE is the default.
But the thing he really wants is customising ~/.xinitrc. If this isn't present, do cp /etc/skel/.xinitrc.template ~/.xinitrc and edit as you like. BTW, even if you log in via kdm/gdm/xdm, .xinitrc can be useful for starting things like ssh-agent or gpg-agant. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 01:30, Philipp Thomas wrote:
On Tue, 17 Aug 2010 16:29:00 -0400, dwgallien <dwgallien@gmail.com> wrote:
This only applies if you have a graphical login, which you don't have when using startx.
And /etc/sysconfig/windowmanager, value for DEFAULT-WM controls which DE is the default.
I tried first, and I got kde4. Then I edited that file, wrote DEFAULT_WM="gnome" tried again, and again I got kde4.
But the thing he really wants is customising ~/.xinitrc. If this isn't present, do
cp /etc/skel/.xinitrc.template ~/.xinitrc
Ahhh... before I did this, "startx" simply failed. I inspected the file, and I had several times this: +++------------------------- if test -z "$WINDOWMANAGER" ; then if test -x /usr/X11R6/bin/kde ; then WINDOWMANAGER=/usr/X11R6/bin/kde # elif test -x /usr/X11R6/bin/startkde ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/startkde # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # elif test -x /usr/X11R6/bin/fvwm2 ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/fvwm2 # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment elif test -x /usr/X11R6/bin/wmlist ; then for i in `/usr/X11R6/bin/wmlist` ; do WINDOWMANAGER=`type -p $i` test -n "$WINDOWMANAGER" && break done # elif test -x /usr/X11R6/bin/twm ; then # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment # WINDOWMANAGER=/usr/X11R6/bin/twm # Enlightenment inserted Execution string here exec /usr/X11R6/bin/enlightenment fi fi -------------------------++- You can see how "Enlightenment" repeatedly broke the file. Now I know why startx did not work. Ok, so I replaced the file with the skeleton one, but...
and edit as you like. BTW, even if you log in via kdm/gdm/xdm, .xinitrc can be useful for starting things like ssh-agent or gpg-agant.
What should I write to get, say, gnome? I have tried "startx gnome" and I got kde4, again. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
What should I write to get, say, gnome?
I have tried "startx gnome" and I got kde4, again.
I'm far from a gnome/general window manager/X expert, I can normally hammer whatever I have into something that I can work with/on. I don't really know what you mean by wanting 'gnome' it seems like there's much more to it than just the window manager. googling 'gnome window manager' gives a reasonable overview page at http://en.wikipedia.org/wiki/Metacity I think your simplest course of action might be to change your default runlevel to 5 (can't think of the tools that would do that right now, I'd edit /etc/inittab and change the line like id:3:initdefault: to id:5:initdefault: ) then make sure kdm is set to off (chkconfig kdm off) and turn on gdm (chkconfig gdm on) and see if that gets you closer to what you're looking for and the normal caveat that you should back up any files before you make changes and write down what you do in case it doesn't come out so pretty and want breadcrumbs to get back. -- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 15:35, zGreenfelder wrote:
What should I write to get, say, gnome?
I have tried "startx gnome" and I got kde4, again.
...
I think your simplest course of action might be to change your default runlevel to 5 (can't think of the tools that would do that right now, I'd edit /etc/inittab and change the line like id:3:initdefault: to id:5:initdefault: )
No, that is not my question. I know how to get gnome (or any other) in runlevel 5, have done so for ages. I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
then start googling or use rl5 and make a process list to get all the window manager things and support stuff to make it work from .xinitrc. you're asking a general OS list how to do specific Desktop Environment things. that doesn't seem like a reasonable request. On Thu, Aug 19, 2010 at 9:57 AM, Carlos E. R. <robin.listas@gmail.com> wrote:
On 2010-08-19 15:35, zGreenfelder wrote:
What should I write to get, say, gnome?
I have tried "startx gnome" and I got kde4, again.
...
I think your simplest course of action might be to change your default runlevel to 5 (can't think of the tools that would do that right now, I'd edit /etc/inittab and change the line like id:3:initdefault: to id:5:initdefault: )
No, that is not my question. I know how to get gnome (or any other) in runlevel 5, have done so for ages.
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
-- Cheers / Saludos,
Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
-- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-19 15:59, zGreenfelder wrote:
then start googling or use rl5 and make a process list to get all the window manager things and support stuff to make it work from .xinitrc. you're asking a general OS list how to do specific Desktop Environment things. that doesn't seem like a reasonable request.
It is not a question about a specific desktop, it is a general question about how to start one of the many available desktops in our distro, in a specific and traditional way, also supported. You got it wrong. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxtVJcACgkQU92UU+smfQVy4ACff7KYuXQ0lp3EiBrWJfOd9xye hPwAmwa/kz6HZivLL8EQBYR1i5MI9Xzm =pw9L -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 19 August 2010 15:57:13 Carlos E. R. wrote:
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
WINDOWMANAGER=/usr/bin/gnome startx It's a fair question for opensuse@ IMO :). Will -- Will Stephenson, KDE Developer, openSUSE Boosters Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 16:07, Will Stephenson wrote:
On Thursday 19 August 2010 15:57:13 Carlos E. R. wrote:
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
WINDOWMANAGER=/usr/bin/gnome startx
Yes, that works. Or the shorter form: startx /usr/bin/gnome
It's a fair question for opensuse@ IMO :).
I know, thanks :-) -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On 2010-08-19 15:35, zGreenfelder wrote:
What should I write to get, say, gnome?
I have tried "startx gnome" and I got kde4, again.
...
I think your simplest course of action might be to change your default runlevel to 5 (can't think of the tools that would do that right now, I'd edit /etc/inittab and change the line like id:3:initdefault: to id:5:initdefault: )
No, that is not my question. I know how to get gnome (or any other) in runlevel 5, have done so for ages.
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
The script starts the server and then tries to call a window manager. It will execute .xinitrc if that is found, in that file there would be included a statement like "exec twm" (this is the example in the man page). However, install this is not set up on a vanilla install. So when not using xinitrc, the script uses a env variable, $WINDOWMANAGER, which is set at logon, it is taken from /etc/sysconfig/windowmanager DEFAULT-WM. The value is the name of the program which actually starts up the DE or WM, so e.g., for KDE it is the literal "startkde". But note that what is passed to startx is the fully qualified file name, i.e., /usr/bin/startkde. If there is not a valid variable, startx will also look in /usr/X11R6/bin to find the startup program there. Try this . . . boot into runlevel 3 and logon. Immediately do echo $WINDOWMANAGER. When you do startx, that is what is being executed. The variable can overriden, too. I found that "startx startkde" failed while "startx /usr/bin/startkde" worked; "startx twm" failed but "startx /usr/bin/twm" worked, etc. If changing the literal in sysconfig doesn't translate into a windowmanager variable which works, try "startx <fully qualified name>". Unfortunately since I don't have gnome, I can't provide it's startup program name. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 17:20, dwgallien wrote: ...
I'm asking about how to start gnome directly and by default from runlevel 3 by using the "startx" command.
The script starts the server and then tries to call a window manager. It will execute .xinitrc if that is found, in that file there would be included a statement like "exec twm" (this is the example in the man page). However, install this is not set up on a vanilla install. So when not using xinitrc, the script uses a env variable, $WINDOWMANAGER, which is set at logon, it is taken from /etc/sysconfig/windowmanager DEFAULT-WM. The value is the name of the program which actually starts up the DE or WM, so e.g., for KDE it is the literal "startkde". But note that what is passed to startx is the fully qualified file name, i.e., /usr/bin/startkde. If there is not a valid variable, startx will also look in /usr/X11R6/bin to find the startup program there.
Ah, at logon. However, it is ignored, even after running SuSEconfig and relogin: ## Path: Desktop/Window manager ## Description: ## Type: string(gnome,startkde,startkde3,startxfce4,twm) ## Default: kde ## Config: profiles,kde,susewm # # Here you can set the default window manager (kde, fvwm, ...) # DEFAULT_WM="gnome" According to the comments, the correct string is "gnome", but it doesn't work: cer@nimrodel:~> echo $WINDOWMANAGER /usr/X11R6/bin/kde
Try this . . . boot into runlevel 3 and logon. Immediately do echo $WINDOWMANAGER. When you do startx, that is what is being executed.
which it is kde, regardless of the default global setting. I have the feeling that it is only used as the initial settings for new users in the runlevel 5 login manager (gdm, kdm, xdm...). Might be a bug :-? I have to try on another computer to verify.
The variable can overriden, too. I found that "startx startkde" failed while "startx /usr/bin/startkde" worked; "startx twm" failed but "startx /usr/bin/twm" worked, etc. If changing the literal in sysconfig doesn't translate into a windowmanager variable which works, try "startx <fully qualified name>". Unfortunately since I don't have gnome, I can't provide it's startup program name.
Nice hint, thanks. Yes, I always forget that one, because I knew it once and had forgotten it. Yes, "startx /usr/bin/gnome" works. I was looking for a "startgnome" script, but it does not exist. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
# DEFAULT_WM="gnome"
According to the comments, the correct string is "gnome", but it doesn't work:
cer@nimrodel:~> echo $WINDOWMANAGER /usr/X11R6/bin/kde
Try this . . . boot into runlevel 3 and logon. Immediately do echo $WINDOWMANAGER. When you do startx, that is what is being executed.
which it is kde, regardless of the default global setting. I have the feeling that it is only used as the initial settings for new users in the runlevel 5 login manager (gdm, kdm, xdm...).
No, it works in runlevel 3 as well (I tested it). Take a look at $HOME/.xinitrc (if you have one) and /etc/X11/xinit/xinitrc, then at /etc/X11/xinit/xinitrc.common which is called by the parent scripts above. This script tests for a value being set for $WINDOWMANAGER and failing that, looks for a startup program in /usr/X11R6/bin. This may be a holdover from the past. In any case, on your system it appears that the variable is not being properly set and/or something is being found in /usr/X11R6/bin?
Might be a bug :-? I have to try on another computer to verify.
The variable can overriden, too. I found that "startx startkde" failed while "startx /usr/bin/startkde" worked; "startx twm" failed but "startx /usr/bin/twm" worked, etc. If changing the literal in sysconfig doesn't translate into a windowmanager variable which works, try "startx <fully qualified name>". Unfortunately since I don't have gnome, I can't provide it's startup program name.
Nice hint, thanks. Yes, I always forget that one, because I knew it once and had forgotten it. Yes, "startx /usr/bin/gnome" works. I was looking for a "startgnome" script, but it does not exist.
So do you now have a working solution? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 15:43, Peter Van Lone wrote:
On Thu, Aug 19, 2010 at 8:20 AM, Carlos E. R. <> wrote:
What should I write to get, say, gnome?
gdm
You mean write exec gdm to ~/.xinitrc ? It does not work. Please remember that I'm asking what to write in that file so that "startx" starts gnome - your answer is what is written in: /etc/sysconfig/displaymanager:DISPLAYMANAGER="gdm" and is used in runlevel 5 - what is not what we are talking here. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
* Carlos E. R. (robin.listas@gmail.com) [20100819 15:22]:
# WINDOWMANAGER=/usr/X11R6/bin/twm
What should I write to get, say, gnome?
Either add a simple WINDOWMANAGER=gnome at the top of .xinitrc or at the end do 'exec gnome' instead of 'exec $WINDOWMANAGER'. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu 19 Aug 2010 at 11:30:34 (-0300 UTC) Philipp Thomas wrote:
* Carlos E. R. (robin.listas@gmail.com) [20100819 15:22]:
# WINDOWMANAGER=/usr/X11R6/bin/twm
What should I write to get, say, gnome?
Either add a simple WINDOWMANAGER=gnome at the top of .xinitrc or at the end do 'exec gnome' instead of 'exec $WINDOWMANAGER'.
Philipp
Sorry to slipping into this conversation without been invited. I red quickly the comments of people but I have not seen any indications about /etc/sysconfig/windowmanager which, beside the other /etc/sysconfig/displaymanager, is the place where to put the options necessary to start kde, gnome, wdm...or other favourite DM. Cheers, -- Marco Calistri <amdturion> Blessed is he who has reached the point of no return and knows it, for he shall enjoy living. -- W.C. Bennett -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 17:30, Marco Calistri wrote:
On Thu 19 Aug 2010 at 11:30:34 (-0300 UTC) Philipp Thomas wrote:
Sorry to slipping into this conversation without been invited.
Welcome :-)
I red quickly the comments of people but I have not seen any indications about /etc/sysconfig/windowmanager which, beside the other /etc/sysconfig/displaymanager, is the place where to put the options necessary to start kde, gnome, wdm...or other favourite DM.
It is ignored. I'm writing about that on another message. Wait a bit :-) -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
* Marco Calistri (marco.calistri@yahoo.com.br) [20100819 17:33]:
necessary to start kde, gnome, wdm...or other favourite DM.
Yes, but those are system wide settings. If you want to start a wm differing from that you need to explicitely call that or set WINDOWMANAGER differently. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-19 16:30, Philipp Thomas wrote:
* Carlos E. R. (robin.listas@gmail.com) [20100819 15:22]:
# WINDOWMANAGER=/usr/X11R6/bin/twm
What should I write to get, say, gnome?
Either add a simple WINDOWMANAGER=gnome at the top of .xinitrc
It still boots kde4. Perhaps with the path? [...] Nope, insists on kde4.
or at the end do 'exec gnome' instead of 'exec $WINDOWMANAGER'.
This one works :-) -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On 08/17/2010 02:01 PM, Greg Freemyer wrote:
What do I need to do to cause startx to give me a lxde session?
== details
This is a server I recently upgraded 11.3. CLI only historically. I just added the new lxde pattern via yast. (No gnome / kde / etc.)
init 5 lets me login with a lxde desktop session, so I appear to have the core software installed and working.
But this is a server and I prefer to leave it at init 3 most of the time and run startx if I want a lxde session.
Unfortunately, that just gives me a bare bones X screen.
ie. Solid color screen which I can left click on and get a basic menu to create a xterm, etc.
Thanks Greg
Greg cp .xinitrc.template .xinitrc vi .xinitrc (or use the editor of your choice) change: exec $WINDOWMANAGER to exec startlxde :wq ( or quit the editor of your choice) then startx that will start lxde by default simply by issuing the startx command The to preserver this for the future, just cp .xinitrc .xinitrc.lxde just in case you overwrite it etc.. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Greg Freemyer <greg.freemyer@gmail.com> [08-17-10 15:02]:
What do I need to do to cause startx to give me a lxde session?
startx /usr/bin/startlxde -- :[Visual window of your choice, ie :0 ] start /usr/bin/startxlde -- :0 -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 8/18/2010 7:15 PM, Patrick Shanahan wrote:
* Greg Freemyer<greg.freemyer@gmail.com> [08-17-10 15:02]:
What do I need to do to cause startx to give me a lxde session?
startx /usr/bin/startlxde -- :[Visual window of your choice, ie :0 ]
start /usr/bin/startxlde -- :0 ^^^^ Is this right?
--doug -- Blessed are the peacemakers...for they shall be shot at from both sides. --A.M. Greeley -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Doug <dmcgarrett@optonline.net> [08-19-10 14:06]:
On 8/18/2010 7:15 PM, Patrick Shanahan wrote:
* Greg Freemyer<greg.freemyer@gmail.com> [08-17-10 15:02]:
What do I need to do to cause startx to give me a lxde session?
startx /usr/bin/startlxde -- :[Visual window of your choice, ie :0 ]
start /usr/bin/startxlde -- :0 ^^^^ Is this right?
no :^(, it's a typo as is the "start" s/b: startx /usr/bin/startlxde -- :0 -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (14)
-
Carlos E. R.
-
Carlos E. R.
-
David C. Rankin
-
Doug
-
dwgallien
-
Greg Freemyer
-
Marco Calistri
-
Mike
-
Patrick Shanahan
-
Peter Van Lone
-
Philipp Thomas
-
Philipp Thomas
-
Will Stephenson
-
zGreenfelder