How to: Linux display remote X application over telnet session

Q. How do I display remote X application over telnet session? I am login over VPN so telnet security is not a big issue here. But whenever I login over telnet, system does not allow me to display Gnome X apps remotely.

ADVERTISEMENTS

A. Gnome uses the GDM (GNOME Display Manager) for X Window System. For security reasons it blocks TCP access so you cannot display X applications remotely.

However you can easily fix this problem by editing gdm.conf file (usually located in /etc/X11/gdm directory):
# vi gdm.conf

Find the that read as follows:
DisallowTCP=true
Replace with:
DisallowTCP=false

Save and close the file. Restart the computer or switch runlevel to 1 and again back to 2.
# init 1
Now go back to runlevel 2 (if you are using CentOS/Fedora Core/Red hat go to runlevel 5)
# init 2

Verify that you can display X apps remotely:
$ xeyes -display somewhere.mycorp.com:0.0
$ xeyes -display 10.5.5.1:0.0

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • Sam Oct 1, 2008 @ 13:42

    Vivek does a XManager/ Exceed need to run at somewhere.mycorp.com.

    If so , how would i know the display number

  • Scottsiddharth Nov 20, 2008 @ 11:01

    You can download and install xming from http://www.straightrunning.com/XmingNotes/index.php
    in windows

    Then enable x11 forwarding (check ssh-> x11 forwarding check box)in Putty and you are all set to run remote x applications using putty.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.