Forked from mangoliou/x11vnc-stack-smashing-detected-solution.mk
Last active
June 2, 2021 05:57
-
-
Save scraimer/1846fc01bd4660d16a37309b1ef9f744 to your computer and use it in GitHub Desktop.
x11vnc `stack smashing detected` - disable detection, as a non-root user
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
# On my system, I don't have root access. So here's how I built it | |
# as a non-root user, without `sudo` or the ability to | |
# install packages, although many packages were already installed. | |
# | |
# In particular, I had to download and build LibVNCServer, | |
# and configure x11vnc to use it the one I had built | |
mkdir -p ~/bin/x11vnc | |
cd ~/bin/x11vnc | |
wget https://github.com/LibVNC/libvncserver/archive/refs/tags/LibVNCServer-0.9.13.zip | |
unzip LibVNCServer-0.9.13.zip | |
cd libvncserver-LibVNCServer-0.9.13/ | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
cd ~/bin/v11vnc | |
wget https://github.com/LibVNC/x11vnc/archive/refs/tags/0.9.16.zip | |
unzip 0.9.16.zip | |
cd x11vnc-0.9.16 | |
autoreconf -fiv | |
set VNCSROOT=$HOME/bin/x11vnc/libvncserver-LibVNCServer-0.9.13 | |
env LIBVNCSERVER_CFLAGS="-L $VNCSROOT/build/ -I $VNCSROOT -I $VNCSROOT/build" \ | |
LIBVNCSERVER_LIBS="-lvncserver" \ | |
LIBVNCCLIENT_CFLAGS="-I $VNCSROOT/build" \ | |
LIBVNCCLIENT_LIBS="-L $VNCSROOT/build/ -lvncclient" \ | |
./configure \ | |
--prefix=$HOME/bin/x11vnc/installed \ | |
CFLAGS='-g -O2 -fno-stack-protector' | |
make -j | |
make install | |
# To run x11vnc from there, use: | |
# $HOME/bin/x11vnc/installed/bin/x11vnc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment