I was using vnc on a small box to run a gui program, but I have managed to
mangle it rather badly. Anyway, I got the idea to remove the menu's,
toolbars, etc in icewm so you can't open any programs while logged in via
xvncviewer. I did this my removing the menu package, and then going into
/usr/lib/menu, default and /etc/menu and removing them. Then I went into
/etc/X11/icewm and deleted the files menu, preferences, programs and
toolbar.
The idea was to make it harder for someone who has gotten into vnc, to get
to a shell, although I'm sure there are lots of things an X expert could do,
but at least someone would have to think a little before owning me.
And this worked fine for quite a while. But one day (today infact) I was
using the vnc session, and at some point noticed a way to right-click a
bring up an xterm. When I did this, it killed icewm, and left me with just a
xterm but no window manager, somekind of failsafe login, i think. So then I
found the file, /etc/menu-methodes/icewm. It had several lines mentioning
xterm, so I deleted the 3 lines:
x11= " prog \"" $title "\" " ifempty($icon,"-") ifnempty($icon,$icon) " "
$command"\n"
text= " prog \"" $title"\" " ifempty($icon,"-") ifnempty($icon,$icon) "
xterm -T \"" $title "\" -e " $command"\n"
wm= " restart \"" $title"\" " ifempty($icon,"-") ifnempty($icon,$icon)
" " $command"\n"
I restarted vnc, and got nothing but the xterm, and no window manager. I've
--purged and reinstalled all of the packages, vnc, ice, xbase, xcommon, etc.
All of the files I edited or deleted seem to be back the way they were
before. However, when starting vnc, all I get is X(vnc), no window manager,
no xterm, nothing. I set icewm and other xprogs to start in ~/.xsession and
even in /etc/X11/xsession, and it has no effect. if I try to launch an app
from a commandline (by just ssh'ing into the box, I get connection refused
by server. Checking the xsession errors, anything I try to start up in
.xsession or /etc/X11/xsessiom, xintrc, etc and they all also exit with
connection refused by server.
Everything is running under the same login, and DISPLAY is set correctly,
etc, but I'm getting connection refused for everything. I even put an xhost
+ in xsession and it still doesn't make any difference.
What else can I look at? All of these files were purged and replaced, with
the same stable packages I had used when I originally installed everything.
Thanks.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com