XulRunner Not Compatible With SlimerJS on EC2 - firefox

I'm trying to get SlimerJS up and running on my EC2 instance. I'm using an Ubuntu 12.04 LTS image. I installed firefox 41.0.1 and slimerjs 0.10.0pre. I have this working locally under pretty much identical circumstances. But when I try to launch this on the instance, I'm running into the error:
Gecko error: it seems /home/ubuntu/slimerjs-0.10.0pre/xulrunner/xulrunner is not compatible with SlimerJS. See Gecko version compatibility.
In the application.ini file, it says:
[Gecko]
MinVersion=17.0.0
MaxVersion=41.*
Which I seem to be satisfying. I can't figure out how to do this.

Related

How can I get MacOS to run the VTK window over ssh

I am trying to open a VTK render on a local machine through ssh. I am using pyvista to make the render, which is being run from a python script on a remote machine.
Local machine (where I want to see the render): MacOS Catalina 10.15
Remote machine: Ubuntu 18.04
To run the script I first ssh into the remote machine and then run, i.e.
ssh -Y <username>#remotehost.com
python script.py
However when I run this I get the following error:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR:root:GL version 2.1 with the gpu_shader4 extension is not supported by your
graphics driver but is required for the new OpenGL rendering backend. Please update
your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5
or later and make sure your driver in Mesa supports OpenGL 3.2.
[1] 21692 segmentation fault (core dumped) python script.py
Based on several posts online I have tried the following setting:
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
On MacOS I have installed mesa==20.0.2 and mesalib-glw==8.0.0
The issue appears to be that MacOS is using OpenGL==2.1, but should instead be using version 3.2+. This is confirmed with I run:
$ glxinfo|grep OpenGL
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon Pro 560X OpenGL Engine
OpenGL version string: 2.1 ATI-3.8.24
OpenGL shading language version string: 1.20
OpenGL extensions:
How can I get MacOS to run the VTK window over ssh? I The script runs fine if I run it locally. Also, it runs fine if I run it on the remote only. It's only when I try to run it remotely and view in locally I have this issue. Is it a matter of either changing the default OpenGL version or upgrading somehow?
I solved this using VirtualGL.
VirtualGL server works for Ubuntu 18.04 and VirtualGL client for MacOS Catalina (10.15.4).

Version error when installing docker toolbox on OSX

I'm new to docker and have been following the guide, trying to install the toolbox version v1.10.0-rc1. All seems to have gone well until I try the hello-world example and then I get:
Error response from daemon: client is newer than server (client API
version: 1.22, server API version: 1.21)
I see there is much online about similar errors, however all attempts so far have failed, and being unfamiliar with docker, the suggested solutions are somewhat cryptic.
Has any had a similar issue and found a solution?
Many thanks
Docker tool box is being used in old mac and or windows system.
today there are differnt approaches to install docker on your mac.
In case your mac isn't that old try install it from here

Selenium 2.39 Standalone with Firefox 27/26 Not Starting Ubuntu 12.04 LTS

I am using Firefox 27 (previously 26) on Ubuntu 12.04 LTS with a Tomcat application with the Selenium stand alone server 2.39 (latest form Maven) including in the application. Everything works fine with Chrome but i would prefer to use Firefox, which cannot work. The Firefox is installed from the standard distributions using xvfb. Again, all the setup is fine as Chrome works, but when i try to use firefox with the following code:
WebDriver webDriver = new FirefoxDriver();
webDriver.get("www.google.com");
When i take a screen shot of the xvfb, i see a window with the following error:
"Your firefox profile cannot be loaded. It may be missing or inaccessible".
The webDriver.get("www.google.com") just hangs and does not ever return.
The same code works fine on my development machine, Mac OSX.
I've tried to downgrade firefox and to no avail, same issue. Anyone have any suggestions?
This seems like an OS problem (read/write permissions or so), rather than a Selenium problem. It seems someone managed to fix it by changing the owner of the Firefox cache folder.
Try executing these commands:
sudo -s
chown -hR $USER:$USER ~/.cache/mozilla
Please take a look at this and let us know if it worked Ubuntu - Firefox profile cannot be loaded after upgrade
I found out the issue. When running in Ubuntu under Tomcat, the Tomcat instance is run with a root user (tomcat7) when installed from the standard distros. The issue was, which was pointed to me by Mourasman's response, was Firefox wants to create a .cache/mozilla directory. This is not possible with a root user. In order to fix this on the Ubuntu machine, I had to run Tomcat as a "real" user on the system with a home directory that allowed Firefox to create the cache directories it wants (even though Selenium gives it its own profile).
I had trouble doing this using the Ubuntu tomcat distro (I know there is a user and group field in /etc/default/tomcat7) but i could never get it to work. When i changed the user, which i'm assuming has to do with permissions, it never did work.
So i ended up downloading the source from Tomcat and starting Tomcat manually.....
Hope this helps anyone else who is trying to use Firefox in Selenium in a Tomcat application.
Thanks Mourasman for the pointer on the .cache directory....

