Can't switch back to Windows host from remote Linux session - freerdp

host: Windows 10
remote: archlinux
1) wfreerdp --version
This is FreeRDP version 2.0.0-dev5 (d96a61d8c)
2) wfreerdp.exe /v:... /u:... /p:... /floatbar /f
Remote session works fine, but I can't switch to Windows host.
1) No float toolbar visible
2) Right Ctrl does not work
3) Ctrl+Alt+Enter does not work
4) Ctrl+Alt+Del is work. I can kill wfreerdp. But CAD is sent to archlinux, and KDE session is closed.
What would I expect:
1) Right Ctrl switch focus to windows host.
2) Ctrl+Alt+Enter toggle fullscreen
3) Floatbar is visible and operable (minimize, close, pin/unpin)
4) Ctrl+Alt+Del does not sent to remote session
Is it possible to setup that behavior?

Never version fix "floatbar".
See https://github.com/FreeRDP/FreeRDP/issues/5770

Related

Microsoft Edge proxy settings doesn't work

Could you please visit this link below first.
https://learn.microsoft.com/en-us/deployedge/edge-learnmore-cmdline-options-proxy-settings
I hope start a Microsoft Edge browser without proxy server configuration even my computer has had settings a proxy server.
so I tried all below but they all doesn't work.
C:\Users\xyz>start microsoft-edge:--no-proxy-server
C:\Users\xyz>start microsoft-edge: --proxy-server="--no-proxy-server"
C:\Users\xyz>start microsoft-edge: --proxy-server=--no-proxy-server
C:\Program Files (x86)\Microsoft\Edge\Application>msedge --no-proxy-server
C:\Program Files (x86)\Microsoft\Edge\Application>msedge "--no-proxy-server"
C:\Program Files (x86)\Microsoft\Edge\Application>start microsoft-edge:"--no-proxy-server"
If you started the Microsoft Edge you can visit the link below,in this case you are able know your request throguth the proxy server or not.
https://whatismyipaddress.com/
Thank you so much.
My http request shoudn't throught the proxy server if work fine.
The --no-proxy-server command-line option does not work for me either. However, you can configure it via GPO. Just enable the ProxySettings policy and set its value as {"ProxyMode": "direct"}. It works fine for me.
for me, run Microsoft edge Version 109.0.1518.55 (Official build) (64-bit)
the proxy setting only takes effect when I close all edge windows.
So try to kill all edge processes first,
just run the below line before you start Edge Browser with args from the command line:
taskkill /f /im msedge.exe
start msedge --no-proxy-server https://ipecho.net/
and so does chrome browser:
taskkill /f /im chrome.exe
start chrome...

Electronjs app icons are big when launching in wsl2 using Xlaunch?

I have enabled WSL 2. I have also installed VcXsrv (I think its also called Xlaunch?).
I opened the settings and overrode these properties for XLaunch.exe as shown below:
After that I clicked XLaunch.exe and added -ac in one of the boxes as shown below and then pressed OK. This launched an instance of XLaunch/VcXsrv in my system tray.
Now I opened my terminal (in WSL 2) and git cloned the demo Electron app from their website. After running npm install and npm start, I see a window, but the icons are large.
I also tried adding these environment variables to my shell rc (I am using fish shell).
set -x DISPLAY {mywslip}:0
set -x LIBGL_ALWAYS_INDIRECT 1
set -x GDK_SCALE 2
set -x GDK_DPI_SCALE 0.5
But even after this, Electron app's icons and text is a little bit large. To confirm if this was an Electron issue, I did npm start in my host machine (i.e., using Windows cmd meaning I ran it not in WSL 2, but on host windows machine itself). However in this case, it works perfectly fine, icons are perfectly scaled.
I think I need to play around with these environment variables, but is there an automatic fix without my having to guess the numbers for GDK_SCALE etc?
Note: I have a normal 1920 x 1080p resolution laptop with me.

Wireshark guidance, I installed it but can't detect any interface. It seems my winPcap is not installed right, any suggestions?

Basically I've installed wireshark on widows 10, but so far no interface is detected on my computer. Do I need to reinstall my wincap?
my winPcap error says:
C:\WINDOWS\system32|drivers\npf.sys
click abort to stop the intsalltion,
retry again or ignore skip the file
I already done this step:
opening a command prompt as administrator (Win+R > cmd > Enter)
navigate to \windows\syswow64
delete Packet.dll
reboot
Install new version of Winpcap
Do I need to delete npf.sys?
The problem you're having is that Winpcap can't be installed because it doesn't have any permission to edit the file C:\WINDOWS\system32|drivers\npf.sys.
All you have to do is right-click on npf.sys < Properties < Security < Edit and check full control and all the other tasks.
You can solve that problem using the cmd window.
Check whether your npf status is "stopped" or not.
You can check your npf status by typing
'sc query npf'
If that status is "stopped", then you have to change it to "running".
You can change that status by typing
'sc start npf'

Focus chrome window in linux when running using xvfb

I am using the following shell script for to get the focus on a specific chrome window:
#!/bin/sh
WIDId=`xdotool search "Test page"`
xdotool windowactivate --sync $WIDId
sleep 2
xdotool windowactivate $WIDId
xdotool key --clearmodifiers ctrl+a
It works when running normally but fails when running chrome using xvfb.
In xvfb it is unable to find the windowID.
I need it to get working with xvfb.
It worked even without using windowactivate because I opened just one window that needed focus.

How to run wireshark on mininet?

I am trying to run wireshark on mininet using a ssh session but it does not work I have this error :
error: XDG_RUNTIME_DIR not set in the environment.
and also this error :
(wireshark:1945): Gtk-WARNING **: cannot open display:
I will appreciate your help thanks !!
1)
Make sure the ssh connection is started with -X or -Y option.
Example:
ssh -X usernme#ipaddress
2)
Restart the ssh connection, that is just exit and log in again!
For each host you want to observe (lets say h1):
On mininet: xterm h1
On xterm of h1 try: wireshark-gtk instead of wireshark
Make sure you've added an host-only network adapter and connected it to the VM.
In order to so this on Virtual Box:
Open the VirtualBox preferences menu by clicking on File → Preferences
Click on Network
Click on the tab Host-only Network
Click on Add (the small green “plus” icon on the right side of the window)
An adapter called vboxnet0 will be created. The default settings should be acceptable
Then, from the VM settings assign the adapter to the Macine:
Click on the VM
Click on Settings
Click on Network
Change Network Adapter to be attached to "Host-only Adapter"
You can also use Adapter 2 and leave Adapter 1 connected by NAT to the Internet
Make sure the adapter you've just added is selected
Only then, you'll be able to connect to the VM with ssh -X usernme#ipaddress as #shr wrote.
If you ran info more issues, please read the setup notes
I got the same error like the ones mentioned in the question.
In my fix(after you ssh -X usernme#ipaddress), I changed to directory mininet/util and ran the shell script install.sh. So basically
cd mininet/util.
sh install.sh.
"sudo wireshark &". to start wireshark and you will get warning, just hit Ok

Resources