Last active
June 1, 2023 06:49
-
-
Save mangoliou/407d6a39a60d128610c20c4143f39f0d to your computer and use it in GitHub Desktop.
x11vnc `stack smashing detected` solution.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install x-related to compile x11vnc from source code. | |
sudo apt-get update | |
sudo apt-get install -y libxtst-dev libssl-dev libjpeg-dev | |
# Grep source code. | |
wget http://x11vnc.sourceforge.net/dev/x11vnc-0.9.14-dev.tar.gz | |
gzip -dc x11vnc-0.9.14-dev.tar.gz | tar -xvf - | |
cd x11vnc-0.9.14/ | |
./configure --prefix=/usr/local CFLAGS='-g -O2 -fno-stack-protector -Wall' | |
# Make and Make install. | |
make | |
make install | |
# Grep lighdm auth file. | |
ps wwwwaux | grep auth | |
# Run x11vnc. | |
/usr/local/bin/x11vnc -auth /var/run/lightdm/root/:0 -display :0 -xkb -forever -shared -rfbport 20000 | |
# Use the chrome vnc client. Login Ubuntu and press ESC. Problems solved. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got problem with ubuntu 18.04 and vnc-0.9.16:
fix with: