WEBVTT

1
00:00:00.660 --> 00:00:02.700
Let’s install Campfire on your server.

2
00:00:02.700 --> 00:00:05.520
When you buy Campfire, you’re going to get this email

3
00:00:05.520 --> 00:00:07.770
with instructions of how to get up and running.

4
00:00:07.770 --> 00:00:10.650
There is a four-step guide that you need to walk through.

5
00:00:10.650 --> 00:00:12.420
We are going to start here with point one,

6
00:00:12.420 --> 00:00:15.870
which is picking the machine where we’re gonna run Campfire.

7
00:00:15.870 --> 00:00:17.280
I’m gonna pick Digital Ocean.

8
00:00:17.280 --> 00:00:18.540
It is a cloud provider

9
00:00:18.540 --> 00:00:20.070
and you can run that

10
00:00:20.070 --> 00:00:21.780
with up to 250 users

11
00:00:21.780 --> 00:00:25.620
on one of their basic 2GB/1CPU machines.

12
00:00:25.620 --> 00:00:27.270
And as you can see here, we have some guidance

13
00:00:27.270 --> 00:00:29.010
on the bigger machines you need

14
00:00:29.010 --> 00:00:30.360
if you have more users than that.

15
00:00:30.360 --> 00:00:32.310
But of course you don’t need to use the cloud to run this.

16
00:00:32.310 --> 00:00:35.580
You can run it on your own server, you can run it on a Pi,

17
00:00:35.580 --> 00:00:36.720
you can run it on your Mac,

18
00:00:36.720 --> 00:00:38.700
you can run it on a bunch of different things.

19
00:00:38.700 --> 00:00:41.520
As long as it has a Docker, you should be good to go.

20
00:00:41.520 --> 00:00:44.580
So let’s get set up with a Digital Ocean droplet

21
00:00:44.580 --> 00:00:46.200
where we can run this on.

22
00:00:46.200 --> 00:00:50.160
I’m gonna hop over here to my Digital Ocean interface,

23
00:00:50.160 --> 00:00:52.740
which is just a basic thing you get when you sign up.

24
00:00:52.740 --> 00:00:55.530
We’re gonna go over here and click Droplets.

25
00:00:55.530 --> 00:00:57.690
And then we’re gonna create a new droplet.

26
00:00:57.690 --> 00:00:58.590
When you create a new droplet,

27
00:00:58.590 --> 00:00:59.760
you get to pick where it is.

28
00:00:59.760 --> 00:01:01.740
I am on the west coast of the United States,

29
00:01:01.740 --> 00:01:03.600
so I’m gonna pick San Francisco.

30
00:01:03.600 --> 00:01:04.890
The data center doesn’t really matter.

31
00:01:04.890 --> 00:01:06.690
You can pick that if you want to.

32
00:01:06.690 --> 00:01:09.030
And regarding the operating system,

33
00:01:09.030 --> 00:01:10.410
it also really doesn’t matter.

34
00:01:10.410 --> 00:01:14.250
I’m just gonna go with the default here, Ubuntu 23.10.

35
00:01:14.250 --> 00:01:17.190
And now you get to pick your droplet size.

36
00:01:17.190 --> 00:01:19.260
I’m gonna go with a premium AMD.

37
00:01:19.260 --> 00:01:22.800
That’s a good CPU that you get relatively cheaply.

38
00:01:22.800 --> 00:01:25.200
Note here though, that the minimum requirement

39
00:01:25.200 --> 00:01:27.240
for Campfire is two gigabytes of RAM.

40
00:01:27.240 --> 00:01:29.850
So you can’t actually use this $7 a month thing,

41
00:01:29.850 --> 00:01:31.620
it only has one gigabyte of RAM.

42
00:01:31.620 --> 00:01:34.590
So we need this as our minimum instance size.

43
00:01:34.590 --> 00:01:36.690
And again, I said if you need a larger instance

44
00:01:36.690 --> 00:01:38.730
and you have more users, you can just go up

45
00:01:38.730 --> 00:01:41.310
and add more CPUs and more RAM.

46
00:01:41.310 --> 00:01:43.950
This also comes with 50 gigabytes of storage.

47
00:01:43.950 --> 00:01:46.980
You should have plenty of room to upload your files in.

