Raspberry Pi Remote Desktop Connection K40 Laser
First, the required software must be installed on the Raspberry Pi. First, update the Raspery Pi to the latest version.
sudo apt-get update
sudo apt-get upgrade -y
Anschliessend mit dem Befehl
sudo apt-get install xrdp
install the required software. Now the Raspberry Pi is ready for remote desktop access.
To access the K40 Laser Cutter and Encraver modified with a Raspberry Pi4 from a laptop or desktop you need a remote desktop connection.
To connect, simply type Remote Desktop into the Windows search box.
Under Computer you enter the IP address of the Raspberry Pi. If you do not know this, log into your modem, e.g. 192.168.1.1. Under Network Connections you can find all devices with their IP address in the network.
Then press the "Connect" button. The following login screen should now appear.
Here you enter the username of your Raspberry Pi (normally = pi) and the corresponding password under Username. If everything is entered correctly, the desktop of your Raspberrty Pi appears on your laptop or desktop.
Share folders on the Raspberry Pi
In order to access the folder structure of the Raspberry Pi with the laptop or desktop, the Samba software must be installed on the Raspberry Pi.
For this you open the terminal and enter the command sudo apt-get install samba samba-common-bin
Now you have to set a user for samba with "sudo smbpasswd -a pi". This must also exist as a user on your Raspberry Pi. In the following example, we use the user "pi".
Then open the configuration file with sudo nano /etc/samba/smb.conf.
A folder share can look like this
[Laser-Share]
comment = Laser-Share
path=/home/laser_share
writeable=yes
browseable=yes
readonly=yes
Then save CTRL / O and confirm with Enter.
Finally, you only have to restart the service with "sudo /etc/init.d/samba restart".
Connect network drive
Now the folder on the Raspberry can be connected as a network drive on the desktop or laptop.
Open the Explorer. Right-click on the "This PC" icon.
Connect network drive
Select the desired drive letter
For the folder, enter the IP address or the name of the Raspberry PI followed by the folder name.
Now you will be asked for a password, enter the user and password of Samba (not the Raspberry password).
Now your Raspberry folder should be visible in the explorer.
Installing Fonts on the Raspberry Pi
sudo apt-get install ttf-msccorefonts-installer