2021年10月26日 星期二

scrcpy error: Could not listen on port

 

Symptoms 徵狀

scrcpy started but error happened even using -p :

使用 scrcpy 時出現無法開啟 port,即使指定特定的 port 時也一樣。

scrcpy --turn-screen-off --stay-awake -p 37183
INFO: scrcpy 1.15.1 <https://github.com/Genymobile/scrcpy>
D:\working\scrcpy-win64-v1.15.1\scrcpy-server: 1 file pushed, 0 skipped. 29.3 MB/s (33642 bytes in 0.001s)
bind: No error
ERROR: Could not listen on port 37183
WARN: 'adb reverse' failed, fallback to 'adb forward'
adb.exe: error: cannot bind listener: cannot bind to 127.0.0.1:37183: An attempt was made to access a socket in a way forbidden by its access permissions. (10013)
ERROR: "adb forward" returned with value 1
ERROR: Could not forward port 37183
Press any key to continue...


Cause 原因

network or something broken.

網路服務或是不明的錯誤。


Resolution 解決方案

open command prompt then execute the commands below:

打開命令提示字元後輸入以下指令:

net stop hns.

type 'y' and enter

net start hns.


Reference參考

https://stackoverflow.com/questions/10461257/an-attempt-was-made-to-access-a-socket-in-a-way-forbidden-by-its-access-permissi

2020年9月14日 星期一

cannot resize disk by 'Disks' utility from xfce 無法在 xfce 介面中的 'Disks' 工具擴增硬碟空間

Symptoms 徵狀

Nothing happened when you click resize function from disks utility.

使用 Disks 工具的 Resize 功能時,系統沒有任何反應。


Cause 原因

The partition you want to extend is not allocate properly.

預擴增的硬碟沒有先配置好可用空間。


Resolution 解決方案

First, you need to allocate available spaces to the device.

首先必須先修正、配置該硬碟的可用空間。

sudo parted -a optimal /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an
extra 15623782400 blocks) or continue with the current setting?
Fix/Ignore? F
Model: DELL PERC H730P Adp (scsi)
Disk /dev/sdb: 24.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  16.0TB  16.0TB  xfs

then you can using resize function from disks utility without problem.

之後再使用 Disks 中的 resize 功能即可正常擴增。

 

Reference參考

https://linuxhint.com/creating-and-resizing-xfs-partitions/ 

2019年6月15日 星期六

無法從遠端桌中更改字型大小 The display settings cant' be changed from a remote desktop.


Q;
The display settings cant' be changed from a remote desktop.
無法從遠端桌中更改字型大小


A:
Step 1.
在遠端伺服器的登錄檔中,加入 機碼 DWORD (32-bit) value: IgnoreClientDesktopScaleFactor  到下列位置
In the server, open regedit and add DWORD (32-bit) value: IgnoreClientDesktopScaleFactor in the location below

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations

Step 2.
change the value to 1
並且設定為 1

Step 3.
reboot server
重開伺服器

ref 參考:
https://social.technet.microsoft.com/Forums/en-US/7260267b-686d-4271-9dc2-5ae76e733e3f/disable-dpi-scaling-sync-for-remote-desktop-protocol-81?forum=winserverTS

2017年5月16日 星期二

Avocent DSR 2035 IP KVM erros "Netowrok error"


Change Java security

1. Go to java installed path like:C:\Program Files (x86)\Java\jreXXXX\lib\security

2. Edit the java.security file: java.security

3. find jdk.tls.disabledAlgorithms replace it  with:
#   jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
 jdk.tls.disabledAlgorithms=SSLv3, RC4

4. find jdk.certpath.disabledAlgorithms replace it with :
#jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
#    DSA keySize < 1024, EC keySize < 224
jdk.certpath.disabledAlgorithms=MD2

ref:
http://theitguyshelp.com/?p=112&lang=en

2016年11月17日 星期四

Unable to install apps on windows 8/10 app store 無法在 windows 8/10 安裝 App


Issue 問題:
無法在WINDOWS 安裝 APP,出現 You'll need a new app to open this - ms-windows-store

unable to install apps on Windows app store, error: You'll need a new app to open this - ms-windows-store


2016年3月9日 星期三

Angular orderBy/filter not working with ng-repeat 無法在 Angular 使用排序過濾功能


Issue 問題:
orderBy / filter function not working with ng-repeart item .

在 ng-repeat 時,無法使用 orderBy 或 filter 功能


p.s. ordeBy/filter can only works with arrays, not for objects.
註. orderBy/filer 只能作用在 arrays ,objects 無法使用