48
00:01:46.980 --> 00:01:48.210
This is basically all we need.

49
00:01:48.210 --> 00:01:51.300
We don’t need to worry about any of the other setup here.

50
00:01:51.300 --> 00:01:54.510
So I’m gonna click create a droplet.

51
00:01:54.510 --> 00:01:57.750
and Digital Ocean is gonna set this droplet up.

52
00:01:57.750 --> 00:02:01.170
As soon as it’s set up, we’re gonna grab the IP address

53
00:02:01.170 --> 00:02:03.360
that this new server has

54
00:02:03.360 --> 00:02:07.080
and we are going to point the domain we have on it.

55
00:02:07.080 --> 00:02:09.120
That is going to be step number two here.

56
00:02:09.120 --> 00:02:12.990
Point DNS to the IP address of your machine.

57
00:02:12.990 --> 00:02:16.590
We’re gonna use my little demo domain here

58
00:02:16.590 --> 00:02:18.390
and as soon as this is set up,

59
00:02:18.390 --> 00:02:21.240
I can hop over here on CloudFlare,

60
00:02:21.240 --> 00:02:23.460
which is what I’m using to manage my domain.

61
00:02:23.460 --> 00:02:24.330
But it doesn’t really matter.

62
00:02:24.330 --> 00:02:26.430
Regardless of what you use to manage your domain,

63
00:02:26.430 --> 00:02:29.460
you can set up a sub-domain.

64
00:02:29.460 --> 00:02:32.160
An A record is what we’re gonna use for this.

65
00:02:32.160 --> 00:02:34.140
And you just need to point that A record

66
00:02:34.140 --> 00:02:37.380
to the IP address we get.

67
00:02:37.380 --> 00:02:39.090
I’m gonna call this chat,

68
00:02:39.090 --> 00:02:42.690
so I’m gonna get chat.exitsoftware.io.

69
00:02:42.690 --> 00:02:44.490
That’s where I’m gonna run it.

70
00:02:44.490 --> 00:02:46.650
And on CloudFlare, you have to remember

71
00:02:46.650 --> 00:02:48.810
to turn off this proxy.

72
00:02:48.810 --> 00:02:51.960
Once we’ll provision its own SSL certificate,

73
00:02:51.960 --> 00:02:54.510
but it can only do that if we’re pointing straight to it

74
00:02:54.510 --> 00:02:55.530
with DNS only.

75
00:02:55.530 --> 00:02:57.480
So we’re not gonna use the proxy for now.

76
00:02:57.480 --> 00:02:59.733
But Let’s see here.

77
00:02:59.733 --> 00:03:01.830
We’re gonna get this set up.

78
00:03:01.830 --> 00:03:06.330
We now have an IP address for our droplet. Let’s copy that.

79
00:03:06.330 --> 00:03:09.000
And then we hop over here into CloudFlare

80
00:03:09.000 --> 00:03:10.590
and we’re gonna put it in.

81
00:03:10.590 --> 00:03:13.380
And the TTL can be auto, that’s fine.

82
00:03:13.380 --> 00:03:15.300
That’s basically all we need to put in.

83
00:03:15.300 --> 00:03:18.720
So now we have chat.exitsoftware.io.

84
00:03:18.720 --> 00:03:20.220
That’s gonna be our domain.

85
00:03:20.220 --> 00:03:24.420
And we can hop into the console of our new computer here,

86
00:03:24.420 --> 00:03:26.160
our new server.

87
00:03:26.160 --> 00:03:29.010
It auto connects with SSH.

88
00:03:29.010 --> 00:03:30.750
If you’re using a different cloud provider,

89
00:03:30.750 --> 00:03:33.510
you might actually have to manually connect with SSH.

90
00:03:33.510 --> 00:03:36.450
It is just fine to do it either way.

91
00:03:36.450 --> 00:03:38.280
I like this setup.

92
00:03:38.280 --> 00:03:39.450
It’s really easy to use,

93
00:03:39.450 --> 00:03:42.690
especially since we’re not gonna do all that much.

94
00:03:42.690 --> 00:03:46.170
So we can just use this cloud console.

95
00:03:46.170 --> 00:03:47.040
That’s up and running.

96
00:03:47.040 --> 00:03:50.430
We’re gonna need now to connect the terminal to the machine.

