How to run GUI program in SSH server from remote desktop?

0 votes

Hi Guys,

I am working in a project where I created SSH server in one machine and Client in another machine. But when I execute firefox, it runs in client machine. But I want to run firefox in server machine from client machine. How can I do that?

Mar 31 in Linux Administration by akhtar
• 10,330 points
62 views

1 answer to this question.

0 votes

Hi@akhtar,

First you have to configure SSH server in your machine. Now to run GUI program in server from client you have to understand how GUI works in your local system internally

When you run filefox in your Linux system, it connects to your display internally and execute. But when you run filefox from client machine, internally it connects client's display and execute.

So, you have to detach your client display and attach server display. To do that, use below given command.

$ export DISPLAY=:1
$ firefox

Thank You

answered Mar 31 by MD
• 22,520 points

Related Questions In Linux Administration

0 votes
1 answer

How do I use a shell script to SSH in to a remote machine to execute commands?

Your first problem can be solved like ...READ MORE

answered Jun 27, 2019 in Linux Administration by ajs3033
• 7,280 points
399 views
0 votes
1 answer

How to configure SSH server in RHEL/CentOS?

Hi@MD, To configure SSH server to your system, ...READ MORE

answered Mar 30 in Linux Administration by akhtar
• 10,330 points
40 views
0 votes
1 answer

How to take input from user in bash script?

You can use if-else branch to check ...READ MORE

answered Jan 31, 2019 in Linux Administration by Omkar
• 69,060 points
99 views
0 votes
1 answer

How to Unblock SSH and FTP Access to Specific IP in Linux?

Firewalls(most of them) can either Reject or ...READ MORE

answered Jul 16, 2019 in Linux Administration by Archana
• 5,600 points
1,829 views
0 votes
1 answer
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
114 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
77 views
0 votes
1 answer

Create new role - postgresql on ubuntu

If you are logged in as the postgres account, ...READ MORE

answered Mar 22, 2019 in Database by Danny
79 views
0 votes
1 answer

How to set key based authentication in remote machine?

Hi@akhtar, You can set key based authentication in ...READ MORE

answered Apr 1 in Linux Administration by MD
• 22,520 points
30 views
0 votes
1 answer

How to install httpd web server in Linux?

Hi@akhtar, To install httpd web server in CentOS/RHEL ...READ MORE

answered Apr 21 in Linux Administration by MD
• 22,520 points
22 views