maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   XWayland Victory! (https://talk.maemo.org/showthread.php?t=98882)

n950 2017-02-11 20:12

Re: XWayland Victory!
 
Hi,

How to run application like transmission-qt?

EDIT:
https://tlhp.cf/kde-plasma-on-wayland/
Is it possible to have a full desktop working if i follow the steps on this website?

Thank you

n950 2017-02-11 20:46

Re: XWayland Victory!
 
In Ubuntu,

Code:

[root@Sailfish ubuntu]# chroot ./
# apt-get update
Err:1 http://ports.ubuntu.com/ubuntu-ports yakkety InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://ports.ubuntu.com/ubuntu-ports yakkety-updates InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:3 http://ports.ubuntu.com/ubuntu-ports yakkety-backports InRelease
Temporary failure resolving 'ports.ubuntu.com'
Err:4 http://ports.ubuntu.com/ubuntu-ports yakkety-security InRelease
Temporary failure resolving 'ports.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety/InRelease
Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-updates/I
nRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-backports
/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/yakkety-security/
InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones use
d instead.

I choose one dns server in this website http://public-dns.info/

Code:

echo nameserver 103.25.7.1 > /etc/resolv.conf
After that i try apt-get update and same thing same error why?
How to resolve this problem?
Impossible to edit resolv.conf file cause i don't have gedit or nano installed.

n950 2017-02-12 21:00

Re: XWayland Victory!
 
Anybody can creat script to run manjaro on jolla c? With desktop icon?

It will be usefull.
Every time i reboot my jolla i need to write all commands.

pavi 2017-02-12 21:40

Re: XWayland Victory!
 
Quote:

Originally Posted by n950 (Post 1523342)
In Ubuntu,

Code:

echo nameserver 103.25.7.1 > /etc/resolv.conf
After that i try apt-get update and same thing same error why?
How to resolve this problem?
Impossible to edit resolv.conf file cause i don't have gedit or nano installed.


I faced the exact same issue :( but with Debian. I think its because of the way the distribution is built.

If it was built with multistrap, you have to remember that multistrap depends on a Debian (which SFOS is not) on the top of it.
Quote:

it uses apt and dpkg directly so can only work on a debian system
I am trying to avoid using multistrap and build a proper debian image using qemu and debootstrap.

On the ubuntu side the images must be readily available and usable ;)

n950 2017-02-12 21:52

Re: XWayland Victory!
 
Quote:

Originally Posted by pavi (Post 1523394)
I faced the exact same issue :( but with Debian. I think its because of the way the distribution is built.

If it was built with multistrap, you have to remember that multistrap depends on a Debian (which SFOS is not) on the top of it.


I am trying to avoid using multistrap and build a proper debian image using qemu and debootstrap.

On the ubuntu side the images must be readily available and usable ;)

Where can i find debian or ubuntu usable image for jolla?
armhf
and some others distributions?
some links please

Try to post here your image please and how to run it?
I am interested by Debian too.

bomo 2017-02-14 13:11

Re: XWayland Victory!
 
I'm just dropping an idea here:
Maybe "systemd-nspawn" could be used to provide a more user friendly alternative to chroot? systemd-nspawn is also available in SFOS. Does anyone have experience with that?

preflex 2017-02-14 16:17

Re: XWayland Victory!
 
Quote:

Originally Posted by bomo (Post 1523461)
I'm just dropping an idea here:
Maybe "systemd-nspawn" could be used to provide a more user friendly alternative to chroot? systemd-nspawn is also available in SFOS. Does anyone have experience with that?

systemd-nspawn doesn't work for me. Seems to be missing some kernel goodies. No lxc either. If you know how I can get the needed features on a Nexus 4, let me know.

Also,

I'm working on some scripts to automate a lot of this. I should be able to share them soon. I've made a lot of progress getting a whole lxde session running as user nemo, without need to use "--no-sandbox" with chromium. However, I'm still unable to get pulseaudio working.

I have some configs for onboard and lxde that make them a little easier to use.

I'd like to get screen rotation working, but it seems like xrandr can't change the config. :(

I should be able to share an image, configs, and some scripts very soon.

Feathers McGraw 2017-02-14 16:23

Re: XWayland Victory!
 
Quote:

Originally Posted by preflex (Post 1523470)
I've made a lot of progress getting a whole lxde session running as user nemo, without need to use "--no-sandbox" with chromium.

Do you know why that option is required? What is missing in the chroot that would usually be used to sandbox chromium? Seems like a bad idea not to sandbox a browser...or do you think the fact that it's running in a chroot is enough sandboxing in itself?

preflex 2017-02-14 22:28

Re: XWayland Victory!
 
Quote:

Originally Posted by Feathers McGraw (Post 1523471)
Do you know why that option is required? What is missing in the chroot that would usually be used to sandbox chromium? Seems like a bad idea not to sandbox a browser...or do you think the fact that it's running in a chroot is enough sandboxing in itself?

Chromium will refuse to run with sandboxing if run as root. Running as nemo instead of root allows the sandboxing to work.

Also, "chroot is not and has never been a security tool." It's not difficult for a process running as root to break out of a chroot.

Setting things up to run an LXDE session as nemo will help to make using this a lot safer. However, kwin_wayland will probably still be running as root in the chroot, as I haven't been able to get it running as nemo yet. I am unsure of the security implications of this. In general, X11 is kinda, sorta, totally, completely unsafe anyway, so I don't expect that the security will be any worse than any regular desktop distro.

preflex 2017-02-15 01:34

Re: XWayland Victory!
 
I got pulseaudio working.
It was kind of tricky, and was muted by default.
I'll have to figure out what exactly I did, but here's an overview.

I created a user "nemo" inside the chroot, and changed his UID and GID each to 100000. I may have also added nemo to some groups. I'm not sure what actually stuck. systemd is weird.

you'll need the "xorg-xhost" package. "pavucontrol" may also be handy for looking at pulseaudio stuff, if you're unfamiliar with pacmd or pactl.


There was some extra stuff to mount:
/run
/var/lib/dbus
/tmp
/home/nemo/.config/pulse

then chroot in, set environment vars, and start kwin_wayland.

after that,
Code:

export DISPLAY=:0
xhost +

Then it gets a little weird.
Code:

sudo -u \#100000 bash
to get a shell as "nemo".

Then,
Code:

export $(dbus-launch)
export XDG_RUNTIME_DIR=/run/user/100000
export DISPLAY=:0
startlxde

Then, I unmuted the device in pavucontrol.

I was also able to get a full plasma session running in the xwayland window, but it was slow, and I couldn't disable desktop effects which were making everything even slower (using xrender, I imagine).

Still no luck running kwin_wayland --xwayland as anyone other than root.


All times are GMT. The time now is 23:12.

vBulletin® Version 3.8.8