2023-03-02 11:39:42 +01:00
---
title: Linux
weight: 10
---
## Afhankelijkheden
2023-03-16 10:32:10 +01:00
Desktop versies gebruiken [sciter ](https://sciter.com/ ) voor GUI, download dan zelf de sciter dynamische bibliotheek.
2023-03-02 11:39:42 +01:00
[Windows ](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x64/sciter.dll ) |
[Linux ](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so ) |
[MacOS ](https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.osx/libsciter.dylib )
## Ruwe build stappen
- Bereid uw Rust ontwikkelomgeving en C++ build omgeving voor
- Installeer [vcpkg ](https://github.com/microsoft/vcpkg ), en stel `VCPKG_ROOT` omgevingsvariabele correct
2023-05-21 12:56:24 +02:00
- Windows: vcpkg installeer libvpx:x64-windows-static libyuv:x64-windows-static opus:x64-windows-static aom:x64-windows-static
2024-01-07 11:25:42 +01:00
- Linux/MacOS: vcpkg install
2023-03-02 11:39:42 +01:00
- run `cargo run`
## Build op Linux
### Ubuntu 18 (Debian 10)
```sh
sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake
```
### Fedora 28 (CentOS 8)
```sh
sudo yum -y install gcc-c++ git curl wget nasm yasm gcc gtk3-devel clang libxcb-devel libxdo-devel libXfixes-devel pulseaudio-libs-devel cmake alsa-lib-devel
```
### Arch (Manjaro)
```sh
sudo pacman -Syu --needed unzip git cmake gcc curl wget yasm nasm zip make pkg-config clang gtk3 xdotool libxcb libxfixes alsa-lib pulseaudio
```
2023-03-16 10:39:46 +01:00
### Installeer vcpkg
2023-03-02 11:39:42 +01:00
```sh
git clone https://github.com/microsoft/vcpkg
cd vcpkg
2024-01-07 11:25:42 +01:00
git checkout 2023.10.19
2023-03-02 11:39:42 +01:00
cd ..
vcpkg/bootstrap-vcpkg.sh
2024-01-07 11:25:42 +01:00
export VCPKG_ROOT=$PWD/vcpkg
vcpkg/vcpkg install --x-install-root="$VCPKG_ROOT/installed"
2023-03-02 11:39:42 +01:00
```
2023-03-16 10:39:46 +01:00
### Herstel libvpx (Voor Fedora)
2023-03-02 11:39:42 +01:00
```sh
cd vcpkg/buildtrees/libvpx/src
cd *
./configure
sed -i 's/CFLAGS+=-I/CFLAGS+=-fPIC -I/g' Makefile
sed -i 's/CXXFLAGS+=-I/CXXFLAGS+=-fPIC -I/g' Makefile
make
2024-01-07 11:25:42 +01:00
cp libvpx.a $VCPKG_ROOT/installed/x64-linux/lib/
2023-03-02 11:39:42 +01:00
cd
```
### Build
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
git clone https://github.com/rustdesk/rustdesk
cd rustdesk
mkdir -p target/debug
wget https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
mv libsciter-gtk.so target/debug
2024-01-07 11:25:42 +01:00
# Note: VCPKG_ROOT still set
cargo run
2023-03-02 11:39:42 +01:00
```
2023-03-16 10:39:46 +01:00
### Verander Wayland in X11 (Xorg)
2023-03-02 11:39:42 +01:00
2023-03-16 10:39:46 +01:00
RustDesk ondersteunt Wayland niet. Controleer [dit ](https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/ ) om Xorg te configureren als de standaard GNOME sessie.