mynote/linux/freerdp.md
2020-12-21 10:40:31 +08:00

64 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# install freerpd.md
## v2.0
```bash
git clone https://github.com/FreeRDP/FreeRDP.git
git checkout origin/stable-2.0 -b 2.0
cd FreeRDP
sudo apt install cmake ninja-build build-essential debhelper cdbs dpkg-dev autotools-dev cmake pkg-config xmlto libssl-dev docbook-xsl xsltproc libxkbfile-dev libx11-dev libwayland-dev libxrandr-dev libxi-dev libxrender-dev libxext-dev libxinerama-dev libxfixes-dev libxcursor-dev libxv-dev libxdamage-dev libxtst-dev libcups2-dev libpcsclite-dev libasound2-dev libpulse-dev libjpeg-dev libgsm1-dev libusb-1.0-0-dev libudev-dev libdbus-glib-1-dev uuid-dev libxml2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libfaad-dev libfaac-dev libavutil-dev libavcodec-dev libavresample-dev
cmake -DWITH_ALSA=ON -DWITH_OPENH264=ON -DWITH_FFMPEG=ON -DWITH_JPEG=ON -DWITH_X264=ON --build .
cmake --build . --target install
# test
xfreerdp /video /size:1067x600 /gfx-h264:AVC444 +gfc-thin-client +multitransport /gdi:hw /multimedia:sys:alsa,decoder:ffmpeg /network:auto /cert-ignore -decorations /dynamic-resolution /window-position:8x240 /v:10.69.136.109 /u:admin /p:Pride1952
xfreerdp /video /size:1067x600 /gfx-h264:AVC444 +gfx-thin-client +multitransport /gdi:hw /network:auto /cert-ignore -decorations /nsc /dynamic-resolution /window-position:0x0 /v:10.69.136.109 /u:admin /p:Pride1952
# 卸载
sudo xargs rm < install_manifest.txt
# 编译 openh264
git clone https://github.com/cisco/openh264.git
cd openh264/
sudo apt install nasm
make
sudo make install
# 编译 x264
git clone https://code.videolan.org/videolan/x264.git
cd x264
./configure --enable-shared
sudo make install
# 编译 ffmpeg
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
./configure \
--enable-shared \
--enable-libopenh264 \
--enable-libx264 \
--enable-gpl \
--prefix=/usr/local/ffmpeg
cd /etc/ld.so.conf.d/
# 创建 ffmpeg.conf写入 "/usr/local/ffmpeg/lib"
sudo ldconfig
sudo ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/local/bin/
sudo ln -s /usr/local/ffmpeg/bin/ffprobe /usr/local/bin/
sudo ln -s /usr/local/ffmpeg/bin/ffserver /usr/local/bin/
```
```bash
http://www.bubuko.com/infodetail-973117.html
```