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, 2020 in Linux Administration by akhtar
• 38,260 points
4,479 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, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
2 answers

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

Sorry in advance for any formatting. Check out ...READ MORE

answered Feb 7, 2021 in Linux Administration by anonymous
17,344 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, 2020 in Linux Administration by akhtar
• 38,260 points
1,059 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,220 points
1,159 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,640 points
15,370 views
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,310 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
860 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
1,030 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, 2020 in Linux Administration by MD
• 95,460 points
861 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, 2020 in Linux Administration by MD
• 95,460 points
838 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP