Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
L
libvncserver
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • rasky
  • libvncserver
  • Repository

Switch branch/tag
  • libvncserver
  • x11vnc
  • misc
  • x11vnc_pw
Find file
BlameHistoryPermalink
  • runge's avatar
    fix deadlock from rfbReleaseExtensionIterator(), fix no libz/libjpeg builds,... · 8eb18f6c
    runge authored 19 years ago
     fix deadlock from rfbReleaseExtensionIterator(), fix no libz/libjpeg builds, disable tightvnc-filetransfer if no libpthread, add --without-pthread option, rm // comments, set NAME_MAX if not defined, x11vnc: throttle load if fb update requests not taking place.
    8eb18f6c
x11vnc_pw 384 Bytes
EditWeb IDE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/sh
# usage: x11vnc_pw [file]  (default: ~/.vnc/passwd)

if [ "X$1" = "X" ]; then
	file=$HOME/.vnc/passwd
else
	file=$1
fi

stty -echo
printf "Password: "
read pw1; echo ""
printf "Verify:   "
read pw2; echo ""
stty  echo

if [ "X$pw1" != "X$pw2" ]; then
	echo "passwords do not match."
	exit 1
fi

x11vnc -help > /dev/null 2>&1
x11vnc -storepasswd "$pw1" "$file"
ls -l "$file"

Replace x11vnc_pw

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.