80 lines
3.5 KiB
TeX
80 lines
3.5 KiB
TeX
\section{Kasmvnc}
|
|
\subsection{Allgemein}
|
|
\begin{justify}
|
|
Bei {\ttfamily Kasmvnc} handelt es sich um einen VNC Server, wo man sich den Desktop oder Programm in einem Browser aufrufen kann. Informationen über Kasmvnc gibt es auf der Hersteller Webseite \url{https://www.kasmweb.com/kasmvnc}.
|
|
% Installation
|
|
\subsubsection{Installation}
|
|
Das Paket liegt den meisten Distributionen f"ur die Installation bereit. F"ur Arch Linux und deren Derivate wird das Paket aus dem AUR installiert.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Installation]
|
|
uws@tux>sudo pacman -S kasmvnc
|
|
\end{lstlisting}
|
|
Wurde der xorgxrdp-nvidia installiert, so muss im Abschnitt [Xorg] der Datei /etc/xrdp/sesman.ini der Wert param=xrdp/xorg.conf nach param=xrdp/xorg\_nvidia.conf ge"andert werden.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=sesman.ini]
|
|
uws@tux>grep -i "xorg_nvidia" /etc/xrdp/sesman.ini
|
|
param=xrdp/xorg_nvidia.conf
|
|
\end{lstlisting}
|
|
Nun muss der Dienst noch gestartet und eingerichtet werden.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Dienste]
|
|
uws@tux>sudo systemctl start xrdp
|
|
|
|
uws@tux>sudo systemctl start xrdp-sesman
|
|
|
|
uws@tux>sudo systemctl enable xrdp
|
|
|
|
uws@tux>sudo systemctl enable xrdp-sesman
|
|
\end{lstlisting}
|
|
% Konfiguration
|
|
\subsubsection{Konfiguration}
|
|
In der Datei \$HOME/.xinitrc muss die folgende Zeile abge"andert werden.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=xinitrc]
|
|
uws@tux>grep "local dbus" .xinitrc
|
|
#local dbus_args=(--sh-syntax --exit-with-session)
|
|
local dbus_args=(--sh-syntax)
|
|
\end{lstlisting}
|
|
Und zum Schluss muss die Datei {\ttfamily /etc/X11/Xwrapper.config} angelegt werden. In dieser Datei wird dann folgende Zeile eingetragen.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Xwrapper.config]
|
|
uws@tux>cat /etc/X11/Xwrapper.config
|
|
allowed_users=anybody
|
|
\end{lstlisting}
|
|
% Troubleshooting
|
|
\subsubsection{Troubleshooting}
|
|
Kommt beim installieren der Pakete zu folgender Fehlermeldung:\\
|
|
{\ttfamily Cannot find the strip binary}\\
|
|
so fehlen die base-devel Pakete.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Install base-devel]
|
|
uws@tux>sudo pacman -S base-devel
|
|
\end{lstlisting}
|
|
%--------------------------------------------------------------------------------
|
|
% Subsection: RDP Debian
|
|
%--------------------------------------------------------------------------------
|
|
\subsection{RDP - Debian}
|
|
Auch unter Debian kann man mit {\ttfamily xrdp} eine Remote Desktop Verbindung bereitstellen. Hierbei ist xrdp und tigervncserver zu installieren.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Installation]
|
|
uws@tux>sudo apt install --yes tigervncserver xrdp
|
|
|
|
uws@tux>sudo systemctl enable xrdp
|
|
uws@tux>sudo systemctl start xrdp
|
|
\end{lstlisting}
|
|
%--------------------------------------------------------------------------------
|
|
% Subsection: RDP over SSH
|
|
%--------------------------------------------------------------------------------
|
|
\subsection{RDP mit ssh}
|
|
Auch mit einer SSH-Verbindung kann man eine RDP Verbindung auf machen. Hierzu wird ein Port Mapping gemacht. Nach erfolgreichem Aufbau der Verbindung mit ssh kann eine RDP Verbindung gemacht werden. Hierbei wird als Ziel localhost:63389 eingetragen.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=RDP über ssh]
|
|
uws@tux># -f -> optional, Verbindung läuft im Hintergrund
|
|
uws@tux># -p -> Port Remote
|
|
uws@tux># -L -> Port mapping <LocalPort>:<PcName>:<RemotePort>
|
|
uws@tux># -N -> Keine Ausführung eines Commands auf Remote System
|
|
|
|
uws@tux>ssh [-f] uws@<NameZiel> -p 60022 -L 63389:<PcName>:3389 -N
|
|
\end{lstlisting}
|
|
\end{justify}
|