File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1
1
## macOS-init
2
2
用于初始化mac系统
3
3
- 语言环境:bash shell
4
+ - 脚本名称:macOS_init.sh
5
+
4
6
5
7
## 功能描述:
6
8
1 . Add to a domain - contoso.com for macOS
7
9
2 . Set hostname
8
10
3 . Add account to group of administrators
9
11
4 . Install all of the PKG installer, Number.pkg Pages.pkg etc..
10
12
5 . Copy the common files to the Shared Directory
13
+
14
+ ## 本地账户说明
15
+ 1 . 本地账户需要自定义名称
16
+ 2 . 本地账户密码为空
17
+
18
+
19
+ ## 加域说明
20
+ 1 . 须将domain修改为自己所在公司的域名
21
+ 2 . 须指定具有加域权限的账户,add_domain_user
22
+
23
+ ## 其他说明
24
+ 1 . 将脚本文件和要安装的程序包等都存放到U盘
25
+ 2 . U盘名称为Install_macOS
26
+ 3 . 要安装的软件存放在Install_macOS/app目录下
27
+ 4 . 入职说明文件存放在【Install_macOS/app/手册】目录下
28
+ 5 . 入职说明文件拷贝至mac的/Users/Shared目录下
29
+
30
+ ## 运行方法
31
+ 1 . 插入U盘
32
+ 2 . 打开终端输入sh /Volumes/Install-macOS/macOS_init.sh(可直接将其拖入终端)并回车
33
+ 3 . 根据提示输入相关信息
34
+
35
+ ## 命令方式安装系统
36
+ /Volumes/Install-macOS/Install\ macOS\ Catalina.app/Contents/Resources/startosinstall --eraseinstall --newvolumename macos --agreetolicense
You can’t perform that action at this time.
0 commit comments