發表文章

目前顯示的是有「MacOS」標籤的文章

Hides file or folder on MacOS

圖片
1. Open terminal from Application folder 2. chflags hidden file_or_folder_path            #maybe drag and drop icon from Finder flags: hidden / nohidden 3. To display Hidden files or folders, press keys combination  command + shift + . reference https://www.howtogeek.com/211496/how-to-hide-files-and-view-hidden-files-on-mac-os-x/

Generate Private/Public key pair for SSH connection on MacOS / Linux

圖片
 1. use keygen on Client PC to generate ed25519 key pair stored in ~/.ssh/, their default name are id_ed25519 and id_ed25519.pub, and the account names on Client PC and Server are the same.    # .pub is public key and non .pub is private key $ ssh-keygen -t ed25519               #you should setup a passphrass 2. check and copy the public key to remote server $ ssh-copy-id -n YourAccount@YourServer  # YourAccount stands for the account names on Client PC and Server, -n: try run $ ssh-copy-id  YourServer 3. connect by ssh tunnel form client to Server as figure 1. $ ssh YourAccount@YourServer      # authenticate with  passphrass only, not account password on Server (Figure 1.) 4. Finally, if you want to passwordless login with ssh, empty passphrase while executing ssh-keygen processing References LPIC-1 STUDY GUILDE, SYBEX

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

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

Capture audio on Mac OS by OBS

圖片
1. download blackhole 2ch version from https://existential.audio/blackhole / and install  2. open audio MIDI Setup.app and clikc left down + sign to add new Multi Output Device Select MacBook Pro both Speaker and BlackHole 2ch         3. move cursor to Multi Output Device and right click mouse to set it to be the default speaker 4. download OBS app from https://obsproject.com/download and install it 5. execute OBS App and and choose Audio Output Capture                   6. Choose Device is BlackHole 2ch and click OK, and then Audio Mixer will have fluctuant channel bars as follow figures                       7. Click Start Recording and the video file will be stored in ~/movie folder by default.     refereces https://streamlabs.com/content-hub/post/capturing-desktop-audio-in-streamlabs-obs-for-mac

macOS add shortcut

1. press option + command 2. click app icon and drag to your own position. reference https://support.apple.com/en-us/HT201236 https://www.laptopmag.com/articles/macos-desktop-shortcuts

Closing SIP(System Integrity Protection) on macOS

圖片
1. open console 2. type instruction: csrutil status 3. reboot macOS and press command + R after first beep 4. choose utility -> terminal / console 5. type instruction: csrutil disable

locate file on macOS

1. sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist 2.  sudo /usr/libexec/locate.updatedb 3. locate [filename] or mdfind -name [filename] references https://apple.stackexchange.com/questions/350610/macos-mojave-locate-not-working https://stackoverflow.com/questions/38373920/locate-linux-command-alternative-for-mac-osx

macOS Finder顯示隱藏檔

1. Ctrl + Shift + . 2. Console -> type $ defaults write com.apple.finder AppleShowAllFiles true $ killall finder Reference https://www.macworld.co.uk/how-to/mac-software/show-hidden-files-mac-3520878/

iMac 7.1 2007 mid 升級 macOS X 10.13 High Sierra

1. 建議記憶體先升級到 2G + 2G 總容量 4G以上,最大容量為2G + 4G 2. 先利用 High Sierra Patcher 做下載High Sierra與製作開機隨身碟,下載連結如下 http://dosdude1.com/highsierra/ 3. 按照網站步驟下載並置入USB隨身碟後,開機使用option進入正常安裝程序,選擇該隨身碟開機。 4. 先點選左下角工具程式之 mac OS post install,選擇要patch的位置,第一次選擇USB隨身碟,並選擇您的機型,如iMac 7.1,再選擇patch,接著重新開機再利用option進入隨身碟開機。 5. 選擇欲安裝之磁碟,或利用工具程式清除磁碟後,重新分割成最新的APFS格式(記得先備份資料),再進入正常安裝程序 6. 安裝完成重開機後,沒有執行patch會無法進入硬碟的High Sierra ,此時,先利用option選擇進入USB隨身碟 ,再選擇mac OS post install,並選擇要 patch 剛剛安裝High Sierra的硬碟位置,按下patch後重開機。 7. 會進入EFI shell,並且開進High Sierra的初始化設定,此時就可以有Siri功能, 但主機可能會失去wifi的連線能力 8. 筆者升級到 T9300 與 2G+4G之記憶體,並且為SSD硬碟,使用High Sierra相當順暢 參考網站 http://dosdude1.com/highsierra/

macOS Mac OS X 各大版本下載連結

Sequoia -  https://apps.apple.com/tw/app/macos-sequoia/id6596773750?mt=12 Sonoma - https://apps.apple.com/us/app/macos-sonoma/id6450717509?mt=12 Ventura -  https://apps.apple.com/us/app/macos-ventura/id1638787999?mt=12 Monterey -  https://apps.apple.com/us/app/macos-monterey/id1576738294?mt=12 Big Sur -  https://itunes.apple.com/us/app/macos-big-sur/id1526878132?mt=12 Catalina - https://apps.apple.com/tw/app/macos-catalina/id1466841314?mt=12 Mojave - https://itunes.apple.com/tw/app/macos-mojave/id1398502828?mt=12 High Sierra - https://itunes.apple.com/ca/app/macos-high-sierra/id1246284741?mt=12 Sierra - https://itunes.apple.com/us/app/macos-sierra/id1127487414?ls=1&mt=12 EI Capitan - https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12 Yosemite - https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=915041082&mt=12 參考 https://apple.stackexchange.com/questions/331688/how-to-download-macos-high-sierra-from-the-mojave-app-st...

