Hello,

the wiki page at
http://wiki.openmoko.org/wiki/Debian
needs slight adjustments when
  /etc/init.d/nodm
is used rather than
  /etc/init.d/zhone-session
to start X.

Cheers,
Erich

--------------------------------------------------------

Howto: Running X as a normal user

Slight changes, when X is started via /etc/init.d/nodm

1. Create a new user

# NAME=<user_name>
# useradd -m -G audio,dialout,floppy,video,staff ${NAME}
# passwd ${NAME}


2. Create ~${NAME}/.xsession
to startup everything wanted initially in your X session

# cp ~root/.xsession ~${NAME}
# chown ${NAME}:${NAME} ~${NAME}/.xsession


3. Edit /etc/init.d/nodm
so the X session is started for the new user.

-USER=root
+USER=<user_name>


4. Edit /etc/X11/Xwrapper.config

-allowed_users=console
+allowed_users=anybody

5. Make apm setuid root
so that zhone can do suspend and make it only executable for
users in the staff group

# dpkg-statoverride --update --add root staff 4750 /usr/bin/apm

6. Remove /tmp/zhone.log
otherwise zhone cannot write to this file any more.

# /etc/init.d/nodm stop
# rm /tmp/zhone.log

7. Reboot
I found that "/etc/init.d/nodm start" did not succeed. Could someone confirm this?

# reboot

_______________________________________________
Smartphones-userland mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to