Guacamole on NixOS setup
Introduction
Guacamole on NixOS allows you to access your desktop environment and terminal via a web browser, supporting protocols like VNC, RDP, and SSH.
Setup
-
Add the RDP settings to
configuration.nix
-
Then add the Guacamole settings
In this case I am using the Guacamole package from the default channel. But you can also use a newer version from the unstable channel (if available).
-
Switch NixOS configuration
Now you can switch to the new NixOS configuration. Run the following command:
-
Create the
user-mapping.xml
You need to enter the user information with which you can log in to Guacamole. And also the connections you want to use to connect to NixOS.
Instructions:
- Required Replace
<password>
with your password, which will be used to log in to Guacamole
Remember the result (the hash after
=
). - Required Replace
-
Create the
guacamole
folder -
Add the following to
/etc/nixos/guacamole/user-mapping.xml
Instructions:
- Required Replace
<username>
with your username, which will be used to log in to Guacamole - Required Replace
<sha256 hash>
with the sha256 hash generated earlier (step 4)
- Required Replace
-
Check the results
Now you can browse to Cockpit by opening a web browser and going to:
http://localhost:8080/guacamole
. Replace localhost with the relevant IP address or FQDN if needed, and adjust the port if you changed it earlier.Then log in with your username and password. The result:
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.