Install headless Ubuntu server to VirtualBox on windows

I have recently started using VirtualBox to get my Linux environment rather than fully using Ubuntu. For me this works well. But recently i have realized that in the Ubuntu vm the only thing I use a lot is the terminal, mostly just because I need the Linux environment and not the full desktop.
So I tried installing Ubuntu server into a VM, which worked. But as soon as I reboot the machine, it fails after the system boot logo. After BIOS and where I would log on from the command line I simply get a black screen with a non blinking cursor. So I am never fully able to boot into the vbox.
I read up on the command line version, trying to run it headless and then connecting to it from demote desktop. after starting the vbox I am able to connect to the desktop and see the grub screen but after selecting Ubuntu I get that same non-blinking cursor.
So is this really possible? I tried cygwin but it never really felt adequate to me. I like and am very comfortable with the Ubuntu/Debian command line. How could I (if possible) accomplish this? I want to be bale to start up the VBox and get the full command line for that vbox session. Any ideas?
Ubuntu version: 10.10, VirtualBox v. 4.0.4 r70112 and I am on Windows 7 Ultimate.
You didn't mention the versions of Ubuntu and Virtualbox.
I failed twice to install full Ubuntu 10.10 over the latest VirtualBox 4.0.4 over Ubuntu (problems like those you describe), so I switched to Debian 6.0.
All you require to install Ubuntu headless is to install the server version, which you already did. If you get blank screens, tweak the ioapic settings in both VB and Ubuntu. Another tweak is to switch between IDE and SATA drivers for the main disk (the Grub in my non-virtualized Ubuntu hangs if there's USB media attached at boot time).
If you can run full Ubuntu on a VM, you can try downgrading it by removing the xserver-xorg package, or changing the default runlevel.
If all you want is a Linux consule, you can install Debian 6 without any GUI components.

How to install couchDB on a media temple server?

The biggest issues im running into starting a project with CouchDB is the nightmare involved in getting it up and running.
Any tips for getting couchDB up on a media temple server or any server really?
I am not entirely sure what a media template server is but I think it is a pretty standard Linux server (centos?). The best option at the moment is to compile CouchDB from the latest source in SVN.
You will need to log onto your server using ssh then follow the instructions at:
http://wiki.apache.org/couchdb/Installing_on_RHEL5
I know this says it is for RHEL5 but will work exactly the same for a recent version of Centos. If you need instructions for a different os try:
http://wiki.apache.org/couchdb/Installation
The "Install" link above does not work anymore.
However - successfully installed CouchDB on MediaTemple and 1und1 following step1 here:
http://www.thegeekstuff.com/2012/06/install-couch-db/
When you are in a virtual host environment:
Make sure you provide the path to your vhost in /etc/couchdb/local.ini
It is described in the .ini file.
MediaTemple uses a modified version of CentOS. But don't try the official RHEL documentation to install - It is broken because the Spidermonkey libs wont work.
Try this. I just intalled Couch on MediaTemple 10 minutes ago -
Install CouchDB on CentOS

Resources