Search This Blog

Thursday, September 23, 2021

[Ubunut] Firefox 字型顯示問題修正

Firefox 顯示Serif字型時,英文粗體會出現直線/豎線/pipeline,影響觀看


 以下列方式確認字型對應後,發現"Serif"會對應為"AR PL UMing TW" "Light"

$ fc-match serif
uming.ttc: "AR PL UMing TW" "Light"

修正方式如下:

建立~/.config/fontconfig/conf.d/50_priority.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig> 
  <match target="pattern">
    <test name="family" qual="any">
      <string>serif</string>
    </test>
    <edit binding="strong" mode="prepend" name="family">
      <string>DejaVu Serif</string>
    </edit>
  </match>
</fontconfig>
 

 關閉Firefox再重開,即可修正Serif字型顯示問題

Wednesday, September 1, 2021

[Ubuntu]查詢Windows AD Server的IP Address(Find out IP Address of Windows AD Server)

$ nslookup

> server YOUR_LOCAL_DNS_SERVER_IP (EX: 192.168.1.1)

Default server: 192.168.1.1
Address: 192.168.1.1#53
 

> set type=any

> _ldap._tcp.dc._msdcs.DOMAIN_NAME (EX:abc.com.local)

Server:        192.168.1.1
Address:    192.168.1.1#53

_ldap._tcp.dc._msdcs.abc.com.local    service = 0 100 389 ad02.abc.com.local.
 

> ad02.abc.com.local

Server:        192.168.1.1
Address:    192.168.1.1#53

Name:    ad02.abc.com.local
Address: 192.168.1.30

Reference:https://www.tecknowledgebase.com/6383/how-you-can-find-out-the-name-and-ip-address-of-the-ad-domain-controller-on-your-network/