How to install Firefox on a VPS through command line? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I need to make use of Firefox for web scraping. I am using WWW::Mechanize::Firefox. So I will need to install Firefox and Mozrepl however I am installing on a vps that does not have a GUI desktop environment and I am running into problems that Firefox requires a GUI/graphics driver.
The perl script will be run with a cronjob.
How can I do this?

From the documentation (WWW::Mechanize::Firefox::FAQ):
Do I Need An X Session To Run Firefox?
Yes.
If you run a unixish operating system, like OSX or Ubuntu or some
other Linux distribution, then Firefox will connect to your X server
and display a window there. If you do not want Firefox to actually
display on your monitor, many people have had success by running
Firefox on another X server separate from the main X server, like
Xvfb.
Personally, I would prefer to have a "headless Firefox" that does not
need a windowing environment. So far, I am unaware of this actually
existing.
So yes, you need to have an X session available.
Enable XForwarding, with ssh, so you can view the remote GUI desktop on your local machine. Then install Firefox via package management, then install MozRepel within Firefox. Once this is done ensure the MozRepel plugin is enabeled. Then use cpan to install the rest:
cpan WWW::Mechanize::Firefox

Related

How to invoke firefox on windows through SSH from Linux machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am running selenium scripts on a windows machine.I have my scheduler algorithm in linux machine .My scheduler copies the files from jenkins to windows and will trigger test automation on windows machine.As part of automation firefox process is getting created on windows machine and the process is terminated instantly without opening the browser.My question is how to keep the firefox process keep alive and firefox window open for the entire duration of test run .
Check if you have firefox version 47 installed, it is not supported currently. In future, you will need to install marionette/gecko driver. It similar to chrome driver and it developed by Mozilla.
For now, you can downgrade to version 46 if the problem is because of firefox version.

X Windows Server system on a console only based server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Newbie to stack overflow and am experimenting with running an X Server so my colleagues and I can access our Linux GUI applications from windows machines.
I know all about XMing and other utils but my question isn't on the MS Windows side, it's on the Linux host machine. You see right now the linux boxes all have GUI's installed (CentOS and Ubuntu) with the configs to access via Xming or any other SSH X forwarding client.
My question is can I just setup the server to run the x system in the background without having to install a GUI? Did some research and can't really figure it out as I'm not an X Windows guru.
Thanks for everyone's help.
cmillo
There is no need to have a full X server running or installed on the same system that is running X clients; only the libraries required for implementation of the protocol are required, and the system's package manager will handle installing those.

Remote desktop for Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I come from a Windows background and have been using Remote Desktop to view a remote server's desktop on my local machine. Remote desktop is probably the most popular tool for doing this because it's already part of the OS. Is there a similar tool for Windows but for accessing a Linux machine instead?
Try VNC. It works on Mac and Linux. You need to be running the server portion on the Linux host.
Take a look at xrdp. According to project description you can even use your native Windows client to access Linux desktop:
The goal of this project is to provide a fully functional Linux
terminal server, capable of accepting connections from rdesktop,
freerdp, and Microsoft's own terminal server / remote desktop clients.
try TeamViewer you can download it from
http://www.teamviewer.com/en/download/linux.aspx

SSH into Linux and Open GUI [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
So i know how to SSH into a box and create/modify directories etc. However I do want to know how I can open the exact GUI (For instance I want the Fedora environment that I have on my virtual machine) to open up. Meaning I need to be able to simply see my linux environment. Would anyone know how I can achieve this?
I am using a mac.
I'm presuming you want to see the gui you are running on the vm, which won't really help you here. You have a couple of options:
If you are running linux (or an X server like xceed) on the machine you are actually using, then you can enable X forwarding in ssh (-X on the command line) and then run your window manager from there.
Alternatively, you could look at installing a vnc server on your linux machine (I'd recommend tightvnc) and your host and connecting that way.
Either way this would be getting you a fresh desktop rather than what is visible on the console of the machine.
For the specific case of a virtual machine, as you mentioned, both vmware and virtualbox (I'm guessing you are using one of those) provide either vnc or rdesktop head support; you can then use either a vnc client or windows remote desktop client to connect to the actual console. In this instance this is probably what you want to do.
Set up a VNC server on your Linux machine, it can provide you with a desktop environment.

Unix Editors to run and test ssh commands [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am new to the world of Unix and would like to install some type of editor to run Unix ssh commands on my windows PC. If that is not possible then how can i go about practicing Unix commands? I would be making directories and storing data in them if that helps.
From what I am reading you want to practice working in a unix command line on your windows PC. Is this correct?
If so I might recommend you check out cygwin.
ref: http://www.cygwin.com/
cygwin can install on a windows machine and provide you with an emulated linux shell. you can do pretty much anything basic you can do in linux in cygwin.
I would recommend two things which will enable you to use ssh:
1) If you want to keep on using Windows but have a remote machine on which you could login via ssh I recommend PUTTY.
2) You can set up a virtual machine using e.g. VirtualBOX.
I think, running a Linux VM on virtualbox is a better choice. You have a complete system to play with.

Resources