Mac系统日常使用经验记录

记录一下带Touchbar的Mac日常使用的经验, OS版本是Mojave 10.14.3。

1. 常用软件推荐

软件管理工具:homebrew

屏幕截图工具:Apowersoft Screenshot (command + 1)

Todo管理工具: MS To-do/Todoist(https://todoist.com/compare_plans)/Trello

浏览器工具:Chrome

中文输入法:Sougou

笔记工具:有道云笔记

编程: Visual Studio Code(Python/Java/Go/C++)

思维导图:xmind 8

Text编辑工具:  brew cask install atom     https://atom.io/

Shell工具:

brew cask install iterm2

brew install zsh zsh-completions

chsh -s /bin/zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

source ~/.zshrc

Windows远程桌面: microsoft remote desktop

搜索工具: brew cask install alfred

解压工具:https://theunarchiver.com/  brew install unar/ unar -encoding GBK 繁體字目錄.zip

随手记工具:Notes

防蓝光:flux

阅读工具:books

电子书转换管理软件:https://calibre-ebook.com/download_osx

下载工具:Free Download Managerhttps://www.freedownloadmanager.org/

FTP工具:Filezilla

标题栏精简工具: vanilla (按Command拖动图标)

视频播放工具:brew cask install iina/source player(英语学习利器,light就够用了)

快捷键提示工具:brew cask install cheatsheet

词典工具: 自带的Dictionary(导入词库教程https://sspai.com/post/43155)DictUnifier(StarDict Dictionaries)

DB Tools:https://dbeaver.io/download/

磁盘清理:腾讯柠檬清理https://mac.gj.qq.com/限时内测码:E43A726944878257C7984891BEB8031F

查看文件编码: brew install enca  (enca -L zh_CN 测试.txt)  file -I {filename}

看图软件: https://kantu.qq.com/ (可能会出现内存占用过高问题) 或系统自带的photos

视频压缩:https://handbrake.fr

CHM阅读器:CHM Reader

免费的图形设计软件:Inkscape (brew cask install xquartz)

2.常用操作和快捷键:

软件安装:App Store/HomeBrew

软件卸载:直接拖到Trash(FInder->Applications)

切换输入法:按Caps Lock可以切换输入法(在System Preferences->Keyboard设置)

修改密码: System Preferences->User&Groups->Your user name->Change Password,然后重启系统,如果有keychain变更提示则输入旧密码,更改即可。

快速锁屏设置:System Preferences->Desktop&Screen Saver->Hot Corners->Lock Screen

快速解锁设置:System Preferences->Touch ID

屏幕截图:shift+command+5 / 4

修改文件默认打开方式: 右键点击文件->Get info->Open with(选择用什么打开)->Change All

系统日志和监控:Launchpad->Other->Activity Monitor可以看CPU、内存、磁盘和耗电/Console可以查看系统日志system.log(/var/log/system.log wifi.log), Command+F可以进行搜索。

WIFI诊断:按住Option单击WIFI标志可以查看当前WIFI连接的IP和Mac地址以及信号等详细信息。

强制关闭某个应用程序:

苹果图标->Force Quit

Launchpad->Other->Activity Monitor->找到你想结束的进程(Quit->Force Quit) 

通过terminal: ps -ef|grep -i 你想结束的应用关键字/kill 进程ID

分辨率设置(放大字体): System Preferences->Displays->Dispaly->Resolution(Scaled)

Copy/Paste/Cut/Save/Redo: Command + C/V/X/S/Z

Finder中多选:按住command可以进行多选

强制退出:Control + C/D

PPT播放: Command+Return

屏幕录制:QuickTime Player->New Screen Recording

动态壁纸:System Preference->Display->Desktop->Dynamic

Finder配置显示磁盘和用户目录:Finder->Preferences->Siderbar(your name/hard disks)

连接windows共享目录:Finder->Connect to Server->smb://fs1

重启进入Apple Diagno: Option+D

解决修改/usr/bin出现“Opertion Denied":重启按住command+R进入保护模式,打开terminal,输入csrutil disable(如果要恢复保护则csrutil enable)

查看Mac网卡信息: About This Mac->System Report->Network->Wifi

Mac OSX rootless: Command + R when rebooting to enter recovery mode, and open terminal to input "csrutil disable"

Change login options: System Preference->Users & Groups->Login Options->Login Items->+

Clean Keychain: Launchpad ->Other->KeyChain access->Login->Password/Cert

Mac Mouse: Open button->Click pair button to connect with bluetooth of Mac.

3.homebrew软件:

安装:

xcode-select --install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew -v

使用:brew search/info/install/list/upgrade/uninstall 软件名称,比如ipcalc

ipcalc 172.16.0.0/12

brew cask install iterm2 slack alfred dash

brew install git

解决brew update慢的问题:cd "$(brew --repo)"

查看brew源: git remote -v

替换brew.gitgit remote set-url origin https://mirrors.ustc.edu.cn/brew.git

替换homebrew-core.git:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

替换Homebrew Bottles源:

就是在~/.bashrc或者~/.zshrc文件末尾加

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles

切换为官方源:

git remote set-url origin https://github.com/Homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://github.com/Homebrew/homebrew-core.git

4.打印机

下载安装驱动

连接网络打印机:System Preferences->Printers->Add Button(Choose right driver 368/c368 ps)

打印PDF:print->Save as PDF

“Hold for Authentication”故障处理:Finder->Go->Utility->Keychain->删掉Printer相关的key,然后重启既可以

5.Outlook和日历

清除Calendars缓存: Finder->Go->Press Options, click Library->Calendars->Move Calendar Cache to Trash(如果要显示outlook的日历的话需要添加exchange账号并允许系统日历访问,并且有push改为每5分钟读取,并修改Alert信息Calendar->Get Info->Accounts Info->Accounts/Alerts)

6.Python及开发环境(VS Code)安装

Python安装:(control+`)

              brew install python3

              pip3 install virtualenv

             pip3 install pylint

             pip3 install yapf  (Alt+shift+F即可自动化格式代码  )

             pip3 install flake8(自动检测错误)

配置Python环境:VS Code->Extension ->Python->Install->Reload;调试Python文件:编辑文件->Debug->选择python: current file->设置断点->运行即可

        Code->Preference->Setting->settings.json

    "python.pythonPath": "python3",

    "python.linting.enabled": false,

    "python.linting.flake8Enabled": true,

    "python.formatting.provider": "yapf",

    "files.autoSave": "afterDelay",

    "files.autoSaveDelay": 1000,

    "files.insertFinalNewline": true

7.中文乱码问题

    Excel打开csv乱码:先用Excel打开csv文件,然后在菜单栏Excel->Preferences->East Asian Languages->Select a language->Simplified Chinese,然后关掉Excel,重新打开,即可

    解压乱码:设置默认使用Unar进行文件解压

8.VSCode

VS Code安装配置:安装很简单,从网站下载:https://code.visualstudio.com/,解压后将Visual Studio Code.app直接拖入Applications即可;

    插件:

        Chinese (Simplified) Language Pack for Visual Studio Code(command+shift+P->config->Locale)

        Python Extention for Visual Studio Code

        auto close tag

        vscode-icons

        open-in-browser

        html snippets

        debug for chrome

    操作:

        Command+Shift+P->config

        Control +`  打开命令行

    解决更新失败的问题(permission denied):

        1. 这一步是需要输入密码的sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt

        2. 这一步是不需要输入密码的, 如果不进行第一步,第二步会报错sudo chown $USER ~/Library/Caches/com.microsoft.VSCode.ShipIt/*

         3. 更新xattrxattr -dr com.apple.quarantine /Applications/Visual\ Studio\ Code.app

9.WIFI诊断和配置调优

按住Option的同时,单击WIFI标志可以Enable WIFI log或打开wireless diagnostics(windows->performance/scan)进行诊断或

alias airport='sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport'

      $ airport -s # Scanning

$ airport prefs # Display airport preferences

$ airport prefs joinMode=Strongest # Join mode

$ airport prefs JoinModeFallback=KeepLooking

# Seehttp://apple.stackexchange.com/a/144832

JoinMode (String)

    Automatic

    Preferred

    Ranked

    Recent

    Strongest

10.创建centos启动盘,Windows按F12选择启动顺序

格式化USB:Launchpad->Others->Disk Utility->USB Disk->Erase.

制作启动盘

#hdiutil convert -format UDRW -o CentOS-7-x86_64-Everything-18101.dmg CentOS-7-x86_64-Everything-18101.iso

#diskutil list

#diskutil unmountDisk /dev/disk2

#sudo dd if=CentOS-7-x86_64-Everything-18101.dmg of=/dev/rdisk2 bs=1m

你可能感兴趣的:(Mac系统日常使用经验记录)