I am new to Greasemonkey, and I think it is a extension in firefox. But is there a way I can use it in terminal(virtual machine environment) ? I can install firefox in my virtual machine. But how can I run it?
Related
I just get a VPS on Ionos, in which debian is running.
I use it to run selenium script with python but I would like to control what the script is doing when I get errors. So I would to install an UI and control it with vnc viewer.
Anyone knows if it possible ?
If yes, which ui I can install on my VPS ? and which vncserver package is the the best ?
Thank you
You can "apt install XFCE4" Desktop, then you have a UI.
You can access this desktop from Windows machines when you "apt install XRDP" and login via Remote Desktop.
Dont forget to open RDP Port 3389 in the firewall.
I started ROR development on windows using Ubuntu bash. For now it was going well but when i tried to debug ruby on window using Rubymine it said no ruby SDK specified. How can i access the ruby sdk from ubuntu bash?
In resume: maybe Rubymine is a windows-program which is not aware of the ruby (ROR) environment installed inside the windows10-WSL.
In more detail: before windows10 (with winxp, win7, etc) ubuntu and linux programs could not be installed inside windows. So in those cases, if you needed to use a linux program, you could download virtualbox, create a separate VirtualMAchine, install there your Ubuntu and then inside install the ubuntu programs (Ruby, ROR, etc)
With windows10, there is a new feature called WSL - Windows Subsystem for Linux, which allows a ubuntu system to be installed inside window. It uses some hidden virtualization/conversion to make it transparent for the user, and so any ubunut command can be run from the windows-console, without VirtualBox nor VirtualMachine - its looks as if windows could execute linux programs natively (but its just an ilusion though)
It looks like you installed ROR in the WSL-Ubuntu. And then installed RubyMine on windows. And then Rubymine tried to find the ROR-things in the windows directories but it did not found any. I guess its because Rubymine is not prepared to search within the WSL-Ubuntu for the ROR-things and so fails.
My second guess, is that the easiest solution could be to avoid using WSL-Ubuntu (as other programs wont be ready for it - currently it looks more of an experiment, not a real stable standard). And instead, try to do it all inside a Virtual-Box VirtualMachine, where you install ubuntu, all the programs you want (and they will run fine there), and avoid the WSL-mix. Even if this way requires a bit more work in the start - to prepare the VirtualBox and VM with ubuntu (youtube has many tutorials for this) - it will definitely save you time/headaches in the long-run when you need to install additional library/program/gem for your ROR environment
I have eclipse installed on my windows machine, but I can't seem to use it with bash so I installed eclipse on the bash terminal by using "sudo apt-get install eclipse". It installed fine, but I can't figure out how to launch the eclipse GUI from the linux subsystem so I can use it like the windows version. I tried using Xming and exporting DISPLAY, but that didn't work. Any ideas?
from what i understood from the link below, you require to update .bashrc to direct the GUI display to a X Server process. I installed xMing to run X Server from Windows 10. i also had to install gtk components that allowed me to run sublime text GUI from within WSL.
https://medium.com/#pck/how-to-use-sublime-text-3-from-command-line-with-ubuntu-bash-terminal-in-windows-10-subsystems-for-aa2ad59d088c
hope this helps
IMHO you should not install eclipse by apt but simply get your desired eclipse product from from https://www.eclipse.org/downloads/packages , download and unzip it to your wanted location and just start eclipse.
Reasons:
I do not know any Linux distribution containing a newer eclipse bundled, so you are always having older versions being slower and having less features
You can update your eclipse installation directly inside eclipse Check for updates
You can have multiple installations at same time
If you want to get rid of a eclipse installation just remove the folder and you are done.
But of course you can also use bash directly in Windows with Eclipse.
Please look at
https://stackoverflow.com/a/62724163/2590615 or take a glimpse at You Tube Video about Bash Debugging with Bash Editor eclipse plugin on a Windows 10 machine
PS: I am the maintainer of the mentioned eclipse plugin
I am using Firefox 27 (previously 26) on Ubuntu 12.04 LTS with a Tomcat application with the Selenium stand alone server 2.39 (latest form Maven) including in the application. Everything works fine with Chrome but i would prefer to use Firefox, which cannot work. The Firefox is installed from the standard distributions using xvfb. Again, all the setup is fine as Chrome works, but when i try to use firefox with the following code:
WebDriver webDriver = new FirefoxDriver();
webDriver.get("www.google.com");
When i take a screen shot of the xvfb, i see a window with the following error:
"Your firefox profile cannot be loaded. It may be missing or inaccessible".
The webDriver.get("www.google.com") just hangs and does not ever return.
The same code works fine on my development machine, Mac OSX.
I've tried to downgrade firefox and to no avail, same issue. Anyone have any suggestions?
This seems like an OS problem (read/write permissions or so), rather than a Selenium problem. It seems someone managed to fix it by changing the owner of the Firefox cache folder.
Try executing these commands:
sudo -s
chown -hR $USER:$USER ~/.cache/mozilla
Please take a look at this and let us know if it worked Ubuntu - Firefox profile cannot be loaded after upgrade
I found out the issue. When running in Ubuntu under Tomcat, the Tomcat instance is run with a root user (tomcat7) when installed from the standard distros. The issue was, which was pointed to me by Mourasman's response, was Firefox wants to create a .cache/mozilla directory. This is not possible with a root user. In order to fix this on the Ubuntu machine, I had to run Tomcat as a "real" user on the system with a home directory that allowed Firefox to create the cache directories it wants (even though Selenium gives it its own profile).
I had trouble doing this using the Ubuntu tomcat distro (I know there is a user and group field in /etc/default/tomcat7) but i could never get it to work. When i changed the user, which i'm assuming has to do with permissions, it never did work.
So i ended up downloading the source from Tomcat and starting Tomcat manually.....
Hope this helps anyone else who is trying to use Firefox in Selenium in a Tomcat application.
Thanks Mourasman for the pointer on the .cache directory....
In my env.rb file, I have this:
if ENV["HEADLESS"] == 'true'
require "headless"
#headless = Headless.new
#headless.start
end
This works fine in Ubuntu, but not in OSX. The browser still pops up. What do I need to do to make this work in OSX?
Headless won't hide most OSX applications. This is the intended behaviour. Headless is meant to run graphical applications on a Linux server.
See https://github.com/leonid-shevtsov/headless/issues/31#issuecomment-8933108 for a detailed explanation.
From what I understand the default firefox installation on OSX doesn't use X11 for its rendering. It uses....cocoa?
Macports has an install but I haven't tried it yet. http://www.macports.org/ports.php?by=library&substr=firefox-x11