[SOLVED] VNC remote control

Discussion in 'UDOO NEO' started by Gorgo, Nov 16, 2016.

  1. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi guys.
    I tried to connect via VNC to my Udoo neo but I think the instructions here (http://www.udoo.org/docs-neo/Basic_Setup/Remote_Desktop_(VNC).html) are incomplete.
    What's about the server/udoo side? Should I install some packages? Open ports?
    I installed the complete Udoobuntu image but If i use "vinagre 192.168.7.2:5900" on my ElementaryOS connected to Udoo via USB, the connection fails.
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    You have to check that the network interface via USB is created in your ElementaryOS. In Ubuntu it gets created automatically.
     
  3. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    ElementaryOS is a Ubuntu distro.
    Anyway, the connection between udoo/eOS seems to work since I can connect to the Udoo webPanel with Chrome.

    eOS ifconfig

    Code:
    gorgo@dago:~$ ifconfig enp0s20u10
    enp0s20u10 Link encap:Ethernet  IndirizzoHW 4e:71:9d:b2:91:06  
              indirizzo inet:192.168.7.7  Bcast:192.168.7.255  Maschera:255.255.255.0
              indirizzo inet6: fe80::fb38:1ed7:dead:8a17/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:464 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1075 errors:0 dropped:0 overruns:0 carrier:0
              collisioni:0 txqueuelen:1000 
              Byte RX:264510 (264.5 KB)  Byte TX:185689 (185.6 KB)
    
    UDOO ifconfig

    Code:
    udooer@pizzicottina:~$ ifconfig usb0
    usb0      Link encap:Ethernet  HWaddr 4e:71:9e:b2:91:06  
              inet addr:192.168.7.2  Bcast:192.168.7.255  Mask:255.255.255.0
              inet6 addr: fe80::4c71:9eff:feb2:9106/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1185 errors:0 dropped:0 overruns:0 frame:0
              TX packets:568 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:129766 (129.7 KB)  TX bytes:324444 (324.4 KB)
    
    UDOO ports:
    Code:
    udooer@pizzicottina:~$ sudo netstat -atun
    [sudo] password for udooer: 
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State      
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN    
    tcp        0      0 0.0.0.0:5151            0.0.0.0:*               LISTEN    
    tcp        0      0 0.0.0.0:5152            0.0.0.0:*               LISTEN    
    tcp6       0      0 :::80                   :::*                    LISTEN    
    tcp6       0      0 :::22                   :::*                    LISTEN    
    tcp6       0      0 :::8000                 :::*                    LISTEN    
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42224       ESTABLISHED
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42216       ESTABLISHED
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42226       ESTABLISHED
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42218       ESTABLISHED
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42220       ESTABLISHED
    tcp6       0      0 192.168.7.2:80          192.168.7.7:42230       ESTABLISHED
    udp        0      0 132.227.125.140:123     0.0.0.0:*                          
    udp        0      0 192.168.7.2:123         0.0.0.0:*                          
    udp        0      0 127.0.0.1:123           0.0.0.0:*                          
    udp        0      0 0.0.0.0:123             0.0.0.0:*                          
    udp        0      0 0.0.0.0:64725           0.0.0.0:*                          
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                          
    udp        0      0 0.0.0.0:49908           0.0.0.0:*                          
    udp        0      0 0.0.0.0:1069            0.0.0.0:*                          
    udp        0      0 0.0.0.0:67              0.0.0.0:*                          
    udp        0      0 0.0.0.0:68              0.0.0.0:*                          
    udp6       0      0 fe80::5e31:3eff:fe2:123 :::*                              
    udp6       0      0 fe80::4c71:9eff:feb:123 :::*                              
    udp6       0      0 ::1:123                 :::*                              
    udp6       0      0 :::123                  :::*                              
    udp6       0      0 :::5353                 :::*                              
    udp6       0      0 :::38690                :::*                              
    udp6       0      0 :::30643                :::*                              
    udp6       0      0 :::37840                :::*                        
    
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Connection seems to work then. You could try with another VNC client, could you? There's no need to install anything on the UDOObuntu system, it should work out-of-the-box.
     
  5. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I use Remmina on Ubuntu 16 successfully.
     
    Andrea Rovai likes this.
  6. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hmmm I can't say why, but now It's working out-of-the-box like you said.

    I've noticed that my usb ip has changed on eOS and now it's:

    Code:
    enp0s20u10 Link encap:Ethernet  IndirizzoHW 4e:71:9d:23:e3:1f 
              indirizzo inet:192.168.7.8  Bcast:192.168.7.255  Maschera:255.255.255.0
              indirizzo inet6: fe80::9ed7:fc2b:daaa:c4aa/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6189 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6709 errors:0 dropped:0 overruns:0 carrier:0
              collisioni:0 txqueuelen:1000
              Byte RX:2306375 (2.3 MB)  Byte TX:807436 (807.4 KB)
    
    It's not tightly correlated to this bug, but note that I had to extend the dhcp usb ip range in order to let my laptop get the correct ip. If not the laptop still remains on "Waiting connection" and it can't get IP from the UDOO dhcp. Probably due to the lease time?

    Code:
    sudo nano /etc/dhcp/dhcpd.conf
    default-lease-time 86400;
    max-lease-time 8640000;
    log-facility local7;
    
    subnet 192.168.7.0 netmask 255.255.255.0 {
            option routers          192.168.7.2;
            option subnet-mask      255.255.255.0;
            range 192.168.7.1       192.168.7.100;
    }
    
    subnet 192.168.100.0 netmask 255.255.255.0 {
            option routers          192.168.100.1;
            option subnet-mask      255.255.255.0;
            range 192.168.100.10    192.168.100.20;
    }
    
     

Share This Page