L2v2 Chapter 04 PowerPoint
L2v2 Chapter 04 PowerPoint
Graphical Desktops
Introduction
● To meet the need for application productivity, many distributions also come
with a graphical user interface (GUI).
● The Gnome desktop and its derivatives are the default desktop for
some of the world’s most popular Linux distributions:
○ Debian
○ Fedora
○ Ubuntu
○ Mint
Desktop Environments
● Gnome is a fully-featured desktop environment which offers
amenities such as:
● Window transparency
● Animation
● Window snapping
Gnome 3
Desktop Environments
● KDE:
● KDE is a wordplay on the UNIX-based CDE (Common Desktop
Environment).
KDE
Desktop Environments
● Xfce:
● Xfce is a lightweight desktop environment.
● Ideal for older computers with less RAM and slower video cards, and
those who value performance.
Desktop Environments
Xfce
Installing the Desktop Environment
● The desktop environment and applications are typically installed together.
● To install the package group for the KDE desktop environment on a Red Hat-
derived distribution:
sysadmin@localhost:~$ sudo apt-get install xserver-xorg kde-standard
Desktop Localization
● A localization package related to the desktop environment can be installed
for different languages.
● The Debian-derived KDE package name for languages follows the form kde-
i18n-locale-code (i.e., Spanish is kde-i18n-sp).
● Xorg was was forked from the X11 project many years ago.
● The graphics will appear on the remote server (not the client).
● To view graphical programs on both remote server and client, use the –X option:
root@localhost:~# ssh -X [email protected]
Using a Remote X Server
● X server allows you to run a GUI-based program on one system and have its
output displayed on another system.
● For example, to permit connections on your local system from two systems:
● one with a resolvable hostname server1
● System name
family:name
2. Make the connection to the remote host with the ssh or telnet command:
root@localhost:~# ssh centos
● After adding above lines to configuration file and restarting the display server, use
netstat or ss command to verify XDMCP is running:
root@localhost:~# ss -tunl | grep 177
udp UNCONN 0 0 0.0.0.0:177 0.0.0.0:*
Virtual Network Computing (VNC)
● VNC is an open source, platform-independent graphical desktop sharing
program
● VNC uses the Remote Frame Buffer protocol to transmit graphics across a
network to a remote host.
● The above command allows for the desktop (of the machine hosting the VNC
server) to be seen and manipulated by the client.
● K Remote Frame Buffer (krfb) and K Remote Desktop Client (krdc) are the
server and client programs.
Virtual Network Computing (VNC)
● K Remote Frame Buffer (krfb)
and K Remote Desktop Client
(krdc) are the server and
client programs.
○ Server: Interfaces to the virtual machine are provided using a virtual device interface (VDI).
○ Protocol: Allows streams to be passed from the guest through the server to the client.
○ Client: Allows users to access a remote system by using a remote viewer (virt-viewer).
Clients that support spice, include:
■ spice-client
■ remmina
■ spice-html5
Remote Desktop Protocol
● RDP is a proprietary protocol developed by Microsoft™ for use with its
Remote Desktop Connection© software included with Windows©.
● To interface with Windows systems, Linux systems can use various clients,
such as rdesktop and xfreerdp.
○ Note: Even if running, the IP address or port may not be open for the xrdp server to listen
for a connection. This could be due to the /etc/xrdp/xrdp.ini file or a firewall rule.
Remote Desktop Protocol
● To ensure that the firewall allows a port through (i.e. TCP port 3389):
root@localhost:~# ufw allow 3389/tcp
● Also, for increased security, limit RDP access to a specific client or subnet of
clients by using the from and to descriptors:
root@localhost:~# ufw allow from 192.168.0.0/24 to any port 3389