firefox gave me
Error: no DISPLAY environment variable specified
Following this link, I tried
export DISPLAY=localhost:X with X=10.0 and 5901 and run
firefox again. Both gave me
Error: cannot open display: localhost:X
Let me note down what I did.
- Following this guide from @lesscomfortable, I installed ubuntu-desktop and vnc4server.
ssh -L 5901:localhost:5901 paperspace@IP_ADRESS
vncserver :1 -geometry 1200x900
firefox then the above issues
- View VNC server (I use Mac’s Finder)
- Gray screen
During the dubgging, sometimes my vnc viewer show “Reconnecting…”, so I thin it is connected but just something is not working.
This is my vnc config - copied from the linked guide
paperspace@psldnr55y:~$ cat ~/.vnc/xstartup
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &