SliTaz SliTaz Forum

You are not logged in.

#1 2016-04-18 20:30:01

beach
Member
Registered: 2016-03-13
Posts: 4

Reboot or shutdown stalled by x11vnc

I downloaded and installed the latest rolling 32bit version.  Everything was going smooth until I loaded x11vnc.  Now shutdown and reboots do nothing.   Here is the setup:

1, loaded 'x11vnc' through 'Package Manager'

2, added 'x11vnc' to /etc/rcS.conf:

[c]RUN_DAEMONS="firewall httpd ntpd openssh x11vnc"[/c]

3, made sure /etc/daemons had startup configs:

[c]

X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -auth /var/run/slim.auth -allow

10.,192.168.,127.0.0.1 -forever -loop -tightfilexfer -permitfiletransfer

-display :0"

[/c]

After a reboot, I see x11vnc runs and I am able to VNC into it from another workstation.  The problem is when I try to reboot, either from the CLI or desktop "tux->logout->shutdown or reboot".   Nothing happens... I checked /etc/init.d/rc.shutdown and I do not see any issues.  When I checked the shutdown logs, I see that it thinks x11vnc is not running - but it is....

[c]tux@slitaz-beach:/etc$ pgrep -l vnc

1289 /usr/bin/x11vnc

1309 /usr/bin/x11vnc

tux@slitaz-beach:/etc$ cat /var/log/slitaz/shutdown.log

System is going down for reboot or halt.

19:40:42 up  7:01,  0 users,  load average: 0.01, 0.04, 0.04

Iptables rules are disabled...

Stopping httpd deamon: httpd... [ Done ]

Stopping ntpd deamon: ntpd... [ Done ]

Stopping OpenSSH server: OpenSSH...                                   [ Done ]

x11vnc is not running.

[/c]

If I execute '/etc/init.d/x11vnc stop' - the system reboots immediately.

Any ideas?

-Beach

Offline

#2 2016-04-19 16:00:23

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Reboot or shutdown stalled by x11vnc

Root must kill x11vnc server before regular user can exit xsession to slim login,reboot,or poweroff.

Configure sudo with no prompt for password.

[c]# leafpad /usr/bin/tazbox[/c]

Scroll down to logout)

Sections exit,reboot,halt

Add:

[c]sudo pkill xllvnc[/c]

before existing command to exit xsession, reboot, poweroff.

4|*exit)

                case $XDG_CURRENT_DESKTOP in

                    LXDE)

                        sudo pkill x11vnc

                [ -n "$_LXSESSION_PID" ] &&  kill $_LXSESSION_PID

3|*reboot)

            sudo pkill x11vnc

                                reboot || reboot -f ;;

2|*halt)

                    sudo pkill x11vnc

                                poweroff ;;

Offline

#3 2016-04-20 02:10:31

beach
Member
Registered: 2016-03-13
Posts: 4

Re: Reboot or shutdown stalled by x11vnc

Worked perfectly!   Thanks Mojo!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]