You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Johnnie W Adams <jx...@ualr.edu> on 2024/04/11 20:53:33 UTC

Why did I not install guacd as systemd

Hi, folks,

     I'm comparing my installation to the one I inherited, and I noticed
that the one I inherited has guacd installed as a systemd unit file, but
the one I built does not. Did I do something wrong in the configuration?
Both installations are 1.5.4 to the best of my knowledge. (I'm not entirely
certain how to determine it on the one I inherited.)

Thanks,

     John A

-- 
John Adams
Senior Linux/Middleware Administrator  | Information Technology Services
+1-501-916-3010 | jxadams@ualr.edu | http://ualr.edu/itservices
*UA Little Rock*

Reminder:  IT Services will never ask for your password over the phone or
in an email. Always be suspicious of requests for personal information that
come via email, even from known contacts.  For more information or to
report suspicious email, visit IT Security
<http://ualr.edu/itservices/security/>.

Re: Why did I not install guacd as systemd

Posted by Jon Gerdes <ge...@blueloop.net>.
Example installation on a systemd based box, eg Debian/Ubuntu:


# ./configure --with-systemd-dir=/etc/systemd/system --prefix=/opt/guacamole-server
# make
# make install

After installation:


# systemctrl edit guacd


Then you can update the stock unit file.  Here I have fixed the path to the executable, given the --prefix above and I've set the user that the daemon will run as (you need to create the user):


### Anything between here and the comment below will become the new contents of the file

[Service]
ExecStart=
ExecStart=/opt/guacamole-server/sbin/guacd -f
User=guacd_user

### Lines below this comment will be discarded



Then enable and start it:


# systemctl enable guacd

# systemctl start guacd


Cheers
Jon


On Thu, 2024-04-11 at 16:09 -0500, Johnnie W Adams wrote:
Thanks! I'm surprised that systemd isn't the default.

On Thu, Apr 11, 2024 at 4:01 PM Nick Couchman <vn...@apache.org>> wrote:
On Thu, Apr 11, 2024 at 4:53 PM Johnnie W Adams <jx...@ualr.edu>> wrote:
Hi, folks,

     I'm comparing my installation to the one I inherited, and I noticed that the one I inherited has guacd installed as a systemd unit file, but the one I built does not. Did I do something wrong in the configuration? Both installations are 1.5.4 to the best of my knowledge. (I'm not entirely certain how to determine it on the one I inherited.)



There's an option in the configure script for enabling systemd:

  --with-systemd-dir=<path>
                          install systemd units to the given directory

You'll need to run that and provide a path to the directory you'd like to install the systemd unit files in (/etc/systemd/system is common).

Also, depending on your system configuration, you may need to change the user that guacd runs under. The default one in the systemd file included with the distribution is "daemon", however, on many systems this user does not have a writable home directory (RHEL and variants use /sbin as the home directory), and RDP connections will likely fail due to the inability of the user to write out the FreeRDP known_hosts file. So, you may also want to create a user account and change the systemd file such that guacd runs under its own user account.

-Nick


--
John Adams
Senior Linux/Middleware Administrator  | Information Technology Services
+1-501-916-3010 | jxadams@ualr.edu<ma...@ualr.edu> | http://ualr.edu/itservices
UA Little Rock


Reminder:  IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts.  For more information or to report suspicious email, visit IT Security<http://ualr.edu/itservices/security/>.


Re: Why did I not install guacd as systemd

Posted by Johnnie W Adams <jx...@ualr.edu>.
Thanks! I'm surprised that systemd isn't the default.

On Thu, Apr 11, 2024 at 4:01 PM Nick Couchman <vn...@apache.org> wrote:

> On Thu, Apr 11, 2024 at 4:53 PM Johnnie W Adams <jx...@ualr.edu> wrote:
>
>> Hi, folks,
>>
>>      I'm comparing my installation to the one I inherited, and I noticed
>> that the one I inherited has guacd installed as a systemd unit file, but
>> the one I built does not. Did I do something wrong in the configuration?
>> Both installations are 1.5.4 to the best of my knowledge. (I'm not entirely
>> certain how to determine it on the one I inherited.)
>>
>>
> There's an option in the configure script for enabling systemd:
>
>   --with-systemd-dir=<path>
>                           install systemd units to the given directory
>
> You'll need to run that and provide a path to the directory you'd like to
> install the systemd unit files in (/etc/systemd/system is common).
>
> Also, depending on your system configuration, you may need to change the
> user that guacd runs under. The default one in the systemd file included
> with the distribution is "daemon", however, on many systems this user does
> not have a writable home directory (RHEL and variants use /sbin as the home
> directory), and RDP connections will likely fail due to the inability of
> the user to write out the FreeRDP known_hosts file. So, you may also want
> to create a user account and change the systemd file such that guacd runs
> under its own user account.
>
> -Nick
>
>>

-- 
John Adams
Senior Linux/Middleware Administrator  | Information Technology Services
+1-501-916-3010 | jxadams@ualr.edu | http://ualr.edu/itservices
*UA Little Rock*

Reminder:  IT Services will never ask for your password over the phone or
in an email. Always be suspicious of requests for personal information that
come via email, even from known contacts.  For more information or to
report suspicious email, visit IT Security
<http://ualr.edu/itservices/security/>.

Re: Why did I not install guacd as systemd

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Apr 11, 2024 at 4:53 PM Johnnie W Adams <jx...@ualr.edu> wrote:

> Hi, folks,
>
>      I'm comparing my installation to the one I inherited, and I noticed
> that the one I inherited has guacd installed as a systemd unit file, but
> the one I built does not. Did I do something wrong in the configuration?
> Both installations are 1.5.4 to the best of my knowledge. (I'm not entirely
> certain how to determine it on the one I inherited.)
>
>
There's an option in the configure script for enabling systemd:

  --with-systemd-dir=<path>
                          install systemd units to the given directory

You'll need to run that and provide a path to the directory you'd like to
install the systemd unit files in (/etc/systemd/system is common).

Also, depending on your system configuration, you may need to change the
user that guacd runs under. The default one in the systemd file included
with the distribution is "daemon", however, on many systems this user does
not have a writable home directory (RHEL and variants use /sbin as the home
directory), and RDP connections will likely fail due to the inability of
the user to write out the FreeRDP known_hosts file. So, you may also want
to create a user account and change the systemd file such that guacd runs
under its own user account.

-Nick

>