help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VNC


From: Rene
Subject: Re: VNC
Date: Thu, 15 Aug 2019 03:23:27 -0500

Hello,

I use x11vnc server, only as a package not as a service.

HTH!

> As it looks like virtualbox guest additions are even more difficult to get 
> working on Guix, I would be happy to try and come up with service definition 
> for a VNC server. TigerVNC comes to mind.
>
> If anyone can come up with some helpful pointers (I did define a few Guix 
> packages, but no services so far), it would be appreciated.
>
> Cheers,
>
> Todor
>


>From 043767218b21c1823d296f7601c423e2ac50d9d0 Mon Sep 17 00:00:00 2001
From: Rene <address@hidden>
Date: Tue, 19 Feb 2019 10:52:11 -0600
Subject: [PATCH 1/2] gnu: Add libvncserver.

---
 gnu/packages/vnc.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 gnu/packages/vnc.scm

diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm
new file mode 100644
index 000000000..3233d83cb
--- /dev/null
+++ b/gnu/packages/vnc.scm
@@ -0,0 +1,49 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2019 Rene <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages vnc)
+  #:use-module (gnu packages)
+  #:use-module (guix build-system cmake)
+  #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix utils)
+  #:use-module (guix gexp)
+  #:use-module (ice-9 match)
+  #:use-module (srfi srfi-1))
+
+(define-public libvncserver
+  (package
+    (name "libvncserver")
+    (version "0.9.12")
+    (source (origin
+              (method url-fetch)
+              (uri (let ((upstream-name "LibVNCServer"))
+                    (string-append 
"https://github.com/LibVNC/libvncserver/archive/";
+                                    upstream-name "-" version ".tar.gz")))
+              (sha256
+               (base32
+                "0dk124x298yx5bcr4kwqh7vvqhsaxwy346ri7ir0yfdv2m7bpjrk"))))
+    (build-system cmake-build-system)
+    (home-page "https://libvnc.github.io";)
+    (synopsis "Library for implement a VNC server")
+    (description "Libvncserver is a cross-platform C library that allow to
+implement a VNC server.")
+    (license license:gpl2+)
+    (properties `((upstream-name . "LibVNCServer")))))
-- 
2.20.1

>From 6e8710aedaf7485a1a3721531f89ea6baeaf7d6b Mon Sep 17 00:00:00 2001
From: Rene <address@hidden>
Date: Tue, 19 Feb 2019 11:19:35 -0600
Subject: [PATCH 2/2] gnu: Add x11vnc.

---
 gnu/packages/vnc.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm
index 3233d83cb..3223dcd87 100644
--- a/gnu/packages/vnc.scm
+++ b/gnu/packages/vnc.scm
@@ -18,7 +18,13 @@
 
 (define-module (gnu packages vnc)
   #:use-module (gnu packages)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages tls)
+  #:use-module (gnu packages xorg)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
@@ -47,3 +53,41 @@
 implement a VNC server.")
     (license license:gpl2+)
     (properties `((upstream-name . "LibVNCServer")))))
+
+(define-public x11vnc
+  (package
+    (name "x11vnc")
+    (version "0.9.16")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/LibVNC/x11vnc/archive/";
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "1g9jpl8i2fds5m2gn77f65inh6n718yvxs51wkwwdvi5bxgmnpl8"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; The ./configure script fails with /bin/sh and does not accept
+         ;; CONFIG_SHELL and SHELL parameters, then re-create configure script.
+         (replace 'bootstrap
+           (lambda _
+             (invoke "autoreconf" "-vfi"))))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("pkg-config" ,pkg-config)
+       ("zlib" ,zlib)))
+    (inputs
+     `(("libvncserver" ,libvncserver)
+       ("libx11" ,libx11)
+       ("libxext" ,libxext)
+       ("libxtst" ,libxtst)
+       ("openssl" ,openssl)))
+    (home-page "http://www.karlrunge.com/x11vnc/index.html";)
+    (synopsis "VNC server for real X displays")
+    (description "X11vnc is a VNC (Virtual Network Computing) server, allows 
one
+to view remotely and interact with real X displays.  For example, a display
+corresponding to a physical monitor, keyboard, and mouse.")
+    (license license:gpl2+)))
-- 
2.20.1

-- 

Rene

reply via email to

[Prev in Thread] Current Thread [Next in Thread]