macOS更新 10.14 Mojave後,出現MS Office 2016 無法操作功能之問題

圖片
更新 macOS 10.14 Mojave (圖一)後,MS Office 2016有些功能會失去作用,尤以大量授權版本之Office 2016,此時可 1. 完全移除Office 2016再重新安裝,可根據 https://3ctipsmemo.blogspot.com/2018/10/macoffice.html 2. 安裝後,再安裝跳出的更新工具檔,或手動 經由以下微軟原廠連結下載更新檔(2018-10-16 released): https://docs.microsoft.com/zh-tw/officeupdates/update-history-office-for-mac (圖一)

macOS X 安裝微軟標楷或其他字型

圖片
1. 右上角搜尋放大鏡圖示,點選後輸入 字體簿 2. 出現如圖一之視窗,點選上方之 + 再選擇您要加入的字型檔案,如 kaiu.ttf, edukai.ttf, ebas927.ttf 或 .ttc 格式檔案,從您作業系統C:\Windows\Fonts 複製出來之檔案格式。 再選擇確定即可,警告之小問題可略過。 3. 這樣 LibreOffice文件即可看到原本從Windows系統寄件的字型了。 (圖一)

macOS 連線MS Windows網路芳鄰(samba, cifs)

圖片
1. 點選執行Finder 2. 在Finder上方功能列選擇 前往 -> 連接伺服器 (如圖一) 3. 輸入samba通訊協定 smb://,後方接上網路硬碟或NAS的IP位址後,按 + 4. 跟伺服器連線後,會提示輸入連入的帳號密碼,再輸入帳號密碼後,選連線即可。 (圖一) (圖二) 參考 https://support.apple.com/kb/PH25269?locale=en_US&viewlocale=zh_TW

製作 macOS X USB開機碟用來外部開機方式

1.首先下載映像檔 https://itunes.apple.com/tw/app/macos-high-sierra/id1246284741?l=zh&mt=12 2.利用以下apple原廠建議方式製作入您放入的隨身碟 https://support.apple.com/zh-tw/HT201372 https://support.apple.com/en-us/HT201372 或 若為安裝10.8.x 之前的mac os,可利用掛載 .dmg 檔後,在開啟磁碟工具,選擇還原OS X Install ESD 到已先清除乾淨的外接隨身碟。此方式不適用10.9.x 版本 例如: http://osxdaily.com/2013/06/12/make-boot-os-x-mavericks-usb-install-drive/ https://www.lifewire.com/use-disk-utility-bootable-os-x-yosemite-installer-2259935 { 10.9.x以後 須先掛載如若10.11 ,掛載EI_CAPTAIN_INSTALL.dmg a. 點選.app, 按滑鼠右鍵顯示套件內容後,複製 Contents/SharedSupport/InstallESD.dmg (請注意大小寫)至桌面 b. 掛載 InstallESD.dmg, 按一下shift + command + .  ,來顯示隱藏檔。並複製其下層內容BaseSystem.dmg至桌面。 c. 再掛載 BaseSystem.dmg ,此時可利用復原方式復原回USB隨身碟。 d. 進入復原好的USB,並找到 System/Installation資料夾內的 Packages捷徑,並將其刪除,再從InstallESD.dmg掛載的下層資料夾Packages,複製到USB內的System/Installation,在複製InstallESD掛載下的BaseSystem.chunlist與BaseSystem.dmg兩個隱藏檔,一併複製至由BaseSystem.dmg 復原的USB磁碟 e. 這樣便可完成mac os 10.9.x 可開機光碟。} 其他利用Terminal指令方式,如2 s...

macOS 第三方套件管理工具 brew

1. App Store 安裝 Xcode並啟用 2. 開啟 terminal 並執行以下指令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 或是terminal下執行以下: 1. cd ~ 2. mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew 參考 https://brew.sh/

Apple Mac macOS 的重新安裝方式

圖片
關機後,按開機鈕,接著按下以下組合鍵 Command + R (重新安裝預設的 macOS 或是內建最新版本,且不在安裝中升級至網路最新版本) Shift + Option + Command + R (重新安裝預設的 macOS 或是內建最新版本,僅適用macOS Sierra 10.12.4 以上版本) NVRam 的重置 https://support.apple.com/zh-tw/HT204063 製作USB開機碟重新安裝系統 https://support.apple.com/en-us/HT201372  組合鍵參考 https://support.apple.com/zh-tw/HT201255 製作catalina開機光碟之機器也需升級至該catalina版本 從網路下載後  http://3ctipsmemo.blogspot.com/2019/02/mac-os-x.html https://isoriver.com/macos-catalina-10-15-iso-dmg-image/ 跟隨原廠指引 https://support.apple.com/en-us/HT201372 後如下圖         參考資料 https://support.apple.com/zh-tw/HT204904  

Apple macOS 瀏覽網頁即時查閱英文字典

圖片
1. 在瀏覽器看到想查閱的英文單字,移動滑鼠至其單字或按鈕上方 2.  同時按住觸控板下面左右鍵,便會出現 Dictionary 查詢模式,如下圖