The Great Open Source Debate with Elastic, Gluu and GitHub 🎤 Oct 27

Edit the code with Snaps

I am new to rocket chat, I installed it on AWS Ubuntu 18.04. Install it with Snaps to make the whole process faster. I want to edit the HTML and add new things and I don’t know if it is possible.

Please help.

Update: I have tried the installation in both ways (manual and with snap), with the manual I can edit the code but not with snap.

My question is: is there a way to update it with snap? Because I feel that snap is more secure, that is, because everything is configured without errors.


No. Snaps use a read-only filesystem for the stock files. You can’t update any core files without rebuilding the snap altogether.

Can you please explain in details as to what is it that you want to achieve in the end? What files are you editing and why? Which parts do you want to modify?

I’m asking because maybe there’s a better way to achieve whatever it is that you’re looking for, than editing the core files themselves.

1 Like

Thank you very much for your answer.

What I am looking to edit is the login. I want to create my own page with HTML and JS. I see that snap installs it in the main domain (also the manual installation… only that the manual does allow me to modify the login code).

Potentially you could use some custom css and scripts but likely as not you will need to build your own system.

Make sure you have at least 8Gb - probably more like 12-16Gb

1 Like

Ok, but from your point of view, which is better, snap or manual? I am new to this and I have that question. Because if it’s better snap I use what you say, but if manual is better I don’t have to use it because I can modify the code directly.

If you want simplicity and don’t want to touch anything use a snap.

For general usage and flexibility use docker.

For hacking use manual/own build.

It all depends on what you really want to do.

1 Like

Thank you very much once again for your reply.

I’m going to use manual installation because as I told you I want to modify the login page when creating a new HTML JS page. I have another question and I hope it’s not too much of a hassle.

I see that the HTML that corresponds to the login is in

My question is: all the HTML is compiled there and should I modify it there, or is there another way?

If you want to hack the code you will have to build the development version from source as per the above links.

Try using the gitpod example for testing to start with.

A thousand apologies, but I do not fully understand, can you clarify a little more? Please.

What I understood was that with gitpod I can generate a clean document with HTML, JS and CSS, like the one from Rcokert Chat defautl, and then I compile it again to upload it to my server. I am right?

If you want to alter any core elements you need to build from source one way or another.

Either build on your own machine or use gitpod - here’s a howto on deploying from gitpod.

But Rocket uses React for it’s fronted - it isn’t just as simple as modifying a bit of html or css!

You probably ought to start with gitpod and get to know the code base. It is large and is going take you a while.

1 Like

I wanted to change a few words, but, I see that it can be changed easily with the translation, so this is already solved.

But I have another problem. I want to place a JS code in the home to open a modal with a video .mp4, but, it does not allow me to do it, I think it is because it updates infinitely. Can you tell me how I solve this problem?

Note: I apologize for opening various topics in the forum. As they were not the same case, I opened on different topics in case I could help someone else.