Re: VNC

2019-08-15 Thread Rene

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 
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 0..3233d83cb
--- /dev/null
+++ b/gnu/packages/vnc.scm
@@ -0,0 +1,49 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2019 Rene 
+;;;
+;;; 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 .
+
+(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 
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)
+   ("openss

Re: VNC

2019-08-14 Thread Todor Kondić
‐‐‐ Original Message ‐‐‐
On Wednesday, 14 August 2019 11:44, Julien Lepiller  wrote:

> Le 14 août 2019 10:04:19 GMT+02:00, "Todor Kondić via help-guix@gnu.org" 
>  a écrit :
>
> > Is there a VNC service in guix? Doing a brief package search, I found a
> > few clients, but no server.
>
> Nobody seems to have worked on one yet, so no luck for you :/. Maybe others 
> here have a workaround, or can provide more detailed guidance on how to 
> define such a service if you're interested. I have never used VNC myself, so 
> I'm not sure what work is still needed to get a working service definition.

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



Re: VNC

2019-08-14 Thread Julien Lepiller
Le 14 août 2019 10:04:19 GMT+02:00, "Todor Kondić via " 
 a écrit :
>Is there a VNC service in guix? Doing a brief package search, I found a
>few clients, but no server.

Nobody seems to have worked on one yet, so no luck for you :/. Maybe others 
here have a workaround, or can provide more detailed guidance on how to define 
such a service if you're interested. I have never used VNC myself, so I'm not 
sure what work is still needed to get a working service definition.