Search This Blog

Friday, November 5, 2021

[Visual Studio] 下載NuGet套件(Restore NuGet packages)

在命令列模式下使用MSBuild下載Nuget套件(Restore NuGet packages in command line)

msbuild version > 16.5

專案中有packages.config檔案

在有.sln檔案的路徑,執行以下命令即可

msbuild -t:restore -p:RestorePackagesConfig=true


Reference:

https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-using-the-nugetexe-cli

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/

Wednesday, June 30, 2021

[Ubuntu] qemu設定Host only網路(qemu set host only network on Windows guest)

[Host] Ubuntu 18.04

qemu/kvm

設定Host網路介面

# sudo ip link add dev bridge00 type bridge
#
sudo ip tuntap add tap00 mode tap user $USER group kvm
#
sudo ip link set tap00 master bridge00
#
sudo ip link set dev bridge00 up
#
sudo ip link set dev tap00 up

# sudo ip addr add 192.168.100.1/24 broadcast 192.168.100.255 dev bridge00

VM的網路要設定為bridge00

 


[Guest] Windows 10

ipv4

設定固定ip: 192.168.100.2 netmask: 255.255.255.0


Reference:

https://plkt.io/2021/01/15/manually-setting-up-host-only-networking-with-qemu-guest/