RE: how to make Xwayland auto start on tizen-ivi-3.0 image
Thanks Geoffroy, Your information is very important for me , I'm sure that xwayland module is loaded , so is it possible that I startup Weston with root and start a shell script automatically which execute xwayland in it? Thanks and Best Regards Steve Zhou From: VanCutsem, Geoffroy [mailto:geoffroy.vancut...@intel.com] Sent: Tuesday, September 02, 2014 12:28 AM To: Steve (YiLiang) Zhou; i...@lists.tizen.org Cc: wayland-devel@lists.freedesktop.org Subject: RE: how to make Xwayland auto start on tizen-ivi-3.0 image Hi Steve, We are using systemd in Tizen 3.0 (Tizen 2.x uses SysV init). I've never tried to run xwayland but Weston should be starting automatically and I _believe_ all you need is to make sure the xwayland module is also loaded (by adding module=xwayland.so to your weston.ini). Hope this helps, Geoffroy From: IVI [mailto:ivi-boun...@lists.tizen.org] On Behalf Of Steve (YiLiang) Zhou Sent: Monday, September 01, 2014 10:09 AM To: i...@lists.tizen.org Cc: wayland-devel@lists.freedesktop.org Subject: how to make Xwayland auto start on tizen-ivi-3.0 image Dear all, I have a tizen device which run a wayland tizen-ivi-3.0 image ,we built xwayland on it , but right now I have to start it manually, I want to make it auto start like tizen-ivi-2.0 image. I can't find the files like inittab or rc.sysinit ,so I want to figure out how it startup and how to startup xwayland automatically. Any idear? Thanks and Best Regards Steve Zhou CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. Intel Corporation NV/SA Kings Square, Veldkant 31 2550 Kontich RPM (Bruxelles) 0415.497.718. Citibank, Brussels, account 570/1031255/09 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: how to make Xwayland auto start on tizen-ivi-3.0 image
On Tue, 2 Sep 2014 10:14:44 +0800 "Steve (YiLiang) Zhou" wrote: > Thanks Geoffroy, > > Your information is very important for me , I'm sure that xwayland > module is loaded , so is it possible that I startup Weston with root > and start a shell script automatically which execute xwayland in it? FWIW, when xwayland.so is loaded into Weston, Weston itself will be listening on the X11 display socket for connections. When the first X11 client connects, it will spawn the Xwayland X server to handle that and all following X11 clients. I suppose all you need is the DISPLAY environment variable, and know when Weston is ready to receive X11 connections. I believe xwayland.so module sets the DISPLAY variable for all child processes of Weston. Thanks, pq > From: VanCutsem, Geoffroy [mailto:geoffroy.vancut...@intel.com] > Sent: Tuesday, September 02, 2014 12:28 AM > To: Steve (YiLiang) Zhou; i...@lists.tizen.org > Cc: wayland-devel@lists.freedesktop.org > Subject: RE: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > Hi Steve, > > > > We are using systemd in Tizen 3.0 (Tizen 2.x uses SysV init). I've never > tried to run xwayland but Weston should be starting automatically and I > _believe_ all you need is to make sure the xwayland module is also > loaded (by adding module=xwayland.so to your weston.ini). > > > > Hope this helps, > > Geoffroy > > > > From: IVI [mailto:ivi-boun...@lists.tizen.org] On Behalf Of Steve > (YiLiang) Zhou > Sent: Monday, September 01, 2014 10:09 AM > To: i...@lists.tizen.org > Cc: wayland-devel@lists.freedesktop.org > Subject: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > Dear all, > > I have a tizen device which run a wayland tizen-ivi-3.0 image ,we built > xwayland on it , but right now I have to start it manually, I want to > make it auto start like tizen-ivi-2.0 image. > > I can't find the files like inittab or rc.sysinit ,so I want to figure > out how it startup and how to startup xwayland automatically. > ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: how to make Xwayland auto start on tizen-ivi-3.0 image
On Wed, 3 Sep 2014 18:19:59 + "VanCutsem, Geoffroy" wrote: > > -Original Message- > > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > > Sent: Wednesday, September 03, 2014 9:04 AM > > To: Steve (YiLiang) Zhou > > Cc: VanCutsem, Geoffroy; i...@lists.tizen.org; wayland- > > de...@lists.freedesktop.org > > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > On Tue, 2 Sep 2014 10:14:44 +0800 > > "Steve (YiLiang) Zhou" wrote: > > > > > Thanks Geoffroy, > > > > > > Your information is very important for me , I'm sure that xwayland > > > module is loaded , so is it possible that I startup Weston with root > > > and start a shell script automatically which execute xwayland in it? > > > > FWIW, when xwayland.so is loaded into Weston, Weston itself will be > > listening on the X11 display socket for connections. When the first > > X11 client connects, it will spawn the Xwayland X server to handle that and > > all > > following X11 clients. > > > > I suppose all you need is the DISPLAY environment variable, and know when > > Weston is ready to receive X11 connections. I believe xwayland.so module > > sets the DISPLAY variable for all child processes of Weston. > One additional note on this is that we start Weston as a standard user (not > root). So does everyone else AFAIK. Xwayland X server does not need any privileges, because it does not open any devices directly (if not for Glamor). However, you should check that the log directory is writable by the Xwayland process, but if that fails, there should be some yelling in where ever Weston's stderr goes to. Thanks, pq ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
RE: how to make Xwayland auto start on tizen-ivi-3.0 image
Thanks everyone, Xwayland already worked fine, we modify the user-session to use root login. The reason I want to start it with root is that our x11 app need modify a directory under /usr, app doesn't have the right. Thanks and Best Regards Steve Zhou -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Thursday, September 04, 2014 2:49 PM To: VanCutsem, Geoffroy Cc: Steve (YiLiang) Zhou; i...@lists.tizen.org; wayland-devel@lists.freedesktop.org Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image On Wed, 3 Sep 2014 18:19:59 + "VanCutsem, Geoffroy" wrote: > > -Original Message- > > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > > Sent: Wednesday, September 03, 2014 9:04 AM > > To: Steve (YiLiang) Zhou > > Cc: VanCutsem, Geoffroy; i...@lists.tizen.org; wayland- > > de...@lists.freedesktop.org > > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > On Tue, 2 Sep 2014 10:14:44 +0800 > > "Steve (YiLiang) Zhou" wrote: > > > > > Thanks Geoffroy, > > > > > > Your information is very important for me , I'm sure that > > > xwayland module is loaded , so is it possible that I startup > > > Weston with root and start a shell script automatically which execute xwayland in it? > > > > FWIW, when xwayland.so is loaded into Weston, Weston itself will be > > listening on the X11 display socket for connections. When the first > > X11 client connects, it will spawn the Xwayland X server to handle > > that and all following X11 clients. > > > > I suppose all you need is the DISPLAY environment variable, and know > > when Weston is ready to receive X11 connections. I believe > > xwayland.so module sets the DISPLAY variable for all child processes of Weston. > One additional note on this is that we start Weston as a standard user (not root). So does everyone else AFAIK. Xwayland X server does not need any privileges, because it does not open any devices directly (if not for Glamor). However, you should check that the log directory is writable by the Xwayland process, but if that fails, there should be some yelling in where ever Weston's stderr goes to. Thanks, pq CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: how to make Xwayland auto start on tizen-ivi-3.0 image
Don't run anything as root. Why does your application need to modify files under /usr/? On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou wrote: > Thanks everyone, > Xwayland already worked fine, we modify the user-session to use root > login. The reason I want to start it with root is that our x11 app need > modify a directory under /usr, app doesn't have the right. > > Thanks and Best Regards > Steve Zhou > > -Original Message- > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > Sent: Thursday, September 04, 2014 2:49 PM > To: VanCutsem, Geoffroy > Cc: Steve (YiLiang) Zhou; i...@lists.tizen.org; > wayland-devel@lists.freedesktop.org > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > On Wed, 3 Sep 2014 18:19:59 + > "VanCutsem, Geoffroy" wrote: > > > > -Original Message- > > > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > > > Sent: Wednesday, September 03, 2014 9:04 AM > > > To: Steve (YiLiang) Zhou > > > Cc: VanCutsem, Geoffroy; i...@lists.tizen.org; wayland- > > > de...@lists.freedesktop.org > > > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > > > On Tue, 2 Sep 2014 10:14:44 +0800 > > > "Steve (YiLiang) Zhou" wrote: > > > > > > > Thanks Geoffroy, > > > > > > > > Your information is very important for me , I'm sure that > > > > xwayland module is loaded , so is it possible that I startup > > > > Weston with root and start a shell script automatically which > execute xwayland in it? > > > > > > FWIW, when xwayland.so is loaded into Weston, Weston itself will be > > > listening on the X11 display socket for connections. When the first > > > X11 client connects, it will spawn the Xwayland X server to handle > > > that and all following X11 clients. > > > > > > I suppose all you need is the DISPLAY environment variable, and know > > > > when Weston is ready to receive X11 connections. I believe > > > xwayland.so module sets the DISPLAY variable for all child processes > of Weston. > > One additional note on this is that we start Weston as a standard user > (not root). > > So does everyone else AFAIK. > > Xwayland X server does not need any privileges, because it does not open > any devices directly (if not for Glamor). > > However, you should check that the log directory is writable by the > Xwayland process, but if that fails, there should be some yelling in > where ever Weston's stderr goes to. > > > Thanks, > pq > > CONFIDENTIALITY NOTICE: The information contained in this message may be > privileged and/or confidential. If you are not the intended recipient, or > responsible for delivering this message to the intended recipient, any > review, forwarding, dissemination, distribution or copying of this > communication or any attachment(s) is strictly prohibited. If you have > received this message in error, please notify the sender immediately, and > delete it and all attachments from your computer and network. > ___ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > -- Jasper ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
RE: how to make Xwayland auto start on tizen-ivi-3.0 image
Well, that’s a history problem. What’s the shortage of running things as root? Thanks and Best Regards Steve Zhou From: magc...@gmail.com [mailto:magc...@gmail.com] On Behalf Of Jasper St. Pierre Sent: Friday, September 05, 2014 9:56 AM To: Steve (YiLiang) Zhou Cc: Pekka Paalanen; VanCutsem, Geoffroy; i...@lists.tizen.org; wayland-devel@lists.freedesktop.org Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image Don't run anything as root. Why does your application need to modify files under /usr/? On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou wrote: Thanks everyone, Xwayland already worked fine, we modify the user-session to use root login. The reason I want to start it with root is that our x11 app need modify a directory under /usr, app doesn't have the right. Thanks and Best Regards Steve Zhou -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Thursday, September 04, 2014 2:49 PM To: VanCutsem, Geoffroy Cc: Steve (YiLiang) Zhou; i...@lists.tizen.org; wayland-devel@lists.freedesktop.org Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image On Wed, 3 Sep 2014 18:19:59 + "VanCutsem, Geoffroy" wrote: > > -Original Message- > > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > > Sent: Wednesday, September 03, 2014 9:04 AM > > To: Steve (YiLiang) Zhou > > Cc: VanCutsem, Geoffroy; i...@lists.tizen.org; wayland- > > de...@lists.freedesktop.org > > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > On Tue, 2 Sep 2014 10:14:44 +0800 > > "Steve (YiLiang) Zhou" wrote: > > > > > Thanks Geoffroy, > > > > > > Your information is very important for me , I'm sure that > > > xwayland module is loaded , so is it possible that I startup > > > Weston with root and start a shell script automatically which execute xwayland in it? > > > > FWIW, when xwayland.so is loaded into Weston, Weston itself will be > > listening on the X11 display socket for connections. When the first > > X11 client connects, it will spawn the Xwayland X server to handle > > that and all following X11 clients. > > > > I suppose all you need is the DISPLAY environment variable, and know > > when Weston is ready to receive X11 connections. I believe > > xwayland.so module sets the DISPLAY variable for all child processes of Weston. > One additional note on this is that we start Weston as a standard user (not root). So does everyone else AFAIK. Xwayland X server does not need any privileges, because it does not open any devices directly (if not for Glamor). However, you should check that the log directory is writable by the Xwayland process, but if that fails, there should be some yelling in where ever Weston's stderr goes to. Thanks, pq CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel -- Jasper CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: how to make Xwayland auto start on tizen-ivi-3.0 image
On Fri, 5 Sep 2014 10:38:10 +0800 "Steve (YiLiang) Zhou" wrote: > Well, that’s a history problem. What’s the shortage of running things as root? It is pretty much the same thing as why guns tend to have safeties, and are kept in locked cabinets when not actively handled, with keys only with those who know how to use them safely. It keeps your (system's) health better protected. http://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/ http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root http://superuser.com/questions/666942/why-it-is-not-recommend-to-use-root-login-in-linux http://unix.stackexchange.com/questions/1052/concern-about-logging-in-as-root-overrated ...the few first hits on Google. While all those are about logging in as root, it's not really any different to starting programs as root from the init system. Of course, if you are working on a closed embedded system which does not talk with the outside world at all, the dangers of running everything as root are smaller. However, you still compromise the system's ability to recover from failures, as an unexpected fault may screw up the system permanently, e.g. by overwriting files that are required for basic operation. Like things in /usr. If your /usr was read-only, you'd be much more guaranteed the system is able to reboot into a working state if it ever goes haywire and starts doing crazy things. The less a process has privileges, the less damage it can cause when it malfunctions or someone abuses it. Thanks, pq > From: magc...@gmail.com [mailto:magc...@gmail.com] On Behalf Of Jasper St. > Pierre > Sent: Friday, September 05, 2014 9:56 AM > To: Steve (YiLiang) Zhou > Cc: Pekka Paalanen; VanCutsem, Geoffroy; i...@lists.tizen.org; > wayland-devel@lists.freedesktop.org > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > Don't run anything as root. Why does your application need to modify files > under /usr/? > > > > On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou > wrote: > > Thanks everyone, > Xwayland already worked fine, we modify the user-session to use root > login. The reason I want to start it with root is that our x11 app need > modify a directory under /usr, app doesn't have the right. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
RE: how to make Xwayland auto start on tizen-ivi-3.0 image
Thanks Pekka, I see, I'll try to make the app access /home rather than /usr directory. Thanks again for your passional reply. Thanks and Best Regards Steve Zhou -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Friday, September 05, 2014 3:09 PM To: Steve (YiLiang) Zhou Cc: Jasper St. Pierre; VanCutsem, Geoffroy; i...@lists.tizen.org; wayland-devel@lists.freedesktop.org Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image On Fri, 5 Sep 2014 10:38:10 +0800 "Steve (YiLiang) Zhou" wrote: > Well, that’s a history problem. What’s the shortage of running things as root? It is pretty much the same thing as why guns tend to have safeties, and are kept in locked cabinets when not actively handled, with keys only with those who know how to use them safely. It keeps your (system's) health better protected. http://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/ http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root http://superuser.com/questions/666942/why-it-is-not-recommend-to-use-root-login-in-linux http://unix.stackexchange.com/questions/1052/concern-about-logging-in-as-root-overrated ...the few first hits on Google. While all those are about logging in as root, it's not really any different to starting programs as root from the init system. Of course, if you are working on a closed embedded system which does not talk with the outside world at all, the dangers of running everything as root are smaller. However, you still compromise the system's ability to recover from failures, as an unexpected fault may screw up the system permanently, e.g. by overwriting files that are required for basic operation. Like things in /usr. If your /usr was read-only, you'd be much more guaranteed the system is able to reboot into a working state if it ever goes haywire and starts doing crazy things. The less a process has privileges, the less damage it can cause when it malfunctions or someone abuses it. Thanks, pq > From: magc...@gmail.com [mailto:magc...@gmail.com] On Behalf Of Jasper > St. Pierre > Sent: Friday, September 05, 2014 9:56 AM > To: Steve (YiLiang) Zhou > Cc: Pekka Paalanen; VanCutsem, Geoffroy; i...@lists.tizen.org; > wayland-devel@lists.freedesktop.org > Subject: Re: how to make Xwayland auto start on tizen-ivi-3.0 image > > > > Don't run anything as root. Why does your application need to modify files > under /usr/? > > > > On Thu, Sep 4, 2014 at 6:50 PM, Steve (YiLiang) Zhou > wrote: > > Thanks everyone, > Xwayland already worked fine, we modify the user-session to use root > login. The reason I want to start it with root is that our x11 app > need modify a directory under /usr, app doesn't have the right. CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network. ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: how to make Xwayland auto start on tizen-ivi-3.0 image
Le 05/09/2014 09:09, Pekka Paalanen a écrit : On Fri, 5 Sep 2014 10:38:10 +0800 "Steve (YiLiang) Zhou" wrote: Well, that’s a history problem. What’s the shortage of running things as root? You might want to read this paper http://www.bbc.co.uk/news/technology-28886463 Dominig ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel