Git Product home page Git Product logo

Comments (11)

faressoft avatar faressoft commented on May 9, 2024

What is the version of node.js that you use?

node -v

from terminalizer.

jukefr avatar jukefr commented on May 9, 2024

You probably have a very outdated version of Node far past the official current LTS release, which is 8.x.x.

Most (somewhat outdated) distributions won't come with the current version of Node in their repositories, to give an idea, Ubuntu 16.04 currently comes with Nodejs 4.2.6 and support for the ES let and const bindings were added around the start of version 6 of Node.

Same concept probably applies to CentOS.

If you want to get a more up to date version of Node, I suggest you check out https://github.com/nodesource/distributions#rpminstall for an easy installation process.
To give an idea, you might want to do this :

# Remove currently installed node (package can also be called nodejs in case)
sudo rpm -e node
# Get current LTS
curl -sL https://rpm.nodesource.com/setup_8.x | bash -

And what you were trying to do should work.

from terminalizer.

b-yond avatar b-yond commented on May 9, 2024

Hi Kevin,
Thanks for the response. I installed node 10 last week, as node 8 was not available. I then got this error:
Error:
/usr/lib/node_modules/terminalizer/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
Do you have a workaround for this? The only package on CentOS 6.9 with libgtk-3.so in it is Firefox.

from terminalizer.

jukefr avatar jukefr commented on May 9, 2024

The closest pointer I could give you is this http://itvision.altervista.org/compiling-and-installing-gtk3-in-centos6.html
edit: also i'd personally be a bit wary of this source to be honest at the sight of it

Another option would be to upgrade to Centos7 if viable, it comes with gtk3 support (and systemd).

Also may I ask you what desktop environment you are currently running currently ?

from terminalizer.

b-yond avatar b-yond commented on May 9, 2024

I heard about terminalizer through a newsletter email that Twilio sent out, and thought it was pretty awesome. I'm realizing that it requires or assumes that I have a desktop environment. This is a dev server i'm installing terminalizer on. I wanted to use the gifs as short tutorials for my dev team. I have image libraries on our web servers, so I assumed this would render a gif, and I could sent it off to my team via link or even the slack API. Maybe not though. :)

from terminalizer.

jukefr avatar jukefr commented on May 9, 2024

Best alternative I can give without a DE is asciinema, Centos probably has it available in its repositories.
What you can do is record your cast, upload it to the website, then take the link it gives you and append .gif to it.
For instance :
https://asciinema.org/a/170671
becomes
https://asciinema.org/a/170671.gif
And you will be show a page with a docker (so it implies you also have docker installed) command to create a gif of this cast.
The command looks like this (taken from the page above):
docker run --rm -v $PWD:/data asciinema/asciicast2gif https://asciinema.org/a/170671.json demo.gif
It's a nice little trick that works without a DE.

from terminalizer.

b-yond avatar b-yond commented on May 9, 2024

Thanks Kevin, I'll check that out. Appreciate the help!

from terminalizer.

faressoft avatar faressoft commented on May 9, 2024

Yes it doesn't support os without GUI for now. Terminalizer is still under development so there are a lot of enhancements we are doing.

Should I close the issue?

from terminalizer.

b-yond avatar b-yond commented on May 9, 2024

Yes, you can close. Thanks Mohammad. I'll keep an eye out for updates.

from terminalizer.

jukefr avatar jukefr commented on May 9, 2024

@faressoft you might want to add a requirements section to the README to keep people aware.

from terminalizer.

faressoft avatar faressoft commented on May 9, 2024

We are waiting Electron to release the feature that allows us to use it without GUI
electron/electron#228

from terminalizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.