Skip to content

Commit f6ba227

Browse files
authored
Create CINC_WORKSTATION_SETUP.md
1 parent 1fdeeb1 commit f6ba227

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

docs/CINC_WORKSTATION_SETUP.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Cinc Workstation
2+
3+
## Linux Install
4+
5+
Use the installation script provided by Cinc. The script detects your
6+
OS version and downloads the appropriate package.
7+
8+
```
9+
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -P cinc-workstation
10+
```
11+
12+
Verify the installation:
13+
14+
```
15+
cinc --version
16+
```
17+
18+
```
19+
# User specific aliases and functions
20+
if [[ -d ~/.bashrc.d ]]; then
21+
for rc in ~/.bashrc.d/*; do
22+
if [[ -f "$rc" ]]; then
23+
source "$rc"
24+
fi
25+
done
26+
fi
27+
28+
unset rc
29+
```
30+
31+
## macOS Install
32+
33+
Download the latest version of the Cinc Workstation package from
34+
https://downloads.cinc.sh/files/stable/cinc-workstation/ for your version
35+
of macOS and CPU architecture.
36+
37+
Mount the DMG file and double-click the PKG file to start the install.
38+
The operation will warn you that it cannot verify the package. Click
39+
on the Done button. Then go to "System Settings > Privacy & Security".
40+
Scroll all the way down to view the "Security" section. You'll see
41+
that it says that the package was block to protect your Mac. Clcik on
42+
the "Open Anyway" button to run the install.
43+
44+
The bulk of the Cinc Workstation install is in `/opt/cinc-workstation`,
45+
with a few copies of the main program binaries in `/usr/local/bin` to
46+
be in the default `PATH`.
47+
48+
### Configure the Ruby environment (simple)
49+
50+
Configure the Ruby environment Cinc uses by adding the following
51+
commands to the configuration file for Z Shell (`~/.zshrc`):
52+
53+
```
54+
# Load the zsh completion system - required to configure autocomplete
55+
echo 'autoload -Uz compinit' >> ~/.zshrc
56+
echo 'compinit' >> ~/.zshrc
57+
# Add the Cinc Workstation initialization content
58+
echo 'eval "$(cinc shell-init zsh)"' >> ~/.zshrc
59+
```
60+
61+
Reload the config in the current shell with `source ~/.zshrc` or
62+
restart the current terminal.
63+
64+
Verify that the Ruby interpreter being used is the cin-workstation
65+
ruby instead of the system ruby:
66+
67+
```
68+
% which ruby
69+
/opt/cinc-workstation/embedded/bin/ruby
70+
```
71+
72+
### Configure the Ruby environment (advanced)
73+
74+
```
75+
mkdir -m 0755 ~/.zshrc.d
76+
```
77+
78+
```
79+
# User specific aliases and functions
80+
if [[ -d ~/.zshrc.d ]]; then
81+
for rc in ~/.zshrc.d/*; do
82+
if [[ -f "$rc" ]]; then
83+
source "$rc"
84+
fi
85+
done
86+
fi
87+
88+
unset rc
89+
```
90+
91+
## macOS Uninstall
92+
93+
To remove Cinc Workstation, run `uninstall_chef_workstation` (located
94+
in `/usr/local/bin/uninstall_chef_workstation`).

0 commit comments

Comments
 (0)