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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,233评论 4 360
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,013评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,030评论 0 241
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,827评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,221评论 3 286
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,542评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,814评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,513评论 0 198
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,225评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,497评论 2 244
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 31,998评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,342评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 32,986评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,055评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,812评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,560评论 2 271
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,461评论 2 266

推荐阅读更多精彩内容