{"id":420,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-08T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/non-root-sessions-with-vnc-for-solaris-sparc-from-sunfreeware\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-08T21:51:50","slug":"non-root-sessions-with-vnc-for-solaris-sparc-from-sunfreeware","status":"publish","type":"post","link":"\/blog\/index.php\/non-root-sessions-with-vnc-for-solaris-sparc-from-sunfreeware\/","title":{"rendered":"non-root sessions with vnc for solaris sparc from sunfreeware"},"content":{"rendered":"<p>When you want to run a vncserver session on a non-root user from a solaris sparc machine, it just ends with this<br \/>\nmessage:<br \/>\n_XSERVTransSocketCreateListener: failed to bind listener<br \/>\nAfter going around some places i found something to fix this at<br \/>\nhttp:\/\/www.webservertalk.com\/archive100-2004-2-131777.html<br \/>\nThat involves creating a script in \/usr\/bin\/fixXdir.ksh and putting it at the crontab, like this:<br \/>\n#!\/usr\/bin\/ksh<br \/>\nPATH=&#8221;<br \/>\nIFS=&#8217; &#8216;<br \/>\nice_dir=\/tmp\/.ICE-unix<br \/>\nx11_dir=\/tmp\/.X11-unix<br \/>\nfor dirname in $ice_dir $x11_dir<br \/>\n; do<br \/>\n{<br \/>\nif (! [ -d $dirname ] )<br \/>\nthen<br \/>\n\/usr\/bin\/mkdir $dirname<br \/>\nif [ $? != 0 ];<br \/>\nthen<br \/>\n\/usr\/bin\/echo &#8220;Warning: $0: cannot<br \/>\nmkdir $dirname.&#8221;;<br \/>\nfi<br \/>\nfi<br \/>\nif ([ -d $dirname ] )<br \/>\nthen<br \/>\n\/usr\/bin\/chown root:root $dirname<br \/>\nif [ $? != 0 ];<br \/>\nthen<br \/>\n\/usr\/bin\/echo &#8220;Warning: $0: cannot chown $dirname.&#8221;;<br \/>\nfi<br \/>\n\/usr\/bin\/chmod 1777 $dirname<br \/>\nif [ $? != 0 ];<br \/>\nthen<br \/>\n\/usr\/bin\/echo &#8220;Warning: $0: cannot chmod $dirname to 1777.&#8221;;<br \/>\nfi<br \/>\nfi<br \/>\n}<br \/>\ndone<br \/>\n289\/433<br \/>\nThe crontab line is this:<br \/>\n0,5,10,15,20,25,30,35,40,45,50,55<br \/>\n\/usr\/bin\/fixXdir.ksh<br \/>\n290\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you want to run a vncserver session on a non-root user from a solaris sparc machine, it just ends with this message: _XSERVTransSocketCreateListener: failed to bind listener After going around some places i found something to fix this at http:\/\/www.webservertalk.com\/archive100-2004-2-131777.html That involves creating a script in \/usr\/bin\/fixXdir.ksh and putting it at the crontab, like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-420","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=420"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/420\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}