headless

how to add the missing RANDR extension

旧巷老猫 提交于 2019-12-03 05:33:35
问题 I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. 回答1: First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from

Easiest way to unit test SWT and Swing apps in a headless environment?

淺唱寂寞╮ 提交于 2019-12-03 05:28:44
I'm looking to unit test some SWT and Swing code for a project I'm working on and the tests run fine as long as I'm running them from eclipse. As soon as I run them in my hudson environment it fails since hudson runs the tests in headless mode. What's the best way of doing this? Open source solutions only please (since the project is open source). You could run Xvfb (X virtual framebuffer, an X11 server that performs all graphical operations in memory) and this works fine. But there is another solution with Hudson's plugin for Xvnc. Simply install the plugin and check the checkbox in the job

Vagrant up - VBoxManage.exe error: VT-x is not available (VERR_VMX_NO_VMX) code E_FAIL (0x80004005) gui headless

假装没事ソ 提交于 2019-12-03 04:46:04
问题 Machine: Window10 (64bit). I downloaded the latest VirtualBox, Vagrant and initialized CentOS 6.7 64bit image/url. The following worked successfully in Git-Bash session. 1. vagrant box add "centos67x64" "https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box" 2. vagrant init 3. Updated Vagrantfile (and turned vb.gui option i.e. uncommented that config section in the file). config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when

How to enter password in a popup using watir?

送分小仙女□ 提交于 2019-12-03 03:47:43
I'm writing some watir test cases: browser.goto "http://egauge2592.egaug.es/" browser.link(:href,"/settings.html").click browser.text_field(:index,4).set("some text") browser.button(:id,"save_button").click then a 'Authentication Required' dialogue opens, asking for username and password . No matter how I tried, I couldn't access the text fields. I tried send_keys and JavaScript. I also tried Watir.autoit but it says undefined method. I'm using watir on a Ubuntu machine with the FireFox browser. How to fill in username and password fields of that dialogue box? I was able to enter username with

How do I make Python, QT, and Webkit work on a headless server?

旧街凉风 提交于 2019-12-03 00:33:32
I have Debian Linux server that I use for a variety of things. I want it to be able to do some web-scraping jobs I need done regularly. This code can be found here . import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4.QtWebKit import * class Render(QWebPage): def __init__(self, url): self.app = QApplication(sys.argv, False) # Line updated based on mata's answer QWebPage.__init__(self) self.loadFinished.connect(self._loadFinished) self.mainFrame().load(QUrl(url)) self.app.exec_() def _loadFinished(self, result): self.frame = self.mainFrame() self.app.quit() A simple test

Running Selenium headless without using xvfb

筅森魡賤 提交于 2019-12-02 21:09:15
I'm trying to run Selenium headless (without the browser appearing). Other questions have pointed to xvfb as the tool to do this. However, it appears highly unstable, crashing all the time, so I'm looking for another alternative. Is there a non-xvfb way of running Selenium headless? I don't think you'll be able to run a browser without running an X server. If you don't like Xvfb, then as Pascal said, your best bet might be to run a VNC server -- I personally like Xtightvnc . This means you're running a (headless) X server that you can VNC into at any time, in case things go wrong and you want

how to add the missing RANDR extension

你。 提交于 2019-12-02 18:52:42
I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from the command line. It is true that XRandR and Xinerama are mutually exclusive, but in the case of Xvfb there's

Vagrant up - VBoxManage.exe error: VT-x is not available (VERR_VMX_NO_VMX) code E_FAIL (0x80004005) gui headless

喜你入骨 提交于 2019-12-02 17:59:04
Machine: Window10 (64bit). I downloaded the latest VirtualBox, Vagrant and initialized CentOS 6.7 64bit image/url. The following worked successfully in Git-Bash session. 1. vagrant box add "centos67x64" " https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box " 2. vagrant init 3. Updated Vagrantfile (and turned vb.gui option i.e. uncommented that config section in the file). config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = true # Customize the amount of memory on the VM: vb.memory = "2048" end

Vagrant Up Error In Headless Ubuntu: The guest machine entered an invalid state while waiting for it to boot

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 17:56:21
I need to install vagrant in headless ubuntu(Ubuntu 12.04.2 LTS- 64 Bit).Vagrant ver-v1.3.0 and Virtual box- 4.2.18. After adding the vagrant package box, when I am giving "vagrant up" command, am getting the following error: Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Booting VM

Create GraphicsDevice for custom driver

耗尽温柔 提交于 2019-12-02 16:08:07
问题 I'm working on a project using Java in an embedded system. I have drivers for the screen and touch input, and a virtual keyboard for text input. My screen driver has a Graphics2D object you can draw into and a repaint(Rectangle) method for updating. Similarly, the touch driver is capable of generating MouseEvents for listeners. Right now I'm working with drawing directly to the screen. This is fine, but what I really want is to allow the user of my library to create a JFrame and use normal