Artix Linux Forum

Artix Linux => Package management => Topic started by: gavin17 on 21 December 2017, 05:05:30

Title: Adding tigervnc openrc service files
Post by: gavin17 on 21 December 2017, 05:05:30
I was wondering if you guys could add the openrc service files for tigervnc to one of the repos. :D
Title: Re: Adding tigervnc openrc service files
Post by: nous on 21 December 2017, 09:02:47
We're still missing quite a few initscripts. Can you put this (https://gist.github.com/archnous/721921b173bb4496b1477c1e04083c52) into /etc/init.d, chmod +x it and see how it goes?
Title: Re: Adding tigervnc openrc service files
Post by: gavin17 on 22 December 2017, 01:51:21
We're still missing quite a few initscripts. Can you put this (https://gist.github.com/archnous/721921b173bb4496b1477c1e04083c52) into /etc/init.d, chmod +x it and see how it goes?

Code: [Select]
 % sudo rc-service tigervnc start
tigervnc          | * Caching service dependencies ...                                                                                                                                    [ ok ]
tigervnc          |tigervnc          | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/tigervnc start
tigervnc          | * Please define $DISPLAYS in /etc/conf.d/tigervnc
tigervnc          | * ERROR: tigervnc failed to start
Title: Re: Adding tigervnc openrc service files
Post by: nous on 22 December 2017, 17:25:30
Edit for your setup and save it as /etc/conf.d/tigervnc:

Code: [Select]
# Config file for /etc/init.d/tigervnc

# Specify the user(s) Xvnc(1) should be run for. The syntax is: "username:display".
# example: "DISPLAYS="foo:1 bar:2" You can specify more users separated by space.
# DISPLAYS="myuser:1"

# Specify any of vncserver(1) and Xvnc(1) options. See the respective man pages for more information.
# VNC_OPTS=""

EDIT: Read the Gentoo wiki article (https://wiki.gentoo.org/wiki/TigerVNC) for some simple examples. Once you report success, I'll pull it in our repos at first chance.
Title: Re: Adding tigervnc openrc service files
Post by: gavin17 on 10 February 2018, 03:37:42
Edit for your setup and save it as /etc/conf.d/tigervnc:

Code: [Select]
# Config file for /etc/init.d/tigervnc

# Specify the user(s) Xvnc(1) should be run for. The syntax is: "username:display".
# example: "DISPLAYS="foo:1 bar:2" You can specify more users separated by space.
# DISPLAYS="myuser:1"

# Specify any of vncserver(1) and Xvnc(1) options. See the respective man pages for more information.
# VNC_OPTS=""

EDIT: Read the Gentoo wiki article (https://wiki.gentoo.org/wiki/TigerVNC) for some simple examples. Once you report success, I'll pull it in our repos at first chance.
Sorry for the lack of a reply, but I've been swamped with school work. On the bright side I've managed to get tigervnc to work with openrc!