Configure X11 Forwarding in CentOS/RHEL 6/7/8 and Fedora 28/29

Windows Articles

How to install LibreOffice 7 on Ubuntu 20.04 / Linux Mint 20?

LibreOffice has just released its latest version. And it promises to be a whole new performance experience. In this post, we will...

How to create reminders in Windows 10

Hello! As the days go by, more and more people are spending more time in front of the computer. Indeed, the effects...

How to install Django on Ubuntu 20.04?

Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework...

How to install the Development and build tools on Ubuntu 20.04?

In this very short post, you will learn how to install a series of development and build tools on Ubuntu 20.04. These...

How to set a drive as read-only in Windows 10

Hello! Hard drives are a fundamental element in any operating system. Of course, Windows 10 is no exception. In fact, this is...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

X11 Forwarding will help you to run some GUI applications on a remote Sever. Like Firefox of Oracle installation of configuration and many other X11 apps. i will explain how to configure these settings from Windows Putty Client.

This Tutorials should work on all Centos/RHEL 7 and Fedora 28/29

Step 1: Install Required Packages
install all dependencies needed to run X11 applications

# yum install  xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y


Step 2: Enable X11 Fowarding Settings
This is an option to configure inside your SSHD Deamon settings.

# vim /etc/ssh/sshd_config
X11Forwarding yes

save and exit
Step 3: Restart SSH Service

The SSH service should be restarted to apply the change configuration.

For CentOS/RHEL 7/Fedora 28/29

# systemctl restart sshd

For CentOS/RHEL 6

# service sshd restart

A-Connect From Windows

Now lets try to connect via the most used ssh client PUTTY.

Enable X11 in Putty, before login.

Enable X11

Run below command to test the connection.

Please before to run any command ensure that X11 server is installed on ur windows Desktop for example Xming

 xclock

OR

# xeyes

Issue

  • How do we prevent the following error message when we run the command xclock?
Warning: Missing charsets in String to FontSet conversion
 Warning: Unable to load any usable fontset

Resolution

Set the LC_ALL=C variable. As the user run:

 export LC_ALL=C

To make this setting permanent for user, add it to the .bash_profile of user:
In /home/User/.bash_profile

 LC_ALL=C
export LC_ALL

B-Connect From another Linux

My example is from my Mint Linux . ( Ubuntu Based)

Before to start, please install X11 Server tools x11-xserver-utils and run the commands bellow

$apt-get  install  x11-xserver-utils
$xhost 
$ssh -X osradar@remote-server

now you can run the applications

Please Enjoy and share !!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install LibreOffice 7 on Ubuntu 20.04 / Linux Mint 20?

LibreOffice has just released its latest version. And it promises to be a whole new performance experience. In this post, we will...

How to create reminders in Windows 10

Hello! As the days go by, more and more people are spending more time in front of the computer. Indeed, the effects...

How to install Django on Ubuntu 20.04?

Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework...

How to install the Development and build tools on Ubuntu 20.04?

In this very short post, you will learn how to install a series of development and build tools on Ubuntu 20.04. These...

How to set a drive as read-only in Windows 10

Hello! Hard drives are a fundamental element in any operating system. Of course, Windows 10 is no exception. In fact, this is...