Browse Source

Update 'README.md'

天问 8 months ago
parent
commit
a89815b76c
1 changed files with 48 additions and 1 deletions
  1. 48 1
      README.md

+ 48 - 1
README.md

@@ -8,6 +8,7 @@ Open source virtual / remote desktop infrastructure for everyone! The open sourc
 包含服务端和client
 
 **pc 客户端**,Desktop versions use Sciter for GUI
+
 ```
 git clone https://github.com/microsoft/vcpkg
 cd vcpkg
@@ -74,6 +75,52 @@ UDP ( 21116 )
 
 其中hbbs侦听 21115 (TCP)、21116 (TCP/UDP) 和 21118 (TCP),hbbr侦听 21117 (TCP) 和 21119 (TCP)
 
+先安装依赖:
+
+```
+sudo apt install -y zip 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 make \
+        libclang-dev ninja-build libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
+
+# 或者yum
+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
+
+# 安装vcpkg
+git clone https://github.com/microsoft/vcpkg
+cd vcpkg
+git checkout 2023.04.15
+cd ..
+vcpkg/bootstrap-vcpkg.sh
+export VCPKG_ROOT=$HOME/vcpkg
+vcpkg/vcpkg install libvpx libyuv opus aom
+```
+
+
+
+源码编译:
+
+```
+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
+VCPKG_ROOT=$HOME/vcpkg cargo run
+```
+
+
+
+编译环境很多,为此可以基于Ubuntu打包一个开发容器来快速编译:
+
+```
+docker run --rm -it -v $PWD:/home/user/rustdesk -v rustdesk-git-cache:/home/user/.cargo/git -v rustdesk-registry-cache:/home/user/.cargo/registry -e PUID="$(id -u)" -e PGID="$(id -g)" rustdesk-builder
+
+```
+
+
+
 
 
 服务器配置: 2核4G内内存
@@ -146,4 +193,4 @@ docker logs -f hbbs
 
 ```
 
-然后在客户端配置服务器地址和Key
+然后在客户端配置服务器地址和Key