Page 1 of 1

Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 9:07 pm
by vtpup

Probably a dumb question:

If I shut down Bionic64 frugal to prompt, and then type "logout" I'm logged out.

When I try to log back in and execute "xwin", X doesn't start up again, it just returns to the prompt after a few advisory messages about how to restart X, none of which work. Am I really logged in again as root?

If you test this please don't do it on a working installation -- use a disposable sandbox install.

thx.


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 9:09 pm
by bigpup

Try login.

If asked for password.
It is woofwoof

You may just have to do a reboot.


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 9:32 pm
by vtpup

Thanks Bigpup. Nope I tried that already and didn't work. Also tried changing the password with "passwd" which was successful, and then logging in. Also reported as successful. But "xwin" does nothing, "xwin -default" does nothing, choosing "xorgwizard" and choosing the default config (choice 4) does nothing. Typing "poweroff" does shut down the computer but rebooting produces the same command line loop just before the desktop would normally come up.

I should add that the reason I logged out in the first place was to test Xrdp, since it won't let a client log in to a remote desktop if the same user is already logged in. My thought was to log out of root before trying to log in through the remmima client from another machine. This was tried, and the remote login wasn't successful. But also I am locked out of X in this loop scenario.


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 9:43 pm
by williwaw

vt

can you obtain a different virtual terminal session with ctrl-alt F3 or similar? It might be easier than logging out of the default terminal.

some pointers here

https://forum.puppylinux.com/viewtopic.php?t=6335


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 10:08 pm
by bigpup

Try xwin jwm

Do not use poweroff
Use wmpoweroff


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 10:09 pm
by mikewalsh

@vtpup :-

Tried "xwin jwm"? That's what I do, and it's never failed to work for me. Mind you, I've never actually 'logged out', either - at least, not manually - so this is kind of unfamiliar territory for me..!

Just a thought.

Mike. ;)


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 10:37 pm
by vtpup

Guys I'll try all of your solutions shortly, but just wanted to report back first that this DOES seem tied to the failed attempt to login under Xrdp. To check that, I did a clean install of Bionic64, created a savefile (with no Xrdp) and did the same logout procedure I had before. xwin instantly restored the desktop from prompt, even after logout.

So it seems that Xrdp failing to transmit a working desktop after an attempted client login, is nevertheless somehow blocking the normal puppy desktop -- at least for root.

Okay....back to your suggestions.....


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sat Aug 27, 2022 11:51 pm
by vtpup

Well guys, none of the above worked. (I'd already tried "xwin jwm" and "xwin -default jwm")

Looks to be well and truly locked out. I'm definitely root, but no way to start a desktop session using the standard methods.

This isn't a big problem since it was a testing installation of BP64 anyway. But well it does show up why Xrdp will likely be unsuitable for Puppy. Xrdp as we have it from the Ubuntu binary repos absolutely needs another user besides root, even for testing. With only one user, root, Puppy would have to be in a command line state with root not logged in. But even when root logs out, it really isn't.

Now whether Xrdp compiled for Puppy would show the same behavior, I don't know. As I understand it, a compiled version with the proper choices can fork multiple desktops, and also can have more than one user/desktop. Sound also can be compiled in. The basic problem for Puppy is that the Ubuntu binary is unsuitable.


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sun Aug 28, 2022 12:36 am
by bigpup

Maybe you need to use this:
https://github.com/neutrinolabs/xorgxrdp


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sun Aug 28, 2022 2:22 am
by vtpup

Yup saw that yesterday, BP.


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sun Aug 28, 2022 3:10 am
by wizard

@vtpup

What about creating another user and using that for your xrdp login?

wizard


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sun Aug 28, 2022 3:48 am
by williwaw
vtpup wrote: Sat Aug 27, 2022 11:51 pm

With only one user, root, Puppy would have to be in a command line state with root not logged in. But even when root logs out, it really isn't.

what happened when you logged out of your second virtual terminal and tried to log back in?

I was able to run apps as no user at all, ie without logging back in. of course there are no user specific configs, and just the default configs will prevail. (not all that useful for some apps)

re: multiple users
one user can be logged on in a virtual terminal, while another user can logged on in a different virtual terminal. one can switch back and forth without logging out of either (one being the desktop, for instance)


Re: Bionic64: How do you restore X if you log out from prompt

Posted: Sun Aug 28, 2022 11:49 am
by vtpup

Thanks Wizard, Williwaw.

Williwaw, I tried your initial suggestion yesterday -- it didn't change the locked out of creating a desktop loop. I didn't try multiple users.

Guys, Sorry to say I've got to pay attention to other things at this point than xrdp on puppy. Kitchen ceiling to be painted, wood to be split for winter, etc. My family misses any form of conversation out of me for a week, and the dog no longer recognizes me as a member of the household.

I would like to see xrdp running on puppy if someone else wants to carry the torch further. Right now xrdp on ubuntu works in combo with remmina on puppy, with sound. Anydesk runs on puppy without sound. Any advances on solving the Xrdp on puppy, or Anydesk with sound on Puppy would be of interest to the community, I'm sure, I just can't pursue those further for the present.