headless

Starting vmware in headless mode

半世苍凉 提交于 2019-12-11 04:26:59
问题 I have a centos vm and I was wondering if there is a way to turn that vm into headless mode. I found this information on different site If you want to run a headless VM under VMPlayer simply add the following to your vmware preferences file ($HOME/.vmware/preferences): pref.vmplayer.exit.vmAction = "disconnect" but I couldn't find the $HOME/.vmware/preferences directory. 来源: https://stackoverflow.com/questions/24297088/starting-vmware-in-headless-mode

PhantomJS page.open freezes

拈花ヽ惹草 提交于 2019-12-11 03:13:24
问题 I am trying to open a website using PhantomJS using the Capture example var page = require('webpage').create(); page.open('http://github.com/', function() { page.render('github.png'); phantom.exit(); }); The code works fine on my local machine, using Ubuntu 14.04. But when I run the code on a virtual server, the callback is never called and the script does not exit. The server and my local machine are running the exact same setup. I tried it on 2 different servers on virtualised with VMWare

Using customBuildCallbacks.xml in an Eclipse RCP headless build

我与影子孤独终老i 提交于 2019-12-10 22:42:39
问题 I am trying to add some custom build steps to my headless build process for an Eclipse RCP application. I understand that the recommended way is to provide a customBuildCallbacks.xml file on the plug-in directory, and adding a link to it in the build.properties file. # This property sets the location of the customb Build callback customBuildCallbacks = customBuildCallbacks.xml However, during the build process, this step is ignored. Is there some set-up step I might be missing? 回答1: Actually,

Heroku - Headless Chrome - Connection Refused

浪尽此生 提交于 2019-12-10 19:12:03
问题 I am currently working with the: Heroku Build Pack for headless chrome. https://github.com/heroku/heroku-buildpack-google-chrome/ I'm encountering this infuriating error where my node script (show below) cannot connect to the chrome instance. I get a pretty definitive error being: { Error: connect ECONNREFUSED 127.0.0.1:30555 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)

How to enable an “allow-insecure-localhost” flag in Chrome from selenium?

隐身守侯 提交于 2019-12-10 17:57:32
问题 I want to enable "allow-insecure-localhost" flag from selenium. How I can do it? selenium: 3.12.0, Python:3.6.5 Chrome driver creation code: def create_driver(): options = Options() if sys.platform == "darwin": options.binary_location = '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary' options.add_experimental_option("detach", True) options.add_argument('allow-insecure-localhost') # I tried to be enable, but it does not affect to chrome. if sys.platform == "win32":

Headless webkit for .NET

偶尔善良 提交于 2019-12-10 13:44:22
问题 Do any of you know of a headless webkit wrapper for .NET? I've looked at WebKitDotNet but it does not seem to work in headless mode. 回答1: I remember reading this post form Steve Sanderson some time ago - http://blog.stevensanderson.com/2010/03/30/using-htmlunit-on-net-for-headless-browser-automation/ I should add that I've never tried anything mentioned in the post and I'm not sure how it will work with Webkit but thought it might help 回答2: Take a look at Jasmine Headless Webkit: https:/

Elasticsearch 5.x安装

♀尐吖头ヾ 提交于 2019-12-10 08:24:40
第一步:准备工作 Linux 环境 elasticsearch verison 1: elasticsearch-5.4.0.tar.gz jdk version 1:jdk-8u111-linux-x64.tar.gz 第二步 :jdk 安装 jdk 环境检测 一些开发版的centos会自带jdk,我们一般用自己的jdk,把自带的删除。先看看有没有安装java -version 1、查找他们的安装位置 [root @localhost ~]# rpm -qa | grep java java-1.8.0-openjdk-headless-1.8.0.101-3.b13.el7_2.x86_64 tzdata-java-2016f-1.el7.noarch java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64 javapackages-tools-3.4.1-11.el7.noarch java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.2.el7_2.x86_64 java-1.7.0-openjdk-1.7.0.111-2.6.7.2.el7_2.x86_64 python-javapackages-3.4.1-11.el7.noarch 2、删除全部,noarch文件可以不用删除 [root

Headless environment error in java.awt.Robot class with MAC OS

余生颓废 提交于 2019-12-10 02:26:36
问题 I am trying to capture screen shots in my JavaFX application using Robot class, this is the code which I used in my application: Rectangle screenBounds = new Rectangle(Screen.getPrimary().getBounds().getWidth(), Screen.getPrimary().getBounds().getHeight()); Robot robot = new Robot(); BufferedImage img = robot.createScreenCapture(new java.awt.Rectangle( (int) screenBounds.getX(), (int) screenBounds.getY(), (int) screenBounds.getWidth(), (int) screenBounds.getHeight())); It is working perfectly

starting headless firefox with Xvfb does not work

早过忘川 提交于 2019-12-08 09:23:27
问题 I try to run firefox in headless mode for selenium. $xvfb-run firefox seems to work. I run firefox through selenium so i cannot run xvfb-run directly. So i start Xvfb :1 -screen 0 1024x768x24 & and then set DISPLAY:=1 env DISPLAY:=1 Still when i run firefox i get Error: no display specified I run on centos 6 and firefox 38 ESR. What can be done? 回答1: can you try that? export DISPLAY=:1 回答2: start firefox with --display arg /usr/bin/firefox --display=:1 来源: https://stackoverflow.com/questions

headless build with CDT using .cproject configuration

微笑、不失礼 提交于 2019-12-08 09:00:17
问题 I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use ./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace/ -build App but it don't use the .cproject file to build, how I make for the building process use the .cproject configuration? thanks 回答1: If your project is a makefile project then simply do what Francois said in the comments. If you are looking at trying to build a specific