Open Firefox on Ubuntu Server accessed via Git Bash SSH on Win7 - ubuntu-server

I am currently trying to open Mozilla Firefox on a Ubuntu Server. I am accessing this server via SSH on the Windows 7 Git Bash. I have installed it and when I run firefox, it displays:
Error: no DISPLAY environment variable specified.
How can I fix this problem?

Related

Running 2 firefox instance on a Linux machine using same user account but display on remote Xming servers on 2 Windows separately

I have a Linux machine and 2 Windows desktop. The 2 Windows have Xming installed. I tried to use SSH and remotely run firefox on Windows. But I find second Firefox will also open on the Windows which run the first Firefox. Anyway to force Firefox open on the Windows running the SSH? Thanks.

How access and execute commands in Windows machine (Public IP) from Linux terminal (Public IP)

I have following machines available in my center and both has public access
192.100.0.1 (This runs in Ubuntu 18)
192.100.0.2 (This runs in Windows server 2016)
And I am trying to do following actions from Ubuntu machine to Windows machine using terminal
Copy file from /var/lib/proceed/sample.jar to C:Users/usertest/Documents // This is done Edited question
Then, I want to access windows terminal from my Ubuntu terminal and execute windows command, as below
cd C:\Users\plenty\test
java -jar sample.jar
Edit : I have done with copy the file as follows,
sshpass -p 'password' scp /var/lib/proceed/sample.jar usertest#192.100.0.2:C:/Users/usertest/Documents
Installed OpenSSH in windows server to communicate from Ubuntu.
How to execute windows commands from Ubuntu terminal?

How can I open a x-window application on a remote machine and make that window shown in my local machine

I have a remote server running Linux and I am using macOS. I can connect to that server through ssh command. I noticed that ssh -X is used to enable X11 forwarding. So I tried to connect to that server by running ssh -X name#ip-address command and launched an application on the connection terminal. I expect that window should be shown on my macOS but it didn't. Is there any other configuration I need to set in other to make the X11 forward works?
Macs don't run their GUI in X. You need to install XQuartz first.

Cannot open Google Chromium on my windows from Ubuntu on Mobaxterm

I have Ubuntu server where Google Chrome is installed. I am able to access that server using SSH from my Windows machine via Mobaxterm. I need to open Google Chromium on my machine which will open Ubuntu web page from Apache like http://localhost:8080 on my windows Chromium. Getting below error:
ERROR:browser_main_loop.cc(261)] Gtk: cannot open display:
How can I resolve this?
Execute the following command before opening chromium browser on your mobaxterm
export DISPLAY=your_ipaddress:0.0
For Ex:-
Let us consider ip address as 192.168.0.1, then your command should be:
export DISPLAY=192.168.0.1:0.0

XQuartz error on ssh connection

I'm connected to a remote Linux server via ssh, and I'm trying to execute ImageMagick's display command. I know that the problem is probably not on the server side, because when I connect from different machines I don't get the same problem. And I installed XQuartz on my local machine as well as connected using the ssh tags -Y and -X (neither fix the problem) and I'm still getting the following error. My computer is a MacBook Pro running El Capitan. Any idea?
display: unable to open X server `' # error/display.c/DisplayImageCommand/426.
Thanks!
I think the trick is to start XQuartz in the background on your Mac before you do anything and allow remote machines to connect.
So, on your Mac, in Terminal, start XQuartz:
X &
Now right-click the XQuartz icon in your Dock and click:
Applications -> Terminal
and in the Terminal that appears, type:
xhost +
Later, when you have it working, tighten up the security on the xhost command by being a bit more specific with IP addresses.

Resources