Skip to content

Blog Bujarra.com

Héctor Herrero's IT Blog

  • Blog
    • Citrix
    • Fortify
    • Home Assistant
    • Microsoft
    • Monitoring
    • Raspberry Pi
    • Several
    • VMware
  • A podcast for IT
  • Open Services IT
    • Services
    • Technologies
    • We
    • Contact
    • Citrix Book
    • Apps
  • Maas
  • News
    • Friend blogs
    • Safety
    • New versions
×

Corporate theme in Apache Guacamole

  • Blog
  • Several
  • 7 de October de 2021
Tagged Apache, Apache Guacamole, Button, Change, Colour
Print Friendly, PDF & Email

In this post we are going to give a beautiful touch to Apache Guacamole, On the one hand we will make it respond as the default site, Go without users having to put the /guacamole; And to top it all off, the usual, put a custom theme on it, close to the user, corporate, with logos, funds, Company Colors…

Well, To remember, In a previous post we already saw How to install Apache Guacamole, además de how to integrate it into Active Directory. A great open-source solution that enables secure remote access to computers over the Internet. Well, As I said, Today it's time to change the subject and make it cool, we will see what to play minimally to leave it fine.

Default Site

So that Apache Guacamole is the default site in our Tomcat. Simply, We will stop Tomcat, rename the app to ROOT and start Guacamole again; In the port 8080 He will answer without /guacamole/

systemctl stop tomcat9 cd /var/lib/tomcat9/webapps/ rm -rf ROOT mv guacamole.war ROOT.war systemctl start tomcat9

But be careful! if we have reverse proxy with Apache, We also modify the /etc/apache2/sites-available/default-ssl.conf file with the following changes:

From:

<Location /guacamole/>

To:

<Location />

From:

ProxyPass http://XXX.XXX.XXX.XXX:8080/guacamole/ flushpackets=on

To:

ProxyPass http://XXX.XXX.XXX.XXX:8080/ flushpackets=on

And from:

ProxyPassReverse http://XXX.XXX.XXX.XXX:8080/guacamole/

To:

ProxyPassReverse http://XXX.XXX.XXX.XXX:8080/

And we restarted Apache:

Systemctl Restart Apache2

Changing the Logo

To change the logo, we simply replace it:

CP logo.png /var/lib/tomcat9/webapps/guacamole/images/guac-tricolor.png

