ubports / unity8-desktop-install-tools

65 stars 21 forks source link

Installed but doesn't work #22

Open kogaba opened 6 years ago

kogaba commented 6 years ago

fresh install on virtualbox ubuntu-18.04-desktop-amd64.iso installed with this: bash <(wget -qO- https://raw.githubusercontent.com/ubports/unity8-desktop-install-tools/master/install.sh) can't login. drops back to loginscreen

pixelr0 commented 6 years ago

same here

journalctl --user-unit unity8.service 

mai 06 07:59:03 pixel-desktop systemd[1959]: Starting Unity Shell v8...
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06:07:59:03.950] qtmir.screens: ScreensModel::ScreensModel
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06:07:59:03.950] QSocketNotifier: Can only be used with threads started with QThread
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.953619] mirserver: Starting
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.953684] mircommon: Loading modules from: /usr/lib/x86_64-linux-gnu/mir/server-platform
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.953708] mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/server-mesa-x11.so.13
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.953722] mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-mesa-kms.so.13
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.953731] mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.7
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.954479] mirplatform: Found graphics driver: mir:mesa-x11 (version 0.31.2)
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.955473] mirplatform: Found graphics driver: mir:mesa-kms (version 0.31.2)
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06 07:59:03.955579] mirserver: Selected driver: mir:mesa-kms (version 0.31.2)
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [2018-05-06:07:59:03.955] Exception while creating graphics platform
mai 06 07:59:03 pixel-desktop unity8-session[2944]: ERROR: /build/mir-X3f82O/mir-0.31.2/src/platforms/mesa/server/kms/linux_virtual_terminal.cpp(273): Throw in function int mir::graphics::mesa::LinuxVirtualTerm
mai 06 07:59:03 pixel-desktop unity8-session[2944]: Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
mai 06 07:59:03 pixel-desktop unity8-session[2944]: std::exception::what: Failed to open current VT
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [boost::errinfo_errno_*] = 13, "Permission denied"
mai 06 07:59:03 pixel-desktop unity8-session[2944]: [boost::errinfo_file_name_*] = /dev/tty8
mai 06 07:59:04 pixel-desktop unity8-session[2944]: /usr/bin/unity8-session: line 75: [: !=: unary operator expected
mai 06 07:59:04 pixel-desktop unity8-session[2944]: /usr/bin/unity8-session: line 79: kill: (3022) - No such process
pixelr0 commented 6 years ago
cat -n /usr/bin/unity8-session | grep -e 75 -e 79
    75  while [ $(ps --no-headers -o state $child) != "T" ]; do
    79  kill -CONT $child
mariogrip commented 6 years ago

This is due to logind not implemented in mir yet. but a workaround for this is to give permission to your user. This is just a workaround, and you are modifying the permission. this workaround does not persist if you reboot and may even reset if you login to another desktop environment.

  1. When you're at lightdm, go to a tty (ctrl+alt+f2)
  2. login
  3. then change the owner of /dev/input/ and /dev/tty (number can be different from dm's, lightdm i think is tty8 (for the wayland session), but if you use it will chown all of them)
    sudo chown -R $USER /dev/input
    sudo chown $USER /dev/tty*
  4. go back to lightdm (ctrl+alt+f7 or ctrl+f7)
  5. login to unity8
pixelr0 commented 6 years ago

nope, still the same error

the only way i managed to start unity8

sudo chown -R $USER /dev/input
$ QML_BAD_GUI_RENDER_LOOP=1 QT_QPA_PLATFORM=mirserver unity8

screenshot20180507_083306268

luispabon commented 6 years ago

Same problem:

May 10 15:56:35 luis-XPS-15-9560 systemd[1]: Stopping Session c10 of user unity8.
May 10 15:56:35 luis-XPS-15-9560 systemd[1]: Stopped Session c10 of user unity8.
May 10 15:56:35 luis-XPS-15-9560 unity8-session[27942]: [2018-05-10:15:56:35.104] qtmir.screens: ScreensModel::ScreensModel
May 10 15:56:35 luis-XPS-15-9560 unity8-session[27942]: [2018-05-10:15:56:35.104] QSocketNotifier: Can only be used with threads started with QThread
May 10 15:56:35 luis-XPS-15-9560 unity8[28010]: cannot open display: 
May 10 15:56:35 luis-XPS-15-9560 unity8-session[27942]: /usr/bin/unity8-session: line 75: [: !=: unary operator expected
May 10 15:56:35 luis-XPS-15-9560 unity8-session[27942]: /usr/bin/unity8-session: line 79: kill: (28010) - No such process
May 10 15:56:36 luis-XPS-15-9560 lightdm[28225]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "unity8"
eminfedar commented 6 years ago

Same here! Not logging in. Just returns to the login screen after correct password.

pixelr0 commented 6 years ago

new mir 0.32.0 landed in ubports repo with logind support. can you update and try to login again?

pixelr0 commented 6 years ago

for now you have to login twice in order to work, first time will bounce back to the login screen and second time will load