perhaps you want to add the command line to your login scripts
but there is one thing I'm wondering about
: what is your actual goal? I have a feeling there are other ways to accomplish it too.
first thing, there isn't a real reason to login as root in a GUI like X11; it exposes your entire machine.
ssh has a nice way to forward X11 programs to your local display; start ssh with "ssh -X ...", and you can type the name of the program. ssh changes the $DISPLAY variable. X11 client programs (like mozilla for example), simply connect to the display defined in the $DISPLAY variable. ...and whether that is your local display, another X11 server, or your ssh-tunnel connection doesn't matter.
short story: if you use "ssh -X", and start an program, it's window will appear at your screen! you don't have to open any ports, xhost settings, or what so ever; and ssh provices an encrypted connection too