USER=`cat /etc/sysconfig/tcuser` export PATH="/bb:$PATH" addgroup "$USER" video if [ -d /tmp/tcloop/APPNAME/ ]; then rm /usr/bin/Xorg cp -af /tmp/tcloop/APPNAME/usr/bin/Xorg /usr/bin fi chmod +s /usr/bin/Xorg ln -s /usr/bin/Xorg /etc/X11/X echo 'allowed_users=anybody' > /etc/X11/Xwrapper.config chmod 1777 /tmp chown -R root:root /tmp/.X*