CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As we know Centos has no display and to execute a GUI Application like Firefox display is required. Therefore I have installed Xbfb to configure a virtual display and execute Firefox headless. Also put a shell script in /etc/init.d/ to start the Xvfb at Server start. But when I try to run Firefox getting following error message- Cannot open display localhost:10.0. Any idea?
Xorg and GNOME are installed.
Software used for login - Putty (X11 forwarding enable) and from Ubuntu OS.
Why do i need to execute Firefox remotely- In order to execute the selenium scripts.
As we know Centos has no display and to execute a GUI Application like Firefox display is required. Therefore I have installed Xbfb to configure a virtual display and execute Firefox headless.
That is completely unnecessary. Shut off the virtual frame buffer, don't mess with your DISPLAY environment variable, open a terminal on your Ubuntu machine, ssh into the CentOS machine with "ssh -X", then run whatever GUI applications you want.
The CentOS machine does not need a display to do this (but it does of course need firefox and all of its dependencies to be installed), YOUR MACHINE and YOUR X SERVER are the display for the X applications you launch.
Thanx Timl, ssh -X user@10.1.2.33 firefox it is working fine. Even -no-remote is not required.
Agree with Suicidaleggroll, but suppose we need to execute GUI application on server through Jenkins. Then, is it possible without Xvfb.
I have no experience with Jenkins, but it's exceedingly rare to find a GUI program that does not work with SSH X forwarding. The only time I've ever needed to use a virtual frame buffer was when I needed to launch a program with a GUI splash screen automatically on boot without anybody logging into the machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.