97
00:03:50.430 --> 00:03:51.720
We’ve done that. Step number three.

98
00:03:51.720 --> 00:03:53.310
So now we are at the final step.

99
00:03:53.310 --> 00:03:56.550
Step number four, install Campfire with one command.

100
00:03:56.550 --> 00:03:59.490
So we’re gonna copy and paste this command.

101
00:03:59.490 --> 00:04:04.290
This command includes your private purchase token.

102
00:04:04.290 --> 00:04:05.730
Make sure you do not spread this.

103
00:04:05.730 --> 00:04:08.640
This is tied to your purchase, your account

104
00:04:08.640 --> 00:04:11.970
and it will be tied to the sub domain you set it up on.

105
00:04:11.970 --> 00:04:14.550
The license is such that if you need

106
00:04:14.550 --> 00:04:16.650
more than one installation on different sub domains,

107
00:04:16.650 --> 00:04:19.890
you’re gonna buy another license to run it there.

108
00:04:19.890 --> 00:04:21.510
We make that point down here.

109
00:04:21.510 --> 00:04:23.910
So let’s hop over, paste this in

110
00:04:23.910 --> 00:04:26.520
and now we’re gonna sit tight for a while.

111
00:04:26.520 --> 00:04:29.130
The once installation command

112
00:04:29.130 --> 00:04:31.770
is first gonna install, the once command.

113
00:04:31.770 --> 00:04:33.210
We’ve done that here and that asks us

114
00:04:33.210 --> 00:04:35.100
where do we want to host our domain.

115
00:04:35.100 --> 00:04:40.100
We’re gonna end their chat.exitsoftware.io.

116
00:04:40.470 --> 00:04:42.480
It needs to know this such that it can provision

117
00:04:42.480 --> 00:04:45.090
that SSL certificate.

118
00:04:45.090 --> 00:04:47.220
And now it’s gonna run the entire setup process.

119
00:04:47.220 --> 00:04:50.490
And the setup process includes installing Docker.

120
00:04:50.490 --> 00:04:53.090
As you saw, we did no pre-baking here on this machine.

121
00:04:53.090 --> 00:04:56.220
It was completely clean off the rack.

122
00:04:56.220 --> 00:04:57.690
A new Ubuntu set up.

123
00:04:57.690 --> 00:05:00.270
We have no other preparation we need to do

124
00:05:00.270 --> 00:05:02.640
than to paste in this one command.

125
00:05:02.640 --> 00:05:06.300
But that requires us to download and install Docker,

126
00:05:06.300 --> 00:05:09.210
which is the operating system, if you will,

127
00:05:09.210 --> 00:05:11.400
for these containers.

128
00:05:11.400 --> 00:05:14.700
And once Campfire is packaged as a container,

129
00:05:14.700 --> 00:05:15.870
this is how you get the software.

130
00:05:15.870 --> 00:05:19.560
You will be downloading essentially an entire little system

131
00:05:19.560 --> 00:05:23.910
inside one of these containers that runs on your server.

132
00:05:23.910 --> 00:05:26.340
So we’ve been prepared now, we’ve installed Docker

133
00:05:26.340 --> 00:05:30.570
and now we’re downloading the once Campfire image

134
00:05:30.570 --> 00:05:32.910
that’s going to run on this server

135
00:05:32.910 --> 00:05:35.130
and provide all the functionality.

136
00:05:35.130 --> 00:05:36.240
Now once this is done,

137
00:05:36.240 --> 00:05:39.030
we’re also still gonna have this once command.

138
00:05:39.030 --> 00:05:43.050
That is the interface by which you can reset password

139
00:05:43.050 --> 00:05:46.620
if you somehow forgot the password you’ve been set up with

140
00:05:46.620 --> 00:05:49.950
or you can make backups and restore backups.

141
00:05:49.950 --> 00:05:53.820
This is also where you can force upgrades to the system.

142
00:05:53.820 --> 00:05:56.520
By default, we will be upgrading your system

143
00:05:56.520 --> 00:06:00.750
every night at 2:00 AM local time for the machine.

144
00:06:00.750 --> 00:06:03.300
So if we have pushed out any new updates,

145
00:06:03.300 --> 00:06:04.650
you will automatically get them.

