Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
Remmina-debugging.md
Go to the documentation of this file.
1 # General information
2 
3 Plugins can have seperate log level options. They have no connection to the Remmina debug window or any environment variables. (Explained below)
4 
5 More specifically the RDP, GVNC and SSH plugins have options in the connection profile to raise up and/or set the log level.
6 
7 # Debugging mode
8 
9 ## GUI way
10 You can just open a debug window inside of Remmina.
11 
12 - Click on the 3 dots at the top of Remmina.
13 - Click on 'Debugging'
14 
15 Just keep that window open and you'll see there will be quite a few debug messages shortly.
16 
17 ## Terminal way
18 Firstly, you have to be sure that Remmina isn't already running:
19 
20 - Open a terminal (gnome-terminal, mate-terminal, xterm, alacritty, just to name a few...)
21 
22 Your desktop environment will surely have a terminal, so you won't have to install one.
23 
24 ```bash
25 pkill remmina
26 ps -ef | grep remmina
27 ```
28 
29 In order to start Remmina in debug mode, we have to tell the underlying library GLib that we want debug messages to be printed into the terminal. For more information, please visit the GLib documentation: https://docs.gtk.org/glib/running.html
30 
31 - For that we start Remmina with the `environment variables` `G_MESSAGES_PREFIXED` and `G_MESSAGES_DEBUG` both set to `all`.
32 
33 ### Installed through apt-get, yum, pacman, rpm, or compiled with sources.
34 ```bash
35 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all remmina
36 ```
37 
38 # Installed through Flatpak
39 ```bash
40 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all flatpak run org.remmina.Remmina
41 ```
42 
43 # Installed through Snap
44 ```bash
45 G_MESSAGES_PREFIXED=all G_MESSAGES_DEBUG=all snap run remmina
46 ```
47 
48 ## Remmina crashes
49 
50 When Remmina crashes we need a backtrace if possible
51 
52 ### gdb backtrace with a distribution provided package
53 
54 Install the remmina debug symbols if available
55 
56 ```
57 gdb remmina
58 ```
59 
60 At the prompt type run, reproduce the crash, and at the prompt type `bt full`
61 
62 ### gdb backtrace on a snap package
63 
64 You may need to reinstall remmina with `--devmode`
65 
66 ```
67 snap install --devmode remmina
68 ```
69 
70 To run gdb:
71 
72 ```
73 snap run --gdb remmina
74 ```
75 
76 Follow the steps in `gdb backtrace with a distribution provided package`, instead of `run` it will be `cont`
77 
78 See https://snapcraft.io/docs/using-gdb-gdbserver
79 
80 ### gdb backtrace on a Flatpak package
81 
82 ```
83 flatpak --user install org.remmina.Remmina.Debug
84 flatpak run --command=sh --devel org.remmina.Remmina
85 gdb /app/bin/remmina
86 ```
87 
88 At the prompt type run, reproduce the crash, and at the prompt type `bt full`
89 
90 ## Flatpak and Snap package debugging
91 
92 These packages run in a confined environment, you can get a shell and do some tests, including testing with xfreerdp for instance.
93 
94 ### Flatpak
95 
96 ```
97 flatpak --user install org.remmina.Remmina.Debug
98 flatpak run --command=sh --devel org.remmina.Remmina
99 ```
100 
101 Binaries are installed under `/app/bin`
102 
103 See https://docs.flatpak.org/en/latest/debugging.html
104 
105 ### Snap
106 
107 Install remmina in `devmode`
108 
109 ```
110 snap install --devmode remmina
111 ```
112 
113 You can execute a shell in the confined environment
114 
115 ```
116 snap run --shell remmina
117 ```
118 
119 See https://snapcraft.io/docs/debug-snaps especially the considerations about AppArmor and Secomp
120 
121 
122 ## RDP Broken pipe
123 
124 If you get `broken pipe` errors or if you want to check the RDP connection, install `nmap`, and from a terminal test the connectivity
125 
126 
127 ```
128 nmap -P0 -p 3389 192.168.20.30
129 ```
130 
131 Replace the IP with the one of your server
132 
133 
134 It should output:
135 
136 ```
137 3389/tcp open ms-wbt-server
138 ```
139 
140 If the system you are using is like a gateway or a tunnel, be sure it's correctly connected to the remote RDP server.
141 
142 ## RDP `Timeout waiting for activation`
143 
144 In the advanced tab of the RDP connection profile, set an higher timeout, the default is 900 ms, 15000 or 20000 should be anough large for most cases, tune as per your needs.
145 
146