X11VNC not working in 4.9.23

Everything about external control, apps, VNC, etc goes here.

Moderators: marcelr, TheHogNL, Toonz

Post Reply
gielie
Member
Member
Posts: 70
Joined: Thu Nov 02, 2017 11:06 am

X11VNC not working in 4.9.23

Post by gielie »

HI,

I can't get x11vnc working in 4.9.23, it was working fine in 4.8.25 but after the update it stops working after i start x11vnc.
I tried to reinstall it but with no luck.
Does someone has an idea how i can get x11vnc working again?

btw this is what my console gives.

Code: Select all

The SSL VNC desktop is:  eneco-001-003065:0
PORT=5900
SSLPORT=5900
eneco-001-003065:~# x11vnc

The SSL VNC desktop is:  eneco-001-003065:1
PORT=5901
SSLPORT=5901
eneco-001-003065:~# 
So after each start it picks another port number.
lxz
Starting Member
Starting Member
Posts: 16
Joined: Mon Nov 13, 2017 12:45 pm

Re: X11VNC not working in 4.9.23

Post by lxz »

What do you mean by 'stops working'? Is it unreachable by your vnc client?

Usually vnc opens an other port when you start the process a second time

Can you check if it is already running (with 'top' or 'ps')?
And is port 5900 opened in your iptables.conf?
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: X11VNC not working in 4.9.23

Post by michel30 »

I think that the update did also update x11vnc and that does not work.

I had the same problem before.

What you can do, is uninstall the package and install the package from this site and that works for me.

Regards,
Michel
yjb
Member
Member
Posts: 211
Joined: Fri Apr 17, 2009 1:15 pm
Location: Venhuizen, Netherlands

Re: X11VNC not working in 4.9.23

Post by yjb »

If you want to check if vnc is running:

Code: Select all

Toon:~# netstat -pant |grep LIST
tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN      709/lighttpd
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      27991/x11vnc-bin
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      709/lighttpd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      623/dropbear
tcp        0      0 127.0.0.1:1337          0.0.0.0:*               LISTEN      671/HCBv2 hcb_comm
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      27789/dropbear
If it is indeed running, it shows the port. If the port is not accessible I would expect that something is wrong with the firewall rules.
gielie
Member
Member
Posts: 70
Joined: Thu Nov 02, 2017 11:06 am

Re: X11VNC not working in 4.9.23

Post by gielie »

Ok I see now VNC is already running, twice on different port numbers but yet unreachable, I’ll have to check the firewall.
One thing I don’t understand, before on fw8.4.25 when I started vnc it was running in the console and I could stop it with ctrl c, how to I stop vnc now from running?
I started from scratch and this is what happend.

Code: Select all

 eneco-001-003065:~# opkg install x11vnc_0.9.13-r0_qb2.ipk
Installing x11vnc (0.9.13-r0) to root...
Configuring x11vnc.
eneco-001-003065:~# x11vnc
Enter VNC password: 
Verify password:    
Write password to /root/.vnc/passwd?  [y]/n y
Password written to: /root/.vnc/passwd

WARNING: can't open config file: /usr/lib/ssl/openssl.cnf
[s] i still can't log in.[/s]

Ok ik used open vnc and that didn't work, i went to tiger vnc and that solved the problem.
1 thing remains, before i could stop x11vnc with ctrl c, how do i stop the server now?
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: X11VNC not working in 4.9.23

Post by michel30 »

Hello,

My toon works with x11vnc.
I used the x11vnc package from this forum.
I edit this file /etc/inittab and add in this line

Code: Select all

 x11v:5:respawn:/usr/bin/x11vnc 
HenkP
Starting Member
Starting Member
Posts: 2
Joined: Mon Dec 04, 2017 12:53 am

Re: X11VNC not working in 4.9.23

Post by HenkP »

Toon works with x11vnc, but after a power off-on x11vnc is not self restarting.
Where or what can I edit for a auto restart off X11vnc?

Thanks
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: X11VNC not working in 4.9.23

Post by marcelr »

HenkP
Starting Member
Starting Member
Posts: 2
Joined: Mon Dec 04, 2017 12:53 am

Re: X11VNC not working in 4.9.23

Post by HenkP »

Thanks, but that don`t workt for me. posting.php?mode=reply&f=87&t=11854#
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: X11VNC not working in 4.9.23

Post by marcelr »

You can always write a small shell script to startup x11vnc, and pop that into /etc/init.d
Then x11vnc will start at least at boot-up.
gerlag
Starting Member
Starting Member
Posts: 20
Joined: Wed Dec 27, 2017 1:49 pm

Re: X11VNC not working in 4.9.23

Post by gerlag »

Small addition:
For those where automatic restart of x11VNC server after reboot is not working, using the init.d or inittab approach, (see here), the alternative crontab solution could work as a last resort. Which was the case in my situation.

Code: Select all

eneco:~# crontab -e

# crontab for root
#      The time and date fields are:
#
#             field          allowed values
#             -----          --------------
#             minute         0-59
#             hour           0-23
#             day of month   1-31
#             month          1-12 (or names, see below)
#             day of week    0-7 (0 or 7 is Sunday, or use names)
#
SHELL=/bin/sh
*/5 * * * * /root/bin/buienradar_get_data_5min.sh
2 */1 * * * /root/bin/buienradar_get_data_hourly.sh
@reboot /usr/bin/x11vnc
(I added the line)

Code: Select all

@reboot /usr/bin/x11vnc
Then type:

Code: Select all

 ESC :wq


Then reboot

Code: Select all

shutdown -r now
and check if x11VNC has automatically started.

Code: Select all

netstat -pant |grep LIST
tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN      707/lighttpd
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      1012/x11vnc-bin
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      707/lighttpd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      624/dropbear
tcp        0      0 127.0.0.1:1337          0.0.0.0:*               LISTEN      680/HCBv2 hcb_comm
Post Reply

Return to “Toon external control”