Remmina 无法连接RDP问题修复.
Tofloor
poster avatar
crystal92339
deepin
2020-11-26 18:16
Author

最近一个月被这个Remmina无法远程连接windows的问题困扰死了.因为工作原因,每天都要进行远程连接操作.

用了deepin系统已经一年多了,一切操作也早已经非常习惯了,

被逼无奈,只能切回windows暂时顶一段时间.

期间也尝试过各种解决办法.但是结果都不尽人意

最终经过以为大神的帖子,通过源码编译安装,最终解决问题.

首先卸载remmina,然后根据提示一步一步执行对应指令

1. Install all packages required to build freerdp and remmina:

sudo apt install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
  libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
  libxrandr-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
  libxi-dev libavutil-dev \
  libavcodec-dev libxtst-dev libgtk-3-dev libgcrypt20-dev libssh-dev libpulse-dev \
  libvte-2.91-dev libxkbfile-dev libtelepathy-glib-dev libjpeg-dev \
  libgnutls28-dev libavahi-ui-gtk3-dev libvncserver-dev \
  libappindicator3-dev intltool libsecret-1-dev libwebkit2gtk-4.0-dev libsystemd-dev \
  libsoup2.4-dev libjson-glib-dev libavresample-dev libsodium-dev \
  libusb-1.0-0-dev

2. Remove freerdp-x11 package and all packages containing the string remmina in the package name.

sudo apt purge "?name(^remmina.*)" "?name(^libfreerdp.*)" "?name(^freerdp.*)" "?name(^libwinpr.*)"

3. Create a new directory for development in your home directory, and cd into it

mkdir ~/remmina_devel
cd ~/remmina_devel

4. Download the latest source code of FreeRDP from its master branch

git clone --branch stable-2.0 https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP

5. Configure FreeRDP for compilation (don't forget to include -DWITH_PULSE=ON)

cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_CUPS=on -DWITH_PULSE=on -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/freerdp .

Please note that the above line will make FreeRDP install in /opt/remmina_devel/freerdp

6. Compile FreeRDP and install

make && sudo make install

7. Make your system dynamic loader aware of the new libraries you installed. For Ubuntu x64:

echo /opt/remmina_devel/freerdp/lib | sudo tee /etc/ld.so.conf.d/freerdp_devel.conf > /dev/null
sudo ldconfig

8. Create a symbolik link to the executable in /usr/local/bin

sudo ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/local/bin/

9. Test the new freerdp by connecting to a RDP host

xfreerdp +clipboard /sound:rate:44100,channel:2 /v:hostname /u:username

10. Now clone remmina repository to your devel dir:

cd ~/remmina_devel
git clone https://gitlab.com/Remmina/Remmina.git

11. Configure Remmina for compilation

cd Remmina
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/remmina -DCMAKE_PREFIX_PATH=/opt/remmina_devel/freerdp --build=build .

12. Compile remmina and install it

make && sudo make install

13. Create a symbolik link to the the executable

sudo ln -s /opt/remmina_devel/remmina/bin/remmina /usr/local/bin/

14. Run remmina

remmina

Please note that icons and launcher files are not installed, so don't search for remmina using Unity Dash.

但是安装完毕以后还是没能成功.

多次实验的结果是需要去掉高级设置中的共享并口才能正常连接.


以上就是我个人经验,希望对你有用!

Reply Favorite View the author
All Replies
Feng Yu
deepin
2020-11-26 18:20
#1

哪有那么复杂,删掉xrdp的一个目录重新信任windows密钥就行了

Reply View the author
crystal92339
deepin
2020-11-26 18:39
#2
Feng Yu

哪有那么复杂,删掉xrdp的一个目录重新信任windows密钥就行了

试过了,根本不行.

Reply View the author
Feng Yu
deepin
2020-11-26 19:06
#3
crystal92339

试过了,根本不行.

可以,百试不爽,你的姿势有问题

Reply View the author
观摩
deepin
2020-11-26 20:55
#4

共享并口,共享串口,这些高级选项本来就是默认关闭的。

Reply View the author
crystal92339
deepin
2020-11-26 22:25
#5
观摩

共享并口,共享串口,这些高级选项本来就是默认关闭的。

应用商店的版本确实是关闭的.

用源码编译安装后,还是连接不上.才需要设置的.

Reply View the author
waittingsummer
deepin
2020-11-26 22:31
#6

我用商店默认安装的没这个问题。

借楼问下要怎么和远程windows文件共享, 粘贴板共享

Reply View the author
铁山老道孔乙己
deepin
2022-06-06 16:46
#7
Feng Yu

哪有那么复杂,删掉xrdp的一个目录重新信任windows密钥就行了

怎么删除 xrdp 的一个目录?麻烦说详细一点。楼主的解决方案太复杂了,看了就头疼。

Reply View the author