mirror of
https://git.adityakumar.xyz/blog.git
synced 2024-11-08 18:49:44 +00:00
2 KiB
2 KiB
title | date | lastmod | draft | keywords | description | tags | categories | author | comment | toc | autoCollapseToc | postMetaInFooter | hiddenFromHomePage | contentCopyright | reward | mathjax | mathjaxEnableSingleDollar | mathjaxEnableAutoNumber | hideHeaderAndFooter | flowchartDiagrams | sequenceDiagrams | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Install Code Server on Artix | 2022-06-15T06:59:27Z | 2022-06-15T06:59:27Z | false |
|
|
|
false | false | false | true | false | false | false | false | false | false | false |
|
|
Same as installing code-server on Arch, except you need an OpenRC script.
Install using yay
yay
is a convenient AUR helper.
yay -S code-server
Install using makepkg
git clone https://aur.archlinux.org/code-server.git
cd code-server
makepkg -si
Download and configure OpenRC script
The script is pretty generic and should work on most OpenRC-based distributions with minimal tweaks. You just need to download it, make it executable and put your username in line 3.
cd /etc/init.d/
sudo wget -c https://banyan.divineduty.xyz/GNUxeava/code-server-openrc/raw/branch/master/code-server
sudo chmod +x code-server
code-server
reads configuration from ~/.config/code-server/config.yaml
. It is better than sending arguments directly to code-server
using the script.
Usage
Start on boot with default runlevel
sudo rc-update add code-server default
Start the service immediately
sudo rc-service code-server start