To adapt the logo to the size that best suits us, in /var/lib/tomcat9/webapps/guacamole/guacamole.css within the .login-ui .login-dialog .logo section { Change:

From: To:
width: 3em;
height: 3em;
background-size: 3em 3em;
-moz-background-size: 3em 3em;
-webkit-background-size: 3em 3em;
-khtml-background-size: 3em 3em;
width: 235Px;
height: 55Px;
background-size: 235px 55px;
-moz-background-size: 235px 55px;
-webkit-background-size: 235px 55px;
-khtml-background-size: 235px 55px;

And also in /var/lib/tomcat9/webapps/guacamole/guacamole.min.css within the .login-ui section .login-dialog .logo{

From:

...margin:.5em auto;width:3em;height:3em;background-size:3em 3em;-moz-background-size:3em 3em;-Webkit-B...

To:

...margin:.5em auto;width:235Px;height:55Px;background-size:235px 55px;-moz-background-size:235px 55px;-Webkit-B...

We can change the language and the short description by changing in /var/lib/tomcat9/webapps/guacamole/translations/en.json

From:

"NAME" : "Apache Guacamole",
"NAME" : "English",

To:

"NAME" : "Access to My Computer",
"NAME" : "Spanish",

And we restart Tomcat:

Systemctl Restart tomcat9

Changing the background

To change the background and put an image instead of the default white, in /var/lib/tomcat9/webapps/guacamole/guacamole.min.css; within the div.login-ui section{

From:

background:white;

To:

background-image: URL('RUTA.jpg');background-size:cover;

And also in /var/lib/tomcat9/webapps/guacamole/guacamole.css Inside the div.login-ui section {

From:

background: black;

To:

background-image: URL('RUTA.jpg');
background-size:cover;

Changing the center box

If we feel like modifying the central frame, for example remove the edge and shadow, and make it a shading that looks more elegant, in /var/lib/tomcat9/webapps/ROOT/guacamole.min.css; within the .login-ui section .login-dialog{

Remove:

Border: 1px solid rgba(0, 0, 0, 0.25);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);

Add:

background-color:rgba(0,0,0,0.2);

And the same in /var/lib/tomcat9/webapps/ROOT/guacamole.css Inside the .login-ui section .login-dialog {

Remove:

Border: 1px solid rgba(0, 0, 0, 0.25);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);

Add:

background-color:rgba(0,0,0,0.2);

Username and password field

The username and password field is transparent, we put it white as follows, in /var/lib/tomcat9/webapps/ROOT/guacamole.min.css; within the .login-ui section .login-fields .labeled-field.empty input{

From:

background: transparent;

To:

background: white;

And equally, in /var/lib/tomcat9/webapps/ROOT/guacamole.css Within the .login-ui section .login-fields .labeled-field.empty input {

From:

background: transparent;

To:

background: white;

Button color

And come last, To change the color of the button, each to their own taste, ¡hey!: In /var/lib/tomcat9/webapps/ROOT/guacamole.css in the input section[type=”submit”], button, a.button {

From:

background-color: #3C3C3C;

To:

background-color: #7D0458;

Making the Persistent Change

Something very important and that we have not commented on until now, but the change of the Logo, background and CSS for its size are lost every time the machine restarts, for this, We will make copies of the modified files in /home/guacamole/no_borrar/

cp /var/lib/tomcat9/webapps/ROOT/guacamole.min.css /home/guacamole/no_borrar/ cp /var/lib/tomcat9/webapps/ROOT/guacamole.css /home/guacamole/no_borrar

And with a little script in the cron it will copy every time you boot the logo, bottom, The css… We call it: (and make it executable) /home/guacamole/no_borrar/cambia_tema_guacamole.sh with the following content:

cp /home/guacamole/no_borrar/logo.png /var/lib/tomcat9/webapps/ROOT/images/guac-tricolor.png cp /home/guacamole/no_borrar/guacamole.css /var/lib/tomcat9/webapps/ROOT/guacamole.css cp /home/guacamole/no_borrar/guacamole.min.css /var/lib/tomcat9/webapps/ROOT/guacamole.min.css cp /home/guacamole/no_borrar/en.json /var/lib/tomcat9/webapps/ROOT/translations/en.json systemctl restart tomcat9

And we put it in Cron for example so that every time the machine starts it loads it, with 'crontab -e':

@reboot sleep 30 && /home/guacamole/no_borrar/cambia_tema_guacamole.sh

Well, Behind this badge, or txapa in Bilbao, I hope you have something cool, you have seen that it costs nothing to put a custom theme in Apache Guacamole, That with a Logo, a Fund, Change the color of the button and some more tricks will be totally corporate, so if all our portals are custom, Users will have a greater sense of confidence when entering the sites, The happy bosses…

A hug to tod@s!

Recommended Posts

Ollama, Getting started with local AI
Read
Calendar management with Radicale
Read
RustDesk and RustDesk Web Client
Read
Centreon Audible Alerts with Ollama and Piper AI
Read

Post navigation

Previous post
Next post

Author

by Héctor Herrero 
nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!

 Edit Translation
Author: Héctor Herrero Hermida

Subscribe to news

Loading

Trending

  • Installing Bitwarden
  • FreePBX Installation and Basic Configuration
  • Implementing FSSOs to integrate Fortigate with Active Directory
  • RustDesk and RustDesk Web Client
  • Reading the home water meter with ESPHome and Home Assistant
  • Controlling IR devices from Home Assistant
  • Solar panels with Home Assistant and Huawei
  • Ollama, Getting started with local AI
  • Measuring rain with Home Assistant
  • Implementing Windows LAPS

Most viewed

  • FreePBX Installation and Basic Configuration
  • Reading the home water meter with ESPHome and Home Assistant
  • Ollama, Getting started with local AI
  • Implementing FSSOs to integrate Fortigate with Active Directory
  • Creating our Floorplan or Animated House Plan in Home Assistant
  • Controlling IR devices from Home Assistant
  • Video surveillance system with Frigate and Home Assistant
  • RustDesk and RustDesk Web Client
  • Measuring rain with Home Assistant
  • Adding a timer in Home Assistant

Latest posts

  • Windows metrics with Prometheus and Grafana
  • CO2 sensor with ESPHome and Home Assistant
  • Rules and alerts with ElastAlert 2
  • Deploying NetBox and NetBox-Scanner
  • FortiGate metrics with Prometheus and Grafana
  • Ping metrics with Prometheus and Grafana
  • Deploying Prometheus & Grafana
  • VPN with Citrix NetScaler IV – AlwaysON
  • Monitoring Crowdsec with Centreon
  • VPN with Citrix NetScaler III – Authentication with certificates

Corporate Communications with Synapse

5 de October de 2021

Collecting NetScaler LOGs in Elasticsearch and Visualizing Them in Grafana

13 de October de 2021

Blog Bujarra.com

 

We monitor your infrastructure

 

We can set up a system that will monitor your entire infrastructure and you will know at all times how your business is doing!

​

  • You tell us what you have and we monitor it with a virtual machine in your environment for you.
  • Through several tools you will know the status of your servers and services, obtaining alerts in case of a problem.
  • You can have live maps, to see in real time what's going on and better understand it with network maps, of virtual environments, WAN connections between sites, mail traffic...
  • We can scale this infrastructure monitoring and know the SLA offered by your business or your departments, or suppliers...
  • As there are so many wonderful things, We recommend that you watch the following video where we have explained it in detail!

 

Do Tailor-made training

Windows Server – VMware vSphere – Citrix Virtual Apps & Desktops – Centreon

Deploy apps to any device (mobile, tablet, Corporate PC, Personal PC...) securely and from anywhere.

Centralizing Applications, We get the necessary control of our organization.

Cost savings, since it runs in the Datacenter and it will not be necessary to renew our fleet of equipment ever again!

 

 

 

 

 

 

 

 

 

 

  • Face-to-face or remote.
  • We use our own manuals with How To's and guides in detail.
  • 100% technicians with exercises and laboratories!
  • They are based on our experience, in our day-to-day lives.
  • Talk to us and we will give shape to your idea, We will train your technicians!
  • We don't keep secrets from anyone, Everything we can teach you will be a pleasure for us!

 

We are a consulting firm that cares and pampers

​​

  • We are a leading consulting firm in Information Technology at a national level.
  • We will listen to you, We will be able to talk and understand your needs and propose the best solution and at the best cost, Ask our customers!
  • They, Our dear customers use us as their pillow, and delighted!
  • We have a team fully specialized in IT consulting.
  • When designing any service or project, We will always look out for your satisfaction
  • Our Goal, Your trust!

With quality and added value

  • Analysis & Pre-Consulting
  • Cloud and Cloud Migrations
  • On-Premise Platform Migrations
  • Demos, Pre-production environments & laboratory
  • No service outages
  • We will train you and deliver excellent technical documentation.

​

​¡Let's work together!

  • We are a company that collaborates, with Open Mind, open to listening and working together!
  • We have a wide network of selected partners with whom we actively collaborate.
  • So that you can expand the range of services or training for your customers.

 

Technical support

  • We have that expertise you are looking for to give you a second level of support.
  • We will help you with day-to-day incidents that you cannot solve or take up a lot of time.
  • We have a CAU that can surely help you!
  • We work comfortably with time bags so that you can optimize your budgets.

Preventive control

  • We deploy a 'black box' in your environment that will monitor the status of your servers.
  • You will be able to access and know the status of your environment in real time with advanced metrics.
  • You will have personalized maps that will demonstrate how well controlled we have the environment. Ideal to put on a TV in your apartment!
  • We will be able to maintain your environment if you wish and take care of any incidents that may affect your business.
  • You will know at all times the SLA that your infrastructure is offering to your company.

 

Do Tailor-made training

Windows Server – VMware vSphere – Citrix Virtual Apps & Desktops – Centreon

 

  • Face-to-face or remote.
  • We use our own manuals with How To's and guides in detail.
  • 100% technicians with exercises and laboratories!
  • They are based on our experience, in our day-to-day lives.
  • Talk to us and we will give shape to your idea, We will train your technicians!
  • We don't keep secrets from anyone, Everything we can teach you will be a pleasure for us!

 

We perform the following services

  • Preventive audits on your IT infrastructure
  • We monitor and give you operational visibility.
  • Business Email Systems
  • Analysis and execution of contingency plans
  • Implementation and improvements of security systems
  • Server Virtualization
  • Application virtualization and Desks

Our differential

  • Closeness and honesty
  • Open source solutions and leading manufacturers
  • Migrations without impact
  • Second-level consulting and support
  • Mobile Device Management
  • Centralization of users
  • Our Principles: Security and best practices