Skip to content

Instantly share code, notes, and snippets.

@JonathanBristow
Last active June 14, 2017 16:59
Show Gist options
  • Save JonathanBristow/4ea691431e8112f070ef8a9bb0e8905d to your computer and use it in GitHub Desktop.
Save JonathanBristow/4ea691431e8112f070ef8a9bb0e8905d to your computer and use it in GitHub Desktop.
CentOS Nightmare.JS Install
#!/bin/bash
sudo yum update -y
sudo yum groupinstall "Development Tools" -y
sudo yum -y install gcc git pango pango-devel libXrandr libXrandr-devel libXcursor libXcursor-devel libXcomposite libXcomposite-devel cups libIDL libIDL-devel gtk-doc dbus dbus-devel dbus-glib dbus-glib-devel intltool indent libxml2 libxml2-devel libXi.x86_64 libXi-devel.x86_64 libXtst.x86_64 libXtst-devel.x86_64 alsa-lib.x86_64 alsa-lib-devel.x86_64 xorg-x11-server-Xorg xterm xorg-x11-drv-vesa xorg-x11-drv-evdev xorg-x11-drv-evdev-devel Xvfb
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/atk-1.30.0-1.el6.x86_64.rpm
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/atk-devel-1.30.0-1.el6.x86_64.rpm
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/libXScrnSaver-1.2.2-2.el6.x86_64.rpm
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/ORBit2-2.14.17-6.el6_8.x86_64.rpm
sudo rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/ORBit2-devel-2.14.17-6.el6_8.x86_64.rpm
cd /tmp
wget ftp://ftp.gnome.org/pub/GNOME/sources/GConf/2.32/GConf-2.32.4.tar.bz2
tar -jxvf GConf-2.32.4.tar.bz2
cd GConf-2.32.4
./configure && make
sudo make install
cd /tmp
wget http://ftp.acc.umu.se/pub/gnome/sources/gdk-pixbuf/2.24/gdk-pixbuf-2.24.0.tar.bz2
tar -jxvf gdk-pixbuf-2.24.0.tar.bz2
cd gdk-pixbuf-2.24.0
./configure --without-libtiff --without-libjpeg
make
sudo make install
cd /tmp
wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.0.tar.bz2
tar -jxvf gtk+-2.24.0.tar.bz2
cd gtk+-2.24.0
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
make
sudo make install
cd
curl -sL https://rpm.nodesource.com/setup_7.x | bash -
sudo yum install nodejs -y
@JonathanBristow
Copy link
Author

Testing if all deps are OK
ldd electron | grep 'not found'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment