Main » Articles » Programming » CentOS |
Entries in category: 8 Shown entries: 1-8 |
Sort by: Date · Name · Rating · Comments · Views
CentOS → XMind bug on CentOS
java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED' failed.
The bug is fixing with adding to the XMind.ini the following command:
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
XMind: 6
CentOS: 6.6
The bug is fixing with adding to the XMind.ini the following command:
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
XMind: 6
CentOS: 6.6
CentOS → Centos + Tor + New identity forcing
Out-of-the-box known methods are not working because of a passwod on Vidalia. The password disabling through Control Panel breaks browser connection. The solution is in adding to ../tor-browser_en-US/Data/Vidalia conf file the following string:
AuthenticationMethod=none
AuthenticationMethod=none
CentOS → CentOS/RHES + php tidy 2.0
Sometimes pecl install tidy may not work. Or even yum install php-tidy
Then building from sources might help:
# Download sources
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/
# Configure tidy for installed php5 API
cd tidy
phpize
# Configure & Compile the source
./configure
make clean <-- Without this the compile builds a bad module for some reason
make
make install
Then building from sources might help:
# Download sources
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/
# Configure tidy for installed php5 API
cd tidy
phpize
# Configure & Compile the source
./configure
make clean <-- Without this the compile builds a bad module for some reason
make
make install
CentOS → Centos 6.3 healing missing libs for google chrome
error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory
yum install libXrandr.so.2
error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
yum install libgtk-x11-2.0.so.0
error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
yum install libasound.so.2
error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
yum install libudev.so.0
yum install libXrandr.so.2
error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
yum install libgtk-x11-2.0.so.0
error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
yum install libasound.so.2
error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
yum install libudev.so.0
CentOS → CentOS install firefox 3.6
Follow by good reference
All alerts about missing libraries are healing with
yum install _library name_
ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
All alerts about missing libraries are healing with
yum install _library name_
ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
CentOS → Headless Selenium Grid node
xvfb-run java -jar selenium-server-standalone-2.25.0.jar -role node -hub http://localhost:4444/grid/register & - allows to run a headless Selenium Grid node
To setup a custom Firefox profile at headless server might helps an vnc server. The following example is for CentOS.
vncserver :12 - run an vnc server( do not forget to install it)
export DISPLAY=:12 - make active display where vnc is run
firefox -P - run the Firefox profile manager
When you connect with vnc viewer client to 5012 port you'll see the Firefox profile manager
CentOS → CentOS + Selenium 2 Grid
http://code.google.com/p/selenium/wiki/Grid2 - has a description how to create a hub and nodes for the Selenium 2 Grid
https://raw.github.com/semperos/clj-webdriver/master/script/grid-hub - a very useful script which allows start and stop Selenium Grid hub
https://raw.github.com/semperos/clj-webdriver/master/script/grid-node - script for single Selenium Grid node launching
http://laouini.blogspot.com/2012/01/all-hail-selenium-grid-2.html - an example how to use a configuration file for a Selenium Grid node
http://css.dzone.com/articles/selenium-2-php-code - overview PHP usage with Selenium Grid.
http://grepcode.com/file/repo1.maven.org/maven2/org.seleniumhq.selenium/selenium-server/2.4.0/defaults/GridParameters.properties - Selenium Grid parameters description
http://stackoverflow.com/questions/7328494/selenium2-firefox-use-the-default-profile - an example of usage custom Firefox profile for the Selenium which is based at compressed file.
https://raw.github.com/semperos/clj-webdriver/master/script/grid-hub - a very useful script which allows start and stop Selenium Grid hub
https://raw.github.com/semperos/clj-webdriver/master/script/grid-node - script for single Selenium Grid node launching
http://laouini.blogspot.com/2012/01/all-hail-selenium-grid-2.html - an example how to use a configuration file for a Selenium Grid node
http://css.dzone.com/articles/selenium-2-php-code - overview PHP usage with Selenium Grid.
http://grepcode.com/file/repo1.maven.org/maven2/org.seleniumhq.selenium/selenium-server/2.4.0/defaults/GridParameters.properties - Selenium Grid parameters description
http://stackoverflow.com/questions/7328494/selenium2-firefox-use-the-default-profile - an example of usage custom Firefox profile for the Selenium which is based at compressed file.
CentOS → Selenium Grid + CentOS
Step 1: Verify That JDK 1.5 is Installed
It is important to install JDK from SUN.
Step 2: Install Ant 1.7
With "Could not create task or type of type: replaceregexp" bug might be useful "yum install ant-nodeps"
Step 3: Installing Selenium Grid
3.1 Download the latest version of Selenium Grid from http://selenium-grid.seleniumhq.org/download.html
3.2 Unzip the file into a directory of your choosing (say /usr/local/selenium-grid-1.0). We will refer to the directory where Selenium Grid is installed as "Selenium Grid Home". For instance if you unzipped the distribution within /usr/local/selenium-grid-1.0, your Selenium Grid Home is /usr/local/selenium-grid-1.0.
3.3 Verify the Selenium Grid install: from the terminal window go to the Selenium Grid home directory and run: ant sanity-check
In case "No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" bug "yum install ant-apache-regexp" might helps.
It is important to install JDK from SUN.
Step 2: Install Ant 1.7
With "Could not create task or type of type: replaceregexp" bug might be useful "yum install ant-nodeps"
Step 3: Installing Selenium Grid
3.1 Download the latest version of Selenium Grid from http://selenium-grid.seleniumhq.org/download.html
3.2 Unzip the file into a directory of your choosing (say /usr/local/selenium-grid-1.0). We will refer to the directory where Selenium Grid is installed as "Selenium Grid Home". For instance if you unzipped the distribution within /usr/local/selenium-grid-1.0, your Selenium Grid Home is /usr/local/selenium-grid-1.0.
3.3 Verify the Selenium Grid install: from the terminal window go to the Selenium Grid home directory and run: ant sanity-check
In case "No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" bug "yum install ant-apache-regexp" might helps.