File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,69 @@ sudo systemctl enable --now code-server@$USER
190
190
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
191
191
```
192
192
193
+ ## Artix Linux
194
+ ``` bash
195
+ # Install code-server from the AUR
196
+ git clone https://aur.archlinux.org/code-server.git
197
+ cd code-server
198
+ makepkg -si
199
+ ```
200
+
201
+ Save the file as ` code-server ` in ` /etc/init.d/ ` and make it executable with ` chmod +x code-server ` . Put your username in line 3.
202
+
203
+ ``` bash
204
+ #! /sbin/openrc-run
205
+ name=$RC_SVCNAME
206
+ description=" $name - VS Code on a remote server"
207
+ user=" " # your username here
208
+ homedir=" /home/$user "
209
+ command=" $( which code-server) "
210
+ # Just because you can do this does not mean you should. Use ~/.config/code-server/config.yaml instead
211
+ # command_args="--extensions-dir $homedir/.local/share/$name/extensions --user-data-dir $homedir/.local/share/$name --disable-telemetry"
212
+ command_user=" $user :$user "
213
+ pidfile=" /run/$name /$name .pid"
214
+ command_background=" yes"
215
+ extra_commands=" report"
216
+
217
+ depend () {
218
+ use logger dns
219
+ need net
220
+ }
221
+
222
+ start_pre () {
223
+ checkpath --directory --owner $command_user --mode 0755 /run/$name /var/log/$name
224
+ }
225
+
226
+ start () {
227
+ default_start
228
+ report
229
+ }
230
+
231
+ stop () {
232
+ default_stop
233
+ }
234
+
235
+ status () {
236
+ default_status
237
+ report
238
+ }
239
+
240
+ report () {
241
+ # Report to the user
242
+ einfo " Reading configuration from ~/.config/code-server/config.yaml"
243
+ }
244
+ ```
245
+
246
+ Start on boot with default runlevel
247
+ ```
248
+ rc-update add code-server default
249
+ ```
250
+
251
+ Start the service immediately
252
+ ```
253
+ rc-service code-server start
254
+ ```
255
+
193
256
## macOS
194
257
195
258
``` bash
You can’t perform that action at this time.
0 commit comments