Re: [gentoo-user] XSESSION=Xsession doesn't work!
Thanks very much indeed for your help, James. On 19 Jul 2007, at 00:47, James Ausmus wrote: snip If anyone has time to change XSESSION=Xsession and log on to their machine as a new user I would be grateful to hear what results they get. I can't help wondering if this is a little-tested option and can't help hoping it's broken globally. Did so - changed DISPLAYMANAGER=xdm and XSESSION=Xsession, and I get the same login scenario that you described - ugly (yup, that's xdm all right), proceeds to a Session Menu dialog with Load Session, Delete Session, and Default/Fail Safe as options. I select Default/Fail Safe, and I then have to place the xsm window and then an xterm window, and everything seems as I would expect from twm. A few questions: 1. Once you are logged in, if you left or right-click on the gray background, do any options come up? Nope, none at all. Nothing happens. I have no way at all of knowing the mouse buttons are working - except, of course, that they work when I click on the window with the Default/Fail Safe options. 2. What is the output of emerge -pv twm xsm xterm $ emerge -pv twm xsm xterm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-wm/twm-1.0.3 USE=-debug 0 kB [ebuild R ] x11-apps/xsm-1.0.1 USE=-debug -xprint 115 kB [ebuild R ] x11-terms/xterm-225 USE=truetype unicode -Xaw3d - paste64 -toolbar 803 kB Total: 3 packages (3 reinstalls), Size of downloads: 917 kB $ I think I remerged twm around the time I originally posted, but will have another go at recompiling all of these now. 3. Any output from revdep-rebuild -p -v? $ revdep-rebuild -p -v Configuring search environment for revdep-rebuild Checking reverse dependencies... Packages containing binaries and libraries broken by a package update will be emerged. Collecting system binaries and libraries... done. (/home/stroller/.revdep-rebuild.1_files) Collecting complete LD_LIBRARY_PATH... done. (/home/stroller/.revdep-rebuild.2_ldpath) Checking dynamic linking consistency... done. (/home/stroller/.revdep-rebuild.3_rebuild) Assigning files to ebuilds... Nothing to rebuild Evaluating package order... done. (/home/stroller/.revdep-rebuild.5_order) Dynamic linking on your system is consistent... All done. $ :( Stroller. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] XSESSION=Xsession doesn't work!
On Wednesday 18 July 2007 07:16, Dale wrote: Elias Probst wrote: Am Dienstag, 17. Juli 2007 23:01:12 schrieb Stroller: Hi there, I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) Regards, Elias P. Well, I don't know about yours but mine says they were all sent at the same exact time. So why are they arriving at different times? Are we sure this is him and not something else? It is weird though. Something fishy somewhere. For what it's worth I only got the one. If everyone else got multiple messages then perhaps gmail is filtering them. With regards to the OP getting twm running, that should be the default WM if Xsession is used. Does your /etc/X11/xinit/xinitrc contain something like this at the bottom? # start some nice programs twm xclock -geometry 50x50-1+1 xterm -geometry 80x50+494+51 xterm -geometry 80x20+494-0 exec xterm -geometry 80x66+0+0 -name login What is the default shell that the user has in this OS image? That may affect how xinit is run and what it can do thereafter. Also, if you hosed you .bashrc and a shell was defined in there, then that might explain why you could see xterms launching before, but not any more. Anyway, just some loose thoughts. Perhaps you can reload the image afresh and see what happens then. HTH. -- Regards, Mick pgpK87HILkp39.pgp Description: PGP signature
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Hi Mick, Thank you for bringing this thread back in a direction which might help me. :D On 18 Jul 2007, at 19:26, Mick wrote: ... With regards to the OP getting twm running, that should be the default WM if Xsession is used. Does your /etc/X11/xinit/xinitrc contain something like this at the bottom? # start some nice programs twm xclock -geometry 50x50-1+1 xterm -geometry 80x50+494+51 xterm -geometry 80x20+494-0 exec xterm -geometry 80x66+0+0 -name login Yes, exactly so. I've just checked that is so and, anyway, I'm sure that file is exactly as shipped - I don't think I've changed the Xorg configuration at all since I installed Gentoo earlier this week. Since the stage is intended for use on a PS3 nothing should need doing to that or xorg.conf. :D I believe that the only changes I've made are these: $ grep ^X /etc/rc.conf XSESSION=Xsession $ grep DISPLAYMANAGER /etc/conf.d/xdm DISPLAYMANAGER=xdm What is the default shell that the user has in this OS image? Um, Bash. I can't help thinking you mean that differently, but I'm confusled how. I think the default XSESSION value in /etc/rc.conf is fluxbox. ... Also, if you hosed you .bashrc and a shell was defined in there, then that might explain why you could see xterms launching before, but not any more. Nope. The .bashrc is my standard one which is based on Gentoo's default .bashrc from c 4 years ago with $PS1 prompt colours changed, history size set to 900 commands and a few aliases added. This same .bashrc is in use on more than one headless server and I've had no cause in the past to change it to accommodate X11. I only wiped the ~/.* files _after_ the xterms stopped loading completely. I get the same behaviour copying the very same .bashrc .bash_profile back again. I'm pretty sure that I was originally getting the misbehaviour when xdm was started by init.d but getting the xterms when I logged in as myself at the framebuffer login ran `startx`; as I say, I can't reproduce this, or explain why it's no longer working. If anyone has time to change XSESSION=Xsession and log on to their machine as a new user I would be grateful to hear what results they get. I can't help wondering if this is a little-tested option and can't help hoping it's broken globally. Anyway, just some loose thoughts. Perhaps you can reload the image afresh and see what happens then. I'm tempted to do that, however I have about a dozen hours compilation on this machine - adding links, elinks, samba other essential utilities and upgrading portage. Fiddling around with make.conf /etc/portage/* and so on is more time consuming than one imagines and really I'd like to know _why_ this installation isn't working. Hosing it away is kinda cheating. Stroller. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] XSESSION=Xsession doesn't work!
snip If anyone has time to change XSESSION=Xsession and log on to their machine as a new user I would be grateful to hear what results they get. I can't help wondering if this is a little-tested option and can't help hoping it's broken globally. Did so - changed DISPLAYMANAGER=xdm and XSESSION=Xsession, and I get the same login scenario that you described - ugly (yup, that's xdm all right), proceeds to a Session Menu dialog with Load Session, Delete Session, and Default/Fail Safe as options. I select Default/Fail Safe, and I then have to place the xsm window and then an xterm window, and everything seems as I would expect from twm. A few questions: 1. Once you are logged in, if you left or right-click on the gray background, do any options come up? 2. What is the output of emerge -pv twm xsm xterm 3. Any output from revdep-rebuild -p -v? -James -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Have you used ~/.xsession ? That's what I do for a 'custom' session. Search for xsession in the X manpage for more information on this. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Am Dienstag, 17. Juli 2007 23:01:12 schrieb Stroller: Hi there, I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) Regards, Elias P. -- A really nice number: 09:F9:11:02:9D:74:E3:5B:D8:41:56:C5:63:56:88:C0 signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Elias Probst wrote: Am Dienstag, 17. Juli 2007 23:01:12 schrieb Stroller: Hi there, I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) Regards, Elias P. Well, I don't know about yours but mine says they were all sent at the same exact time. So why are they arriving at different times? Are we sure this is him and not something else? It is weird though. Something fishy somewhere. Dale :-) :-)
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Hi! I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) Regards, Elias P. Well, I don't know about yours but mine says they were all sent at the same exact time. So why are they arriving at different times? Are we sure this is him and not something else? It is weird though. Something fishy somewhere. His mail arrived exactly once here. Patrick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] XSESSION=Xsession doesn't work!
Patrick Holthaus wrote: Hi! I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) Regards, Elias P. Well, I don't know about yours but mine says they were all sent at the same exact time. So why are they arriving at different times? Are we sure this is him and not something else? It is weird though. Something fishy somewhere. His mail arrived exactly once here. Patrick Well, has anybody else had emails from the list that the messages are being bounced? I have had that twice today. Could that have anything to do with this, even though some others have got several copies of the email too. Oh, the ones from -dev was the ones being bounced not this list. This list has been doing fine, as have the rest of my email. Confused. Dale :-) :-)
Re: [gentoo-user] XSESSION=Xsession doesn't work!
On Wed, 18 Jul 2007 01:16:06 -0500, Dale wrote: Well, I don't know about yours but mine says they were all sent at the same exact time. So why are they arriving at different times? Are we sure this is him and not something else? More importantly, they all have the same Message-ID. However, the received headers shown that the Gentoo server received each copy from a different source. Something along the line was sending multiple copies via different routes. -- Neil Bothwick Actually, Microsoft is sort of a mixture between the Borg and the Ferengi. signature.asc Description: PGP signature
Re: [gentoo-user] XSESSION=Xsession doesn't work!
On 18 Jul 2007, at 07:03, Elias Probst wrote: Am Dienstag, 17. Juli 2007 23:01:12 schrieb Stroller: I'm fairly experienced with Linux and have been using Gentoo for over 3 years, ... Probably, you're not that fairly experienced regarding the usage of your mail client. ;-) With the use of Postfix. My profusest apologies. I've added lists.gentoo.org to the section of /etc/transports commented times out for no apparent reason while sending end of data. Future posts will be relayed via my ISP, whose mailservers always accept messages from me first time. Stroller. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] XSESSION=Xsession doesn't work!
On Dienstag, 17. Juli 2007, Stroller wrote: Hi there, I'm fairly experienced with Linux and have been using Gentoo for over 3 years, but mostly I only use it on headless servers, so I'm afraid I don't know much about GUI stuff. I've just installed Gentoo on my PS3, which I want to use mostly for playing DVDs at the moment (and as a MythTV frontend eventually). My expectations when running X (let's say adding /etc/init.d/xdm to the default runlevel) are that I'm presented with a login prompt, there should be a mouse cursor stuff and when I log in I should be presented with a terminal window in which I can type my command to run `mplayer` or whatever. I'd expect shortly to get mplayer or vlc or something running automatically when the system completes booting-up - this is what MythTV users typically do so that their system behaves more like a TV- appliance than a Linux machine - but I'd like to skip that for the moment whilst I log in as my own user, play with different media players work out which one suits me best. Gentoo for the PS3 is supplied as a LiveCD for chrooting and a stage4 tarball - I've only ever used stage1 (3 or more years ago) and stage3 (more recently) tarballs in the past. This stage4 is quick to set up and the basics seem to work very well - I can log in at the framebuffer surf the internet using elinks :D. This stag4 also includes fluxbox, which I haven't used before am not really interested in but which I haven't uninstalled yet. The Gentoo X Server Configuration HOWTO http://www.gentoo.org/doc/en/ xorg-config.xml has much that doesn't seem relevant to me right now, seeing as the stage comes with both Xorg itself and a suitable xorg.conf for the PS3 preinstalled, but if I skip to just after code listing 3.6 it tells me how the value of XSESSION is read from /etc/ rc.conf Reading /etc/rc.conf I find: # Xsession - will start a terminal and a few other nice apps This seem perfect for me. I don't care that it's described elsewhere as ugly - I think this is twm, Xorg's own default window-manager? - but if it pops open a terminal window when I log in, and maybe xclock then I'm good to go. What confuses me is that this doesn't work. It works perfectly if I set: XSESSION=fluxbox - I get the fluxbox menubar at the bottom of the screen and I can open terminal windows stuff but not when I set XSESSION=Xsession Diagnostics I can think of: $ grep ^X /etc/rc.conf XSESSION=Xsession $ ls -l /etc/X11/Sessions/ total 8 -rwxr-xr-x 1 root root 2187 Jun 10 19:31 Xsession -rwxr-xr-x 1 root root 22 Jun 10 19:50 fluxbox $ grep DISPLAYMANAGER /etc/conf.d/xdm DISPLAYMANAGER=xdm When I log in remotely run `sudo /etc/init.d/xdm start` I get a simple login window with an X11-type logo on the right-hand side. Once I use the connected keyboard mouse - which work perfectly - to enter my user password I see a window titled Session Menu; it appears to have a kind of text box in which is displayed chooseSessionListWidget - all I can choose is the Failsafe / Default which gives me a grey X11 background with the (correct) chunky black X cursor. No terminals or other windows open and I'm unable to work out how the heck to start an app. When I `sudo /etc/ init.d/xdm restart` via SSH I again get the login window and this time the Session Menu says fail safe in the text box - I now have extra load session delete session buttons but they don't do anything useful. I have followed the pointers in the startx no longer gives gnome thread http://thread.gmane.org/gmane.linux.gentoo.user/185659 but no joy. If, instead of starting `/etc/init.d/xdm`, I log in at the framebuffer prompt and type ` XSESSION=Xsession startx` I again get the Session Menu window and the X cursor, but this time a black background behind that widow and a _black_ screen when I log in. There's no .xsession stuff in my home directory - I even deleted ~/.*to be paranoid-sure of this. Whups, there goes my bash history!! None of the log files show anything useful or relevant - I've even run `watch -n 0.3 ls -lt /var/log/` and the only ones that change are xdm.log, Xorg.0.log and the weird binary file wtmp. They all show X starting swimingly but not the sesssion stuff. I don't know what else to say. What's weird is that I _did_ see the expected terminal windows opening yesterday, but I can't reproduce them now. The behaviour seemed to be correct when I ran `startx` but not when I added xdm to the default runlevel started it that way. But now it doesn't work at all. I've attached the actual /etc/X11/Sessions/Xsession file, but I'm sure this is unchanged - I'm sure it's exactly as shipped by Gentoo by default. I've thought about replacing that with a simple `echo hello world`, but I'm not sure how to do that within the X11 environment. Many thanks indeed for the time you've taken reading this, and for your