HOW-TO ] connect to a Linode VNC server

I got tigervnc installed and setup with

_

FILE [/home/username/.vnc/xstartup]

exec /usr/bin/startlxqt &

_

I setup Remmina vnc client on my home PC as follows

Remmina Setup

_

I keep getting the same error

error message

```netstat -plantu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:5901          0.0.0.0:*               LISTEN      16529/Xtigervnc     
tcp        0      0 127.0.0.1:44687         0.0.0.0:*               LISTEN      742/containerd      
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      620/systemd-resolve 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      19669/sshd          
tcp6       0      0 ::1:5901                :::*                    LISTEN      16529/Xtigervnc     
tcp6       0      0 :::80                   :::*                    LISTEN      1881/httpd          
tcp6       0      0 :::22                   :::*                    LISTEN      19669/sshd          
tcp6       0      0 172.104.122.60:80       101.142.168.229:38528   TIME_WAIT   -                   
tcp6       0      0 172.104.122.60:80       101.142.168.229:38532   TIME_WAIT   -                   
udp        0      0 127.0.0.53:53           0.0.0.0:*                           620/systemd-resolve 
udp        0      0 0.0.0.0:52898           0.0.0.0:*                           13365/avahi-daemon: 
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           13365/avahi-daemon: 
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           1015/mdns-publisher 
udp6       0      0 :::5353                 :::*                                1015/mdns-publisher 
udp6       0      0 :::5353                 :::*                                13365/avahi-daemon: 
udp6       0      0 :::41754                :::*                                13365/avahi-daemon: 

and this

# Generated by iptables-save v1.6.1 on Fri Aug  9 12:18:49 2019
*filter
:INPUT ACCEPT [238:34564]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [226:35693]
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5901 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5901 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5900 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 5901 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 5900 -j ACCEPT
COMMIT
# Completed on Fri Aug  9 12:18:49 2019

1 Reply

I am not sure how I got it working but I did.

I think that it had to do with installing xterm and ssh.

Then on my vnc viewer on my PC I was shocked that I could get into the server by using localhost:1

That boggles my mind.

I also had to on the server side configure a host file of some sort.

https://i.imgur.com/avLewZl.png

nano /etc/hosts

and make it look like this

127.0.0.1       localhost
LINODEIPADDRESS:81

For the VNC client I needed to have the username that is the user that is running the server and the password that was generated when creating the server.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct