Follow by Email

Blog Archive

Search This Blog

Youtube Videos

Featured post

Set up VNC server on Raspberry Pi

Set up VNC server on Raspberry Pi (TightVNCServer) Typically, a VNC server is installed on the Raspberry Pi to remotely control the d...

Recent PostAll the recent news you need to know

Establish connection to graphical user interface via SSH

Establish connection to graphical user interface via SSH

An SSH server can not only provide the command line, but also a graphical user interface that does not necessarily have to look like the one on the remote system.
A display redirection or X-Forwarding can be performed by an SSH server. However, you will not get the current, but your own desktop in this solution.

Task
  • Set up display redirection.
  • Install panel.
  • Connect to the graphical user interface via SSH.
Solution: Set up display redirection
The display redirection is called X-Forwarding. For this to work, the respective SSH server must be configured accordingly. To do this, we open the configuration file:
sudo nano / etc / ssh / sshd_config

There we enter the following line, which should be available by default.
X11 Forwarding yes

Then save and close: Ctrl + O, Return, Ctrl + X.

The SSH server needs to be restarted (only if you have changed the file).
sudo service ssh restart

Solution: install panel
The display redirection is of no help if you do not have a panel (start menu, program bar, ...) that allows you to control the desktop. A panel is a control bar, which can be placed anywhere on the desktop and expanded with many applets and plugins. For example, program starter or battery, network or hard disk monitor.
That's why we first install a panel.
sudo apt-get install lxpanel

Other panels include tint2, fpanel, xfce4-panel, visibility, kicker, barpanel and many more.

Solution: Establish connection via SSH
Then you can enter the following command directly in the SSH client.
ssh -X pi@192.168.1.2 lxpanel

The key parameters are "-X" (large X) for display redirection and "lxpanel" for the panel.
The IP address must be adapted according to your own Raspberry Pi.

Alternative: Remote Desktop via RDP
In the Windows world, VNC is less common. This is called remote desktop support via RDP. If you're working with Windows clients, setting up an RDP server on the Raspberry Pi is a viable alternative to VNC.

Set up XRDP remote desktop on Raspberry Pi

Set up XRDP remote desktop on Raspberry Pi

In Windows, we speak of Remote Desktop Support or Remote Desktop Connection via RDP to serve a remote computer via screen transfer. If you're working with Windows clients, setting up an RDP server on the Raspberry Pi is a viable alternative to VNC. VNC is less common in the Windows world.

With RDP you have to live with the following restrictions:
  • The development of open-source software depends on the RDP protocol development. That means you do not get all the features and flexibility of VNC solutions here.
  • RDP is a security issue over insecure networks because all data is transmitted in plain text. So also entered usernames and passwords.
  • XRDP (the Linux RDP) connects to a separate screen each session. So you can not return to the current screen or to an existing one.
Task
  • Install Remote Desktop Service on the Raspberry Pi.
  • Start RDP session from a Windows client.
Solution: Install Remote Desktop Service
Windows Remote Desktop Service is implemented by the "xrdp" package and must be installed first.
sudo apt-get update

sudo apt-get install xrdp

Whether the Remote Desktop Service has been successfully installed and running can be checked as follows.
sudo systemctl status xrdp

The status information "Loaded: loaded" and "Active: active (running)" show that the service is loaded and automatically started.

Solution: Start the Remote Desktop session on the Windows client
Tested with Windows 10.
To build a remote desktop session, Windows has the Microsoft Terminal Services Client (MSTSC). There are three ways to access this program.
  • Call the client via "Start> Run> mstsc".
  • Via the Explorer by calling "c: \ Windows \ system32 \ mstsc.exe".
  • Search for apps: "apps: mstsc".
After the program has been started enter the IP address of the Raspberry Pi and click on "Connect". Then the connection is established (confirm security question). On the illustrated desktop you then enter username and password of the user on the Raspberry Pi.

Raspberry Pi as a server in continuous operation (24/7)

Raspberry Pi as a server in continuous operation (24/7)
Raspberry Pi as a server in continuous operation (24/7)
For most server tasks, the original Raspberry Pi was completely inappropriate. The problem was its low CPU and I / O speed, as well as the small memory. These three components reduced the possibilities. This has changed with the Raspberry Pi 3 B. Both CPU speed and memory are optimal for typical server tasks. At the same time, the power consumption is so low that it plays no role in continuous operation.

Raspberry Pi and USB LED flashing (1): installation and startup

Raspberry Pi and USB LED flashing (1): installation and startup

Unlike other hardware components, the blink (1) is not plug-and-play hardware, such as a wireless adapter, USB keyboard, or USB stick. The blink (1) has a specific function to set up or program. True, the blink (1) of Raspbian Jessie is detected on the Raspberry Pi. However, it is only possible to control the blink (1) with additional software. The is to be installed later.

Samba on the Raspberry Pi

Samba on the Raspberry Pi
Samba

Samba is a collection of networking tools to provide network resources in a Windows network. These can be shares of directories and printers that Samba provides and regulates client access to the services. Samba is not limited to Windows clients. Just as well Linux and Apple PCs can use the network shares.