146
00:06:04.650 --> 00:06:06.120
There’s nothing you need to do

147
00:06:06.120 --> 00:06:08.850
unless you don’t want that for whatever reason,

148
00:06:08.850 --> 00:06:10.560
you can turn it off.

149
00:06:10.560 --> 00:06:11.820
This is especially important

150
00:06:11.820 --> 00:06:15.060
if you’re installing once Campfire on a close network.

151
00:06:15.060 --> 00:06:16.830
For example, if you’re air gapped,

152
00:06:16.830 --> 00:06:18.600
if you’re running inside of NORAD

153
00:06:18.600 --> 00:06:20.970
or some super secure facility

154
00:06:20.970 --> 00:06:23.370
or someplace that doesn’t even have internet,

155
00:06:23.370 --> 00:06:25.620
you can still run once Campfire.

156
00:06:25.620 --> 00:06:28.563
It is simply a local service that’ll run on that network.

157
00:06:30.090 --> 00:06:31.140
So now we’re starting up.

158
00:06:31.140 --> 00:06:34.500
This takes 15, 20 seconds in these tiny droplets.

159
00:06:34.500 --> 00:06:37.140
And this is the other thing, if you want a faster machine,

160
00:06:37.140 --> 00:06:40.170
more responsive, you can of course just pick something

161
00:06:40.170 --> 00:06:42.930
with more CPUs and power.

162
00:06:42.930 --> 00:06:46.290
Anyway, we are now set up with our domain.

163
00:06:46.290 --> 00:06:50.130
We can hop back here into our browser.

164
00:06:50.130 --> 00:06:53.430
And boom, we have simply set up Campfire on the machine

165
00:06:53.430 --> 00:06:58.430
and I can now type in my credentials, my setup.

166
00:06:59.130 --> 00:07:00.720
This is gonna be the first user.

167
00:07:00.720 --> 00:07:05.460
I can even pick a little avatar here for myself.

168
00:07:05.460 --> 00:07:08.310
And that is it.

169
00:07:08.310 --> 00:07:12.300
We are up and running.

170
00:07:12.300 --> 00:07:15.090
Now I can invite people to my account.

171
00:07:15.090 --> 00:07:17.940
I can copy this to my clipboard

172
00:07:17.940 --> 00:07:21.390
and send that out on an email or an instant message

173
00:07:21.390 --> 00:07:24.420
or drop it in perhaps into my previous Slack

174
00:07:24.420 --> 00:07:26.820
or other chat system account.

175
00:07:26.820 --> 00:07:30.210
Or if I am in a public venue and I wanna get everyone on,

176
00:07:30.210 --> 00:07:31.920
I can just pop this open.

177
00:07:31.920 --> 00:07:33.870
People can take a screenshot of the QR code

178
00:07:33.870 --> 00:07:36.330
and boom, they’re gonna be into the system.

179
00:07:36.330 --> 00:07:38.460
I’m not gonna go through the entire system here.

180
00:07:38.460 --> 00:07:40.770
Jason has done a wonderful walkthrough of that.

181
00:07:40.770 --> 00:07:43.590
I just wanted to show you how you set this up.

182
00:07:43.590 --> 00:07:45.570
And this is essentially all it takes.

183
00:07:45.570 --> 00:07:46.980
Now it is fair to note here

184
00:07:46.980 --> 00:07:49.500
that you’re still running your own machine.

185
00:07:49.500 --> 00:07:52.440
You are still responsible for that machine being online.

186
00:07:52.440 --> 00:07:55.050
You’re responsible for configuring backups

187
00:07:55.050 --> 00:07:56.820
if you want to have that.

188
00:07:56.820 --> 00:07:59.340
You’re responsible for for everything that goes into that.

189
00:07:59.340 --> 00:08:01.680
So if you’re not super technical,

190
00:08:01.680 --> 00:08:03.900
it might not be a bad idea to ally yourself

191
00:08:03.900 --> 00:08:06.780
with someone who knows a thing or two about servers,

192
00:08:06.780 --> 00:08:08.550
but you can absolutely get going

193
00:08:08.550 --> 00:08:11.370
with as little as what I’ve shown you.

194
00:08:11.370 --> 00:08:13.563
That’s it. This is installing Campfire.
