發表文章

macOS / MS Windows 的Adobe Acrobat PDF列印標楷體異常

圖片
 MacOS 下的PDF送印至FujiXerox等PostScript印表機若列印出來如下圖,只有標楷體異常,如娃娃體或破字,在MS Windows下發生也可以此方式改善。 1. 在列印時開啟印表機的進階選項(Advanced) 2. 勾選以影像方式列印(Print as image),如下圖,就可解決文字編碼轉換成印表機語言之問題。  

CentOS 8 install tcp_wrappers to protect from tcp malicious connection

圖片
 1.                2. Configurate /etc/hosts.deny and /etc/hosts.allow ALL: in.fingerd: sshd: in.tftpd: portmap:   References https://pkgs.org/download/libwrap.so.0()(64bit)

Brightness blink problem on Dell Vostro laptop

圖片
 1. download and install latest IGD and NVIDIA driver Intel Xe IGD https://www.intel.com/content/www/us/en/download/19344/intel-graphics-windows-dch-drivers.html Intel DSA https://www.intel.com/content/www/us/en/support/detect.html NVIDIA driver https://www.nvidia.com.tw/Download/index.aspx?lang=tw https://www.nvidia.com.tw/Download/driverResults.aspx/180692/tw

Structure of /etc/passwd file

圖片
Login name : Filtered pass : User ID : Group ID : Full name : Home path : Default Shell

YUM/yum options on CentOS/RHEL Linux

$sudo yum deplist  [Package]       # Display Dependencies for a package $sudo yum list avaliable   # List package names from repositories $sudo yum list installed $sudo yum update         # update one or all packages on your system $sudo yum update [Package] $sudo yum search [term]     # Search name and description from a term $sudo yum install [Package]  #Install a package from a repository to your system $sudo yum remove [Package]   #erase a package [ and possible dependencies ] from a repository to your system $sudo yumdownloader  [Package] #download a package from a repo to current directory   references https://access.redhat.com/sites/default/files/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf https://access.redhat.com/articles/yum-cheat-sheet

Use Linux commnad wall to broadcast message with nobanner

圖片
1. wall -n 2. enter your message to broadcast 3. Ctrl+D reference https://www.howtoforge.com/linux-wall-command/

Disable Web service on CISCO 9300 Catalyst Switch

圖片
1. ssh  [cisco-ip] -l [cisco-account]  #  prompt > 2. enable   # to enable mode 3. configure terminal 4.  no ip http server no ip http secure-server references https://community.spiceworks.com/topic/136566-securing-cisco-catalyst-2960-web-interface https://www.techwalla.com/articles/how-to-use-keyboard-interactive-authentication-with-putty

MS IIS with Letsencrypt SSL/TLS on MS Windows

圖片
 1. download win-acme from https://www.win-acme.com Ex. version 2.1.18 https://github.com/win-acme/win-acme/releases/download/v2.1.18/win-acme.v2.1.18.1119.x64.pluggable.zip 2. unzip win-acme.v2.1.18.1119.x64.pluggable.zip 3. execute wacs.exe  with cmd.exe to run  as administrator 4. Modify web.config to rewrite  https with IIS rewrite module https://www.iis.net/downloads/microsoft/url-rewrite   references https://www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10 https://aboutssl.org/iis-redirection-http-to-https https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks Letsencrypt ACME https://letsencrypt.org/en/docs/client-options

Command Nice increment differentitaton on CentOS Linux and BSD of MacOS

圖片
 1. Linux-like -20 ~ 19 2. BSD-like -20 ~ 20

vim /vi 操作列數與游標

Ctrl+G (顯示游標在第幾列) 1. 跳到文件第一列 Command mode 編輯模式 gg Input mode 指令模式 :0 2. 跳到文件 最後 一列 Command mode G (capital G) Input mode :$  3.游標往 左,下,上,右 h 左   j 下    k 上   l 右  4. 存檔並離開   Command mode ZZ  Input mode :wq  5. Ctrl + f   到下一頁 Ctrl + p   回上一頁 6. dd 刪除整列 yy 複製整列 p 貼上複製列於游標後 7.  :set number      顯示列數 :set nu :set nonumber 隱藏列數 :set nu! :set nonu References https://vim.rtorr.com/ https://bcc16.ncu.edu.tw/6/vi/vi01.html